-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
226 lines (192 loc) · 4.37 KB
/
style.css
File metadata and controls
226 lines (192 loc) · 4.37 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
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
:root {
--primary: #111;
--secondary: #ea061c; /* Updated secondary color */
}
.logo-container {
display: flex;
justify-content: center;
margin-top: 4rem;
position: relative; /* Adjust to ensure it layers correctly */
z-index: 1;
}
.logo {
width: 240px; /* Adjust this size based on your design */
height: auto;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: sans-serif;
background-color: #fff; /* Background color is white */
padding: 2rem; /* Added padding to prevent content from touching the edges */
margin: 0;
}
.select-box {
position: relative;
width: 90%; /* Use a percentage for responsive width */
max-width: 26rem; /* Maximum width for larger screens */
margin: 5rem auto; /* Adjusted margin for responsiveness */
}
.select-box input {
width: 100%;
padding: 1rem 0.6rem;
font-size: 1.1rem;
border: 0.1rem solid black; /* Added thin black border */
outline: none;
}
input[type="tel"] {
border-radius: 0 0.5rem 0.5rem 0;
border: 0.1rem solid black; /* Ensure border applies to this specific input as well */
}
.select-box input:focus {
border: 0.1rem solid var(--primary);
}
.selected-option {
background-color: #eee;
border-radius: 0.5rem;
overflow: hidden;
display: flex;
justify-content: space-between;
align-items: center;
}
.selected-option div {
position: relative;
width: auto; /* Use auto width to adjust based on content */
padding: 0 2.8rem 0 0.5rem;
text-align: center;
cursor: pointer;
}
.selected-option div::after {
position: absolute;
content: "";
right: 0.8rem;
top: 50%;
transform: translateY(-50%) rotate(45deg);
width: 0.8rem;
height: 0.8rem;
border-right: 0.12rem solid var(--primary);
border-bottom: 0.12rem solid var(--primary);
transition: 0.2s;
}
.selected-option div.active::after {
transform: translateY(-50%) rotate(225deg);
}
.select-box .options {
position: absolute;
top: 4rem;
width: 100%;
background-color: #fff;
border-radius: 0.5rem;
display: none;
z-index: 10;
}
.select-box .options.active {
display: block;
}
.select-box .options::before {
position: absolute;
content: "";
left: 1rem;
top: -1.2rem;
width: 0;
height: 0;
border: 0.6rem solid transparent;
border-bottom-color: var(--primary);
}
input.search-box {
background-color: var(--primary);
color: #fff;
border-radius: 0.5rem 0.5rem 0 0;
padding: 1.4rem 1rem;
font-size: 1rem;
}
.select-box ol {
list-style: none;
max-height: 23rem;
overflow: auto;
}
.select-box ol::-webkit-scrollbar {
width: 0.6rem;
}
.select-box ol::-webkit-scrollbar-thumb {
width: 0.4rem;
height: 3rem;
background-color: #ccc;
border-radius: 0.4rem;
}
.select-box ol li {
padding: 1rem;
display: flex;
justify-content: space-between;
cursor: pointer;
}
.select-box ol li.hide {
display: none;
}
.select-box ol li:not(:last-child) {
border-bottom: 0.1rem solid #eee;
}
.select-box ol li:hover {
background-color: lightcyan;
}
.select-box ol li .country-name {
margin-left: 0.4rem;
}
.buttons {
display: grid;
grid-template-columns: repeat(3, 1fr); /* Make buttons responsive */
grid-gap: 0.5rem;
margin-top: 1rem;
justify-content: center;
}
.buttons button {
width: 100%;
height: 3rem;
font-size: 1.2rem;
border: none; /* Remove the border */
border-radius: 0.5rem;
background-color: var(--secondary); /* Buttons use the secondary color */
color: #fff;
cursor: pointer;
transition: background-color 0.3s, color 0.3s; /* Smooth transition for background and text color */
}
.buttons button:hover,
.buttons button:active { /* Apply styles when hovering or clicking */
background-color: #fff;
color: var(--secondary); /* Text turns the same red as the button */
}
.enter-button {
grid-column: span 3; /* Span across all three columns */
width: calc(100% - 0.5rem);
height: 3rem;
background-color: var(--secondary); /* Red color */
color: #fff;
margin-top: 0.5rem;
border: none; /* Remove the border */
}
.enter-button:hover,
.enter-button:active {
background-color: #fff;
color: var(--secondary);
}
/* Media Query for Smaller Screens */
@media (max-width: 600px) {
.select-box {
width: 100%;
margin: 3rem auto;
}
.buttons {
grid-template-columns: repeat(3, 1fr);
grid-gap: 0.3rem;
}
.buttons button {
height: 2.5rem;
font-size: 1rem;
}
.enter-button {
height: 2.5rem;
}
}