]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Center table cell content vertically
authorDan Gowans <dangowans@users.noreply.github.com>
Fri, 24 Apr 2020 17:50:39 +0000 (13:50 -0400)
committerJeremy Thomas <bbxdesign@gmail.com>
Sun, 17 May 2020 11:39:02 +0000 (12:39 +0100)
Adding .is-vcentered as an option for td and th elements that are part of a .table.

sass/elements/table.sass

index 2e6036ad3869f21c3858f2f51ea043c53acaaf13..85380add235766f9e9b29d67ae5ac6364cc032ea 100644 (file)
@@ -51,6 +51,8 @@ $table-striped-row-even-hover-background-color: $scheme-main-ter !default
       a,
       strong
         color: currentColor
+    &.is-vcentered
+      vertical-align: middle
   th
     color: $table-cell-heading-color
     &:not([align])