-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
122 lines (122 loc) · 2.59 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
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
/*----------------- IMPORT GOOGLE FONT -----------------*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
/*----------------- BASE -----------------*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
/*----------------- VARIABLES -----------------*/
:root {
/* Colors */
--white_color : rgb(255, 255, 255);
--orange_color : rgb(246, 99, 53);
--black_color : rgb(0, 0, 0);
--background_color :linear-gradient(to top left, #b156d9, #213780);
--grey-color : rgb(228, 222, 222);
}
/*----------------- STYLING -----------------*/
.container {
width: 100%;
min-height: 100vh;
background-image: var(--background_color);
padding-bottom: 1rem;
}
header {
padding: 2rem 0;
display: flex;
align-items: center;
justify-content: space-around;
}
.logo {
width: 15rem;
height: 4rem;
}
.logo img {
width: 100%;
height: 100%;
}
h1 {
color: var(--white_color);
text-align: center;
padding: 1rem;
border-bottom: 0.2rem var(--orange_color) solid;
text-transform: uppercase;
}
.search_box {
width: 20rem;
height: 3rem;
}
form {
width: 100%;
height: 100%;
background-color:var(--grey-color);
display: flex;
align-items: center;
justify-content: center;
border-radius: 0.5rem;
}
form input {
height: 100%;
border: 0;
outline: 0;
background: transparent;
flex: 1;
color: var(--black_color);
font-size: 1rem;
padding: 0 0.8rem;
}
form input::placeholder {
color:var(--black_color);
}
form button {
padding: 0 1rem;
height: 100%;
background:var(--orange_color);
color:var(--white_color);
font-size: 1rem;
border: 0;
outline: 0;
border-top-right-radius: 0.5rem;
border-bottom-right-radius: 0.5rem;
cursor: pointer;
transition: 0.5s;
}
.hero_section {
display: flex;
flex-direction: column;
}
h3 {
color: var(--white_color);
padding: 2rem 0 2rem 4rem;
}
#load_more {
color: var(--white_color);
background: var(--orange_color);
font-size: 1rem;
padding: 1rem;
border: 0;
outline: 0;
border-radius: 0.5rem;
cursor: pointer;
margin: 0.6rem auto 8rem;
transition: 0.5s;
}
form button:hover, #load_more:hover {
color: var(--orange_color);
background: var(--white_color);
font-weight: bold;
}
#image_result {
width: 100%;
column-count: 3;
column-gap: 1.5rem;
padding: 2rem 4rem;
}
#image_result img {
width: 100%;
height: auto;
break-inside: avoid;
border-radius: 0.5rem;
}