-
-
Notifications
You must be signed in to change notification settings - Fork 524
/
style.css
82 lines (69 loc) · 1.67 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
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@300;400&display=swap");
:root {
--main-color: #42515c;
--text-color: #ecebf4;
--dark-text-color: #293842;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: var(--main-color);
color: var(--text-color);
font-family: "Nunito", sans-serif;
min-height: 100vh;
}
h2 {
font-size: 2.75rem;
font-weight: 300;
margin: 0.625rem;
}
h2 span {
font-size: 2rem;
}
p {
font-size: 1.25rem;
}
.container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.container > div {
cursor: pointer;
height: 210px;
background-size: cover;
background-attachment: fixed;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
transition: all 0.5s ease-out;
}
.container > div:hover {
opacity: 0.7;
transform: scale(0.98);
}
.bg1 {
background-image: url("https://images.unsplash.com/photo-1599447333424-272c8fa5466f?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80");
text-shadow: 1px 1px 2px var(--main-color);
}
.bg2 {
background: var(--text-color) url("https://images.unsplash.com/photo-1529686159790-3246c5082afb?ixlib=rb-1.2.1&ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&auto=format&fit=crop&w=1350&q=80");
color: var(--dark-text-color);
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
.container > div:first-of-type,
.container > div:nth-of-type(6),
.container > div:nth-of-type(9),
.container > div:nth-of-type(10) {
grid-column: span 2;
}
@media (min-width: 768px) {
.container {
grid-template-columns: repeat(4, 1fr);
}
}