-
Notifications
You must be signed in to change notification settings - Fork 0
/
grid.css
80 lines (72 loc) · 1.37 KB
/
grid.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
body {
width: 100%;
height: 100px;
background-color: white;
margin: 0;
position: relative;
}
nav {
background: rgba(255, 255, 255, 0.2);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
border: 1px solid rgba(255, 255, 255, 0.3);
padding: 2%;
margin: 0;
text-align: right;
}
nav a {
text-decoration: none;
background-color: hsla(184, 100%, 22%, 0.856);
color: hsl(0, 0%, 95%);
border-radius: 10px;
width: 15%;
padding: 1% 2%;
}
nav a:hover {
background-color: rgb(63, 160, 63);
}
main {
position: relative;
top: 50%;
left: 50%;
transform: translate(-50%, 0);
}
.main-container {
width: 70%;
display: grid;
grid-template-areas:
"t t t o"
"t t t o"
"b b i i"
"b b e e"
"b b e e";
column-gap: 10px;
row-gap: 10px;
margin: 0 auto;
}
.first-container {
padding: 7em;
background-color: orangered;
grid-area: t;
}
.second-container {
padding: 2em;
background-color: orange;
grid-area: o;
}
.third-container {
padding: 7em;
background-color: green;
grid-area: b;
}
.fourth-container {
padding: 2em;
background-color: hsla(184, 100%, 22%, 0.856);
grid-area: i;
}
.fifth-container {
padding: 2em;
background-color: hsla(184, 100%, 22%, 0.856);
grid-area: e;
}