-
Notifications
You must be signed in to change notification settings - Fork 4.3k
/
Copy pathstyle.scss
64 lines (53 loc) · 1.33 KB
/
style.scss
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
.spacing-sizes-control {
.spacing-sizes-control__custom-value-input,
.spacing-sizes-control__label {
margin-bottom: 0;
}
.is-marked {
.components-range-control__track {
transition: width ease 0.1s;
@include reduce-motion("transition");
}
.components-range-control__thumb-wrapper {
transition: left ease 0.1s;
@include reduce-motion("transition");
}
}
.spacing-sizes-control__range-control,
.spacing-sizes-control__custom-value-range {
flex: 1;
margin-bottom: 0; // Needed for some instances of the range control, such as the Spacer block.
}
.components-range-control__mark {
transform: translateX(-50%);
height: $grid-unit-05;
width: math.div($grid-unit-05, 2);
background-color: $white;
z-index: 1;
top: -#{$grid-unit-05};
}
.components-range-control__marks {
margin-top: 17px;
}
.components-range-control__thumb-wrapper {
z-index: 3;
}
}
.spacing-sizes-control__header {
height: $grid-unit-20;
margin-bottom: $grid-unit-15;
}
.spacing-sizes-control__dropdown {
height: $grid-unit-30;
}
.spacing-sizes-control__custom-select-control,
.spacing-sizes-control__custom-value-input {
flex: 1;
}
.spacing-sizes-control__icon,
.spacing-sizes-control__custom-toggle {
flex: 0 0 auto;
}
.spacing-sizes-control__icon {
margin-left: $grid-unit-05 * -1; // Aligns the icon to the control header.
}