-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
135 lines (113 loc) · 2.01 KB
/
style.css
File metadata and controls
135 lines (113 loc) · 2.01 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
html {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
font-family: 'Kumbh Sans', sans-serif;
background: whitesmoke;
}
/* Header */
header {
text-align: center;
color: rgba(32, 32, 32, 0.781);
}
h1,
.query {
text-transform: uppercase;
margin-top: 30px;
margin-bottom: 15px;
font-size: 40px;
letter-spacing: 5px;
font-family: 'Kufam', cursive;
}
.query {
background: none;
border: none;
outline: none;
width: 250px;
padding-left: 10px;
transition: all 0.3s ease;
color: #edb426;
position: relative;
border-bottom: solid 2px rgba(237, 181, 38, 0.581);
}
.query::placeholder {
color: rgba(32, 32, 32, 0.581);
}
.query:focus {
width: 280px;
border-bottom: solid 2px rgba(32, 32, 32, 0.781);
}
.subtitle {
margin-bottom: 40px;
}
/* Loader */
.loader {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: rgba(255, 255, 255, 0.8);
}
.loader img {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
/* Image Container */
.image-container {
margin: 10px 10%;
columns: 4;
column-gap: 30px;
}
.image-container img {
display: block;
width: 100%;
margin-top: 5px;
margin-bottom: 25px;
border-radius: 4px;
transition: 0.4s all ease-in-out;
box-shadow: 0px 10px 30px -10px rgba(0, 0, 0, 0.7);
object-fit: cover;
filter: contrast(70%);
}
.image-container img:hover {
transform: scale(1.02) translateY(-8px);
filter: contrast(100%);
}
/* Media Query: Desktop */
@media screen and (max-width: 1000px) {
.image-container {
margin: 10px;
columns: 3;
}
}
/* Media Query: Tablet */
@media screen and (max-width: 768px) {
.image-container {
columns: 2;
}
}
/* Media Query: Mobile */
@media screen and (max-width: 600px) {
h1 {
font-size: 14px;
}
.query {
font-size: 16px;
width: 100px;
}
.query:focus {
width: 200px;
border-bottom: solid 1px rgba(32, 32, 32, 0.781);
}
.subtitle {
font-size: 12px;
}
.image-container {
columns: 1;
}
}