| 1 | @import '../../.cache/wal/colors-waybar.css'; |
| 2 | |
| 3 | @define-color text @foreground; |
| 4 | @define-color bg @color1; |
| 5 | @define-color selected @color6; |
| 6 | @define-color hover alpha(@selected, .4); |
| 7 | |
| 8 | * { |
| 9 | outline: none; |
| 10 | transition: 200ms; |
| 11 | } |
| 12 | |
| 13 | .notification-row { |
| 14 | outline: none; |
| 15 | margin: 0; |
| 16 | padding: 0px; |
| 17 | } |
| 18 | |
| 19 | .notification-row .notification-background .close-button { |
| 20 | /* The notification Close Button */ |
| 21 | background: transparent; |
| 22 | color: @text; |
| 23 | text-shadow: none; |
| 24 | box-shadow: none; |
| 25 | margin-top: 2px; |
| 26 | margin-right: 2px; |
| 27 | padding: 0; |
| 28 | border: none; |
| 29 | border-radius: 100%; |
| 30 | min-width: 24px; |
| 31 | min-height: 24px; |
| 32 | } |
| 33 | |
| 34 | .notification-row .notification-background .close-button:hover { |
| 35 | box-shadow: none; |
| 36 | background: @hover; |
| 37 | transition: background 0.15s ease-in-out; |
| 38 | border: 0px; |
| 39 | } |
| 40 | |
| 41 | .notification-row .notification-background .notification { |
| 42 | /* The actual notification */ |
| 43 | background: @background; |
| 44 | } |
| 45 | |
| 46 | .notification-row .notification-background .notification .notification-action, .notification-row .notification-background .notification .notification-default-action { |
| 47 | color: @text; |
| 48 | } |
| 49 | |
| 50 | .notification-row .notification-background .notification .notification-action:hover, .notification-row .notification-background .notification .notification-default-action:hover { |
| 51 | -gtk-icon-effect: none; |
| 52 | background: @hover; |
| 53 | } |
| 54 | |
| 55 | .notification-group .notification-group-headers { |
| 56 | /* Notficiation Group Headers */ |
| 57 | margin-top: 10px; |
| 58 | margin-bottom: 10px; |
| 59 | } |
| 60 | |
| 61 | .notification-group .notification-group-headers .notification-group-header { |
| 62 | font-size: 20px; |
| 63 | margin-left: 3px; |
| 64 | } |
| 65 | |
| 66 | .notification-group.collapsed .notification-row .notification { |
| 67 | background-color: @background; |
| 68 | } |
| 69 | |
| 70 | .notification-group.collapsed:hover .notification-row:not(:only-child) .notification { |
| 71 | /* Notification Group collapsed, hovered */ |
| 72 | box-shadow: 0 0 0 1px alpha(@hover, 0.3), 0 1px 3px 1px alpha(@hover, 0.3), 0 2px 6px 2px alpha(@hover, 0.3); |
| 73 | } |
| 74 | |
| 75 | .control-center { |
| 76 | /* The Control Center which contains the old notifications + widgets */ |
| 77 | box-shadow: 0px 2px 5px black; |
| 78 | background: alpha(@background, .55); |
| 79 | border: 2px solid @selected; |
| 80 | } |
| 81 | |
| 82 | .control-center-clear-all { |
| 83 | /* Clear All button */ |
| 84 | background: @bg; |
| 85 | } |
| 86 | |
| 87 | .control-center-clear-all:hover { |
| 88 | background: @hover; |
| 89 | } |
| 90 | |
| 91 | .control-center-clear-all:active { |
| 92 | background: @selected; |
| 93 | } |
| 94 | |
| 95 | /*** Widgets ***/ |
| 96 | /* Title widget */ |
| 97 | .widget-title { |
| 98 | background: none; |
| 99 | margin-top: 15px; |
| 100 | margin-left: 15px; |
| 101 | margin-right: 15px; |
| 102 | } |
| 103 | |
| 104 | /* Do Not Disturb widget */ |
| 105 | .widget-dnd { |
| 106 | background: none; |
| 107 | margin-left: 15px; |
| 108 | margin-right: 15px; |
| 109 | } |
| 110 | |
| 111 | .widget-dnd > switch { |
| 112 | background: @bg; |
| 113 | font-size: initial; |
| 114 | border-radius: 12px; |
| 115 | box-shadow: none; |
| 116 | padding: 2px; |
| 117 | } |
| 118 | |
| 119 | .widget-dnd > switch:hover { |
| 120 | background: @hover; |
| 121 | } |
| 122 | |
| 123 | .widget-dnd > switch:checked { |
| 124 | background: @selected; |
| 125 | } |
| 126 | |
| 127 | .widget-dnd > switch slider { |
| 128 | background: @text; |
| 129 | border-radius: 12px; |
| 130 | } |
| 131 | |
| 132 | /* Media Player widget */ |
| 133 | @define-color mpris-album-art-overlay rgba(0, 0, 0, 0.55); |
| 134 | @define-color mpris-button-hover rgba(0, 0, 0, 0.50); |
| 135 | .widget-mpris { |
| 136 | } |
| 137 | |
| 138 | .widget-mpris .widget-mpris-player { |
| 139 | padding: 10px; |
| 140 | margin: 8px 15px; |
| 141 | background-color: @mpris-album-art-overlay; |
| 142 | box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.75); |
| 143 | border: 2px; |
| 144 | } |
| 145 | |
| 146 | .widget-mpris .widget-mpris-player .widget-mpris-title { |
| 147 | font-size: 16px; |
| 148 | } |
| 149 | |
| 150 | .widget-mpris .widget-mpris-player .widget-mpris-subtitle { |
| 151 | font-size: 14px; |
| 152 | } |
| 153 | |
| 154 | /* Buttons widget */ |
| 155 | .widget-buttons-grid { |
| 156 | background-color: alpha(@color2, 0.5); |
| 157 | } |
| 158 | |
| 159 | .widget-buttons-grid > flowbox > flowboxchild > button { |
| 160 | background: alpha(@color2, 0.5); |
| 161 | border-radius: 12px; |
| 162 | min-width: 45px; |
| 163 | } |
| 164 | |
| 165 | .widget-buttons-grid > flowbox > flowboxchild > button:hover { |
| 166 | background: @hover; |
| 167 | } |
| 168 | |
| 169 | .widget-buttons-grid > flowbox > flowboxchild > button:active { |
| 170 | background: @selected; |
| 171 | } |
| 172 | |
| 173 | .widget-buttons-grid > flowbox > flowboxchild > button.toggle:checked { |
| 174 | /* style given to the active toggle button */ |
| 175 | background: red; |
| 176 | } |