_dash.scss
ASCII text
1/* Dash */ 2 3@use "../../../../theme"; 4@use "../../../../theme-color"; 5@use "../../gnome-shell"; 6@use "overview"; 7 8$dash-spacing: 6px; 9$dash-margin: 12px; 10 11#dash { 12font-size: 1em; 13 14@if gnome-shell.$version >= 40 { 15margin-top: 0; 16padding: $dash-margin $dash-margin 0; 17 18.overview-icon { 19// Same as normal .overview-icon 20padding: 6px; 21} 22} @else { 23@extend %overview-panel; 24padding: ($dash-spacing / 2) 0; 25border-left-width: 0; 26border-radius: 0 theme.$corner-radius theme.$corner-radius 0; 27 28&:rtl { 29border-right-width: 0; 30border-radius: theme.$corner-radius 0 0 theme.$corner-radius; 31} 32} 33 34.placeholder { 35height: 24px; 36background-image: url("assets/dash-placeholder.svg"); 37background-size: contain; 38} 39 40.empty-dash-drop-target { 41width: 24px; 42height: 24px; 43} 44} 45 46@if gnome-shell.$version >= 40 { 47.dash-background { 48margin-bottom: 0; 49padding: $dash-spacing ($dash-spacing / 2); 50border-radius: theme.$corner-radius theme.$corner-radius 0 0; 51background-color: theme-color.fill(theme-color.$on-dark); 52} 53 54// Dash Items 55.dash-item-container .app-well-app, 56.show-apps { 57padding: $dash-spacing ($dash-spacing / 2); 58} 59 60.dash-separator { 61width: 1px; 62margin: $dash-spacing ($dash-spacing / 2); 63background-color: theme-color.stroke(theme-color.$on-dark); 64} 65} @else { 66// Dash Items 67.dash-item-container > StWidget { 68padding: ($dash-spacing / 2) $dash-spacing; 69} 70} 71 72// OSD Tooltip 73.dash-label { 74// min-height: 32px - 6px * 2; 75padding: 7px 8px; 76border: 0; 77border-radius: theme.$corner-radius; 78box-shadow: theme.$shadow-z4; 79background-color: theme-color.$surface-z8; 80color: theme-color.$on-surface; 81text-align: center; 82 83// distance from the dash edge 84@if gnome-shell.$version >= 40 { 85-y-offset: 8px; 86} @else { 87-x-offset: 8px; 88} 89} 90 91// Show apps button 92.show-apps { 93@extend %overview-icon; 94color: theme-color.hint(theme-color.$on-dark); 95 96&:checked { 97color: theme-color.$on-dark; 98} 99} 100