aboutsummaryrefslogtreecommitdiffstats
path: root/styles/main
diff options
context:
space:
mode:
Diffstat (limited to 'styles/main')
-rw-r--r--styles/main/_header.scss74
1 files changed, 66 insertions, 8 deletions
diff --git a/styles/main/_header.scss b/styles/main/_header.scss
index 9fab16b..e6ac70f 100644
--- a/styles/main/_header.scss
+++ b/styles/main/_header.scss
@@ -6,34 +6,92 @@
nav {
display: flex;
- & > ul:first-of-type {
+ & > div {
flex-grow: 1;
- overflow: auto;
+ overflow-y: auto;
+
+ & > span {
+ padding-left: .5em;
+ line-height: 2em;
+ font-weight: 600;
+ }
+
+ & > ul {
+ display: flex;
+ }
}
- & > ul {
+ & > ul,
+ & > div > ul {
display: block;
& > li {
display: inline-block;
+ & > span > span {
+ padding: .75em;
+ display: inline-block;
+ margin-left: .5em;
+ color: var(--color-error);
+ }
+
& > span,
& > a {
display: inline-block;
color: var(--color-text);
text-decoration: none;
align-items: center;
- padding: .25em .5em;
- margin: .25em;
border-radius: .5em;
transition: .3s background, .3s color;
+ white-space: nowrap;
+ padding: .25em .5em;
+ margin: .25em;
- &:hover {
- background-color: var(--color-selected);
- color: var(--color-text-alt);
+ @media(hover: hover) {
+ &:hover {
+ background-color: var(--color-selected);
+ color: var(--color-text-alt);
+ }
}
}
}
}
}
}
+
+.showMobileAppList {
+ @media(max-width: 40em) {
+ position: fixed;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+ background-color: var(--color-window-popup);
+ border-bottom: 1px solid var(--color-window-border-bottom);
+ border-top: 1px solid var(--color-window-border-top);
+ border-radius: .5em;
+ padding: 1em;
+ min-width: 13em;
+
+ li {
+ width: 100%;
+ padding: 0;
+ margin: -.25em 0;
+ }
+
+ & > li:first-of-type {
+ padding: .5em .5em 1em;
+ white-space: nowrap;
+ }
+
+ & > li:last-of-type {
+ width: 100%;
+ padding-top: 1em;
+ text-align: center;
+
+ span {
+ height: 2.1em;
+ padding: .5em .75em;
+ }
+ }
+ }
+}