mirror of
https://github.com/jgthms/bulma
synced 2026-03-20 04:14:29 -07:00
Add directioner
This commit is contained in:
@@ -24,7 +24,7 @@ $breadcrumb-item-separator-color: $border-hover !default
|
||||
align-items: center
|
||||
display: flex
|
||||
&:first-child a
|
||||
padding-left: 0
|
||||
+directioner("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
|
||||
margin-right: 0.5em
|
||||
+directioner("margin", 0.5em)
|
||||
&:last-child
|
||||
margin-left: 0.5em
|
||||
+directioner("margin", 0.5em, false)
|
||||
// Alignment
|
||||
&.is-centered
|
||||
ol,
|
||||
|
||||
@@ -62,7 +62,7 @@ $dropdown-divider-background-color: $border-light !default
|
||||
|
||||
a.dropdown-item,
|
||||
button.dropdown-item
|
||||
padding-right: 3rem
|
||||
+directioner("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
|
||||
margin-right: $level-item-spacing
|
||||
+directioner("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)
|
||||
margin-right: $level-item-spacing
|
||||
+directioner("margin", $level-item-spacing)
|
||||
|
||||
.level-left
|
||||
align-items: center
|
||||
|
||||
@@ -79,7 +79,7 @@ $message-colors: $colors !default
|
||||
.delete
|
||||
flex-grow: 0
|
||||
flex-shrink: 0
|
||||
+margin-left(0.75em)
|
||||
+directioner("margin", 0.75em, false)
|
||||
& + .message-body
|
||||
border-width: $message-header-body-border-width
|
||||
border-top-left-radius: 0
|
||||
|
||||
@@ -88,7 +88,7 @@ $panel-colors: $colors !default
|
||||
justify-content: flex-start
|
||||
padding: 0.5em 0.75em
|
||||
input[type="checkbox"]
|
||||
+margin-right(0.75em)
|
||||
+directioner("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
|
||||
+margin-right(0.75em)
|
||||
+directioner("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
|
||||
+margin-right(0.5em)
|
||||
+directioner("margin", 0.5em)
|
||||
&:last-child
|
||||
+margin-left(0.5em)
|
||||
+directioner("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
|
||||
margin-left: -#{$tabs-toggle-link-border-width}
|
||||
+directioner("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