-
Notifications
You must be signed in to change notification settings - Fork 4
/
refreshment.css
86 lines (74 loc) · 1.39 KB
/
refreshment.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
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;600;700&display=swap');
:root {
--red: #ff3838;
}
*{
font-family: 'Nunito', sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
outline: none;
border: none;
text-decoration: none;
text-transform: capitalize;
transition: all .2s linear;
}
html {
font-size: 62.5%;
overflow-x: hidden;
scroll-behavior: smooth;
scroll-padding-top: 6rem;
}
body {
background: #f7f7f7;
}
section {
padding: 2rem 9%;
}
.heading {
text-align: center;
font-size: 3.5rem;
padding: 1rem;
color: #666;
}
.heading span {
color: var(--red);
}
.gallery .box-container {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-gap: 1.5rem;
}
.gallery .box-container .box {
height: 25rem;
border: 1rem solid #fff;
box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
border-radius: .5rem;
}
.gallery .box-container .box img {
height: 100%;
width: 100%;
object-fit: cover;
}
/* media queries */
@media(max-width:991px) {
html {
font-size: 55%;
}
header {
padding: 2rem;
}
section {
padding: 2rem;
}
}
@media(max-width:450px) {
html {
font-size: 50%;
}
.gallery .box-container {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 1.5rem;
}
}