forked from hyoo-ru/mam_mol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnumber.css
More file actions
53 lines (45 loc) · 810 Bytes
/
number.css
File metadata and controls
53 lines (45 loc) · 810 Bytes
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
[mol_number] {
display: flex;
flex: 0 1 auto;
position: relative;
align-items: stretch;
max-width: 100%;
}
[mol_number]:hover {
z-index: 2;
}
[mol_number_string] {
appearance: textfield;
text-align: right;
position: relative;
flex: 1 1 7rem;
width: 7rem;
}
[mol_number_string]::-webkit-inner-spin-button {
display: none;
}
[mol_number_inc] ,
[mol_number_dec] {
margin: 0;
flex: 0 0 auto;
position: absolute;
top: 0;
display: none;
z-index: 1;
}
[mol_number_inc] {
left: calc( 100% - .75rem );
}
[mol_number_dec] {
right: calc( 100% - .75rem );
}
[mol_number]:focus-within [mol_number_inc]:not([disabled]) ,
[mol_number]:focus-within [mol_number_dec]:not([disabled]) {
display: flex;
}
[mol_number_inc_icon] ,
[mol_number_dec_icon] {
display: block;
width: 1rem;
height: 1rem;
}