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