Closed vadimkantorov closed 9 months ago
Are they the same thing? Would be grateful for any hints :)
$spacing-unit * .5: https://github.com/jekyll/minima/blob/21b4274ec3c3fbd0b6c7f55bf72bc8b724aeeacb/_sass/minima/_layout.scss#L151
$spacing-unit * .5
width: calc(50% - (#{$spacing-unit} / 2)): https://github.com/jekyll/minima/blob/21b4274ec3c3fbd0b6c7f55bf72bc8b724aeeacb/_sass/minima/_layout.scss#L156
width: calc(50% - (#{$spacing-unit} / 2))
If not, what is the reason for the syntax width: calc(50% - (#{$spacing-unit} / 2))? could it not be width: calc(50% - ($spacing-unit * .5)); or width: calc(50% - (#{$spacing-unit} * 0.5))
width: calc(50% - ($spacing-unit * .5));
width: calc(50% - (#{$spacing-unit} * 0.5))
Thanks :)
* .5, * 0.5 and /2 are the same
* .5
* 0.5
/2
thank you for the explanation! :)
Are they the same thing? Would be grateful for any hints :)
$spacing-unit * .5
: https://github.com/jekyll/minima/blob/21b4274ec3c3fbd0b6c7f55bf72bc8b724aeeacb/_sass/minima/_layout.scss#L151width: calc(50% - (#{$spacing-unit} / 2))
: https://github.com/jekyll/minima/blob/21b4274ec3c3fbd0b6c7f55bf72bc8b724aeeacb/_sass/minima/_layout.scss#L156If not, what is the reason for the syntax
width: calc(50% - (#{$spacing-unit} / 2))
? could it not bewidth: calc(50% - ($spacing-unit * .5));
orwidth: calc(50% - (#{$spacing-unit} * 0.5))
Thanks :)