Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add drop shadow to vpn-card #51

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/components/vpncard.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,11 @@ export class VPNCard extends LitElement {
align-items: flex-start;
justify-content: space-between;
flex-direction: column;
box-shadow: var(--box-shadow-off);
}
.box.on {
background: var(--main-card-background);
box-shadow: var(--box-shadow-on);
}
main,
footer {
Expand Down Expand Up @@ -283,6 +285,7 @@ export class VPNCardPlaceHolder extends LitElement {
align-items: center;
justify-content: space-between;
flex-direction: row;
box-shadow: var(--box-shadow-off);
}
.infobox {
flex: 4;
Expand Down
2 changes: 2 additions & 0 deletions src/ui/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
--padding-default: 16px;
--button-transition: background-color 0.2s ease;
--button-border-radius: 5px;
--box-shadow-on: rgba(0, 0, 0, 0.28) 2px 2px 4px;
--box-shadow-off: rgba(0, 0, 0, 0.06) 2px 2px 7px;
}

@media (prefers-color-scheme: dark) {
Expand Down