forge
Clone
https://git.tahinli.com/Tahinli/forge.git
0 watching0 forksRustAGPL-3.07.1 MiB490f099Tahinli7 hours ago322 commits
| 1 | // people: page parts in the one page language (docs/ui-language.md). Tokens only. |
| 2 | // Scoped to this area's pages: profile, organizations, explore, notifications and snippets. |
| 3 | |
| 4 | // Head: the avatar is a small round mark before the name, with no ring. A person's and an |
| 5 | // organization's are the same 40px. |
| 6 | .head-title > img.profile-avatar { |
| 7 | order: -1; |
| 8 | width: 40px; |
| 9 | height: 40px; |
| 10 | border: 0; |
| 11 | background: none; |
| 12 | } |
| 13 | |
| 14 | // Contribution heatmap: it is one topic in the sheet, so it drops its own card. Its heading is the |
| 15 | // sheet's topic heading and its numbers are the page's text size. |
| 16 | .sheet .heat { |
| 17 | margin: 0; |
| 18 | padding: 0; |
| 19 | border: 0; |
| 20 | border-radius: 0; |
| 21 | background: none; |
| 22 | } |
| 23 | |
| 24 | .sheet .heat-head { |
| 25 | margin-bottom: 16px; |
| 26 | } |
| 27 | |
| 28 | .sheet .heat h2 { |
| 29 | margin: 0; |
| 30 | color: var(--muted); |
| 31 | font-family: var(--font); |
| 32 | font-size: 13px; |
| 33 | font-weight: 600; |
| 34 | line-height: 20px; |
| 35 | } |
| 36 | |
| 37 | .sheet .heat-stat b { |
| 38 | font-size: 15px; |
| 39 | font-weight: 600; |
| 40 | line-height: 20px; |
| 41 | letter-spacing: 0; |
| 42 | } |
| 43 | |
| 44 | .sheet .heat-stat span { |
| 45 | font-size: 13px; |
| 46 | } |
| 47 | |
| 48 | // Repo names in rows are the page's text face, semibold, never the code face. |
| 49 | .repo-item .repo-name { |
| 50 | font-family: var(--font); |
| 51 | font-size: 15px; |
| 52 | font-weight: 600; |
| 53 | } |
| 54 | |
| 55 | // A list that is the whole sheet keeps the rows inset like the tools row above them. |
| 56 | .sheet > .repo-list > .repo-item { |
| 57 | padding-left: 18px; |
| 58 | padding-right: 18px; |
| 59 | } |
| 60 | |
| 61 | // The sort row reads as one line of tools: its hint, then each choice. |
| 62 | .sheet-tools .sort { |
| 63 | display: flex; |
| 64 | flex-wrap: wrap; |
| 65 | align-items: center; |
| 66 | gap: 4px 14px; |
| 67 | } |
| 68 | |
| 69 | |
| 70 | // A line of text under the tools row is a hint for the list, aligned with its rows. |
| 71 | .sheet-tools + p { |
| 72 | margin: 0; |
| 73 | padding: 12px 18px 0; |
| 74 | color: var(--muted); |
| 75 | font-size: 14px; |
| 76 | line-height: 20px; |
| 77 | } |
| 78 | |
| 79 | |
| 80 | // Notifications: a row is one flex line, the link takes the room and the tool sits at its right. |
| 81 | // The icon is a dot, not a ring. |
| 82 | .notif-row { |
| 83 | display: flex; |
| 84 | flex-wrap: nowrap; |
| 85 | align-items: center; |
| 86 | gap: 12px; |
| 87 | border-bottom: 1px solid var(--border); |
| 88 | |
| 89 | &:last-child { |
| 90 | border-bottom: 0; |
| 91 | } |
| 92 | |
| 93 | > .line { |
| 94 | flex: 0 1 auto; |
| 95 | min-width: 0; |
| 96 | border-bottom: 0; |
| 97 | } |
| 98 | |
| 99 | > .acts { |
| 100 | flex: 0 0 auto; |
| 101 | margin: 0; |
| 102 | width: auto; |
| 103 | } |
| 104 | |
| 105 | .notif-icon { |
| 106 | border: 0; |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | .sheet .sec > h2 a { |
| 111 | color: inherit; |
| 112 | text-decoration: none; |
| 113 | } |
| 114 | |
| 115 | // Organization settings: the form's submit sits under its fields, in the same column as the controls. |
| 116 | #org-settings-form > button[type="submit"] { |
| 117 | margin-left: calc(var(--label-w, 130px) + 16px); |
| 118 | } |
| 119 | |
| 120 | // Snippets: the fields are the shared fields. The file editor is part of the form, its file tabs a |
| 121 | // row of quiet tools on the controls' edge, and Save sits last on screen though it comes first in |
| 122 | // the form, so Enter still saves. |
| 123 | .snippet-form > button[type="submit"] { |
| 124 | order: 1; |
| 125 | margin-top: 6px; |
| 126 | } |
| 127 | |
| 128 | .snippet-form .snippet-content { |
| 129 | height: 240px; |
| 130 | } |
| 131 | |
| 132 | .snippet-form > .snippet-files { |
| 133 | display: flex; |
| 134 | flex-direction: column; |
| 135 | gap: 6px; |
| 136 | margin-top: 8px; |
| 137 | padding: 0; |
| 138 | border: 0; |
| 139 | border-radius: 0; |
| 140 | background: none; |
| 141 | box-shadow: none; |
| 142 | overflow: visible; |
| 143 | |
| 144 | &:has(.snippet-name:focus, .snippet-content:focus) { |
| 145 | border: 0; |
| 146 | box-shadow: none; |
| 147 | } |
| 148 | |
| 149 | > .snippet-tabbar, |
| 150 | > .acts { |
| 151 | margin-left: calc(var(--label-w) + 16px); |
| 152 | } |
| 153 | |
| 154 | > .snippet-tabbar { |
| 155 | display: flex; |
| 156 | align-items: center; |
| 157 | gap: 12px; |
| 158 | padding: 0; |
| 159 | border: 0; |
| 160 | background: none; |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | .snippet-form .snippet-tabs { |
| 165 | display: flex; |
| 166 | flex-wrap: wrap; |
| 167 | gap: 4px; |
| 168 | } |
| 169 | |
| 170 | .snippet-form .snippet-tab { |
| 171 | display: inline-flex; |
| 172 | align-items: center; |
| 173 | height: 32px; |
| 174 | margin: 0; |
| 175 | padding: 0 14px; |
| 176 | border: 0; |
| 177 | border-radius: 16px; |
| 178 | background: none; |
| 179 | box-shadow: none; |
| 180 | color: var(--muted); |
| 181 | font-family: var(--mono); |
| 182 | font-size: 13px; |
| 183 | cursor: pointer; |
| 184 | } |
| 185 | |
| 186 | .snippet-tab-radio:checked + .snippet-tab { |
| 187 | background: var(--surface); |
| 188 | box-shadow: 0 0 0 1px var(--border); |
| 189 | color: var(--text); |
| 190 | font-weight: 600; |
| 191 | } |
| 192 | |
| 193 | .snippet-form .snippet-panel { |
| 194 | display: flex; |
| 195 | flex-direction: column; |
| 196 | gap: 6px; |
| 197 | min-width: 0; |
| 198 | margin: 0; |
| 199 | padding: 0; |
| 200 | border: 0; |
| 201 | } |
| 202 | |
| 203 | // A notification is one line: its title whole, then the detail cut to the room left, then Mark read. |
| 204 | .notif-row > .line { |
| 205 | display: flex; |
| 206 | align-items: center; |
| 207 | flex-wrap: nowrap; |
| 208 | |
| 209 | > .name { |
| 210 | flex: none; |
| 211 | min-width: 0; |
| 212 | max-width: 70%; |
| 213 | overflow: hidden; |
| 214 | text-overflow: ellipsis; |
| 215 | white-space: nowrap; |
| 216 | } |
| 217 | |
| 218 | > .val { |
| 219 | flex: 0 100 auto; |
| 220 | min-width: 0; |
| 221 | overflow: hidden; |
| 222 | text-overflow: ellipsis; |
| 223 | white-space: nowrap; |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | .sheet > .sec > .notif-row { |
| 228 | margin: 0 -18px; |
| 229 | padding: 0 10px 0 0; |
| 230 | |
| 231 | > .line { |
| 232 | padding-left: 18px; |
| 233 | padding-right: 0; |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | .snippet-form .snippet-tab-add { |
| 238 | width: auto; |
| 239 | height: 30px; |
| 240 | padding: 0 10px; |
| 241 | border-radius: 12px; |
| 242 | font-size: 14px; |
| 243 | } |
| 244 | |
| 245 | .snippet-form .snippet-count { |
| 246 | margin: 0; |
| 247 | } |
| 248 | |
| 249 | .snippet-form .snippet-panel > .field + .field, |
| 250 | .snippet-form .snippet-panel > .acts { |
| 251 | margin-top: 6px; |
| 252 | } |
| 253 | |
| 254 | .snippet-form .snippet-name, |
| 255 | .snippet-form .snippet-content { |
| 256 | font-family: var(--mono); |
| 257 | font-size: 13.5px; |
| 258 | } |
| 259 | |
| 260 | // A phone stacks a notification: its line across the row, then Mark read under it on the same edge. |
| 261 | @media (max-width: 700px) { |
| 262 | .notif-row { |
| 263 | flex-direction: column; |
| 264 | align-items: stretch; |
| 265 | gap: 0; |
| 266 | |
| 267 | > .line { |
| 268 | width: 100%; |
| 269 | |
| 270 | > .name { |
| 271 | flex: 0 1 auto; |
| 272 | max-width: none; |
| 273 | } |
| 274 | } |
| 275 | |
| 276 | > .acts { |
| 277 | align-self: flex-start; |
| 278 | margin: -8px 0 6px 8px; |
| 279 | } |
| 280 | } |
| 281 | } |
| 282 | |
| 283 | @media (max-width: 700px) { |
| 284 | .snippet-form > .snippet-files { |
| 285 | > .snippet-tabbar { |
| 286 | flex-wrap: wrap; |
| 287 | margin-left: 0; |
| 288 | } |
| 289 | |
| 290 | > .acts { |
| 291 | margin-left: -10px; |
| 292 | } |
| 293 | } |
| 294 | } |
| 295 | |
| 296 | // A snippet's file reads as a file page does: the code is the topic itself, not a box in it. |
| 297 | .sheet > .snippet-file > pre.snippet-code { |
| 298 | margin: 0; |
| 299 | padding: 4px 0; |
| 300 | border: 0; |
| 301 | border-radius: 0; |
| 302 | background: none; |
| 303 | } |
| 304 | |
| 305 | .snippet-form .snippet-tabs { |
| 306 | flex: 0 1 auto; |
| 307 | } |
| 308 | |
| 309 | // A snippet's files are one row on the control column: the file chips, Add file, then how many of |
| 310 | // how many, the way every control starts on the fields' edge. |
| 311 | .snippet-form > .snippet-files { |
| 312 | display: flex; |
| 313 | flex-direction: row; |
| 314 | flex-wrap: wrap; |
| 315 | align-items: center; |
| 316 | column-gap: 8px; |
| 317 | row-gap: 6px; |
| 318 | padding-left: calc(var(--label-w, 130px) + 16px); |
| 319 | |
| 320 | > .snippet-tabbar { |
| 321 | display: contents; |
| 322 | } |
| 323 | |
| 324 | .snippet-tabs { |
| 325 | order: 1; |
| 326 | margin: 0; |
| 327 | padding: 0; |
| 328 | } |
| 329 | |
| 330 | > .acts { |
| 331 | order: 2; |
| 332 | margin: 0; |
| 333 | } |
| 334 | |
| 335 | .snippet-count { |
| 336 | order: 3; |
| 337 | margin: 0; |
| 338 | } |
| 339 | |
| 340 | > fieldset { |
| 341 | order: 4; |
| 342 | flex: 1 1 100%; |
| 343 | margin: 0 0 0 calc(-1 * (var(--label-w, 130px) + 16px)); |
| 344 | } |
| 345 | |
| 346 | @media (max-width: 700px) { |
| 347 | padding-left: 0; |
| 348 | |
| 349 | > fieldset { |
| 350 | margin-left: 0; |
| 351 | } |
| 352 | } |
| 353 | } |
| 354 | |
| 355 | // The files row reads like every field: its word in the label column, then the files as one |
| 356 | // choice switch in the kit's own look, Add file and the count beside it. |
| 357 | .snippet-form > .snippet-files { |
| 358 | padding-left: 0; |
| 359 | |
| 360 | > .snippet-files-label { |
| 361 | order: 0; |
| 362 | flex: 0 0 var(--label-w, 130px); |
| 363 | margin-right: 8px; |
| 364 | color: var(--text); |
| 365 | font-size: 15px; |
| 366 | font-weight: 500; |
| 367 | } |
| 368 | |
| 369 | .snippet-tabs { |
| 370 | gap: 0; |
| 371 | padding: 3px; |
| 372 | border-radius: 19px; |
| 373 | background: var(--surface-2); |
| 374 | } |
| 375 | |
| 376 | .snippet-tab { |
| 377 | height: 32px; |
| 378 | padding: 0 16px; |
| 379 | border-radius: 16px; |
| 380 | line-height: 1; |
| 381 | font-family: inherit; |
| 382 | font-size: 14px; |
| 383 | font-weight: 500; |
| 384 | } |
| 385 | |
| 386 | .snippet-tab-radio:checked + .snippet-tab { |
| 387 | background: var(--surface); |
| 388 | box-shadow: 0 0 0 1px var(--border); |
| 389 | color: var(--text); |
| 390 | font-weight: 500; |
| 391 | } |
| 392 | |
| 393 | .snippet-tab-radio:focus-visible + .snippet-tab { |
| 394 | outline: 2px solid var(--focus); |
| 395 | outline-offset: 1px; |
| 396 | } |
| 397 | } |
| 398 | |
| 399 | @media (max-width: 700px) { |
| 400 | .snippet-form > .snippet-files > .snippet-files-label { |
| 401 | flex-basis: 100%; |
| 402 | } |
| 403 | } |
| 404 | |
| 405 | .snippet-form > .snippet-files > fieldset { |
| 406 | margin-left: 0; |
| 407 | } |