git ssb

16+

Dominic / patchbay



Commit 36fe7f893ca8db2aca11a868d8a6c3f8ec2b9cef

better styles for tabs

Dominic Tarr committed on 9/6/2016, 1:02:08 AM
Parent: f41b6c61b7161142ee4ad28be80315b062e1c39b

Files changed

style.csschanged
style.cssView
@@ -1,8 +1,12 @@
11 body {
22 font-family: sans-serif;
33 }
44
5 +* {
6 + word-break: break-word;
7 +}
8 +
59 .screen {
610 position: absolute;
711 top: 0px; bottom: 0px;
812 left: 0px; right: 0px;
@@ -11,28 +15,41 @@
1115
1216 .column {
1317 display: flex;
1418 flex-direction: column;
15- min-height: 0px;
1619 }
1720
1821 .row {
1922 display: flex;
2023 flex-direction: row;
2124 }
2225
26 +.end {
27 + justify-content: flex-end;
28 +}
29 +
2330 .wrap {
2431 display: flex;
2532 flex-direction: row;
2633 flex-wrap: wrap;
2734 }
2835
36 +.no-shrink {
37 + flex-shrink: 0;
38 +}
39 +
40 +.expand {
41 + justify-content: space-between;
42 +}
43 +
2944 .scroll-y {
3045 overflow-y: auto;
46 + min-height: 0px;
3147 }
3248
3349 .scroll-x {
3450 overflow-x: auto;
51 + min-width: 0px;
3552 }
3653
3754 pre {
3855 white-space: pre-wrap;
@@ -67,34 +84,8 @@
6784 margin-left: auto;
6885 margin-right: auto;
6986 }
7087
71-/* --- hypertabs ------- */
72-
73-.hypertabs__tabs {
74- overflow-y: hide;
75-}
76-
77-.hypertabs > .row {
78- flex-grow: 0;
79- flex-shrink: 0;
80- margin: 0;
81-}
82-
83-.hypertabs__tabs > * {
84- max-width: 4em;
85- overflow-x: hidden;
86- margin-right: .5ex;
87- padding-top: .1ex;
88-}
89-
90-.hypertabs--selected {
91- max-width: 4em;
92- background: yellow;
93- padding-left: .5ex;
94- padding-right: .5ex;
95-}
96-
9788 /* compose */
9889
9990 .compose {
10091 width: 100%;
@@ -156,15 +147,11 @@
156147
157148 /* -- suggest box */
158149
159150 .suggest-box > * {
160- margin: .5ex;
151 + display: block;
161152 }
162153
163-.suggest-box {
164- width: 5em;
165-}
166-
167154 .suggest-box ul {
168155 list-style-type: none;
169156 padding-left: -2em;
170157 }
@@ -172,8 +159,13 @@
172159 .suggest-box .selected {
173160 background: yellow;
174161 }
175162
163 +.suggest-box {
164 + width: max-content;
165 + background: white;
166 +}
167 +
176168 /* avatar */
177169
178170 .avatar {
179171 display: flex;
@@ -237,14 +229,8 @@
237229 height: 20px;
238230 background: green;
239231 }
240232
241-.menu {
242- position: fixed;
243- right: 10px;
244- top: 10px;
245-}
246-
247233 .error {
248234 background: red;
249235 }
250236
@@ -271,11 +257,8 @@
271257
272258 .status {
273259 width: .7em;
274260 height: .7em;
275- position: fixed;
276- right: .8em;
277- top: .8em;
278261 border-radius: 100%;
279262 background: green;
280263 }
281264
@@ -300,6 +283,70 @@
300283 margin: 1ex;
301284 }
302285
303286
287 +/* tabs */
304288
289 +.header {
290 + background: lightgray;
291 + border-bottom: 2px inset;
292 + flex-shrink: 0; //I don't understand why this is needed, but it breaks without this.
293 +}
305294
295 +.header__tabs {
296 + width: 100%; min-width: 0px;
297 +}
298 +
299 +/* --- hypertabs ------- */
300 +
301 +.hypertabs__tabs {
302 + min-width: 0px;
303 + width: 100%;
304 +}
305 +
306 +.hypertabs__tab {
307 + overflow-x: hidden;
308 + min-width: 0px;
309 + width: 100%;
310 +}
311 +
312 +.hypertabs__button {
313 + overflow-x: hidden;
314 + min-width: 0px;
315 + width: 100%;
316 +}
317 +
318 +.hypertabs__tab {
319 + color: black;
320 + background: lightgray;
321 + border: 1px ridge;
322 + //border-top-right-radius: 3px;
323 + border-top-left-radius: 5px;
324 + margin-left: -3px;
325 + border-bottom: none;
326 + padding: 0.5em;
327 + width: 100%; //stretch tabs to fill the space
328 +}
329 +
330 +.hypertabs__tab > a {
331 + color: black;
332 + text-decoration: none;
333 + white-space: nowrap;
334 +}
335 +
336 +.hypertabs--selected {
337 + background: #E7E7E7;
338 + border-top-right-radius: 3px;
339 + z-index: 1;
340 +}
341 +
342 +.hypertabs__x {
343 + display: none; //hide x on unselected tabs, like in firefox.
344 + //margin-right: -5px;
345 + //margin-top: -5px;
346 + transform: translate(5px, -5px);
347 +}
348 +
349 +.hypertabs--selected .hypertabs__x {
350 + display: block;
351 +}
352 +

Built with git-ssb-web