-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
85 lines (78 loc) · 1.65 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
@import url('https://fonts.googleapis.com/css2?family=Fasthand&family=Merriweather:ital@1&family=Montserrat&family=Playfair+Display:wght@500&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
font-family: 'Merriweather', serif;
font-size: 1.5rem;
}
.heading{
color: white;
font-size: 3rem;
text-align: center;
margin-bottom: 20px;
}
.paragraph{
font-family: 'Fasthand', cursive;
color: antiquewhite;
font-size: 20px;
text-align: center;
}
.container{
display: flex;
height: 800px;
justify-content: space-evenly;
align-items: center;
gap: 20px;
background: linear-gradient(.80turn, rgb(1,75,114),rgb(57,17,52))
}
.text{
flex-basis: 30%;
}
.images{
flex-basis: 50%;
display:grid;
grid-template-columns: repeat(3,1fr);
grid-auto-rows: 120px;
gap: 3px;
}
.box{
background-size: cover;
background-position: bottom;
color: white;
display: flex;
justify-content: center;
align-items: center;
background-color: rgb(22, 20, 20);
background-blend-mode: hard-light;
transition: all 1s ease-in-out;
}
.box:hover{
background-color:#999;
background-position: center;
box-shadow: 0 0 5px black;
}
.row-2{
grid-row: span 2;
}
.col-2{
grid-column: span 2;
}
@media (max-width:1024px){
.container{
display: flex;
flex-direction: column;
}
.images{
width: 100%;
grid-auto-rows: 180px;
}
.box{
grid-column: span 3;
}
.row-2{
grid-row: auto;
}
}