This commit is contained in:
syuilo 2018-09-28 11:23:30 +09:00
parent fccfe19e13
commit 436773837b
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
3 changed files with 8 additions and 12 deletions

View file

@ -121,10 +121,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
.nav
$color = var(--text)
root(isDark)
$color = isDark ? #c9d2e0 : #777
.backdrop .backdrop
position fixed position fixed
@ -133,7 +131,7 @@ root(isDark)
z-index 1025 z-index 1025
width 100% width 100%
height 100% height 100%
background isDark ? rgba(#000, 0.7) : rgba(#000, 0.2) background var(--mobileNavBackdrop)
.body .body
position fixed position fixed
@ -144,7 +142,7 @@ root(isDark)
height 100% height 100%
overflow auto overflow auto
-webkit-overflow-scrolling touch -webkit-overflow-scrolling touch
background isDark ? #16191f : #fff background var(--secondary)
.me .me
display block display block
@ -265,10 +263,4 @@ root(isDark)
opacity: 0; opacity: 0;
} }
.nav[data-darkmode]
root(true)
.nav:not([data-darkmode])
root(false)
</style> </style>

View file

@ -12,6 +12,7 @@
"primary": "$primary", "primary": "$primary",
"primaryForeground": "#fff", "primaryForeground": "#fff",
"secondary": "$secondary",
"bg": ":darken<8<$secondary", "bg": ":darken<8<$secondary",
"text": "$text", "text": "$text",
@ -127,6 +128,7 @@
"desktopSettingsNavItem": ":alpha<0.8<$text", "desktopSettingsNavItem": ":alpha<0.8<$text",
"desktopSettingsNavItemHover": ":lighten<10<$text", "desktopSettingsNavItemHover": ":lighten<10<$text",
"mobileNavBackdrop": "rgba(0, 0, 0, 0.7)",
"mobileUserPageName": "#fff", "mobileUserPageName": "#fff",
"mobileUserPageAcct": "$text", "mobileUserPageAcct": "$text",
"mobileUserPageDescription": "$text", "mobileUserPageDescription": "$text",

View file

@ -12,6 +12,7 @@
"primary": "$primary", "primary": "$primary",
"primaryForeground": "#fff", "primaryForeground": "#fff",
"secondary": "$secondary",
"bg": ":darken<8<$secondary", "bg": ":darken<8<$secondary",
"text": "$text", "text": "$text",
@ -127,6 +128,7 @@
"desktopSettingsNavItem": ":alpha<0.8<$text", "desktopSettingsNavItem": ":alpha<0.8<$text",
"desktopSettingsNavItemHover": ":darken<10<$text", "desktopSettingsNavItemHover": ":darken<10<$text",
"mobileNavBackdrop": "rgba(0, 0, 0, 0.2)",
"mobileUserPageName": "#757c82", "mobileUserPageName": "#757c82",
"mobileUserPageAcct": "#969ea5", "mobileUserPageAcct": "#969ea5",
"mobileUserPageDescription": "#757c82", "mobileUserPageDescription": "#757c82",