File tree Expand file tree Collapse file tree 11 files changed +23
-23
lines changed Expand file tree Collapse file tree 11 files changed +23
-23
lines changed Original file line number Diff line number Diff line change 10
10
box-sizing : border-box ;
11
11
12
12
@for $col from 1 through 12 {
13
- $width : ($col / 12 ) * 100% ;
13
+ $width : calc ($col / 12 ) * 100% ;
14
14
15
15
& -#{$col} {
16
16
@include flex (0 , 0 , $width );
Original file line number Diff line number Diff line change 5
5
width : $at-avatar-size-md ;
6
6
height : $at-avatar-size-md ;
7
7
color : $at-avatar-color ;
8
- font-size : $at-avatar-size-md / 2.5 ;
8
+ font-size : calc ( $at-avatar-size-md / 2.5 ) ;
9
9
line-height : $at-avatar-size-md ;
10
10
text-align : center ;
11
11
border-radius : $border-radius-md ;
23
23
& --large {
24
24
width : $at-avatar-size-lg ;
25
25
height : $at-avatar-size-lg ;
26
- font-size : $at-avatar-size-lg / 2.5 ;
26
+ font-size : calc ( $at-avatar-size-lg / 2.5 ) ;
27
27
line-height : $at-avatar-size-lg ;
28
28
}
29
29
30
30
& --small {
31
31
width : $at-avatar-size-sm ;
32
32
height : $at-avatar-size-sm ;
33
- font-size : $at-avatar-size-sm / 2.5 ;
33
+ font-size : calc ( $at-avatar-size-sm / 2.5 ) ;
34
34
line-height : $at-avatar-size-sm ;
35
35
}
36
36
Original file line number Diff line number Diff line change 84
84
}
85
85
86
86
& --circle {
87
- border-radius : $at-button-height / 2 ;
87
+ border-radius : calc ( $at-button-height / 2 ) ;
88
88
background-clip : border-box ;
89
89
overflow : hidden ;
90
90
}
99
99
line-height : $at-button-height-sm - 2 ;
100
100
101
101
& .at-button--circle {
102
- border-radius : $at-button-height-sm / 2 ;
102
+ border-radius : calc ( $at-button-height-sm / 2 ) ;
103
103
}
104
104
}
105
105
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ $at-curtain-btn-size: 56px;
36
36
position : absolute ;
37
37
width : $at-curtain-btn-size ;
38
38
height : $at-curtain-btn-size ;
39
- margin-left : - $at-curtain-btn-size / 2 ;
39
+ margin-left : calc ( - $at-curtain-btn-size / 2 ) ;
40
40
left : 50% ;
41
41
bottom : - ($at-curtain-btn-size + 24px );
42
42
align-items : center ;
@@ -68,8 +68,8 @@ $at-curtain-btn-size: 56px;
68
68
}
69
69
70
70
& --top {
71
- margin-left : - $at-curtain-btn-size / 2 ;
72
- top : - ($at-curtain-btn-size + 24px );
71
+ margin-left : calc ( - $at-curtain-btn-size / 2 ) ;
72
+ top : calc ( - ($at-curtain-btn-size + 24px ) );
73
73
left : 50% ;
74
74
bottom : auto ;
75
75
}
Original file line number Diff line number Diff line change 116
116
box-sizing : border-box ;
117
117
118
118
@for $col from 1 through 12 {
119
- $width : ( $col / 12 ) * 100% ;
119
+ $width : calc (( $col / 12 ) * 100% ) ;
120
120
121
121
& -#{$col} {
122
122
@include flex (0 , 0 , $width );
Original file line number Diff line number Diff line change 26
26
& -inner {
27
27
width : 100% ;
28
28
background-color : $at-progress-inner-bg-color ;
29
- border-radius : $at-progress-height / 2 ;
29
+ border-radius : calc ( $at-progress-height / 2 ) ;
30
30
vertical-align : middle ;
31
31
32
32
& -background {
33
33
position : relative ;
34
34
height : $at-progress-height ;
35
- border-radius : $at-progress-height / 2 ;
35
+ border-radius : calc ( $at-progress-height / 2 ) ;
36
36
background-color : $at-progress-bar-bg-color ;
37
37
transition : all 0.3s $ease-in-out-quad ;
38
38
overflow : hidden ;
62
62
right : 0 ;
63
63
bottom : 0 ;
64
64
background : $at-progress-bar-bg-color-active ;
65
- border-radius : $at-progress-height / 2 ;
65
+ border-radius : calc ( $at-progress-height / 2 ) ;
66
66
animation : progress- active 2s $ease-out-quad infinite ;
67
67
}
68
68
}
Original file line number Diff line number Diff line change 3
3
4
4
.at-range {
5
5
position : relative ;
6
- padding : 0 $at-range-slider-size / 2 + 4PX ;
6
+ padding : 0 calc ( $at-range-slider-size / 2 + 4PX ) ;
7
7
width : 100% ;
8
8
box-sizing : border-box ;
9
9
33
33
34
34
& __slider {
35
35
position : absolute ;
36
- margin-left : - $at-range-slider-size / 2 ;
36
+ margin-left : calc ( - $at-range-slider-size / 2 ) ;
37
37
width : $at-range-slider-size ;
38
38
height : $at-range-slider-size ;
39
39
border-radius : 50% ;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ $at-search-bar-placholder-color: $color-grey-2;
26
26
width : 100% ;
27
27
height : $at-search-bar-input-height ;
28
28
background-color : $at-search-bar-input-bg-color ;
29
- border-radius : $at-search-bar-input-height / 2 ;
29
+ border-radius : calc ( $at-search-bar-input-height / 2 ) ;
30
30
overflow : hidden ;
31
31
display : flex ;
32
32
}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ $at-tag-border-size: 1PX;
41
41
}
42
42
43
43
& --circle {
44
- border-radius : $at-tag-height / 2 ;
44
+ border-radius : calc ( $at-tag-height / 2 ) ;
45
45
background-clip : border-box ;
46
46
overflow : hidden ;
47
47
}
@@ -50,10 +50,10 @@ $at-tag-border-size: 1PX;
50
50
padding : 0 $spacing-h-md ;
51
51
height : $at-tag-height-sm ;
52
52
font-size : $at-tag-font-size-sm ;
53
- line-height : $at-tag-height-sm - 2px ;
53
+ line-height : calc ( $at-tag-height-sm - 2px ) ;
54
54
55
55
& .at-tag--circle {
56
- border-radius : $at-tag-height-sm / 2 ;
56
+ border-radius : calc ( $at-tag-height-sm / 2 ) ;
57
57
}
58
58
}
59
59
}
Original file line number Diff line number Diff line change 65
65
66
66
& __tail {
67
67
position : absolute ;
68
- top : $at-timeline-dot-size / 2 ;
69
- bottom : - $at-timeline-dot-size / 2 ;
70
- left : $at-timeline-dot-size / 2 - 2px ;
68
+ top : calc ( $at-timeline-dot-size / 2 ) ;
69
+ bottom : calc ( - $at-timeline-dot-size / 2 ) ;
70
+ left : calc ( $at-timeline-dot-size / 2 - 2px ) ;
71
71
border-left : 1PX solid $at-timeline-line-color ;
72
72
}
73
73
You can’t perform that action at this time.
0 commit comments