forge
Explore
Log in

Don't you dare go Hollow

forge

Clone
★ 0

0 watching0 forksRustAGPL-3.07.1 MiB490f099Tahinli7 hours ago322 commits

_min_settings.scss113 lines, 2.2 KiBHistoryRawDownload
1// The settings pages: only what style/_min.scss does not already give them.
2
3// A list with no bullets (recovery codes, repositories that block deletion).
4.topic-list {
5 margin: 0;
6 padding: 0;
7 list-style: none;
8}
9
10// A warning line inside a topic.
11.topic-warn {
12 color: var(--warn);
13}
14
15// Appearance: the Light and Dark colour tabs are the shared tabs, each a label around a radio that
16// nav.js reads. The radio is hidden but keeps its focus ring on the tab.
17.tabs > label {
18 position: relative;
19 flex: none;
20 padding: 8px 0;
21 color: var(--muted);
22 font-size: 14px;
23 cursor: pointer;
24
25 &:hover {
26 color: var(--text);
27 }
28
29 &:has(input:checked) {
30 color: var(--text);
31 box-shadow: inset 0 -2px 0 var(--accent);
32 }
33
34 &:has(input:focus-visible) {
35 outline: 2px solid var(--focus);
36 outline-offset: 2px;
37 }
38
39 input {
40 position: absolute;
41 width: 1px;
42 height: 1px;
43 margin: 0;
44 opacity: 0;
45 pointer-events: none;
46 }
47}
48
49// One colour panel is one column on a wide window too: the page is a column, not two.
50@media (min-width: 1400px) {
51 .colour-panel {
52 grid-template-columns: minmax(0, 1fr);
53 }
54}
55
56// Data export: each archive is one flat line (when, state, Download, Delete); a building one adds its
57// progress and an error under the line.
58.export-row {
59 display: block;
60 margin: 0 -18px;
61 border-bottom: 1px solid var(--border);
62
63 &:last-child {
64 border-bottom: 0;
65 }
66
67 > .line {
68 padding-left: 18px;
69 padding-right: 18px;
70 border-bottom: 0;
71 }
72
73 > progress,
74 > .alert {
75 margin: 0 18px 10px;
76 }
77}
78
79// A request that cannot be sent right now (an export is building).
80button.act:disabled,
81button.act:disabled:hover {
82 color: var(--muted);
83 cursor: default;
84 text-decoration: none;
85}
86
87// Notifications: a warning hint, and a hidden action stays hidden though .act sets display.
88.hint.warn {
89 color: var(--warn);
90}
91
92.sec [hidden] {
93 display: none !important;
94}
95
96// The hidden legend of a colour group stays inside its group.
97.colour-group {
98 position: relative;
99 min-width: 0;
100 max-width: 100%;
101
102 > legend.sr-only {
103 position: absolute;
104 left: 0;
105 }
106}
107
108// The colour choices are a topic like any other, not a box.
109main .colour-group {
110 padding: 0;
111 border: 0;
112 background: none;
113}