More work on settings panel

This commit is contained in:
nizune 2021-08-02 16:21:16 +02:00
parent f465a8d81f
commit 2f563ef726
3 changed files with 35 additions and 38 deletions

View file

@ -170,10 +170,10 @@ export function GenericSettings({
<Switch>{children}</Switch> <Switch>{children}</Switch>
</div> </div>
{!isTouchscreenDevice && ( {!isTouchscreenDevice && (
<div className={styles.action}>
<div onClick={exitSettings} className={styles.closeButton}> <div onClick={exitSettings} className={styles.closeButton}>
<X size={28} /> <X size={28} />
<span className={styles.esc} /> </div>
</div> </div>
)} )}
</div> </div>

View file

@ -34,6 +34,15 @@
flex-direction: column; flex-direction: column;
background: var(--primary-header); background: var(--primary-header);
.scrollbox { //TOFIX: need to put this into a media query later
visibility: visible !important;
overflow-y: auto;
&::-webkit-scrollbar-thumb {
border-top: none;
}
}
.sidebar, .sidebar,
.content { .content {
background: var(--primary-background); background: var(--primary-background);
@ -42,9 +51,12 @@
.sidebar { .sidebar {
justify-content: flex-start; justify-content: flex-start;
.container { .container {
padding: 20px 8px; padding: 20px 8px calc(var(--bottom-navigation-height) + 30px);
min-width: 218px; min-width: 218px;
width: 100%;
} }
> div { > div {
@ -57,7 +69,11 @@
} }
.content { .content {
padding: 10px 12px var(--bottom-navigation-height); padding: 0;
}
.contentcontainer {
padding: 10px 12px var(--bottom-navigation-height) !important;
} }
} }
@ -80,11 +96,10 @@
display: flex; display: flex;
user-select: none; user-select: none;
flex-direction: row; flex-direction: row;
/*justify-content: center;*/
background: var(--primary-background); background: var(--primary-background);
/* Scrollbox hides the scrollbar on the desktop app. */ /* Scrollbox hides the scrollbar on the desktop app. */
@media (hover: hover) { .scrollbox { visibility: hidden; }} /*@media (hover: hover) { .scrollbox { visibility: hidden; }}*/
.scrollbox { .scrollbox {
overflow-y: scroll; overflow-y: scroll;
@ -174,11 +189,13 @@
.contentcontainer { .contentcontainer {
display: flex; display: flex;
gap: 13px;
height: max-content;
max-width: 740px; max-width: 740px;
padding: 80px 2em; padding: 80px 2em;
width: 100%;
visibility: visible; visibility: visible;
flex-direction: column; flex-direction: column;
flex-grow: 1;
} }
details { details {
@ -186,7 +203,7 @@
} }
h1 { h1 {
margin-top: 0; margin: 0;
line-height: 1em; line-height: 1em;
font-size: 1.2em; font-size: 1.2em;
font-weight: 600; font-weight: 600;
@ -196,6 +213,10 @@
font-size: 13px; font-size: 13px;
text-transform: uppercase; text-transform: uppercase;
color: var(--secondary-foreground); color: var(--secondary-foreground);
&:first-child {
margin-top: 0;
}
} }
h4 { h4 {
@ -221,33 +242,7 @@
} }
} }
.closeButton { .action {
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
height: 40px;
width: 40px;
border: 3px solid var(--tertiary-background);
cursor: pointer;
visibility: visible;
position: sticky;
top: 80px;
svg {
color: var(--secondary-foreground);
}
&:hover {
background: var(--secondary-header);
}
&:active {
transform: translateY(2px);
}
}
/*.action {
flex: 1; flex: 1;
flex-shrink: 0; flex-shrink: 0;
padding: 80px 8px; padding: 80px 8px;
@ -297,7 +292,7 @@
> div { > div {
display: inline; display: inline;
} }
}*/ }
section { section {
margin-bottom: 1em; margin-bottom: 1em;

View file

@ -141,12 +141,14 @@
.themes { .themes {
gap: 8px; gap: 8px;
display: flex; display: flex;
width: 100%;
img { img {
cursor: pointer; cursor: pointer;
border-radius: var(--border-radius); border-radius: var(--border-radius);
transition: border 0.3s; transition: border 0.3s;
border: 3px solid transparent; border: 3px solid transparent;
width: 100%;
&[data-active="true"] { &[data-active="true"] {
cursor: default; cursor: default;