-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIntlPhoneMask.css
More file actions
95 lines (92 loc) · 2.98 KB
/
IntlPhoneMask.css
File metadata and controls
95 lines (92 loc) · 2.98 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
.intl-wrapper {
position: relative;
display: flex;
align-items: center;
width: 100%;
box-sizing: border-box;
}
.intl-select {
position: absolute;
left: 12px;
display: flex;
align-items: center;
cursor: pointer;
z-index: 20;
height: 100%;
background: transparent;
user-select: none;
}
.intl-list {
position: absolute;
top: 100%;
left: 0;
width: 100%; /* По умолчанию на всю ширину */
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 12px;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
display: none;
flex-direction: column;
z-index: 9999;
margin-top: 8px;
padding: 8px;
}
/* Специфический класс для фиксированной ширины */
.intl-list.fixed-width {
width: 350px !important;
}
.intl-list.active {
display: flex;
animation: intlPop 0.2s ease-out;
}
@keyframes intlPop {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}
.intl-search-box {
padding: 8px;
margin-bottom: 8px;
border-bottom: 1px solid #f1f5f9;
}
.intl-search-input {
width: 100%;
padding: 8px 12px;
border: 1px solid #e2e8f0;
border-radius: 6px;
font-size: 14px;
outline: none;
}
.intl-items-container {
overflow-y: auto;
max-height: 250px;
}
.intl-item {
padding: 10px 14px;
display: flex;
align-items: center;
gap: 12px;
cursor: pointer;
border-radius: 8px;
transition: background 0.1s;
}
.intl-item:hover { background: #f8fafc; }
.intl-item.hidden { display: none; }
.intl-flag-icon {
width: 22px;
height: auto;
flex-shrink: 0;
}
.intl-input-field {
padding-left: 65px !important;
transition: all 0.3s ease;
}
.state-invalid {
border-color: #ef4444 !important;
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}
.state-valid {
border-color: #22c55e !important;
box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1) !important;
}
.intl-items-container::-webkit-scrollbar { width: 5px; }
.intl-items-container::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }