forge
Explore
Log in

Don't you dare go Hollow

forge

Clone
★ 0

0 watching0 forksRustAGPL-3.07.1 MiB490f099Tahinli7 hours ago322 commits

_min_menus.scss201 lines, 4.0 KiBHistoryRawDownload
1// The menus pages: only what style/_min.scss does not already give them.
2
3// Tab families read like `.tabs` in _min.scss: one row of text tabs, the current one underlined in
4// accent. Their older rules sit earlier in the cascade, so these win at equal weight. Each family's
5// children are its links, labels or buttons.
6.issue-tabs {
7 display: flex;
8 flex-wrap: nowrap;
9 gap: 20px;
10 overflow-x: auto;
11 margin: 0 0 8px;
12 padding: 0;
13 border: 0;
14 border-bottom: 1px solid var(--border);
15 border-radius: 0;
16 background: none;
17 box-shadow: none;
18 scrollbar-width: none;
19}
20
21.issue-tabs > * {
22 flex: none;
23 display: inline-flex;
24 align-items: center;
25 height: auto;
26 min-height: 0;
27 margin: 0;
28 padding: 8px 0;
29 border: 0;
30 border-radius: 0;
31 background: none;
32 box-shadow: none;
33 color: var(--muted);
34 font-size: 14px;
35 font-weight: 400;
36 text-decoration: none;
37 cursor: pointer;
38
39 &:hover {
40 color: var(--text);
41 text-decoration: none;
42 }
43
44 &[aria-current="page"],
45 &.active,
46 &:has(:checked) {
47 color: var(--text);
48 box-shadow: inset 0 -2px 0 var(--accent);
49 }
50}
51
52// Popovers: one panel, instant (no transition or animation), kept inside the window on a phone.
53.menu-list,
54.tab-more-list,
55.strip-list,
56.corner-menu,
57.ref-menu,
58.pop-panel,
59.row-menu-panel {
60 max-width: calc(100vw - 32px);
61 transition: none;
62 animation: none;
63}
64
65// Clone lives at the right end of the window, so its panel opens leftward.
66.repo-readme .clone > .menu-list,
67.repo-readme .clone > .pop-panel {
68 right: 0 !important;
69 left: auto !important;
70}
71
72// Actions moved left, so their menus open rightward from them and stay in the window.
73.watch-menu > .menu-list,
74.pins-menu > .pop-panel,
75.pins-menu > .menu-list,
76.clone > .menu-list,
77.clone > .pop-panel {
78 right: auto !important;
79 left: 0 !important;
80 max-width: calc(100vw - 32px);
81}
82
83@media (max-width: 899px) {
84 .pins-menu > .pop-panel,
85 .pins-menu > .menu-list,
86 .clone > .menu-list,
87 .clone > .pop-panel,
88 .repo-readme .clone > .menu-list,
89 .repo-readme .clone > .pop-panel,
90 details > .status-list,
91 .dock-expand > .dock-message,
92 details.menu > .menu-list {
93 position: fixed !important;
94 top: auto;
95 right: 16px !important;
96 left: 16px !important;
97 width: auto;
98 max-width: none;
99 }
100
101 .line .val {
102 flex-wrap: wrap;
103 min-width: 0;
104 max-width: 100%;
105 white-space: normal;
106 }
107
108 .ci-tl-line details[open] {
109 flex: 1 1 100%;
110 min-width: 0;
111 }
112
113 .ci-tl-actions:has(details[open]) {
114 flex: 1 1 100%;
115 flex-wrap: wrap;
116 min-width: 0;
117 }
118
119 .ci-tl-line details .opened,
120 .ci-tl-line details .hint {
121 white-space: normal;
122 }
123
124 .reveal,
125 .reveal > .opened {
126 min-width: 0;
127 max-width: 100%;
128 }
129
130 .ci-tl-tools,
131 .status-item {
132 flex-wrap: wrap;
133 min-width: 0;
134 }
135
136 .line:not(.issue-row) {
137 flex-wrap: wrap;
138 }
139
140 // A repo's name is what the row is for: it keeps its line and never gets cut.
141 .repo-item .name {
142 flex: 1 1 100%;
143 overflow: visible;
144 white-space: normal;
145 }
146
147 .repo-item .val {
148 white-space: normal;
149 }
150
151 // A repo row on a phone: the name, then its facts as two quiet lines, with room above and below
152 // so the divider never touches the words.
153 .repo-list > .line.repo-item {
154 row-gap: 2px;
155 padding-top: 10px;
156 padding-bottom: 10px;
157 }
158
159 .repo-list > .line.repo-item > .repo-desc {
160 flex: 1 1 100%;
161 }
162}
163
164// The pins menu opens from its own words, as a panel with the menu's padding, over the page.
165details.pins-menu {
166 position: relative;
167 display: inline-block;
168 align-self: flex-start;
169
170 > .menu-list {
171 z-index: 40;
172 width: 320px;
173 padding: 14px 16px;
174 gap: 10px;
175 }
176
177 > .menu-list > .hint {
178 margin: 0;
179 }
180
181 > .menu-list > button[type="submit"] {
182 align-self: flex-start;
183 }
184}
185
186// Inside the menu each repo is a menu row: one column, 34px, no hairlines.
187details.pins-menu > .menu-list > .pin-options {
188 display: flex;
189 flex-direction: column;
190 gap: 0;
191
192 li {
193 border-bottom: 0;
194 }
195
196 label {
197 min-height: 34px;
198 align-items: center;
199 padding: 0;
200 }
201}