-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
113 lines (97 loc) · 1.8 KB
/
index.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
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
108
109
110
111
112
113
* {
margin: 0px;
}
body {
height: 100vh;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 100px 1fr 70px;
background-color: #141e20;
gap: 10px;
}
header,
main,
footer {
border: 5px solid green;
color: green;
padding: 10px;
}
nav {
width: 70%;
}
header {
display: flex;
justify-content: space-between;
}
main {
display: grid;
grid-template-columns: 1fr 30%;
grid-template-rows: 40px 1fr 100px;
grid-template-areas:
"h1 aside"
"section01 aside"
"section02 aside"
;
gap: 10px;
}
aside {
grid-area: aside;
}
main>h1 {
grid-area: h1;
}
#section-01 {
grid-area: section01;
}
#section-02 {
grid-area: section02;
}
nav,
section,
aside {
border: 5px solid rgb(214, 214, 8);
color: rgb(214, 214, 8);
padding: 10px;
}
section>article {
border: 5px solid blue;
color: blue;
height: 70px;
margin-top: 5px;
padding: 10px;
}
aside section {
border: 5px solid blue;
color: blue;
height: 100px;
margin-top: 5px;
padding: 10px;
}
@media (max-width: 680px) {
main {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 40px 1fr 100px auto;
grid-template-areas:
"h1"
"section01"
"section02"
"aside"
;
gap: 10px;
}
aside {
overflow: hidden;
/* display: flex;
flex-direction: column; */
}
aside>div {
display: flex;
overflow: scroll;
overflow-y: hidden;
}
aside section {
margin-right: 5px;
min-width: 100px;
}
}