X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/58fa7679bccafd00f9a50bcd4a87e96876331b03..refs/pull/5676/head:/resources/sass/_tables.scss diff --git a/resources/sass/_tables.scss b/resources/sass/_tables.scss index c78e13446..16be32fb3 100644 --- a/resources/sass/_tables.scss +++ b/resources/sass/_tables.scss @@ -1,8 +1,11 @@ +@use "mixins"; +@use "vars"; + table { min-width: 100px; max-width: 100%; thead { - @include lightDark(background-color, #f8f8f8, #333); + @include mixins.lightDark(background-color, #f8f8f8, #333); font-weight: 500; } td, th { @@ -12,6 +15,7 @@ table { overflow: auto; line-height: 1.2; word-break: break-word; + vertical-align: top; // Workaround for: https://bugzilla.mozilla.org/show_bug.cgi?id=569645 } td p, th p { margin: 0; @@ -26,7 +30,7 @@ table.table { th, td { text-align: start; border: none; - padding: $-s $-s; + padding: vars.$s vars.$s; vertical-align: middle; margin: 0; overflow: visible; @@ -35,7 +39,7 @@ table.table { font-weight: bold; } tr:hover { - @include lightDark(background-color, #eee, #333); + @include mixins.lightDark(background-color, #F2F2F2, #333); } .text-right { text-align: end; @@ -49,6 +53,12 @@ table.table { a { display: inline-block; } + &.expand-to-padding { + margin-left: -(vars.$s); + margin-right: -(vars.$s); + width: calc(100% + (2*#{vars.$s})); + max-width: calc(100% + (2*#{vars.$s})); + } } table.no-style { @@ -59,10 +69,10 @@ table.no-style { } table.list-table { - margin: 0 -$-xs; + margin: 0 (-(vars.$xs)); td { border: 0; vertical-align: middle; - padding: $-xs; + padding: vars.$xs; } } \ No newline at end of file