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