dotfiles/.config/swaync/style.css
2023-09-26 17:12:28 +02:00

215 lines
4.1 KiB
CSS

@import url('file:///home/viyurz/.config/gtk-3.0/colors-gtk.css');
* {
font-family: "Cantarell";
color: @foreground;
}
.blank-window {
background: transparent;
}
.notification-row {
outline: none;
}
.notification-row:focus,
.notification-row:hover {
background: @hovered;
}
.notification, .control-center {
border: 2px solid transparent;
border-radius: 4px;
margin: 30px;
background-image: linear-gradient(160deg, @background1, @background2), linear-gradient(160deg, @accent1, @accent2);
background-clip: padding-box, border-box;
background-origin: border-box;
box-shadow: none;
}
.widget-title,
.widget-dnd,
.control-center .notification {
margin: 10px;
}
.notification-default-action,
.notification-action {
padding: 0;
margin: 0;
box-shadow: none;
background: transparent;
border: none;
border-radius: 0px;
}
.notification-default-action:hover,
.notification-action:hover {
/*-gtk-icon-effect: none;*/
background-image: linear-gradient(160deg, @hovered, @hovered), linear-gradient(160deg, @accent1, @accent2);
}
.notification-content {
background: transparent;
padding: 6px;
}
/* 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;
}
*/
.close-button {
background: transparent;
text-shadow: none;
padding: 0;
border-radius: 100%;
margin: 32px;
box-shadow: none;
border: none;
min-width: 24px;
min-height: 24px;
}
.close-button:hover {
box-shadow: none;
background-color: @bad;
transition: all 0.15s ease-in-out;
border: none;
}
/* When alternative actions are visible */
.notification-default-action:not(:only-child) {
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
}
/* 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 {
font-size: 16px;
font-weight: bold;
background: transparent;
text-shadow: none;
}
.time {
font-size: 16px;
font-weight: bold;
background: transparent;
text-shadow: none;
}
.body {
font-size: 15px;
font-weight: normal;
background: transparent;
text-shadow: none;
}
/* The "Notifications" and "Do Not Disturb" text widget */
.top-action-title {
text-shadow: none;
}
.control-center-list {
background: transparent;
}
.floating-notifications {
background: transparent;
}
/*** Widgets ***/
/* Title widget */
.widget-title {
font-size: 1.5rem;
}
.widget-title > button {
font-size: initial;
text-shadow: none;
border: 2px solid transparent;
border-radius: 4px;
background-image: linear-gradient(160deg, @background1, @background2), linear-gradient(160deg, @accent1, @accent2);
background-clip: padding-box, border-box;
background-origin: border-box;
box-shadow: none;
}
.widget-title > button:hover {
background-image: linear-gradient(160deg, @selected, @selected), linear-gradient(160deg, @accent1, @accent2);
}
/* DND widget */
.widget-dnd > switch {
border: 2px solid transparent;
border-radius: 16px;
background-image: linear-gradient(160deg, @background1, @background2), linear-gradient(160deg, @accent1, @accent2);
background-clip: padding-box, border-box;
background-origin: border-box;
box-shadow: none;
}
.widget-dnd > switch:checked {
background-image: linear-gradient(160deg, @selected, @selected), linear-gradient(160deg, @accent1, @accent2);
}
.widget-dnd > switch slider {
background-color: alpha(@disabled, 0.5);
}
.widget-dnd > switch:checked slider {
background-color: alpha(@accent1, 0.5);
}
/* Mpris widget */
.widget-mpris {
/* The parent to all players */
}
.widget-mpris-player {
padding: 8px;
margin: 8px;
}
.widget-mpris-title {
font-weight: bold;
font-size: 1.25rem;
}
.widget-mpris-subtitle {
font-size: 1.1rem;
}