forked from davidhartsough/you-dont-need-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflex-example.css
61 lines (61 loc) · 1.07 KB
/
flex-example.css
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
/* Layout */
.flex {
display: flex;
}
.ex-layout,
.center {
margin: 1rem auto;
max-width: 480px;
border: 4px solid rgba(0, 0, 0, 0.2);
border-radius: 0.25rem;
}
.ex-header {
background-color: rgba(250, 0, 0, 0.2);
}
.ex-nav {
justify-content: space-between;
align-items: center;
background-color: rgba(250, 0, 0, 0.2);
padding: 0.5rem;
}
.ex-link {
margin-left: 0.5rem;
}
.ex-title {
text-align: center;
padding: 0.5rem;
}
.ex-aside {
flex: 0 0 25%;
padding: 0.5rem;
background-color: rgba(0, 250, 0, 0.2);
}
.ex-section {
flex: 1 1 auto;
padding: 0.5rem;
background-color: rgba(0, 0, 250, 0.2);
}
.ex-side {
flex: 0 0 20%;
padding: 0.25rem;
background-color: rgba(0, 250, 250, 0.1);
}
.ex-item {
padding: 0.25rem;
margin-bottom: 0.25rem;
background-color: rgba(0, 250, 200, 0.2);
}
.ex-footer {
background-color: rgba(250, 100, 0, 0.2);
text-align: center;
padding: 0.5rem;
}
.center {
justify-content: center;
align-items: center;
height: 8rem;
}
.centered {
padding: 0.25rem 0.5rem;
background-color: rgba(250, 0, 0, 0.2);
}