2023-09-16 17:46:39 +02:00
|
|
|
body {
|
2022-09-30 15:18:52 +02:00
|
|
|
align-items: center;
|
2022-10-10 18:28:24 +02:00
|
|
|
box-sizing: border-box;
|
2022-09-30 15:18:52 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
body > * {
|
2023-09-16 17:46:39 +02:00
|
|
|
width: min(640px, 100%);
|
2022-09-30 15:18:52 +02:00
|
|
|
}
|
|
|
|
#dashboard-nav {
|
2023-09-16 17:46:39 +02:00
|
|
|
background-color: var(--surface-1);
|
2022-09-30 15:18:52 +02:00
|
|
|
border: 0;
|
|
|
|
border-bottom: 1px solid var(--border-1);
|
|
|
|
display: flex;
|
|
|
|
flex-shrink: 0;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
overflow-x: hidden;
|
|
|
|
padding: 0;
|
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
2023-09-16 17:46:39 +02:00
|
|
|
z-index: 100;
|
2022-09-30 15:18:52 +02:00
|
|
|
}
|
|
|
|
.tabButton {
|
|
|
|
background-color: transparent;
|
|
|
|
border: 0;
|
|
|
|
border-bottom: 3px solid transparent;
|
|
|
|
border-radius: 0;
|
|
|
|
color: var(--dashboard-tab-ink);
|
|
|
|
fill: var(--dashboard-tab-ink);
|
|
|
|
font-family: var(--font-family);
|
|
|
|
font-size: var(--font-size);
|
|
|
|
padding: 0.7em 1.4em calc(0.7em - 3px);
|
|
|
|
text-decoration: none;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
.tabButton:focus {
|
|
|
|
outline: 0;
|
|
|
|
}
|
2023-09-16 17:46:39 +02:00
|
|
|
.tabButton:hover {
|
|
|
|
background-color: var(--dashboard-tab-hover-surface);
|
|
|
|
border-bottom-color: var(--dashboard-tab-hover-border);
|
2022-09-30 15:18:52 +02:00
|
|
|
}
|
2023-09-16 17:46:39 +02:00
|
|
|
|
|
|
|
body[data-pane="settings"] #dashboard-nav .tabButton[data-pane="settings"],
|
|
|
|
body[data-pane="about"] #dashboard-nav .tabButton[data-pane="about"] {
|
2022-09-30 15:18:52 +02:00
|
|
|
background-color: var(--dashboard-tab-active-surface);
|
|
|
|
border-bottom: 3px solid var(--dashboard-tab-active-ink);
|
|
|
|
color: var(--dashboard-tab-active-ink);
|
|
|
|
fill: var(--dashboard-tab-active-ink);
|
|
|
|
}
|
|
|
|
|
2023-09-16 17:46:39 +02:00
|
|
|
body > section {
|
2022-09-30 15:18:52 +02:00
|
|
|
display: none;
|
|
|
|
}
|
2023-09-16 17:46:39 +02:00
|
|
|
body[data-pane="settings"] > section[data-pane="settings"],
|
|
|
|
body[data-pane="about"] > section[data-pane="about"] {
|
|
|
|
display: block;
|
2022-09-30 15:18:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* high dpi devices */
|
|
|
|
:root.hidpi .tabButton {
|
|
|
|
font-family: Metropolis, sans-serif;
|
|
|
|
font-weight: 600;
|
|
|
|
letter-spacing: 0.5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* touch-screen devices */
|
|
|
|
:root.mobile #dashboard-nav {
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
overflow-x: auto;
|
|
|
|
}
|
|
|
|
:root.mobile #dashboard-nav .logo {
|
|
|
|
display: none;
|
|
|
|
}
|