diff --git a/src/client/app/mobile/style.styl b/src/client/app/mobile/style.styl index df8f4a8fa..095e5266f 100644 --- a/src/client/app/mobile/style.styl +++ b/src/client/app/mobile/style.styl @@ -8,12 +8,4 @@ html height 100% - background #ececed !important - - &[data-darkmode] - background #191B22 !important - -body - display flex - flex-direction column - min-height 100% + background var(--bg) diff --git a/src/client/app/mobile/views/components/ui.nav.vue b/src/client/app/mobile/views/components/ui.nav.vue index 29dcf1802..a84dc7349 100644 --- a/src/client/app/mobile/views/components/ui.nav.vue +++ b/src/client/app/mobile/views/components/ui.nav.vue @@ -226,8 +226,8 @@ root(isDark) .announcements > article - background isDark ? rgba(30, 129, 216, 0.2) : rgba(155, 196, 232, 0.2) - color isDark ? #fff : #3f4967 + background var(--mobileAnnouncement) + color var(--mobileAnnouncementFg) padding 16px margin 8px 0 font-size 12px diff --git a/src/client/app/mobile/views/pages/welcome.vue b/src/client/app/mobile/views/pages/welcome.vue index 82ccfeaff..4e24f70ff 100644 --- a/src/client/app/mobile/views/pages/welcome.vue +++ b/src/client/app/mobile/views/pages/welcome.vue @@ -3,7 +3,7 @@
- +

{{ host }}

{{ name }}

@@ -144,16 +144,17 @@ root(isDark) left 0 width 100% height 100px - background linear-gradient(transparent, isDark ? #191b22 : #f7f7f7) + background linear-gradient(transparent, var(--bg)) > div:not(.banner) padding 32px margin 0 auto max-width 500px - > img + > svg display block - max-width 200px + width 200px + height 50px margin 0 auto > .host @@ -169,8 +170,8 @@ root(isDark) > .about margin-top 16px padding 16px - color #555 - background #fff + color var(--text) + background var(--face) border-radius 6px > h2 @@ -238,7 +239,7 @@ root(isDark) margin 16px 0 padding 8px font-size 14px - color #444 + color var(--text) background rgba(#000, 0.1) border-radius 6px @@ -249,9 +250,9 @@ root(isDark) margin 16px 0 > article - background isDark ? rgba(30, 129, 216, 0.2) : rgba(155, 196, 232, 0.2) + background var(--mobileAnnouncement) border-radius 6px - color isDark ? #fff : #3f4967 + color var(--mobileAnnouncementFg) padding 16px margin 8px 0 font-size 12px @@ -263,10 +264,10 @@ root(isDark) margin 16px 0 padding 32px font-size 14px - background #fff + background var(--face) border-radius 6px overflow hidden - color #3a3e46 + color var(--text) > h1 margin 0 @@ -279,12 +280,12 @@ root(isDark) > section > h2 - border-bottom 1px solid isDark ? rgba(#000, 0.2) : rgba(#000, 0.05) + border-bottom 1px solid var(--faceDivider) > section margin-bottom 16px padding-bottom 16px - border-bottom 1px solid isDark ? rgba(#000, 0.2) : rgba(#000, 0.05) + border-bottom 1px solid var(--faceDivider) > h3 margin-bottom 8px @@ -301,7 +302,7 @@ root(isDark) > .info padding 16px 0 - border solid 2px #ddd + border solid 2px rgba(0, 0, 0, 0.1) border-radius 8px > * @@ -309,7 +310,7 @@ root(isDark) > footer text-align center - color #444 + color var(--text) > small display block diff --git a/src/client/theme/dark.json b/src/client/theme/dark.json index d79e348b0..3074eb22a 100644 --- a/src/client/theme/dark.json +++ b/src/client/theme/dark.json @@ -120,6 +120,8 @@ "desktopSettingsNavItem": ":alpha<0.8<$text", "desktopSettingsNavItemHover": ":lighten<10<$text", + "mobileAnnouncement": "rgba(30, 129, 216, 0.2)", + "mobileAnnouncementFg": "#fff", "mobileSignedInAsBg": "#273c34", "mobileSignedInAsFg": "#49ab63", "mobileSignoutBg": "#652222", diff --git a/src/client/theme/light.json b/src/client/theme/light.json index 7d15d49ae..9f41ee8f2 100644 --- a/src/client/theme/light.json +++ b/src/client/theme/light.json @@ -120,6 +120,8 @@ "desktopSettingsNavItem": ":alpha<0.8<$text", "desktopSettingsNavItemHover": ":darken<10<$text", + "mobileAnnouncement": "rgba(155, 196, 232, 0.2)", + "mobileAnnouncementFg": "#3f4967", "mobileSignedInAsBg": "#fcfff5", "mobileSignedInAsFg": "#2c662d", "mobileSignoutBg": "#fff6f5",