_app-grid.scss
ASCII text
1/* App Grid */ 2 3// app icons 4.icon-grid { 5-shell-grid-horizontal-item-size: 136px; 6-shell-grid-vertical-item-size: 136px; 7spacing: 32px; 8 9.overview-icon { 10icon-size: 96px; 11} 12} 13 14.app-display { 15// spacing: 20px; 16} 17 18/* App Icons */ 19 20// Icon tiles in the app grid 21.app-well-app, 22%app-well-app { 23@extend %overview-icon; 24 25.overview-icon.overview-icon-with-label { 26padding: 8px; 27spacing: 0; 28 29> StBoxLayout { 30spacing: 4px; 31} 32} 33} 34 35/* App Folders */ 36.app-well-app.app-folder { 37@extend %app-well-app; 38border-radius: $corner-radius; // same as .overview-icon 39background-color: fill($on-dark); 40} 41 42// expanded folder 43.app-folder-dialog { 44spacing: 12px; 45border: 0; 46border-radius: $corner-radius; 47background-color: $surface; 48color: $on-surface; 49 50.folder-name-container { 51padding: 24px 36px 0; 52spacing: 12px; 53 54.folder-name-label, 55.folder-name-entry { 56@include type(headline6); 57} 58 59.folder-name-entry { 60width: 300px; 61} 62 63// FIXME: this is to keep the label in sync with the entry 64.folder-name-label { 65padding: 0 8px; 66color: inherit; 67} 68 69.edit-folder-button { 70@extend %button; 71 72width: $medium-size; 73height: $medium-size; 74min-width: 0; 75min-height: 0; 76padding: 0; 77border-radius: $medium-size / 2; 78 79> StIcon { 80icon-size: 16px; 81} 82} 83} 84 85.app-well-app { 86&:focus { 87.overview-icon { 88background-color: overlay("focus", $on-surface); 89} 90} 91 92&:drop, 93&:hover, 94&:selected { 95.overview-icon { 96background-color: overlay("hover", $on-surface); 97} 98} 99 100&:active, 101&:checked { 102.overview-icon { 103background-color: overlay("pressed", $on-surface); 104} 105} 106} 107} 108 109.app-folder-dialog-container { 110width: 800px; 111height: 600px; 112padding: 12px; 113} 114 115@if $version <= 3.34 { 116// expanded collection 117.app-folder-popup { 118-arrow-base: 24px; 119-arrow-rise: 12px; 120-arrow-border-radius: $corner-radius; 121-arrow-background-color: fill($on-dark); 122} 123 124.app-folder-popup-bin { 125padding: 6px; 126} 127} 128 129.app-folder-icon { 130padding: 5px; 131spacing-rows: 10px; 132spacing-columns: 10px; 133} 134 135// Running app indicator (also shown in dash) 136.app-well-app-running-dot { 137height: 2px; 138width: 32px; 139margin-bottom: 0; 140border-radius: 0; 141background-color: $on-dark; 142} 143 144// Rename popup for app folders 145.rename-folder-popup { 146.rename-folder-popup-item { 147spacing: 6px; 148 149&:ltr, 150&:rtl { 151padding: 0 12px; 152} 153} 154} 155 156// right-click app menu 157.app-menu, 158.app-well-menu { 159max-width: 27.25em; 160} 161 162// App Grid pagination indicators 163.page-indicator { 164padding: 15px 20px; 165 166@if $version >= 3.36 { 167.page-indicator-icon { 168width: 12px; 169height: 12px; 170border-radius: 12px; // the same as height&width 171background-color: $on-dark; 172} 173} @else { 174.page-indicator-icon { 175width: 12px; 176height: 12px; 177border: 0; 178border-radius: 12px; 179background-image: none; 180background-color: disabled-hint($on-dark); 181transition-duration: $duration; 182} 183 184&:hover .page-indicator-icon { 185border-color: transparent; 186background-image: none; 187background-color: disabled($on-dark); 188} 189 190&:active .page-indicator-icon { 191margin: 0; 192border: 0; 193background-image: none; 194background-color: hint($on-dark); 195} 196 197&:checked .page-indicator-icon, 198&:checked:active .page-indicator-icon { 199background-image: none; 200background-color: $on-dark; 201transition-duration: 0ms; 202} 203 204&:checked:active { 205background-image: none; 206background-color: transparent; 207} 208} 209} 210 211// Some hacks I don't even know 212$search-display: if($version <= 3.32, ".search-display > StBoxLayout,", null); 213 214#{$search-display} 215.all-apps, 216.frequent-apps > StBoxLayout { 217// horizontal padding to make sure scrollbars or dash don't overlap content 218padding: 0 88px 10px; 219} 220 221// Label when no frequent apps 222.no-frequent-applications-label { 223@extend %overview-status-text; 224} 225 226// shutdown and other actions in the grid 227.system-action-icon { 228icon-size: 48px; 229border-radius: $circular-radius; 230box-shadow: 0 4px 4px rgba(black, .2); // FIXME: this should really have a highlight 231background-color: $grey-900; 232color: on($grey-900); 233} 234 235/* Frequent | All toggle */ 236 237// container 238.app-view-controls { 239width: 320px; 240padding-bottom: 32px; 241} 242 243// buttons 244.app-view-control { 245margin: 0; 246padding: 0 8px; 247 248&, &:focus, &:hover, &:active, &:checked { 249@include button(flat-normal, $tc: $on-dark); 250} 251 252&:hover { 253background-color: overlay("hover", $on-dark); 254} 255 256&:active { 257background-color: overlay("pressed", $on-dark); 258transition-duration: $duration-ripple; 259} 260 261&:checked { 262box-shadow: inset 0 2px 0 $on-dark; 263background-color: rgba(black, .01); 264color: $on-dark; 265} 266 267&:focus { 268background-color: overlay("focus", $on-dark); 269} 270 271&:first-child { 272border-right-width: 0; 273border-radius: $corner-radius; 274} 275 276&:last-child { 277border-radius: $corner-radius; 278} 279 280&:checked { 281border-radius: 0; 282} 283} 284