This repository has been archived by the owner on Aug 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
app.less
107 lines (97 loc) · 1.86 KB
/
app.less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
// -----------------------------------------------------------------------------
// Testing Ground
// -----------------------------------------------------------------------------
@import "flex.less";
html, body {
height: 100%;
width: 100%;
box-sizing: border-box;
}
body {
height: 100%;
margin: 0;
box-sizing: border-box;
.display(flex);
.flex-direction(column);
.justify-content(center);
}
#main {
.display(flex);
.flex(1);
}
#main > * {
border: 1px solid #ccc;
padding: 0.25em;
}
#main > article {
.flex(1, 0, 0px);
.order(2);
margin: 0 10px;
.display(flex);
.justify-content(center);
.align-items(center);
text-align: center;
}
nav {
.display(flex);
.justify-content(space-between);
background: gray;
margin-bottom: 10px;
.align-items(center);
.flex(none);
}
nav > a {
padding: 15px;
color: white;
display: block;
.flex(1);
margin: auto 10px;
text-decoration: none;
background: blue;
text-align: center;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
min-width: 0; /* Apparently there's a spec change. Hack for now. */
}
nav > a:first-child {
margin-left: 0;
}
nav > a:last-child {
margin-right: 0;
}
nav > a:hover {
color: red;
}
#main > section {
.display(flex);
.flex-direction(row);
background: #eee;
width: 200px;
.order(1);
.flex(1, 0, 0px);
}
#main > section > div, #main > section > div > div {
border: 1px solid rgb(204, 204, 204);
.flex(1);
padding: 0.25em;
margin: 0.25em;
background: white;
.display(flex);
.justify-content(stretch);
.align-items(stretch);
text-align: center;
.flex-direction(column)
}
#main > section > div > div > .tabs {
.display(flex);
margin-bottom: 10px;
.align-items(center);
.flex(none);
background: gray;
}
#main > section > div > div > .content {
background: blue;
.flex(1);
.display(flex);
}