_window-picker.scss
ASCII text
1/* Window Picker */ 2 3// Window picker 4.window-picker { 5// Space between window thumbnails 6@if $version >= 3.38 { 7spacing: 8px; 8} @else { 9-horizontal-spacing: 16px; 10-vertical-spacing: 16px; 11} 12 13// Padding for container around window thumbnails 14padding: 0 16px 32px; 15 16&.external-monitor { 17padding: 16px; 18} 19} 20 21// Borders on window thumbnails 22.window-clone-border { 23border: 4px solid stroke($on-dark); 24border-radius: $corner-radius; 25// For window decorations with round corners we can't match 26// the exact shape when the window is scaled. So apply a shadow 27// to fix that case 28box-shadow: inset 0 0 0 1px stroke($on-dark); 29} 30 31// Window titles 32.window-caption { 33spacing: 0; 34padding: 4px 8px; 35border: 0; 36border-radius: $corner-radius; 37background-color: $scrim; 38color: $on-scrim; 39font-size: 1em; 40font-weight: normal; 41} 42 43// Close button 44.window-close { 45@if $version <= 3.36 { 46-shell-close-overlap: $medium-size / 2; 47} 48 49// FIXME: unless disable the transition, button will distort when hovering 50// transition-duration: $duration; 51height: $medium-size; 52width: $medium-size; 53padding: 0; 54border: 0; 55border-radius: 0; 56box-shadow: none; 57background-color: transparent; 58color: transparent; 59 60-st-background-image-shadow: $shadow-z2; 61background-image: url("assets/window-close.svg"); 62background-size: $medium-size; 63 64&:hover { 65border-color: transparent; 66background-color: transparent; 67color: transparent; 68 69-st-background-image-shadow: $shadow-z4; 70background-image: url("assets/window-close-hover.svg"); 71} 72 73&:active { 74border-color: transparent; 75background-color: transparent; 76color: transparent; 77 78// transition-duration: $duration-ripple; 79-st-background-image-shadow: $shadow-z8; 80background-image: url("assets/window-close-active.svg"); 81} 82} 83