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