-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
90 lines (81 loc) · 1.61 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
78
79
80
81
82
83
84
85
86
87
88
89
90
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", Times, serif;
}
body {
min-height: 100vh;
display: flex;
justify-content: center;
align-self: center;
background: #222;
}
.container {
margin: 2.5rem;
position: relative;
max-width: 100%;
display: grid;
grid-template-columns: repeat(4, minmax(300px, 1fr));
grid-template-rows: minmax(100px, auto);
grid-auto-flow: dense;
grid-gap: 10px;
}
.container .box {
padding: 20px;
display: grid;
place-items: center;
background: #333;
color: #fff;
font-size: 20px;
font-weight: bolder;
text-align: center;
transition: 0.5s;
}
.container .box:hover {
background: #e91e63;
}
.container .box img {
position: relative;
max-width: 100px;
margin-bottom:10px;
}
.container .box:nth-child(1) {
grid-column: span 2;
grid-row: span 1;
}
.container .box:nth-child(2) {
grid-column: span 1;
grid-row: span 2;
}
.container .box:nth-child(3) {
grid-column: span 1;
grid-row: span 1;
}
.container .box:nth-child(4) {
grid-column: 4/5;
grid-row: span 1;
}
.container .box:nth-child(5) {
grid-column: 2/5;
grid-row: span 2;
}
.container .box:nth-child(6) {
grid-column: 2/3;
grid-row: 2/3;
}
.container .box:nth-child(7) {
grid-column: span 1;
grid-row: span 3;
}
@media (max-width: 990px) {
.container {
grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
grid-template-rows: minmax(auto, auto);
}
.container .box {
grid-row: unset !important;
grid-column: unset !important;
}
}