mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 02:04:29 -07:00
Rename LTR mixins
This commit is contained in:
@@ -136,32 +136,21 @@
|
||||
@if $rtl
|
||||
@content
|
||||
|
||||
// $directions: ("left": "right", "right": "left")
|
||||
|
||||
=directioner($property, $spacing, $right: true)
|
||||
=ltr-property($property, $spacing, $right: true)
|
||||
$normal: if($right, "right", "left")
|
||||
$opposite: if($right, "left", "right")
|
||||
@if $rtl
|
||||
/* RTL */
|
||||
#{$property}-#{$opposite}: $spacing
|
||||
@else
|
||||
/* LTR */
|
||||
#{$property}-#{$normal}: $spacing
|
||||
|
||||
=right($spacing)
|
||||
=ltr-position($spacing, $right: true)
|
||||
$normal: if($right, "right", "left")
|
||||
$opposite: if($right, "left", "right")
|
||||
@if $rtl
|
||||
left: $spacing
|
||||
#{$opposite}: $spacing
|
||||
@else
|
||||
right: $spacing
|
||||
|
||||
// =directioner($spacing)
|
||||
// @supports (margin-inline-end: 1px)
|
||||
// margin-inline-end: $spacing
|
||||
// @supports
|
||||
// @if $rtl
|
||||
// margin-left: $spacing
|
||||
// @else
|
||||
// margin-right: $spacing
|
||||
#{$normal}: $spacing
|
||||
|
||||
// Placeholders
|
||||
|
||||
|
||||
Reference in New Issue
Block a user