Skip to content

Commit

Permalink
chore(plugin-pwa-popup): convert style to scss
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Feb 2, 2024
1 parent f19bd7a commit 498b329
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion plugins/plugin-pwa-popup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"scripts": {
"build": "tsc -b tsconfig.build.json",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
"copy": "cpx \"src/**/*.css\" lib"
"style": "sass src:lib --style=compressed --no-source-map"
},
"dependencies": {
"@vuepress/plugin-pwa": "workspace:*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,23 @@
box-shadow: var(--pwa-popup-shadow);
text-align: center;
z-index: var(--pwa-popup-z-index);
}

@media print {
.pwa-popup {
@media print {
display: none;
}
}

.pwa-popup > button {
cursor: pointer;
margin-top: 0.5em;
padding: 0.25em 2em;
border: none;
color: var(--pwa-popup-btn-text-color);
background-color: var(--pwa-popup-btn-bg-color);
}
> button {
cursor: pointer;
margin-top: 0.5em;
padding: 0.25em 2em;
border: none;
color: var(--pwa-popup-btn-text-color);
background-color: var(--pwa-popup-btn-bg-color);

.pwa-popup > button:hover {
background-color: var(--pwa-popup-btn-hover-bg-color);
&:hover {
background-color: var(--pwa-popup-btn-hover-bg-color);
}
}
}

.pwa-popup-enter-active,
Expand Down

0 comments on commit 498b329

Please sign in to comment.