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