]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Add missing variables for content customization
authorMolkobain <lajarige.guillaume@free.fr>
Sat, 11 Dec 2021 17:09:02 +0000 (18:09 +0100)
committerJeremy Thomas <bbxdesign@gmail.com>
Tue, 4 Jan 2022 10:59:36 +0000 (11:59 +0100)
This introduces 2 variables to customize some parts of the "content":
  * `$content-block-margin-bottom`: To customize bottom margin of "block" elements (especially tables in our case)
  * `$content-table-body-last-row-cell-border-bottom-width`: To customize the size of the bottom border of the body last row cells

sass/elements/content.sass

index 7a734d32174b9e72bb6dd31dd7129c7315b3e7ae..3f709ad79842cb9bae564b69d01a54e39f23c315 100644 (file)
@@ -4,6 +4,8 @@ $content-heading-color: $text-strong !default
 $content-heading-weight: $weight-semibold !default
 $content-heading-line-height: 1.125 !default
 
+$content-block-margin-bottom: 1em !default
+
 $content-blockquote-background-color: $background !default
 $content-blockquote-border-left: 5px solid $border !default
 $content-blockquote-padding: 1.25em 1.5em !default
@@ -16,6 +18,7 @@ $content-table-cell-padding: 0.5em 0.75em !default
 $content-table-cell-heading-color: $text-strong !default
 $content-table-head-cell-border-width: 0 0 2px !default
 $content-table-head-cell-color: $text-strong !default
+$content-table-body-last-row-cell-border-bottom-width: 0 !default
 $content-table-foot-cell-border-width: 2px 0 0 !default
 $content-table-foot-cell-color: $text-strong !default
 
@@ -33,7 +36,7 @@ $content-table-foot-cell-color: $text-strong !default
   pre,
   table
     &:not(:last-child)
-      margin-bottom: 1em
+      margin-bottom: $content-block-margin-bottom
   h1,
   h2,
   h3,
@@ -144,7 +147,7 @@ $content-table-foot-cell-color: $text-strong !default
         &:last-child
           td,
           th
-            border-bottom-width: 0
+            border-bottom-width: $content-table-body-last-row-cell-border-bottom-width
   .tabs
     li + li
       margin-top: 0