mirror of
https://github.com/jgthms/bulma
synced 2026-03-22 21:14:30 -07:00
Rename LTR mixins
This commit is contained in:
@@ -24,7 +24,7 @@ $breadcrumb-item-separator-color: $border-hover !default
|
||||
align-items: center
|
||||
display: flex
|
||||
&:first-child a
|
||||
+directioner("padding", 0, false)
|
||||
+ltr-property("padding", 0, false)
|
||||
&.is-active
|
||||
a
|
||||
color: $breadcrumb-item-active-color
|
||||
@@ -41,9 +41,9 @@ $breadcrumb-item-separator-color: $border-hover !default
|
||||
justify-content: flex-start
|
||||
.icon
|
||||
&:first-child
|
||||
+directioner("margin", 0.5em)
|
||||
+ltr-property("margin", 0.5em)
|
||||
&:last-child
|
||||
+directioner("margin", 0.5em, false)
|
||||
+ltr-property("margin", 0.5em, false)
|
||||
// Alignment
|
||||
&.is-centered
|
||||
ol,
|
||||
|
||||
@@ -70,7 +70,7 @@ $card-media-margin: $block-spacing !default
|
||||
justify-content: center
|
||||
padding: $card-footer-padding
|
||||
&:not(:last-child)
|
||||
border-right: $card-footer-border-top
|
||||
+ltr-property("border", $card-footer-border-top)
|
||||
|
||||
// Combinations
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ $dropdown-divider-background-color: $border-light !default
|
||||
|
||||
.dropdown-menu
|
||||
display: none
|
||||
left: 0
|
||||
+ltr-position(0, false)
|
||||
min-width: $dropdown-menu-min-width
|
||||
padding-top: $dropdown-content-offset
|
||||
position: absolute
|
||||
@@ -62,7 +62,7 @@ $dropdown-divider-background-color: $border-light !default
|
||||
|
||||
a.dropdown-item,
|
||||
button.dropdown-item
|
||||
+directioner("padding", 3rem)
|
||||
+ltr-property("padding", 3rem)
|
||||
text-align: inherit
|
||||
white-space: nowrap
|
||||
width: 100%
|
||||
|
||||
@@ -20,7 +20,7 @@ $level-item-spacing: ($block-spacing / 2) !default
|
||||
.level-item
|
||||
&:not(:last-child)
|
||||
margin-bottom: 0
|
||||
+directioner("margin", $level-item-spacing)
|
||||
+ltr-property("margin", $level-item-spacing)
|
||||
&:not(.is-narrow)
|
||||
flex-grow: 1
|
||||
// Responsiveness
|
||||
@@ -57,7 +57,7 @@ $level-item-spacing: ($block-spacing / 2) !default
|
||||
// Responsiveness
|
||||
+tablet
|
||||
&:not(:last-child)
|
||||
+directioner("margin", $level-item-spacing)
|
||||
+ltr-property("margin", $level-item-spacing)
|
||||
|
||||
.level-left
|
||||
align-items: center
|
||||
|
||||
@@ -35,6 +35,12 @@ $media-spacing-large: 1.5rem
|
||||
flex-grow: 0
|
||||
flex-shrink: 0
|
||||
|
||||
.media-left
|
||||
+ltr-property("margin", $media-spacing)
|
||||
|
||||
.media-right
|
||||
+ltr-property("margin", $media-spacing, false)
|
||||
|
||||
.media-content
|
||||
flex-basis: auto
|
||||
flex-grow: 1
|
||||
@@ -44,15 +50,3 @@ $media-spacing-large: 1.5rem
|
||||
+mobile
|
||||
.media-content
|
||||
overflow-x: auto
|
||||
|
||||
+ltr
|
||||
.media-left
|
||||
margin-right: $media-spacing
|
||||
.media-right
|
||||
margin-left: $media-spacing
|
||||
|
||||
+rtl
|
||||
.media-left
|
||||
margin-left: $media-spacing
|
||||
.media-right
|
||||
margin-right: $media-spacing
|
||||
|
||||
@@ -42,9 +42,9 @@ $menu-label-spacing: 1em !default
|
||||
color: $menu-item-active-color
|
||||
li
|
||||
ul
|
||||
border-left: $menu-list-border-left
|
||||
+ltr-property("border", $menu-list-border-left, false)
|
||||
margin: $menu-nested-list-margin
|
||||
padding-left: $menu-nested-list-padding-left
|
||||
+ltr-property("padding", $menu-nested-list-padding-left, false)
|
||||
|
||||
.menu-label
|
||||
color: $menu-label-color
|
||||
|
||||
@@ -79,7 +79,7 @@ $message-colors: $colors !default
|
||||
.delete
|
||||
flex-grow: 0
|
||||
flex-shrink: 0
|
||||
+directioner("margin", 0.75em, false)
|
||||
+ltr-property("margin", 0.75em, false)
|
||||
& + .message-body
|
||||
border-width: $message-header-body-border-width
|
||||
border-top-left-radius: 0
|
||||
|
||||
@@ -63,7 +63,7 @@ $modal-card-body-padding: 20px !default
|
||||
background: none
|
||||
height: $modal-close-dimensions
|
||||
position: fixed
|
||||
right: $modal-close-right
|
||||
+ltr-position($modal-close-right)
|
||||
top: $modal-close-top
|
||||
width: $modal-close-dimensions
|
||||
|
||||
@@ -102,7 +102,7 @@ $modal-card-body-padding: 20px !default
|
||||
border-top: $modal-card-foot-border-top
|
||||
.button
|
||||
&:not(:last-child)
|
||||
margin-right: 0.5em
|
||||
+ltr-property("margin", 0.5em)
|
||||
|
||||
.modal-card-body
|
||||
+overflow-touch
|
||||
|
||||
@@ -88,7 +88,7 @@ $panel-colors: $colors !default
|
||||
justify-content: flex-start
|
||||
padding: 0.5em 0.75em
|
||||
input[type="checkbox"]
|
||||
+directioner("margin", 0.75em)
|
||||
+ltr-property("margin", 0.75em)
|
||||
& > .control
|
||||
flex-grow: 1
|
||||
flex-shrink: 1
|
||||
@@ -113,7 +113,7 @@ label.panel-block
|
||||
.panel-icon
|
||||
+fa(14px, 1em)
|
||||
color: $panel-icon-color
|
||||
+directioner("margin", 0.75em)
|
||||
+ltr-property("margin", 0.75em)
|
||||
.fa
|
||||
font-size: inherit
|
||||
line-height: inherit
|
||||
|
||||
@@ -78,9 +78,9 @@ $tabs-toggle-link-active-color: $link-invert !default
|
||||
padding-left: 0.75em
|
||||
.icon
|
||||
&:first-child
|
||||
+directioner("margin", 0.5em)
|
||||
+ltr-property("margin", 0.5em)
|
||||
&:last-child
|
||||
+directioner("margin", 0.5em, false)
|
||||
+ltr-property("margin", 0.5em, false)
|
||||
// Alignment
|
||||
&.is-centered
|
||||
ul
|
||||
@@ -122,7 +122,7 @@ $tabs-toggle-link-active-color: $link-invert !default
|
||||
z-index: 2
|
||||
li
|
||||
& + li
|
||||
+directioner("margin", -#{$tabs-toggle-link-border-width}, false)
|
||||
+ltr-property("margin", -#{$tabs-toggle-link-border-width}, false)
|
||||
&:first-child a
|
||||
+ltr
|
||||
border-radius: $tabs-toggle-link-radius 0 0 $tabs-toggle-link-radius
|
||||
|
||||
Reference in New Issue
Block a user