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