Add directioner

This commit is contained in:
Jeremy Thomas
2020-01-21 08:50:51 +01:00
parent f5545ac723
commit 0ca264016b
10 changed files with 32 additions and 52 deletions

View File

@@ -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)

View File

@@ -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