_panel.scss
ASCII text
1/* Top Bar */ 2 3#panel { 4$background: if($version >= 3.26 and $version < 3.32, $scrim, $panel); 5 6transition-duration: $duration-panel; 7height: $menuitem-size; 8background-color: $background; 9font-weight: bold; 10font-feature-settings: "tnum"; 11 12// spacing between activities, app menu and such 13#panelLeft, 14#panelCenter { 15spacing: 0; 16} 17 18// the rounded outset corners 19.panel-corner { 20-panel-corner-radius: 0; 21-panel-corner-background-color: transparent; 22-panel-corner-border-width: 0; 23-panel-corner-border-color: transparent; 24 25@if $version >= 40 { 26-panel-corner-opacity: 0; 27transition-duration: $duration-panel; 28} @else { 29&:active, &:overview, &:focus { 30-panel-corner-border-color: transparent; 31} 32} 33} 34 35// panel menus 36.panel-button { 37-natural-hpadding: $panel-button-hpadding; 38-minimum-hpadding: $panel-button-hpadding / 2; 39transition-duration: $duration; 40border: 0; 41border-radius: 0; 42color: hint(on($background)); 43text-shadow: none; 44font-weight: bold; 45 46@if $version >= 3.36 { 47&.clock-display { 48.clock { 49transition-duration: $duration; 50border: 0; 51border-radius: 0; 52} 53} 54} 55 56.system-status-icon, 57.app-menu-icon > StIcon, 58.popup-menu-arrow { 59icon-shadow: none; 60} 61 62&:hover { 63box-shadow: none; 64color: on($background); 65text-shadow: none; 66 67@if $version >= 3.36 { 68&.clock-display { 69box-shadow: none; 70 71.clock { 72box-shadow: none; 73} 74} 75} 76 77.system-status-icon, 78.app-menu-icon > StIcon, 79.popup-menu-arrow { 80icon-shadow: none; 81} 82} 83 84&:active, &:overview, &:focus, &:checked { 85box-shadow: inset 0 -2px on($background); 86// Trick due to St limitations. It needs a background to draw a box-shadow 87background-color: rgba($background, .01); 88color: on($background); 89 90@if $version >= 3.36 { 91// The clock display needs to have the background on .clock because 92// we want to exclude the do-not-disturb indicator from the background 93&.clock-display { 94box-shadow: none; 95background-color: transparent; 96 97.clock { 98box-shadow: inset 0 -2px on($background); 99background-color: rgba($background, .01); 100} 101} 102} 103 104> .system-status-icon { 105icon-shadow: none; 106} 107} 108 109// status area icons 110.system-status-icon { 111icon-size: 16px; 112padding: 0 4px; 113 114@if $version >= 40 { 115margin: 0 4px; 116} 117} 118 119@if $version >= 40 { 120.panel-status-indicators-box .system-status-icon, 121.panel-status-menu-box .system-status-icon { 122margin: 0; 123} 124} 125 126// app menu icon 127.app-menu-icon { 128-st-icon-style: symbolic; 129// dimensions of the icon are hardcoded 130 131@if $version < 40 { 132margin-left: 4px; 133margin-right: 4px; 134} 135} 136 137@if $version >= 40 { 138&#panelActivities { 139-natural-hpadding: $panel-button-hpadding; 140} 141} 142} 143 144.panel-status-indicators-box, 145.panel-status-menu-box { 146spacing: 2px; 147} 148 149// spacing between power icon and (optional) percentage label 150.power-status.panel-status-indicators-box { 151spacing: 0; 152} 153 154// indicator for active 155.screencast-indicator, 156.remote-access-indicator { 157color: $warning; 158} 159 160// transparent panel on lock & login screens 161@at-root %transparent-panel { 162background-color: transparent; 163 164.panel-corner { 165@if $version >= 40 { 166-panel-corner-opacity: 0; 167} @else { 168-panel-corner-radius: 0; 169-panel-corner-background-color: transparent; 170-panel-corner-border-color: transparent; 171} 172} 173 174.panel-button { 175color: hint($on-dark); 176 177&:hover, &:active, &:overview, &:focus, &:checked { 178color: $on-dark; 179} 180} 181} 182 183&.unlock-screen, 184&.login-screen, 185&:overview { 186@extend %transparent-panel; 187} 188 189@if $version < 3.36 { 190&.lock-screen { 191@extend %transparent-panel; 192background-color: $scrim-alt; 193} 194} 195 196@if $version >= 3.26 and $version < 3.32 { 197&.solid { 198transition-duration: $duration-panel; 199background-color: $panel; 200 201.panel-corner { 202-panel-corner-background-color: transparent; 203} 204 205.panel-button { 206color: hint($on-panel); 207text-shadow: none; 208 209&:hover, &:active, &:overview, &:focus, &:checked { 210color: $on-panel; 211} 212} 213 214.system-status-icon, 215.app-menu-icon > StIcon, 216.popup-menu-arrow { 217icon-shadow: none; 218} 219} 220} 221} 222 223// App Menu 224#appMenu { 225spacing: 4px; 226 227@if $version < 3.34 { 228spinner-image: url("process-working.svg"); 229} 230 231.label-shadow { 232color: transparent; 233} 234 235@if $version >= 40 { 236.panel-status-menu-box { 237padding: 0; 238spacing: 4px; 239} 240} 241} 242