Files
dotfiles/swaync/style.css
T
2024-09-02 17:40:04 +07:00

479 lines
13 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@define-color cc-bg rgba(20, 20, 20, 0.7);
@define-color noti-border-color rgba(255, 255, 255, 0.15);
@define-color noti-bg rgba(50, 50, 50, 0.8);
@define-color noti-bg-opaque rgb(48, 48, 48);
@define-color noti-bg-darker rgb(38, 38, 38);
@define-color noti-bg-hover rgb(56, 56, 56);
@define-color noti-bg-hover-opaque rgb(56, 56, 56);
@define-color noti-bg-focus rgba(68, 68, 68, 0.6);
@define-color noti-close-bg rgba(255, 255, 255, 0.1);
@define-color noti-close-bg-hover rgba(255, 255, 255, 0.15);
@define-color text-color rgb(255, 255, 255);
@define-color text-color-disabled rgb(150, 150, 150);
@define-color bg-selected rgb(0, 128, 255);
@import url("/home/tola/.cache/wal/colors-waybar.css")
.testing {
background-color: red;
}
.control-center {
background: alpha(@background, 0.6);
border-radius: 24px;
border: 0px solid @foreground;
margin: 2px;
padding: 4px;
}
.control-center-list {
background: transparent;
}
.control-center-list-placeholder {
opacity: 0.8;
}
/* Window behind control center and on all other monitors */
.blank-window {
background: transparent;
}
/*** Widgets ***/
/* Title widget */
.widget-title {
margin: 8px;
font-size: 1.5rem;
background: alpha(@color0,0.0);
}
.widget-title > button {
font-size: initial;
color:@color7;
text-shadow: none;
background: alpha(@background,0.0);
border: 1px solid alpha(@color7,0.5);
box-shadow: none;
border-radius: 12px;
}
.widget-title > button:hover {
background: @color1;
}
.widget-label {
background: @color0;
padding: 20px;
padding-bottom: 50px;
border-radius: 20px;
}
/* DND widget */
.widget-dnd {
background-color: @color;
}
.widget-dnd > switch {
font-size: initial;
border-radius: 14px;
background: @noti-bg;
border: 2px solid @noti-border-color;
box-shadow: none;
}
.widget-dnd > switch:checked {
background: @color5;
}
.widget-dnd > switch slider {
background: @noti-bg-hover;
border-radius: 12px;
}
/* Label widget */
.widget-label {
margin: 8px;
}
.widget-label > label {
font-size: 1.1rem;
}
/* Mpris widget */
.widget-mpris {
font-family: "JetBrains Mono Nerd Font";
/* The parent to all players */
border: 0px;
}
.widget-mpris-player {
padding: 14px;
margin: 14px;
background-color: @mpris-album-art-overlay;
border-radius: 20px;
}
.widget-mpris-album-art {
border-radius: 12px;
}
.widget-mpris-player button:hover {
/* The media player buttons (play, pause, next, etc...) */
background: @noti-bg-hover;
}
.widget-mpris > box > button {
/* Change player side buttons */
}
.widget-mpris > box > button:disabled {
/* Change player side buttons insensitive */
}
.widget-mpris-title {
font-family: "JetBrains Mono Nerd Font";
font-weight: bold;
font-size: 1.25rem;
}
.widget-mpris-subtitle {
font-family: "JetBrains Mono Nerd Font";
font-size: 1.1rem;
}
/* Buttons widget */
.widget-buttons-grid {
font-size: 15px;
background: alpha(@background, 0.9);
font-family: "JetBrains Mono Nerd Font";
padding-left: 5px;
margin-left: 10px;
margin-right: 10px;
border-radius: 20px;
padding-top: 10px;
padding-bottom: 10px;
background-color: alpha(@background, 0.9);
}
.widget-buttons-grid > flowbox > flowboxchild > button {
padding: 10px;
background: @color1;
color:@color7;
border-radius: 20px;
margin: 2px;
border: 0px solid #04030a;
}
.widget-buttons-grid > flowbox > flowboxchild > button:hover {
background: @color4;
transition: all 0.3s ease-in-out;
}
/* Menubar widget */
.widget-menubar > box > .menu-button-bar > button {
border: none;
background: transparent;
background: red;
}
.topbar-buttons > button {
/* Name defined in config after # */
border: none;
background: transparent;
background: rgba(69, 133, 136, 1);
}
/* Volume widget */
trough {
border-radius: 20px;
background: @background;
border: 1px solid @background;
}
trough highlight {
/* ´trough´ is the background of the slider, ´highlight´ is the actual slider */
padding-top: 1px;
background: @color4;
border: 1px solid @color4;
border-radius: 20px;
}
trough slider {
padding: 1px;
background: @color4;
border: 1px solid @color4;
}
trough slider:hover {
padding: 1px;
background: @color4;
}
.widget-volume {
background-color: alpha(@background, 0.0);
border-radius: 20px 20px 0px 0px;
font-size: 15px;
margin-left: 10px;
margin-right: 10px;
padding-bottom: 5px;
border: 0px solid transparent;
}
.widget-backlight {
padding-left: 5px;
background-color: alpha(@background, 0.0);
font-size: 15px;
margin-top: -8px;
margin-left: 10px;
margin-right: 10px;
border-radius: 0px 0px 20px 20px;
border: 0px solid transparent;
}
/* Title widget */
.widget-inhibitors {
margin: 8px;
font-size: 1.5rem;
}
.widget-inhibitors > button {
font-size: initial;
color: white;
text-shadow: none;
background: @noti-bg;
border: 1px solid @noti-border-color;
box-shadow: none;
border-radius: 12px;
}
.widget-inhibitors > button:hover {
background: @noti-bg-hover;
}
.notification-row {
outline: none;
}
.notification-row:focus,
.notification-row:hover {
background: alpha(@color14, 0.5); /* @noti-bg-focus */
}
.notification-row .notification-background {
padding: 6px 12px;
}
.notification-row .notification-background .close-button {
/* The notification Close Button */
background: alpha(@color4, 0.5); /* @noti-close-bg */
color: alpha(@color15, 1.0); /* @text-color */
text-shadow: none;
padding: 0;
border-radius: 100%;
margin-top: 5px;
margin-right: 5px;
box-shadow: none;
border: none;
min-width: 24px;
min-height: 24px;
}
.notification-row .notification-background .close-button:hover {
background: alpha(@color12, 0.5); /* @noti-close-bg-hover */
transition: background 0.15s ease-in-out;
}
.notification-row .notification-background .notification {
/* The actual notification */
border-radius: 12px;
border: 2px solid alpha(@color8, 0.5); /* @border */
padding: 0;
transition: background 0.15s ease-in-out;
background: alpha(@color0, 0.5); /* @noti-bg */
}
.notification-row .notification-background .notification.low {
/* Low Priority Notification */
}
.notification-row .notification-background .notification.normal {
/* Normal Priority Notification */
}
.notification-row .notification-background .notification.critical {
/* Critical Priority Notification */
}
.notification-row .notification-background .notification .notification-action,
.notification-row .notification-background .notification .notification-default-action {
padding: 4px;
margin: 0;
box-shadow: none;
background: transparent;
border: none;
color: alpha(@color15, 1.0); /* @text-color */
transition: background 0.15s ease-in-out;
}
.notification-row .notification-background .notification .notification-action:hover,
.notification-row .notification-background .notification .notification-default-action:hover {
background: alpha(@color13, 0.5); /* @noti-bg-hover */
}
.notification-row .notification-background .notification .notification-default-action {
/* The large action that also displays the notification summary and body */
border-radius: 12px;
}
.notification-row .notification-background .notification .notification-default-action:not(:only-child) {
/* When alternative actions are visible */
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
}
.notification-row .notification-background .notification .notification-default-action .notification-content {
background: transparent;
border-radius: 12px;
padding: 4px;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .image {
/* Notification Primary Image */
border-radius: 100px;
/* Size in px */
margin: 4px;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .app-icon {
/* Notification app icon (only visible when the primary image is set) */
-gtk-icon-shadow: 0 1px 4px black;
margin: 6px;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .text-box .summary {
/* Notification summary/title */
font-size: 16px;
font-weight: bold;
background: transparent;
color: alpha(@color15, 1.0); /* @text-color */
text-shadow: none;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .text-box .time {
/* Notification time-ago */
font-size: 16px;
font-weight: bold;
background: transparent;
color: alpha(@color15, 1.0); /* @text-color */
text-shadow: none;
margin-right: 30px;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .text-box .body {
/* Notification body */
font-size: 15px;
font-weight: normal;
background: transparent;
color: alpha(@color15, 1.0); /* @text-color */
text-shadow: none;
}
.notification-row .notification-background .notification .notification-default-action .notification-content progressbar {
/* The optional notification progress bar */
margin-top: 4px;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .body-image {
/* The "extra" optional bottom notification image */
margin-top: 4px;
background-color: alpha(@color15, 0.5);
border-radius: 12px;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .inline-reply {
/* The inline reply section */
margin-top: 4px;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .inline-reply .inline-reply-entry {
background: alpha(@color1, 0.5); /* @noti-bg-darker */
color: alpha(@color15, 1.0); /* @text-color */
caret-color: alpha(@color15, 1.0); /* @text-color */
border: 1px solid alpha(@color8, 0.5); /* @border */
border-radius: 12px;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .inline-reply .inline-reply-button {
margin-left: 4px;
background: alpha(@color0, 0.5); /* @noti-bg */
border: 1px solid alpha(@color8, 0.5); /* @border */
border-radius: 12px;
color: alpha(@color15, 1.0); /* @text-color */
}
.notification-row .notification-background .notification .notification-default-action .notification-content .inline-reply .inline-reply-button:disabled {
background: initial;
color: alpha(@color7, 0.5); /* @text-color-disabled */
border: 1px solid alpha(@color8, 0.5); /* @border */
border-color: transparent;
}
.notification-row .notification-background .notification .notification-default-action .inline-reply .inline-reply-button:hover {
background: alpha(@color13, 0.5); /* @noti-bg-hover */
}
.notification-row .notification-background .notification .notification-action {
/* The alternative actions below the default action */
border-top: 1px solid alpha(@color8, 0.5); /* @border */
border-radius: 0px;
border-right: 1px solid alpha(@color8, 0.5); /* @border */
}
.notification-row .notification-background .notification .notification-action:first-child {
/* Add bottom border radius to eliminate clipping */
border-bottom-left-radius: 12px;
}
.notification-row .notification-background .notification .notification-action:last-child {
border-bottom-right-radius: 12px;
border-right: none;
}
.notification-group {
/* Styling only for Grouped Notifications */
}
.notification-group.low {
/* Low Priority Group */
}
.notification-group.normal {
/* Normal Priority Group */
}
.notification-group.critical {
/* Critical Priority Group */
}
.notification-group .notification-group-buttons,
.notification-group .notification-group-headers {
margin: 0 16px;
color: alpha(@color15, 1.0); /* @text-color */
}
.notification-group .notification-group-headers {
/* Notification Group Headers */
}
.notification-group .notification-group-headers .notification-group-icon {
color: alpha(@color15, 1.0); /* @text-color */
}
.notification-group .notification-group-headers .notification-group-header {
color: alpha(@color15, 1.0); /* @text-color */
}
.notification-group .notification-group-buttons {
/* Notification Group Buttons */
}
.notification-group.collapsed .notification-row .notification {
background-color: alpha(@color0, 0.5); /* @noti-bg-opaque */
}
.notification-group.collapsed .notification-row:not(:last-child) {
/* Top notification in stack */
/* Set lower stacked notifications opacity to 0 */
}
.notification-group.collapsed .notification-row:not(:last-child) .notification-action,
.notification-group.collapsed .notification-row:not(:last-child) .notification-default-action {
opacity: 0;
}
.notification-group.collapsed:hover .notification-row:not(:only-child) .notification {
background-color: alpha(@color13, 0.5); /* @noti-bg-hover-opaque */
}