Skip to content

Commit 6f53634

Browse files
authored
Merge pull request #52 from mofe23/master
Replace /2 with *0.5. Fixes #46
2 parents b6c500b + b78ef87 commit 6f53634

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

index.sass

+26-26
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,13 @@ $steps-thin-marker-size: .8em !default
137137
.steps-segment:not(:last-child):after
138138
// top and bottom position is almost touching the inner side of a hollow border marker
139139
bottom: -$steps-gap-size * 0.8
140-
left: calc(#{$size * ($steps-marker-size / 2)} - (#{$steps-divider-size / 2}))
140+
left: calc(#{$size * ($steps-marker-size * 0.5)} - (#{$steps-divider-size * 0.5}))
141141
top: ($size * $steps-marker-size) - ($steps-gap-size * 0.8)
142142
width: $steps-divider-size
143143

144144
// Align the content with the marker
145145
.steps-content
146-
margin-left: calc(#{$size * $steps-marker-size / 2} + .5em)
146+
margin-left: calc(#{$size * $steps-marker-size * 0.5} + .5em)
147147
margin-top: -$size * $steps-marker-size
148148
padding-left: 1em
149149
padding-bottom: 1em
@@ -154,7 +154,7 @@ $steps-thin-marker-size: .8em !default
154154

155155
&.has-content-centered
156156
.steps-content
157-
padding-top: calc(#{$size * $steps-marker-size / 2} - .5em)
157+
padding-top: calc(#{$size * $steps-marker-size * 0.5} - .5em)
158158

159159
&:not(.is-thin)
160160
&.has-gaps .steps-segment, .steps-segment.has-gaps
@@ -171,36 +171,36 @@ $steps-thin-marker-size: .8em !default
171171
// top and bottom position is almost touching the inner side of a hollow border marker
172172
left: ($size * $steps-marker-size) - ($steps-gap-size * 0.8)
173173
right: -$steps-gap-size * 0.8
174-
top: calc(#{$size * ($steps-marker-size / 2)} - (#{$steps-divider-size / 2}))
174+
top: calc(#{$size * ($steps-marker-size * 0.5)} - (#{$steps-divider-size * 0.5}))
175175

176176
&.has-content-above .steps-segment:not(:last-child)::after
177-
bottom: calc(#{$size * $steps-marker-size / 2} - (#{$steps-divider-size / 2}))
177+
bottom: calc(#{$size * $steps-marker-size * 0.5} - (#{$steps-divider-size * 0.5}))
178178
top: auto
179179

180180
// extra data
181181
.extra-data
182-
left: calc(50% + #{($size * $steps-marker-size / 2) + $steps-gap-size})
183-
right: calc(-50% + #{($size * $steps-marker-size / 2) + $steps-gap-size})
182+
left: calc(50% + #{($size * $steps-marker-size * 0.5) + $steps-gap-size})
183+
right: calc(-50% + #{($size * $steps-marker-size * 0.5) + $steps-gap-size})
184184
bottom: 100%
185185
position: absolute
186186

187187
&.has-overflow-right
188188
overflow: visible
189189
right: auto
190190
white-space: nowrap
191-
min-width: calc(100% - #{$size * $steps-marker-size / 2} - (#{$steps-divider-size / 2}))
191+
min-width: calc(100% - #{$size * $steps-marker-size * 0.5} - (#{$steps-divider-size * 0.5}))
192192

193193
&.has-overflow-left
194194
overflow: visible
195195
left: auto
196196
white-space: nowrap
197-
min-width: calc(100% - #{$size * $steps-marker-size / 2} - (#{$steps-divider-size / 2}))
197+
min-width: calc(100% - #{$size * $steps-marker-size * 0.5} - (#{$steps-divider-size * 0.5}))
198198

199199
&.has-overflow-centered
200200
overflow: visible
201201
left: auto
202202
white-space: nowrap
203-
min-width: calc(100% - #{$size * $steps-marker-size / 2} - (#{$steps-divider-size / 2}))
203+
min-width: calc(100% - #{$size * $steps-marker-size * 0.5} - (#{$steps-divider-size * 0.5}))
204204

205205
&.has-content-above .extra-data
206206
top: 100%
@@ -209,12 +209,12 @@ $steps-thin-marker-size: .8em !default
209209

210210
// Align the content with the marker
211211
.steps-content
212-
margin-left: $size * $steps-marker-size / 2
212+
margin-left: $size * $steps-marker-size * 0.5
213213
&:not(:last-child)
214-
margin-right: -$size * $steps-marker-size / 2
214+
margin-right: -$size * $steps-marker-size * 0.5
215215

216216
&.is-divider-content
217-
margin-right: -$size * $steps-marker-size / 2
217+
margin-right: -$size * $steps-marker-size * 0.5
218218
padding-left: 2em
219219
padding-right: 2em
220220

@@ -224,7 +224,7 @@ $steps-thin-marker-size: .8em !default
224224
right: -50%
225225
.steps-marker
226226
position: absolute
227-
left: calc(50% - #{$size * $steps-marker-size / 2})
227+
left: calc(50% - #{$size * $steps-marker-size * 0.5})
228228
.steps-content
229229
margin-top: $size * $steps-marker-size
230230
margin-left: .5em
@@ -244,8 +244,8 @@ $steps-thin-marker-size: .8em !default
244244
&.has-content-centered
245245
&.has-gaps .steps-segment, .steps-segment.has-gaps
246246
&:not(:last-child):after
247-
left: calc(50% + #{($size * $steps-marker-size / 2) + $steps-gap-size})
248-
right: calc(-50% + #{($size * $steps-marker-size / 2) + $steps-gap-size})
247+
left: calc(50% + #{($size * $steps-marker-size * 0.5) + $steps-gap-size})
248+
right: calc(-50% + #{($size * $steps-marker-size * 0.5) + $steps-gap-size})
249249

250250
.steps
251251
+steps-size($size-normal)
@@ -362,7 +362,7 @@ $steps-thin-marker-size: .8em !default
362362
.steps-segment
363363
&:not(:last-child):after
364364
bottom: 0
365-
left: calc(#{$steps-thin-marker-size / 2} - #{$steps-thin-divider-size / 2})
365+
left: calc(#{$steps-thin-marker-size * 0.5} - #{$steps-thin-divider-size * 0.5})
366366
top: $steps-thin-marker-size
367367
width: $steps-thin-divider-size
368368

@@ -372,7 +372,7 @@ $steps-thin-marker-size: .8em !default
372372

373373
&.has-gaps .steps-segment, .steps-segment.has-gaps
374374
&:not(:last-child):after
375-
bottom: $steps-thin-marker-size / 2
375+
bottom: $steps-thin-marker-size * 0.5
376376
top: $steps-thin-marker-size * 1.5
377377

378378
&.has-content-centered
@@ -384,32 +384,32 @@ $steps-thin-marker-size: .8em !default
384384
&:not(:last-child):after
385385
left: $steps-thin-marker-size
386386
right: 0
387-
top: calc(#{$steps-thin-marker-size / 2} - #{$steps-thin-divider-size / 2})
387+
top: calc(#{$steps-thin-marker-size * 0.5} - #{$steps-thin-divider-size * 0.5})
388388
height: $steps-thin-divider-size
389389
&.has-content-above .steps-segment:not(:last-child)::after
390-
bottom: calc(#{$steps-thin-marker-size / 2} - #{$steps-thin-divider-size / 2})
390+
bottom: calc(#{$steps-thin-marker-size * 0.5} - #{$steps-thin-divider-size * 0.5})
391391
top: auto
392392
.steps-content
393393
margin-top: $steps-thin-marker-size
394394

395395
&.has-content-centered
396396
.steps-segment
397397
&:not(:last-child):after
398-
left: calc(50% + #{$steps-thin-marker-size / 2})
399-
right: calc(-50% + #{$steps-thin-marker-size / 2})
398+
left: calc(50% + #{$steps-thin-marker-size * 0.5})
399+
right: calc(-50% + #{$steps-thin-marker-size * 0.5})
400400
.steps-marker
401401
position: absolute
402-
left: calc(50% - #{$steps-thin-marker-size / 2})
402+
left: calc(50% - #{$steps-thin-marker-size * 0.5})
403403

404404
&.has-gaps .steps-segment, .steps-segment.has-gaps
405405
&:not(:last-child):after
406406
left: $steps-thin-marker-size * 1.5
407-
right: $steps-thin-marker-size / 2
407+
right: $steps-thin-marker-size * 0.5
408408

409409
&.has-content-centered.has-gaps .steps-segment, &.has-content-centered .steps-segment.has-gaps
410410
&:not(:last-child):after
411-
left: calc(50% + #{($steps-thin-marker-size / 2) + ($steps-thin-marker-size / 2)})
412-
right: calc(-50% + #{($steps-thin-marker-size / 2) + ($steps-thin-marker-size / 2)})
411+
left: calc(50% + #{($steps-thin-marker-size * 0.5) + ($steps-thin-marker-size * 0.5)})
412+
right: calc(-50% + #{($steps-thin-marker-size * 0.5) + ($steps-thin-marker-size * 0.5)})
413413

414414

415415
//.has-content-above

0 commit comments

Comments
 (0)