forked from markgoho/css-grid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
77 lines (62 loc) · 1.08 KB
/
style.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
html,
body {
padding: 0;
border: 0;
margin: 0;
box-sizing: border-box;
font-family: Molengo, sans-serif;
}
.item {
outline: 1px solid black;
}
.container {
display: grid;
height: 100vh;
}
/* Row-Column Example */
.row-column {
grid-template-columns: 40px 50px 1fr 50px 40px;
grid-template-rows: .25fr 100px .75fr;
}
.row-column .item:nth-child(2n) {
background-color: rgba(0, 255, 0, 0.5);
}
.row-column .item:nth-child(2n + 1) {
background-color: rgba(202, 96, 96, 0.5);
}
/* Area Example */
.areas > div {
display: flex;
justify-content: center;
align-items: center;
font-size: 2em;
}
.header {
background-color: cadetblue;
}
.sidebar {
background-color: darksalmon;
}
.main {
background-color: wheat;
}
.footer {
background-color: mistyrose;
}
.hidden {
display: none;
}
/* Form Example */
.user-buttons > button {
background-color: darkred;
color: #fff;
border: 1px solid grey;
padding: 0.5em 1.25em;
border-radius: 5px;
}
input[type="text"] {
font-size: 1.5em;
padding: 0.5em;
border-radius: 5px;
border: 0.5px solid grey;
}