~starkingdoms/starkingdoms

ref: 98fccea0e2dab1322390c9325630bb9067d495bb starkingdoms/starkingdoms-client/public/form.css -rw-r--r-- 2.8 KiB
98fccea0 — core change version number back 2 years ago
                                                                                
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
.launch-btn {
    appearance: none;
    width: 100%;
    padding: 1vh 1vw;
    margin-top: 1vw;
    color: var(--text);
    background: transparent;
    border: 2px solid var(--links);
    border-radius: 5px;
    transition: 0.1s ease-in-out;
}
.launch-btn:hover {
    cursor: pointer;
    background-color: var(--links-transparent);
}

.username-label {
    margin-top: 1vh;
}
.fm-select {
    margin-bottom: 1vh;
}

.username-box {
    appearance: none;
    background: transparent;
    color: var(--text);
    padding: 0.675em 1em;
    border: 1px solid var(--links);
    border-radius: 0.25rem;
    cursor: text;
    width: 100%;
    max-width: 100%;
}
.username-box:focus {
    outline: none;
    background-color: var(--links-ultratransparent);
}

.fm-select-button {
    appearance: none;
    background: transparent;
    color: var(--text);
    width: 100%;
    padding: 0.675em 1em;
    border: 1px solid var(--links);
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.fm-selected-value {
    text-align: left;
}
.fm-arrow {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--links);
    transition: transform ease-in-out 0.3s;
}
.fm-select-dropdown {
    position: absolute;
    list-style: none;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background-color: var(--bg-secondary-1);
    border: 1px solid var(--links);
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    transition: 0.2s ease;

    /*transform: scaleY(0);*/
    opacity: 0;
    visibility: hidden;
}
.fm-select-dropdown:focus-within {
    box-shadow: 0 10px 25px var(--links-ultratransparent);
}

.fm-select-dropdown li {
    position: relative;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.fm-select-dropdown li label {
    width: 100%;
    padding: 8px 10px;
    cursor: pointer;
}

.fm-select-dropdown::-webkit-scrollbar {
    width: 7px;
}
.fm-select-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 25px;
}

.fm-select-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 25px;
}

.fm-select-dropdown li + li {
    margin-top: 5px;
}

.fm-select-dropdown li, .fm-select-dropdown input ~ label {
    border-radius: 5px;
}

.fm-select-dropdown li:hover, .fm-select-dropdown input:checked ~ label {
    background-color: var(--surface-0);
}
.fm-select-dropdown input:focus ~ label {
    background-color: var(--surface-1);
}

.fm-select-dropdown input[type="radio"] {
    position: absolute;
    left: 0;
    opacity: 0;
}
.fm-select.active .fm-arrow {
    transform: rotate(180deg);
}
.fm-select.active .fm-select-dropdown {
    opacity: 1;
    visibility: visible;
    /*transform: scaleY(1);*/
}