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