-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathstyle.css
196 lines (172 loc) · 3.88 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
/* CSS styles optimized for the project */
/* Importing Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
/* Base styling */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
/* Variable definitions */
: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);
}
/* Container styling */
.container {
width: 100%;
min-height: 100vh;
background-image: var(--background_color);
padding-bottom: 1rem;
}
/* Header styling */
header {
padding: 2rem 0;
margin: 0 3rem;
display: flex;
align-items: center;
justify-content: space-between;
}
/* Logo styling */
.logo {
width: 20rem;
height: 6rem;
}
.logo img {
width: 100%;
height: 100%;
}
/* Heading styling */
h1 {
color: var(--white_color);
text-align: center;
padding: 1rem;
border-bottom: 0.2rem var(--orange_color) solid;
text-transform: uppercase;
}
/* Prompt box styling */
.prompt_box {
margin: 1rem auto 2rem;
width: 50rem;
height: 3rem;
}
/* Form styling */
form {
width: 100%;
height: 100%;
background-color: var(--grey-color);
display: flex;
align-items: center;
justify-content: center;
border-radius: 0.5rem;
}
/* Input field styling */
form input {
height: 100%;
border: 0;
outline: 0;
background: transparent;
flex: 1;
color: var(--black_color);
font-size: 1rem;
padding: 0 0.8rem;
}
/* Placeholder text styling */
form input::placeholder {
color: var(--black_color);
}
/* Select boxes styling */
form .img_quantity, .img_size {
outline: none;
border: none;
height: 44px;
background: none;
font-size: 1rem;
margin-right: 0.5rem;
}
/* Generate button styling */
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;
}
/* Hover effect for Generate button */
form button:hover {
color: var(--orange_color);
background: var(--white_color);
font-weight: bold;
}
/* Hero section styling */
.hero_section {
display: flex;
flex-direction: column;
}
/* Additional styling */
h3 {
color: var(--white_color);
padding: 2rem 0 2rem 4rem;
}
#image_result {
display: flex;
gap: 1rem;
flex-wrap: wrap;
margin: 3rem;
justify-content: center;
}
/* Image box styling */
#image_result .img_box {
width: 25rem;
aspect-ratio: 1/1;
border-radius: 0.5rem;
overflow: hidden;
position: relative;
display: flex;
justify-content: center;
align-items: center;
background-color: var(--grey-color);
}
#image_result .img_box img {
width: 100%;
height: 100%;
object-fit: cover;
}
#image_result .img_box.loading img {
width: 5rem;
height: 5rem;
}
/* Download button styling */
#image_result .img_box .download-btn {
position: absolute;
top: 1rem;
right: 1rem;
background-color: var(--orange_color);
height: 2rem;
width: 2rem;
border-radius: 50%;
display: none;
align-items: center;
justify-content: center;
}
/* Show download button on hover */
#image_result .img_box:not(.loading):hover .download-btn {
display: flex;
}
/* Download button icon styling */
#image_result .img_box .download-btn i {
width: 1rem;
height: 1rem;
color: var(--white_color);
}