_panel.scss
ASCII text
1/* Top Bar */ 2 3#panel { 4$background: if($version >= 3.26 and $version <= 3.30, $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&:active, &:overview, &:focus { 26-panel-corner-border-color: transparent; 27} 28} 29 30// panel menus 31.panel-button { 32-natural-hpadding: $panel-button-hpadding; 33-minimum-hpadding: $panel-button-hpadding / 2; 34transition-duration: $duration; 35color: hint(on($background)); 36text-shadow: none; 37font-weight: bold; 38 39.system-status-icon, 40.app-menu-icon > StIcon, 41.popup-menu-arrow { 42icon-shadow: none; 43} 44 45&:hover { 46color: on($background); 47text-shadow: none; 48 49.system-status-icon, 50.app-menu-icon > StIcon, 51.popup-menu-arrow { 52icon-shadow: none; 53} 54} 55 56&:active, &:overview, &:focus, &:checked { 57box-shadow: inset 0 -2px on($background); 58// Trick due to St limitations. It needs a background to draw a box-shadow 59background-color: rgba($background, .01); 60color: on($background); 61 62> .system-status-icon { 63icon-shadow: none; 64} 65} 66 67@if $version >= 3.36 { 68&.clock-display { 69// Move highlight from .panel-button to .clock 70&:active, &:overview, &:focus, &:checked { 71box-shadow: none; 72background-color: transparent; 73 74.clock { 75box-shadow: inset 0 -2px on($background); 76background-color: rgba($background, .01); 77} 78} 79} 80} 81 82// status area icons 83.system-status-icon { 84icon-size: 16px; 85padding: 0 4px; 86} 87 88// app menu icon 89.app-menu-icon { 90-st-icon-style: symbolic; 91margin-left: 4px; 92margin-right: 4px; 93// dimensions of the icon are hardcoded 94} 95} 96 97.panel-status-indicators-box, 98.panel-status-menu-box { 99spacing: 2px; 100} 101 102// spacing between power icon and (optional) percentage label 103.power-status.panel-status-indicators-box { 104spacing: 0; 105} 106 107// indicator for active 108.screencast-indicator, 109.remote-access-indicator { 110color: $warning; 111} 112 113// transparent panel on lock & login screens 114@at-root %transparent-panel { 115background-color: transparent; 116 117.panel-corner { 118-panel-corner-radius: 0; 119-panel-corner-background-color: transparent; 120-panel-corner-border-color: transparent; 121} 122 123.panel-button { 124color: hint($on-dark); 125 126&:hover, &:active, &:overview, &:focus, &:checked { 127color: $on-dark; 128} 129} 130} 131 132&:overview, 133&.unlock-screen, 134&.login-screen { 135@extend %transparent-panel; 136} 137 138@if $version <= 3.34 { 139&.lock-screen { 140@extend %transparent-panel; 141background-color: $scrim-alt; 142} 143} 144 145@if $version >= 3.26 and $version <= 3.30 { 146&.solid { 147transition-duration: $duration-panel; 148background-color: $panel; 149 150.panel-corner { 151-panel-corner-background-color: transparent; 152} 153 154.panel-button { 155color: hint($on-panel); 156text-shadow: none; 157 158&:hover, &:active, &:overview, &:focus, &:checked { 159color: $on-panel; 160} 161} 162 163.system-status-icon, 164.app-menu-icon > StIcon, 165.popup-menu-arrow { 166icon-shadow: none; 167} 168} 169} 170} 171 172// App Menu 173#appMenu { 174spacing: 4px; 175 176@if $version <= 3.32 { 177spinner-image: url("process-working.svg"); 178} 179 180.label-shadow { 181color: transparent; 182} 183} 184