Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 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 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 | /* ---- a builder's palette: size tabs, group tabs, the status line, and the panel tiles ----
this lays the palette out and leaves the tabs' and Show All's colours to the face. the box takes
--pf-palette-panel and --pf-palette-line, and the side gutter --pf-palette-gutter, which the
plugin warnings above the palette share so the two line up */
.pf-palette {
padding: 0 var(--pf-palette-gutter, 12px);
margin-top: 8px;
width: 100%;
box-sizing: border-box;
}
.pf-palette-sizes {
display: flex;
gap: 4px;
position: relative;
z-index: 1;
}
.pf-palette-size {
flex: 1;
min-width: 0;
padding: 9px 4px;
border: none;
border-radius: 0;
font-size: 10px;
text-transform: uppercase;
margin-bottom: -1px;
}
/* the group tabs sit at the top of the size tab's box, so they read as that size's groups.
each tab is as wide as its name and grows to fill its row, so no name is cut short and no
row ends in a gap */
.pf-palette-groups {
display: flex;
flex-wrap: wrap;
gap: 3px;
margin-bottom: 10px;
}
/* the display above would beat the browser's own [hidden] rule, so a size with one group
would keep an empty strip */
.pf-palette-groups[hidden] {
display: none;
}
.pf-palette-group {
flex: 1 1 auto;
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
min-width: 0 !important;
margin: 0 !important;
padding: 5px 6px 3px !important;
border: none;
border-bottom: 2px solid;
border-radius: 0;
font-size: 9px;
text-transform: uppercase;
}
.pf-palette-group-icon {
font-size: 12px;
line-height: 1;
}
.pf-palette-group-name {
white-space: nowrap;
}
/* 1px border, since this box is content-box and a wider border would grow it under the tabs */
.pf-palette-box {
background: var(--pf-palette-panel, transparent);
border-radius: 0;
padding: 10px 8px;
border: 1px solid var(--pf-palette-line, rgba(128, 128, 128, 0.4));
}
/* which group is showing and how much it leaves out, so a short list never reads as everything */
.pf-palette-status {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-top: 10px;
padding-top: 8px;
border-top: 1px solid var(--pf-palette-line, rgba(128, 128, 128, 0.4));
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
font-family: ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
}
.pf-palette-all {
flex-shrink: 0;
min-width: 0 !important;
margin: 0 !important;
padding: 4px 8px !important;
border: 1px solid;
border-radius: 0;
font: inherit;
}
.pf-palette-tiles {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
}
/* a tile takes its shot's own shape. half width tiles split a row four ways and full width
ones two ways, so a phone fits four or two across. each stops growing at its shot's real
size, 94 wide or 192, since a stretched shot only gets blurry */
.pf-palette-tile {
min-height: 42px;
flex-shrink: 0;
box-sizing: border-box;
padding: 2px;
border-radius: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
cursor: grab;
touch-action: none;
position: relative;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
transition: opacity 0.2s;
}
/* the widths take the 8px gaps between tiles off the row first */
.pf-palette-tile.narrow {
width: calc((100% - 24px) / 4);
max-width: 94px;
}
.pf-palette-tile.wide {
width: calc((100% - 8px) / 2);
max-width: 192px;
}
.pf-palette-tile:active {
opacity: 0.7;
}
.pf-palette-tile.placed {
opacity: 0.3;
pointer-events: none;
}
.pf-palette-icon {
font-size: 20px;
line-height: 1;
color: #fff;
}
.pf-palette-shot {
width: 100%;
height: auto;
display: block;
}
|