Skip to content
This repository was archived by the owner on Oct 1, 2023. It is now read-only.

Commit ab0d64f

Browse files
authored
Merge pull request #13 from tolking/dev
fix: pwa styles
2 parents e5cb15e + 652cf82 commit ab0d64f

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
[README](README.md) | [CHANGELOG](CHANGELOG.md)
44

5+
## 1.0.6
6+
7+
- fix styles on pwa
8+
59
## 1.0.5
610

711
- fix styles on vuepress 1.3.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vuepress-theme-default-prefers-color-scheme",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"main": "index.js",
55
"description": "add prefers-color-scheme for vuepress default theme",
66
"author": "tolking <qw13131wang@gmail.com>",

styles/index.styl

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,15 @@ div[class*="language-"].line-numbers-mode .line-numbers-wrapper
178178
// pwa
179179
.global-ui
180180
.sw-update-popup
181-
border-color var(--accentColors)
182-
background var(--bgColor)
181+
border-color var(--accentColors) !important
182+
background-color var(--bgColor) !important
183+
color var(--textColor) !important
183184
button
184-
color #fff
185-
background-color var(--accentColor)
186-
border-bottom-color var(--darken10AccentColor)
185+
border-color var(--darken10AccentColor) !important
186+
background-color var(--accentColor) !important
187+
color #fff !important
187188
&:hover
188-
background-color var(--lighten10AccentColor)
189+
background-color var(--lighten10AccentColor) !important
189190

190191
// scroll bar
191192
@media (min-width: $MQMobile)

0 commit comments

Comments
 (0)