forge
Clone
https://git.tahinli.com/Tahinli/forge.git
0 watching0 forksRustAGPL-3.09.7 MiB37e985dTahinli1 hour ago363 commits
| 1 | // threads: page parts in the one page language (docs/ui-language.md). Tokens only. |
| 2 | |
| 3 | // Lists with a rail: the sheet is as tall as its rows, as every list is; the tools row and every row |
| 4 | // stay on one line. |
| 5 | .work:has(> .sheet > .issue-row) { |
| 6 | align-items: start; |
| 7 | |
| 8 | > .sheet { |
| 9 | display: flex; |
| 10 | flex-direction: column; |
| 11 | } |
| 12 | |
| 13 | > .sheet > .sheet-tools { |
| 14 | flex-wrap: nowrap; |
| 15 | height: 48px; |
| 16 | padding: 0 10px 0 18px; |
| 17 | gap: 6px; |
| 18 | |
| 19 | > strong { |
| 20 | white-space: nowrap; |
| 21 | } |
| 22 | |
| 23 | input[type="search"], |
| 24 | select { |
| 25 | margin: 0; |
| 26 | } |
| 27 | |
| 28 | select { |
| 29 | flex: none; |
| 30 | } |
| 31 | |
| 32 | > a { |
| 33 | flex: none; |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | > .sheet > .issue-row { |
| 38 | flex: none; |
| 39 | min-height: 46px; |
| 40 | padding: 0 18px; |
| 41 | align-items: center; |
| 42 | flex-wrap: nowrap; |
| 43 | white-space: nowrap; |
| 44 | |
| 45 | .name { |
| 46 | min-width: 0; |
| 47 | overflow: hidden; |
| 48 | text-overflow: ellipsis; |
| 49 | } |
| 50 | |
| 51 | .val { |
| 52 | flex: none; |
| 53 | white-space: nowrap; |
| 54 | } |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | // Issue view: one conversation sheet. Entries carry their body, reactions and quiet actions; events are small dim lines. |
| 59 | .work:has(> .sheet > .issue-timeline) { |
| 60 | > .sheet > .issue-timeline { |
| 61 | gap: 0; |
| 62 | } |
| 63 | |
| 64 | > .sheet > .issue-comment { |
| 65 | padding: 16px 18px 14px; |
| 66 | border-top: 1px solid var(--border); |
| 67 | } |
| 68 | |
| 69 | > .sheet > .issue-timeline > .thread-event { |
| 70 | padding: 5px 18px; |
| 71 | border-bottom: 0; |
| 72 | font-size: 13.5px; |
| 73 | line-height: 20px; |
| 74 | } |
| 75 | |
| 76 | .thread-entry { |
| 77 | padding: 16px 18px; |
| 78 | } |
| 79 | |
| 80 | .thread-head { |
| 81 | font-size: 14px; |
| 82 | } |
| 83 | |
| 84 | .issue-item-body { |
| 85 | max-width: 760px; |
| 86 | } |
| 87 | |
| 88 | .reactions { |
| 89 | margin: 4px 0 0 -10px; |
| 90 | padding: 0; |
| 91 | gap: 4px; |
| 92 | } |
| 93 | |
| 94 | .reaction-picker > summary { |
| 95 | display: inline-flex; |
| 96 | align-items: center; |
| 97 | height: 30px; |
| 98 | padding: 0 10px; |
| 99 | border-radius: 12px; |
| 100 | font-size: 14px; |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | // Forms in a fit sheet: no box around the label list, and the quiet cancel stays with the submit. |
| 105 | .sheet.fit > form.fields > fieldset.field { |
| 106 | border: 0; |
| 107 | padding: 0; |
| 108 | margin-top: 0; |
| 109 | min-width: 0; |
| 110 | |
| 111 | > legend { |
| 112 | padding: 0 0 6px; |
| 113 | font-size: 15px; |
| 114 | font-weight: 500; |
| 115 | line-height: 22px; |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | // Issue history: the diff sits in the entry, flat, with no ring of its own. |
| 120 | .work:has(> .sheet > .issue-timeline .diff-file) .diff-file { |
| 121 | border: 0; |
| 122 | border-radius: 0; |
| 123 | box-shadow: none; |
| 124 | } |
| 125 | |
| 126 | .sheet:has(#create-label) input[type="color"] { |
| 127 | width: 38px; |
| 128 | height: var(--control-h); |
| 129 | padding: 4px; |
| 130 | border: 0; |
| 131 | border-radius: 12px; |
| 132 | background: var(--surface-2); |
| 133 | } |
| 134 | |
| 135 | // Phone: the filters become one row to scroll, the tools wrap, and each row keeps its name on the first line. |
| 136 | @media (max-width: 760px) { |
| 137 | .work:has(> .sheet > .issue-row) { |
| 138 | display: flex; |
| 139 | flex-direction: column; |
| 140 | align-items: stretch; |
| 141 | gap: 8px; |
| 142 | |
| 143 | > .rail { |
| 144 | position: static; |
| 145 | flex-direction: row; |
| 146 | overflow-x: auto; |
| 147 | scrollbar-width: none; |
| 148 | } |
| 149 | |
| 150 | > .rail .rail-list { |
| 151 | flex-direction: row; |
| 152 | gap: 6px; |
| 153 | } |
| 154 | |
| 155 | > .rail .rail-item { |
| 156 | flex: none; |
| 157 | } |
| 158 | |
| 159 | > .sheet { |
| 160 | flex: none; |
| 161 | } |
| 162 | |
| 163 | > .sheet > .sheet-tools { |
| 164 | flex-wrap: wrap; |
| 165 | height: auto; |
| 166 | padding: 10px 12px; |
| 167 | row-gap: 8px; |
| 168 | } |
| 169 | |
| 170 | > .sheet > .sheet-tools input[type="search"] { |
| 171 | flex: 1 1 100%; |
| 172 | width: 100%; |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | .work:has(> .sheet > .issue-row) > .sheet > .issue-row { |
| 177 | flex-wrap: wrap; |
| 178 | white-space: normal; |
| 179 | row-gap: 4px; |
| 180 | column-gap: 10px; |
| 181 | // A hanging indent: the tick sits beside the title, and every wrapped line starts on the title's edge. |
| 182 | padding: 10px 14px 10px 40px; |
| 183 | |
| 184 | > .tick { |
| 185 | align-self: flex-start; |
| 186 | margin: 3px 0 0 -26px; |
| 187 | } |
| 188 | |
| 189 | .name { |
| 190 | flex: 1 1 0; |
| 191 | min-width: calc(100% - 10px); |
| 192 | overflow: visible; |
| 193 | white-space: normal; |
| 194 | } |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | // What an issue or pull request is filed under: one line a topic, its name where a field's label |
| 199 | // goes, its value right after, and Edit right after the value. An opened edit takes the full width. |
| 200 | .sheet > .sec.meta { |
| 201 | display: grid; |
| 202 | grid-template-columns: var(--label-w, 130px) max-content minmax(0, 1fr); |
| 203 | column-gap: 16px; |
| 204 | row-gap: 4px; |
| 205 | align-items: center; |
| 206 | padding-top: 8px; |
| 207 | padding-bottom: 8px; |
| 208 | |
| 209 | > h2 { |
| 210 | grid-column: 1; |
| 211 | grid-row: 1; |
| 212 | align-self: start; |
| 213 | margin: 0; |
| 214 | padding-top: 8px; |
| 215 | } |
| 216 | |
| 217 | > :not(h2, .acts) { |
| 218 | grid-column: 2; |
| 219 | margin: 0; |
| 220 | } |
| 221 | |
| 222 | > p.hint { |
| 223 | font-size: 14px; |
| 224 | } |
| 225 | |
| 226 | > .acts { |
| 227 | grid-column: 3; |
| 228 | grid-row: 1; |
| 229 | margin: 0 0 0 -6px; |
| 230 | } |
| 231 | |
| 232 | > .acts:has(details[open]) { |
| 233 | grid-column: 2 / -1; |
| 234 | grid-row: auto; |
| 235 | margin-left: -10px; |
| 236 | } |
| 237 | |
| 238 | > .line { |
| 239 | min-height: 34px; |
| 240 | margin: 0; |
| 241 | padding: 0; |
| 242 | border: 0; |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | @media (max-width: 700px) { |
| 247 | .sheet > .sec.meta { |
| 248 | grid-template-columns: minmax(0, 1fr) max-content; |
| 249 | |
| 250 | > h2 { |
| 251 | grid-column: 1 / -1; |
| 252 | grid-row: auto; |
| 253 | padding-top: 0; |
| 254 | } |
| 255 | |
| 256 | > :not(h2, .acts) { |
| 257 | grid-column: 1; |
| 258 | } |
| 259 | |
| 260 | > .acts { |
| 261 | grid-column: 2; |
| 262 | grid-row: 2; |
| 263 | } |
| 264 | |
| 265 | > .acts:has(details[open]) { |
| 266 | grid-column: 1 / -1; |
| 267 | grid-row: auto; |
| 268 | } |
| 269 | } |
| 270 | } |
| 271 | |
| 272 | // A comment's own actions are one row under it: its reactions, then Edit and Delete. |
| 273 | article.thread-entry:has(> .reactions + .acts) { |
| 274 | display: grid; |
| 275 | grid-template-columns: auto minmax(0, 1fr); |
| 276 | align-items: center; |
| 277 | column-gap: 4px; |
| 278 | |
| 279 | > * { |
| 280 | grid-column: 1 / -1; |
| 281 | min-width: 0; |
| 282 | } |
| 283 | |
| 284 | > .reactions { |
| 285 | grid-column: 1; |
| 286 | } |
| 287 | |
| 288 | > .reactions + .acts { |
| 289 | grid-column: 2; |
| 290 | } |
| 291 | } |