-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmystyle.css
260 lines (189 loc) · 3.78 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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
.container {
display:grid;
height:100vh;
grid-template-columns: 1.4fr 1.2fr 1.6fr 1fr;
grid-template-rows: 0.2fr 1.6fr 1.3fr 0.6fr;
grid-template-areas:
"nav nav nav nav"
"sidebar main main main"
"sidebar content1 content2 content3"
"footer footer footer footer";
grid-gap: 3px;
font-weight:600;
text-align:center;
}
nav{
grid-area: nav;
}
main {
/*background: yellow;*/
grid-area: main;
background-image: url(media/pexels-photo-1034857.jpeg);
}
#sidebar {
background: grey;
grid-area: sidebar;
overflow: hidden;
}
#sidebar video {
height: 80vh !important;
}
#sidebar div {
margin-top: 150%;
}
#content1{
background: green;
grid-area: content1;
background-image: url(media/Banana.png);
background-size: 100%;
overflow: hidden;
}
#content2 {
background: orange;
grid-area: content2;
}
#content3 {
background: #753905;
grid-area: content3;
background-image: url(media/pexels-photo-7194986.jpeg);
background-size: cover;
overflow: hidden;
}
footer {
background: grey;
grid-area: footer;
background-image: url(media/pexels-photo-3310691.webp);
background-size: cover;
overflow: hidden;
}
@media only screen and (max-width: 500px){
.container{
grid-template-columns: 1fr;
grid-template-rows: 0.4fr 2.4fr 2.2fr 1.2fr 1.2fr 1.2fr 1fr;
grid-template-areas:
"nav"
"sidebar"
"main"
"content1"
"content2"
"content3"
"footer";
}
}
nav p {
float: left;
font-family: "Verdana", sans-serif;
color: black;
font-size: 30px;
line-height: 70px; /* height of the website name*/
padding: 0px 30px; /* left and right is the 2nd value, top/bot the first one */
}
nav ul {
float: left;
}
nav ul li {
float: left;
list-style: none;
position: relative;
}
nav ul li a{
display:block;
font-family: "Verdana", sans-serif;
color: black;
font-size: 22px; /* size of menu items*/
padding: 20px 16px;
line-height: 35px;
text-decoration: none;
}
nav ul li ul{
display:none;
position: absolute;
top: 65px;
background-color: white;
padding: 3px;
border-radius: 0px 0px 4px 4px;
}
nav ul li:hover ul {
display:block;
}
nav ul li ul li{
width: 200px;
border-radius: 4px;
}
nav ul li ul li a{
padding: 12px 16px;
}
nav ul li ul li a:hover{
background-color: lightgrey;
}
/*THINGS*/
h1 {
color: black;
font-family: "Verdana", sans-serif;
font-weight: bold;
font-size:4vw;
}
h2 {
color: black;
font-family: "Verdana", sans-serif;
font-weight: bold;
font-size: 20px;
}
h3 {
color: black;
font-family: "Verdana", sans-serif;
font-weight: bold;
}
h4 {
color: black;
font-family: "Verdana", sans-serif;
font-weight: bold;
}
h5 {
color: black;
font-family: "Verdana", sans-serif;
font-weight: bold;
}
h6 {
color: black;
font-family: "Verdana", sans-serif;
font-weight: bold;
}
p {
font-family: "Georgia", serif;
}
.imageClass {
max-width:100%;height:auto;
}
.imageClass2 {
width:100%;
height:40px;
}
#myIframe iframe,
#myIframe object,
#myIframe embed {
position: relative;
height:50vh;
width:80vh;
}
span {
color:yellow;
}
.mysecondbody {
/*grid-area: "mysecondbody";*/
background-image: url(media/pexels-photo-3310691.webp);
background-size: cover;
}
.bananabody {
display:grid;
height:100vh;
grid-template-columns: 1fr;
grid-template-rows: 0.2fr 2fr;
grid-template-areas:
"nav"
"mysecondbody";
grid-gap: 0.2rem;
font-family:"Verdana", serif;
font-weight:650;
text-align:center;
}