1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-10-30 15:41:50 +08:00
dotfiles/.config/swaync/style.css

385 lines
6.7 KiB
CSS
Raw Normal View History

2022-06-25 21:26:38 +08:00
/*
* vim: ft=less
*/
2022-11-30 14:10:00 +08:00
@import "dark.less";
2022-06-25 21:26:38 +08:00
2023-07-16 15:37:50 +08:00
* {
2024-02-27 19:41:27 +08:00
all: unset;
font-size: 14px;
transition: 200ms;
}
.floating-notifications.background .notification-row .notification-background {
box-shadow:
0 0 8px 0 rgba(0, 0, 0, 0.8),
inset 0 0 0 1px @bg-a;
border-radius: 12.6px;
margin: 18px;
background-color: @bg;
2023-07-16 15:37:50 +08:00
color: @fg;
2024-02-27 19:41:27 +08:00
padding: 0;
2023-07-16 15:37:50 +08:00
}
2024-02-27 19:41:27 +08:00
.floating-notifications.background
.notification-row
.notification-background
.notification {
padding: 7px;
border-radius: 12.6px;
2022-06-25 21:26:38 +08:00
}
2024-02-27 19:41:27 +08:00
.floating-notifications.background
.notification-row
.notification-background
.notification.critical {
box-shadow: inset 0 0 7px 0 @warning;
2022-06-25 21:26:38 +08:00
}
2024-02-27 19:41:27 +08:00
.floating-notifications.background
.notification-row
.notification-background
.notification
.notification-content {
margin: 7px;
2022-06-25 21:26:38 +08:00
}
2024-02-27 19:41:27 +08:00
.floating-notifications.background
.notification-row
.notification-background
.notification
.notification-content
.summary {
color: @fg;
2022-06-25 21:26:38 +08:00
}
2024-02-27 19:41:27 +08:00
.floating-notifications.background
.notification-row
.notification-background
.notification
.notification-content
.time {
color: @gray;
2022-06-25 21:26:38 +08:00
}
2024-02-27 19:41:27 +08:00
.floating-notifications.background
.notification-row
.notification-background
.notification
.notification-content
.body {
color: @fg;
2022-06-25 21:26:38 +08:00
}
2024-02-27 19:41:27 +08:00
.floating-notifications.background
.notification-row
.notification-background
.notification
> *:last-child
> * {
min-height: 3.4em;
2022-06-25 21:26:38 +08:00
}
2024-02-27 19:41:27 +08:00
.floating-notifications.background
.notification-row
.notification-background
.notification
> *:last-child
> *
.notification-action {
border-radius: 7px;
color: @fg;
background-color: @bg-a;
box-shadow: inset 0 0 0 1px @bg-b;
margin: 7px;
2022-06-25 21:26:38 +08:00
}
2024-02-27 19:41:27 +08:00
.floating-notifications.background
.notification-row
.notification-background
.notification
> *:last-child
> *
.notification-action:hover {
box-shadow: inset 0 0 0 1px @bg-b;
background-color: @bg-a;
color: @fg;
2022-06-25 21:26:38 +08:00
}
2024-02-27 19:41:27 +08:00
.floating-notifications.background
.notification-row
.notification-background
.notification
> *:last-child
> *
.notification-action:active {
box-shadow: inset 0 0 0 1px @bg-b;
background-color: @primary-dark;
color: @fg;
2022-06-25 21:26:38 +08:00
}
2024-02-27 19:41:27 +08:00
.floating-notifications.background
.notification-row
.notification-background
.close-button {
margin: 7px;
padding: 2px;
border-radius: 6.3px;
color: @bg;
background-color: @warning;
2022-06-25 21:26:38 +08:00
}
2024-02-27 19:41:27 +08:00
.floating-notifications.background
.notification-row
.notification-background
.close-button:hover {
background-color: #eba0ac;
color: @bg;
2022-06-25 21:26:38 +08:00
}
2024-02-27 19:41:27 +08:00
.floating-notifications.background
.notification-row
.notification-background
.close-button:active {
background-color: @warning;
color: @bg;
2022-06-25 21:26:38 +08:00
}
2024-02-27 19:41:27 +08:00
.control-center {
box-shadow:
0 0 8px 0 rgba(0, 0, 0, 0.8),
inset 0 0 0 1px @bg-a;
border-radius: 12.6px;
margin: 18px;
background-color: @bg;
color: @fg;
padding: 14px;
2022-06-25 21:26:38 +08:00
}
2024-02-27 19:41:27 +08:00
.control-center .widget-title {
2022-06-25 21:26:38 +08:00
color: @fg;
2024-02-27 19:41:27 +08:00
font-size: 1.3em;
2022-06-25 21:26:38 +08:00
}
2024-02-27 19:41:27 +08:00
.control-center .widget-title button {
border-radius: 7px;
2022-06-25 21:26:38 +08:00
color: @fg;
2024-02-27 19:41:27 +08:00
background-color: @bg-a;
box-shadow: inset 0 0 0 1px @bg-b;
padding: 8px;
2022-06-25 21:26:38 +08:00
}
2024-02-27 19:41:27 +08:00
.control-center .widget-title button:hover {
box-shadow: inset 0 0 0 1px @bg-b;
background-color: @bg-c;
2022-06-25 21:26:38 +08:00
color: @fg;
}
2024-02-27 19:41:27 +08:00
.control-center .widget-title button:active {
box-shadow: inset 0 0 0 1px @bg-b;
background-color: @primary-dark;
color: @bg;
}
.control-center .notification-row .notification-background {
border-radius: 7px;
color: @fg;
background-color: @bg-a;
box-shadow: inset 0 0 0 1px @bg-b;
margin-top: 14px;
2022-06-25 21:26:38 +08:00
}
2024-02-27 19:41:27 +08:00
.control-center .notification-row .notification-background .notification {
padding: 7px;
border-radius: 7px;
}
.control-center
.notification-row
.notification-background
.notification.critical {
box-shadow: inset 0 0 7px 0 @warning;
}
.control-center
.notification-row
.notification-background
.notification
.notification-content {
margin: 7px;
}
.control-center
.notification-row
.notification-background
.notification
.notification-content
.summary {
color: @fg;
}
.control-center
.notification-row
.notification-background
.notification
.notification-content
.time {
color: @gray;
}
.control-center
.notification-row
.notification-background
.notification
.notification-content
.body {
color: @fg;
}
.control-center
.notification-row
.notification-background
.notification
> *:last-child
> * {
min-height: 3.4em;
}
.control-center
.notification-row
.notification-background
.notification
> *:last-child
> *
.notification-action {
border-radius: 7px;
color: @fg;
background-color: #11111b;
box-shadow: inset 0 0 0 1px @bg-b;
margin: 7px;
}
.control-center
.notification-row
.notification-background
.notification
> *:last-child
> *
.notification-action:hover {
box-shadow: inset 0 0 0 1px @bg-b;
background-color: @bg-a;
color: @fg;
}
.control-center
.notification-row
.notification-background
.notification
> *:last-child
> *
.notification-action:active {
box-shadow: inset 0 0 0 1px @bg-b;
background-color: @primary-dark;
color: @fg;
}
.control-center .notification-row .notification-background .close-button {
margin: 7px;
padding: 2px;
border-radius: 6.3px;
color: @bg;
background-color: @fg;
}
.control-center .notification-row .notification-background .close-button:hover {
background-color: @warning;
color: @bg;
}
.control-center
.notification-row
.notification-background
.close-button:active {
background-color: @warning;
color: @bg;
}
.control-center .notification-row .notification-background:hover {
box-shadow: inset 0 0 0 1px @bg-b;
background-color: @bg-e;
color: @fg;
}
.control-center .notification-row .notification-background:active {
box-shadow: inset 0 0 0 1px @bg-b;
background-color: @primary-dark;
color: @fg;
}
progressbar,
progress,
through {
border-radius: 12.6px;
}
progressbar {
box-shadow: inset 0 0 0 1px @bg-b;
}
.notification.critical progress {
background-color: @warning;
}
.notification.low progress,
.notification.normal progress {
background-color: @secondary-dark;
}
through {
background-color: @bg-a;
}
.control-center through {
background-color: @bg-b;
2022-06-25 21:26:38 +08:00
}
.control-center-dnd {
2024-02-27 19:41:27 +08:00
margin-top: 5px;
border-radius: 8px;
background: @bg-a;
border: 1px solid @bg-b;
2022-06-25 21:26:38 +08:00
box-shadow: none;
}
.control-center-dnd:checked {
2024-02-27 19:41:27 +08:00
background: @bg-a;
2022-06-25 21:26:38 +08:00
}
2024-02-27 19:41:27 +08:00
2022-06-25 21:26:38 +08:00
.control-center-dnd slider {
2024-02-27 19:41:27 +08:00
background: @bg-b;
border-radius: 8px;
2022-06-25 21:26:38 +08:00
}
2024-02-27 19:41:27 +08:00
.widget-dnd {
margin: 0px;
font-size: 1.1rem;
2022-06-25 21:26:38 +08:00
}
2024-02-27 19:41:27 +08:00
.widget-dnd > switch {
font-size: initial;
border-radius: 8px;
background: @bg-a;
border: 1px solid @bg-b;
box-shadow: none;
}
.widget-dnd > switch:checked {
background: @bg-a;
2022-06-25 21:26:38 +08:00
}
2024-02-27 19:41:27 +08:00
.widget-dnd > switch slider {
background: @bg-b;
border-radius: 8px;
border: 1px solid @bg-d;
2022-06-25 21:26:38 +08:00
}