mirror of
https://github.com/jgthms/bulma
synced 2026-03-20 12:24:28 -07:00
Add directioner
This commit is contained in:
@@ -71,11 +71,11 @@ $button-static-border-color: $border !default
|
||||
height: 1.5em
|
||||
width: 1.5em
|
||||
&:first-child:not(:last-child)
|
||||
+margin-left(calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width}))
|
||||
+margin-right($button-padding-horizontal / 4)
|
||||
+directioner("margin", calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width}), false)
|
||||
+directioner("margin", $button-padding-horizontal / 4)
|
||||
&:last-child:not(:first-child)
|
||||
+margin-left($button-padding-horizontal / 4)
|
||||
+margin-right(calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width}))
|
||||
+directioner("margin", $button-padding-horizontal / 4, false)
|
||||
+directioner("margin", calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width}))
|
||||
&:first-child:last-child
|
||||
margin-left: calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width})
|
||||
margin-right: calc(#{-1 / 2 * $button-padding-horizontal} - #{$button-border-width})
|
||||
@@ -269,7 +269,7 @@ $button-static-border-color: $border !default
|
||||
.button
|
||||
margin-bottom: 0.5rem
|
||||
&:not(:last-child):not(.is-fullwidth)
|
||||
+margin-right(0.5rem)
|
||||
+directioner("margin", 0.5rem)
|
||||
&:last-child
|
||||
margin-bottom: -0.5rem
|
||||
&:not(:last-child)
|
||||
|
||||
@@ -67,11 +67,11 @@ $content-table-foot-cell-color: $text-strong !default
|
||||
margin-bottom: 1em
|
||||
blockquote
|
||||
background-color: $content-blockquote-background-color
|
||||
+border-left($content-blockquote-border-left)
|
||||
+directioner("border", $content-blockquote-border-left, false)
|
||||
padding: $content-blockquote-padding
|
||||
ol
|
||||
list-style-position: outside
|
||||
+margin-left(2em)
|
||||
+directioner("margin", 2em, false)
|
||||
margin-top: 1em
|
||||
&:not([type])
|
||||
list-style-type: decimal
|
||||
@@ -85,7 +85,7 @@ $content-table-foot-cell-color: $text-strong !default
|
||||
list-style-type: upper-roman
|
||||
ul
|
||||
list-style: disc outside
|
||||
+margin-left(2em)
|
||||
+directioner("margin", 2em, false)
|
||||
margin-top: 1em
|
||||
ul
|
||||
list-style-type: circle
|
||||
@@ -93,7 +93,7 @@ $content-table-foot-cell-color: $text-strong !default
|
||||
ul
|
||||
list-style-type: square
|
||||
dd
|
||||
+margin-left(2em)
|
||||
+directioner("margin", 2em, false)
|
||||
figure
|
||||
margin-left: 2em
|
||||
margin-right: 2em
|
||||
|
||||
Reference in New Issue
Block a user