dotfiles/.config/sway/swaync/style.css

218 lines
4.0 KiB
CSS
Raw Normal View History

2025-01-12 18:41:54 +00:00
@define-color cc-bg rgba(190, 29, 122, 0.4);
@define-color noti-text-color rgba(122, 162, 247, 1);
@define-color noti-border-color rgba(149.2, 21, 95.1, 0.4);
@define-color noti-bg rgba(239, 78, 145, 0.4);
@define-color noti-bg-hover rgba(243.7, 60.5, 136.7, 1);
@define-color noti-bg-focus rgba(243.7, 60.5, 136.7, 0.6);
@define-color noti-close-bg rgba(115.0, 218.0, 202.0, 0.1);
@define-color noti-close-bg-hover rgba(115.0, 218.0, 202.0, 0.15);
@define-color bg-selected rgba(231, 129, 179, 1);
* {
font-family: "Comic Code";
font-size: 15px;
}
.notification-row {
outline: none;
}
.notification-row:focus,
.notification-row:hover {
background: @noti-bg-focus;
}
.notification {
border-radius: 12px;
margin: 6px 12px;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.7),
0 2px 6px 2px rgba(0, 0, 0, 0.3);
padding: 0;
}
.critical {
background: @bg-selected;
padding: 6px;
border-radius: 12px;
}
/* Uncomment to enable specific urgency colors
.low {
background: yellow;
padding: 6px;
border-radius: 12px;
}
.normal {
background: green;
padding: 6px;
border-radius: 12px;
}
.critical {
background: red;
padding: 6px;
border-radius: 12px;
}
*/
.notification-content {
background: transparent;
padding: 6px;
border-radius: 12px;
}
.close-button {
background: @noti-close-bg;
color: @noti-text-color;
text-shadow: none;
padding: 0;
border-radius: 100%;
margin-top: 10px;
margin-right: 16px;
box-shadow: none;
border: none;
min-width: 24px;
min-height: 24px;
}
.close-button:hover {
box-shadow: none;
background: @noti-close-bg-hover;
transition: all 0.15s ease-in-out;
border: none;
}
.notification-default-action,
.notification-action {
padding: 4px;
margin: 0;
box-shadow: none;
background: @noti-bg;
border: 1px solid @noti-border-color;
color: white;
}
.notification-default-action:hover,
.notification-action:hover {
-gtk-icon-effect: none;
background: @noti-bg-hover;
}
.notification-default-action {
border-radius: 12px;
}
/* When alternative actions are visible */
.notification-default-action:not(:only-child) {
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
}
.notification-action {
border-radius: 0px;
border-top: none;
border-right: none;
}
/* add bottom border radius to eliminate clipping */
.notification-action:first-child {
border-bottom-left-radius: 10px;
}
.notification-action:last-child {
border-bottom-right-radius: 10px;
border-right: 1px solid @noti-border-color;
}
.image {
}
.body-image {
margin-top: 6px;
background-color: white;
border-radius: 12px;
}
.summary {
color: @noti-text-color;
text-shadow: none;
}
.time {
color: @noti-text-color;
text-shadow: none;
margin-right: 18px;
}
.body {
background: transparent;
color: @noti-text-color;
text-shadow: none;
}
/* The "Notifications" and "Do Not Disturb" text widget */
.top-action-title {
color: @noti-text-color;
text-shadow: none;
}
.control-center-clear-all {
color: @noti-text-color;
text-shadow: none;
background: @cc-bg;
border: 1px solid @noti-border-color;
box-shadow: none;
border-radius: 12px;
}
.control-center-clear-all:hover {
background: @noti-bg-hover;
}
.control-center-dnd {
border-radius: 12px;
background: @noti-bg;
border: 1px solid @noti-border-color;
box-shadow: none;
}
.control-center-dnd:checked {
background: @bg-selected;
}
.control-center-dnd slider:hover {
background: @noti-close-bg-hover;
}
.control-center-dnd slider {
background: @noti-bg-hover;
border-radius: 12px;
}
/* The .control-center Window.
* Can't apply padding and margin so may be easier to use "> box" instead
*/
.control-center {
background: @cc-bg;
}
/* The first control-center child. May be easier to style this than .control-center */
.control-center > box {
}
.control-center-list {
background: transparent;
}
.floating-notifications {
background: transparent;
}
/* Window behind control center and on all other monitors */
.blank-window {
background: alpha(black, 0.25);
}