_overview.scss
ASCII text
1/* OVERVIEW */ 2 3@use "../../../../theme"; 4@use "../../../../theme-color"; 5@use "../../../../st-theme"; 6@use "../../gnome-shell"; 7@use "../../typography"; 8@use "../base/scrollbar"; 9 10// Same as the ANIMATION_TIME in overview.js 11$transition-duration: 250ms; 12 13$color: theme-color.$system; 14$on-color: theme-color.$on-system; 15 16@if gnome-shell.$version < 40 { 17$color: transparent; 18$on-color: theme-color.$on-dark; 19} 20 21@if gnome-shell.$version >= 40 { 22.controls-manager, 23.secondary-monitor-workspaces { 24spacing: 16px; 25} 26 27#overviewGroup { 28background-color: $color; 29color: $on-color; 30 31StScrollBar { 32@include scrollbar.color($on-color); 33} 34} 35} @else { 36#overview { 37spacing: 24px; 38background-color: $color; 39color: $on-color; 40 41StScrollBar { 42@include scrollbar.color($on-color); 43} 44} 45 46.overview-controls { 47padding-bottom: 32px; 48} 49} 50 51@mixin panel { 52transition-duration: $transition-duration; 53border: 0; 54background-color: theme-color.fill($on-color); 55color: $on-color; 56} 57 58@mixin status-text { 59@include typography.headline3; 60color: theme-color.disabled($on-color); 61} 62 63@mixin item { 64@include _item; 65 66&:focus { 67@include _item-focus; 68} 69 70&:hover, 71&:selected { 72@include _item-hover; 73} 74 75&:active, 76&:checked { 77@include _item-active; 78} 79} 80 81@mixin icon { 82.overview-icon { 83@include _item; 84} 85 86&:focus { 87.overview-icon { 88@include _item-focus; 89} 90} 91 92&:drop, 93&:hover, 94&:selected { 95.overview-icon { 96@include _item-hover; 97} 98} 99 100&:active, 101&:checked { 102.overview-icon { 103@include _item-active; 104} 105} 106} 107 108@mixin _item { 109padding: 6px; 110border: 0; 111border-radius: theme.$corner-radius; 112background-color: transparent; 113color: inherit; 114text-align: center; 115transition-duration: st-theme.$duration; 116} 117 118@mixin _item-focus { 119border-image: none; 120background-image: none; 121background-color: theme-color.focus-overlay($on-color); 122color: inherit; 123transition-duration: 0ms; 124} 125 126@mixin _item-hover { 127border: 0; 128border-image: none; 129background-image: none; 130background-color: theme-color.hover-overlay($on-color); 131color: inherit; 132transition-duration: 0ms; 133} 134 135@mixin _item-active { 136box-shadow: none; 137background-color: theme-color.pressed-overlay($on-color); 138color: inherit; 139transition-duration: st-theme.$duration-ripple; 140} 141