Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #70 from TurkeyFried/slashdeprecation
Browse files Browse the repository at this point in the history
Update sass division to use Math.div instead of a slash.
  • Loading branch information
Wikiki authored Jan 15, 2022
2 parents 9d2ba76 + a0e95c4 commit 458f0a0
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions dist/css/bulma-timeline.sass
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "sass:math"

$timeline-marker-size: .8em !default
$timeline-marker-color: $grey-lighter !default
$timeline-marker-icon-size: 1.5em !default
Expand All @@ -11,7 +13,7 @@ $timeline-content-padding: 1em 0 0 2em !default
$timeline-rtl-content-padding: 1em 2em 0 0 !default
$timeline-icon-size: $size-small !default
$timeline-header-width: 4em !default
$timeline-item-padding-left: $timeline-header-width / 2 !default
$timeline-item-padding-left: math.div($timeline-header-width, 2) !default
$timeline-item-padding-bottom: 2em !default
$dimensions: 16 24 32 48 64 96 128 !default

Expand Down Expand Up @@ -51,15 +53,15 @@ $dimensions: 16 24 32 48 64 96 128 !default
content: ""
display: block
height: $timeline-marker-size
left: -(($timeline-marker-size / 2) - $timeline-marker-border-size / 2)
left: -(math.div($timeline-marker-size, 2) - math.div($timeline-marker-border-size, 2))
top: 1.2rem
width: $timeline-marker-size
&.is-image
@each $dimension in $dimensions
&.is-#{$dimension}x#{$dimension}
height: $dimension * 1px
width: $dimension * 1px
left: ( $dimension / 2 ) * -1px
left: math.div($dimension, 2) * -1px
background: $timeline-marker-color
border: $timeline-marker-border
border-radius: 100%
Expand All @@ -71,9 +73,8 @@ $dimensions: 16 24 32 48 64 96 128 !default
justify-content: center
height: $timeline-marker-icon-size
width: $timeline-marker-icon-size
left: -(($timeline-marker-icon-size / 2) - $timeline-marker-border-size / 2)
left: -(math.div($timeline-marker-icon-size, 2) - math.div($timeline-marker-border-size, 2))
line-height: .75rem
// padding: $timeline-icon-size / 3
background: $timeline-marker-color
border: $timeline-marker-border
border-radius: 100%
Expand Down Expand Up @@ -134,21 +135,21 @@ $dimensions: 16 24 32 48 64 96 128 !default
&:nth-of-type(2n)
align-self: flex-start
margin-left: 0
margin-right: $timeline-header-width / 2
margin-right: math.div($timeline-header-width, 2)
&::before
right: -$timeline-line-width
left: auto
.timeline-marker
left: auto
right: -(($timeline-marker-size / 2) - $timeline-marker-border-size / 2) - $timeline-line-width
right: -(math.div($timeline-marker-size, 2) - math.div($timeline-marker-border-size, 2)) - $timeline-line-width
&.is-image
@each $dimension in $dimensions
&.is-#{$dimension}x#{$dimension}
left: auto
right: ( $dimension / 2 ) * -1px
right: math.div($dimension, 2) * -1px
&.is-icon
left: auto
right: -(($timeline-marker-icon-size / 2) - $timeline-marker-border-size / 2) - $timeline-line-width
right: -(math.div($timeline-marker-icon-size, 2) - math.div($timeline-marker-border-size, 2)) - $timeline-line-width
.timeline-content
padding: $timeline-rtl-content-padding
text-align: right
Expand Down Expand Up @@ -182,18 +183,18 @@ $dimensions: 16 24 32 48 64 96 128 !default
right: 0
left: auto
margin-left: 0
margin-right: $timeline-header-width / 2
margin-right: math.div($timeline-header-width, 2)
.timeline-marker
left: auto
right: -(($timeline-marker-size / 2) - $timeline-marker-border-size / 2)
right: -(math.div($timeline-marker-size, 2) - math.div($timeline-marker-border-size, 2))
&.is-image
@each $dimension in $dimensions
&.is-#{$dimension}x#{$dimension}
left: auto
right: ( $dimension / 2 ) * -1px
right: math.div($dimension, 2) * -1px
&.is-icon
left: auto
right: -(($timeline-marker-icon-size / 2) - $timeline-marker-border-size / 2)
right: -(math.div($timeline-marker-icon-size, 2) - math.div($timeline-marker-border-size, 2))
.timeline-content
padding: $timeline-rtl-content-padding
text-align: right
Expand Down

0 comments on commit 458f0a0

Please sign in to comment.