-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
161 lines (138 loc) · 3.46 KB
/
styles.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
/* Основные стили */
body {
font-family: Arial, sans-serif;
background-color: #f8f8f8;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.form-container {
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 400px;
}
h1 {
font-size: 20px;
margin-bottom: 20px;
text-align: center;
}
label {
display: block;
font-size: 14px;
margin-bottom: 8px;
}
input, select, button {
width: 100%;
padding: 12px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 14px;
box-sizing: border-box;
}
.phone-container {
display: flex;
align-items: center;
gap: 10px;
}
.phone-code-container select {
flex: 0 0 100px;
padding: 12px;
}
.phone-number-container input {
flex: 1;
}
.checkbox-container {
display: flex;
align-items: center;
}
.checkbox-container input {
width: auto;
margin-right: 10px;
}
button {
background-color: #ffd700;
color: #000;
border: none;
cursor: pointer;
font-weight: bold;
text-transform: uppercase;
}
button:hover {
background-color: #e6c200;
}
/* Ошибки */
.error-message {
color: red;
font-size: 12px;
margin-top: -10px;
display: none;
}
/* Подсветка текущего поля */
input:focus, select:focus {
border-color: #ffd700;
outline: none;
box-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
}
/* Адаптивность */
@media (max-width: 600px) {
.phone-container {
flex-direction: column;
}
.phone-code-container, .phone-number-container {
width: 100%;
}
}
/* Стиль для полосы прокрутки в выпадающем списке */
select {
width: 100%;
padding: 12px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 14px;
box-sizing: border-box;
appearance: none; /* Убираем стандартный стиль браузера */
-webkit-appearance: none;
-moz-appearance: none;
}
/* Для браузеров, поддерживающих Webkit */
select::-webkit-scrollbar {
width: 22px; /* Ширина полосы прокрутки */
}
select::-webkit-scrollbar-track {
background-color: #f1f1f1; /* Цвет фона полосы прокрутки */
border-radius: 10px;
}
select::-webkit-scrollbar-thumb {
background-color111: #888; /* Цвет самой полосы */
background:red;
border-radius: 10px;
scrollbar-color: red #f1f1f1; /* Цвет полосы и фона */
}
select::-webkit-scrollbar-thumb:hover {
background-color: #555; /* Цвет при наведении */
}
/* Для Firefox */
select {
scrollbar-width: thin; /* Ширина полосы прокрутки */
scrollbar-color: red #f1f1f1; /* Цвет полосы и фона */
}
@supports selector(::-webkit-scrollbar) {
::-webkit-scrollbar-thumb {
background: red;
}
::-webkit-scrollbar-track {
background: red;
}
::-webkit-scrollbar {
max-width: 39px;
max-height: var(--scrollbar-width-legacy);
}
}