-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmyStyle.css
194 lines (160 loc) · 3.37 KB
/
myStyle.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
* {
box-sizing: border-box;
}
body {
margin: 0px;
font-family: 'segoe ui';
}
.nav {
height: 60px;
width: 100%;
background-color: #4d4d4d;
position: relative;
max-width: 1500px;
margin: auto;
top: 0;
}
.nav>.nav-header {
display: inline;
}
.nav>.nav-header>.nav-title {
display: inline-block;
font-size: 22px;
color: #fff;
padding: 10px 10px 10px 10px;
}
.nav>.nav-btn {
display: none;
}
.nav>.nav-links {
display: inline;
float: right;
font-size: 18px;
}
.nav>.nav-links>a {
display: inline-block;
padding: 13px 10px 13px 10px;
text-decoration: none;
color: #efefef;
}
.nav>.nav-links>a:hover {
background-color: rgba(0, 0, 0, 0.3);
}
.nav>#nav-check {
display: none;
}
@media (max-width:650px) {
.nav>.nav-btn {
display: inline-block;
position: absolute;
right: 0px;
top: 0px;
}
.nav>.nav-btn>label {
display: inline-block;
width: 50px;
height: 50px;
padding: 13px;
}
.nav>.nav-btn>label:hover,
.nav #nav-check:checked~.nav-btn>label {
background-color: rgba(0, 0, 0, 0.3);
}
.nav>.nav-btn>label>span {
display: block;
width: 25px;
height: 10px;
border-top: 2px solid #eee;
}
.nav>.nav-links {
position: absolute;
display: block;
width: 100%;
background-color: #333;
height: 0px;
transition: all 0.3s ease-in;
overflow-y: hidden;
top: 50px;
left: 0px;
}
.nav>.nav-links>a {
display: block;
width: 100%;
}
.nav>#nav-check:not(:checked)~.nav-links {
height: 0px;
}
.nav>#nav-check:checked~.nav-links {
height: calc(36vh - 50px);
overflow-y: auto;
}
}
.item1 {
grid-area: header;
border-bottom: 2px solid white
}
.item2 {
grid-area: menu;
border-bottom: 2px solid white
}
.item3 {
grid-area: main;
border-bottom: 2px solid white
}
.item4 {
grid-area: right;
border-bottom: 2px solid white
}
.item5 {
grid-area: footer;
border-bottom: 2px solid white
}
/*for mobile*/
[class*="grid-"] {
display: column;
background-color: #333;
}
/*for desktop*/
@media all and (min-width:1000px) {
.grid-container {
display: grid;
grid-template-areas:
'header header header header header header'
'menu main main main main right'
'menu main main main main right'
'menu main main main main right'
'footer footer footer footer footer footer';
gap: 10px;
background-color: #333;
padding: 10px;
margin: auto;
max-width: 1500px;
}
}
/*for tablete*/
@media(min-width:650px) and (max-width:999px) {
.grid-container {
display: grid;
grid-template-areas:
'header header header header'
'menu menu main main'
'menu menu main main'
'right right right right'
'footer footer footer footer';
gap: 10px;
background-color: #333;
padding: 10px;
margin: auto;
}
}
.grid-container>div {
background-color: rgba(0, 0, 0, 0.3);
text-align: center;
padding: 20px 0;
font-size: 30px;
color: #fff;
}
[class*="grid-"] {
display: column;
background-color: #333;
}