_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; 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.app-well-app { 100&:focus { 101.overview-icon { 102background-color: overlay("focus", $on-surface); 103} 104} 105 106&:drop, 107&:hover, 108&:selected { 109.overview-icon { 110background-color: overlay("hover", $on-surface); 111} 112} 113 114&:active, 115&:checked { 116.overview-icon { 117background-color: overlay("pressed", $on-surface); 118} 119} 120} 121} 122 123.app-folder-dialog-container { 124padding: 12px; 125 126@if $version >= 3.38 { 127width: 620px; 128height: 620px; 129} @else { 130width: 800px; 131height: 600px; 132} 133} 134 135@if $version <= 3.34 { 136// expanded collection 137.app-folder-popup { 138-arrow-base: 24px; 139-arrow-rise: 12px; 140-arrow-border-radius: $corner-radius; 141-arrow-background-color: fill($on-dark); 142} 143 144.app-folder-popup-bin { 145padding: 6px; 146} 147} 148 149.app-folder-icon { 150padding: 5px; 151spacing-rows: 10px; 152spacing-columns: 10px; 153} 154 155// Running app indicator (also shown in dash) 156.app-well-app-running-dot { 157height: 2px; 158width: 32px; 159margin-bottom: 0; 160border-radius: 0; 161background-color: $on-dark; 162} 163 164// Rename popup for app folders 165.rename-folder-popup { 166.rename-folder-popup-item { 167spacing: 6px; 168 169&:ltr, 170&:rtl { 171padding: 0 12px; 172} 173} 174} 175 176// right-click app menu 177.app-menu, 178.app-well-menu { 179max-width: 27.25em; 180} 181 182// App Grid pagination indicators 183.page-indicator { 184padding: 15px 20px; 185 186@if $version >= 3.36 { 187.page-indicator-icon { 188width: 12px; 189height: 12px; 190border-radius: 12px; // the same as height&width 191background-color: $on-dark; 192} 193} @else { 194.page-indicator-icon { 195width: 12px; 196height: 12px; 197border: 0; 198border-radius: 12px; 199background-image: none; 200background-color: disabled-hint($on-dark); 201transition-duration: $duration; 202} 203 204&:hover .page-indicator-icon { 205border-color: transparent; 206background-image: none; 207background-color: disabled($on-dark); 208} 209 210&:active .page-indicator-icon { 211margin: 0; 212border: 0; 213background-image: none; 214background-color: hint($on-dark); 215} 216 217&:checked .page-indicator-icon, 218&:checked:active .page-indicator-icon { 219background-image: none; 220background-color: $on-dark; 221transition-duration: 0ms; 222} 223 224&:checked:active { 225background-image: none; 226background-color: transparent; 227} 228} 229} 230 231// Some hacks I don't even know 232$search-display: if($version <= 3.32, ".search-display > StBoxLayout,", null); 233$frequent-apps: if($version <= 3.36, ".frequent-apps > StBoxLayout,", null); 234 235#{$search-display} 236#{$frequent-apps} 237.all-apps { 238// horizontal padding to make sure scrollbars or dash don't overlap content 239padding: 0 88px 10px; 240} 241 242@if $version <= 3.36 { 243// Label when no frequent apps 244.no-frequent-applications-label { 245@extend %overview-status-text; 246} 247} 248 249// shutdown and other actions in the grid 250.system-action-icon { 251icon-size: 48px; 252border-radius: $circular-radius; 253box-shadow: 0 4px 4px rgba(black, .2); // FIXME: this should really have a highlight 254background-color: $grey-900; 255color: on($grey-900); 256} 257 258@if $version <= 3.36 { 259/* Frequent | All toggle */ 260 261// container 262.app-view-controls { 263width: 320px; 264padding-bottom: 32px; 265} 266 267// buttons 268.app-view-control { 269margin: 0; 270padding: 0 8px; 271 272&, &:focus, &:hover, &:active, &:checked { 273@include button(flat-normal, $tc: $on-dark); 274} 275 276&:hover { 277background-color: overlay("hover", $on-dark); 278} 279 280&:active { 281background-color: overlay("pressed", $on-dark); 282transition-duration: $duration-ripple; 283} 284 285&:checked { 286box-shadow: inset 0 2px 0 $on-dark; 287background-color: rgba(black, .01); 288color: $on-dark; 289} 290 291&:focus { 292background-color: overlay("focus", $on-dark); 293} 294 295&:first-child { 296border-right-width: 0; 297border-radius: $corner-radius; 298} 299 300&:last-child { 301border-radius: $corner-radius; 302} 303 304&:checked { 305border-radius: 0; 306} 307} 308} 309