Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
File size: 2,741 Bytes
8873406 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | :root {
--lp-icon-tile-home-size: 26px;
--lp-icon-tile-home-card-size: 40px;
--lp-icon-tile-starred-size: var(--lp-icon-tile-home-size);
--lp-icon-tile-rail-size: 26px;
--lp-icon-tile-template-size: var(--lp-icon-tile-home-card-size);
--lp-icon-tile-radius: var(--lp-r-md);
--lp-icon-tile-label-gap: 6px;
}
.lp-icon-tile--home {
--lp-icon-tile-size: var(--lp-icon-tile-home-size);
}
.lp-icon-tile--home-card {
--lp-icon-tile-size: var(--lp-icon-tile-home-card-size);
}
.lp-icon-tile--starred {
--lp-icon-tile-size: var(--lp-icon-tile-starred-size);
}
.lp-icon-tile--rail {
--lp-icon-tile-size: var(--lp-icon-tile-rail-size);
}
.lp-icon-tile--template {
--lp-icon-tile-size: var(--lp-icon-tile-template-size);
}
/* The frame owns its dimensions; the fill prop decides the background.
Both selectors weigh two classes, so the frame beats `.shell-db-chip` and `.home-app-glyph`. */
.lp-icon-tile:not(.shell-db-chip),
.lp-icon-tile.shell-db-chip {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
box-sizing: border-box;
width: var(--lp-icon-tile-size);
height: var(--lp-icon-tile-size);
border-radius: var(--lp-icon-tile-radius);
font-size: var(--lp-fs-2xs);
font-weight: 600;
line-height: 1;
}
/* Grid folder rules must not fill object glyphs inside the shared frame. */
.lp-icon-tile.shell-db-chip .cg-folder-mark path {
fill: none;
stroke: currentColor;
}
/* A rail glyph dims to 0.55. On the tinted app chip it stays at full ink. */
.lp-icon-tile.home-app-glyph .shell-nav-icon {
opacity: 1;
}
.cg-fold-toggle > .lp-icon-tile {
flex: none;
}
.cg-fold-toggle > .lp-source-mark,
.lp-icon-tile > .lp-source-mark {
display: inline-flex;
flex: none;
align-items: center;
}
/* The row gap matches .home-tile; the stacked card's 4px gap is too tight beside a tile. */
.shell-home .home-card {
flex-direction: row;
align-items: center;
column-gap: calc(var(--lp-panel-inset) * 1.5);
}
.home-card > .home-card-head {
flex-direction: column;
align-items: flex-start;
gap: calc(var(--lp-panel-inset) / 2);
min-width: 0;
}
/* Only a filled tile repaints card glyphs. An unfilled one keeps the card's primary stroke. */
.home-card .lp-icon-tile.shell-db-chip :is(.home-card-icon, .home-app-icon, .shell-nav-icon) {
color: inherit;
opacity: 1;
}
/* Stroke glyphs inherit tile ink; Phosphor keeps its filled path model. */
.home-card .lp-icon-tile.shell-db-chip :is(.home-card-icon, .home-app-icon, .shell-nav-icon:not(.is-glyph)) {
stroke: currentColor;
}
/* Phosphor keeps its filled path model on every tile, filled or not. */
.home-card .lp-icon-tile .shell-nav-icon.is-glyph {
fill: currentColor;
stroke: none;
}
|