X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/a6633642232efd164d4708967ab59e498fbff896..refs/pull/5280/head:/resources/sass/_tables.scss diff --git a/resources/sass/_tables.scss b/resources/sass/_tables.scss index 315f979f3..a3da33621 100644 --- a/resources/sass/_tables.scss +++ b/resources/sass/_tables.scss @@ -11,6 +11,8 @@ table { border: 1px solid #DDD; 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; @@ -34,7 +36,7 @@ table.table { font-weight: bold; } tr:hover { - @include lightDark(background-color, #eee, #333); + @include lightDark(background-color, #F2F2F2, #333); } .text-right { text-align: end; @@ -48,6 +50,12 @@ table.table { a { display: inline-block; } + &.expand-to-padding { + margin-left: -$-s; + margin-right: -$-s; + width: calc(100% + (2*#{$-s})); + max-width: calc(100% + (2*#{$-s})); + } } table.no-style { @@ -58,7 +66,7 @@ table.no-style { } table.list-table { - margin: 0 -$-xs; + margin: 0 (-$-xs); td { border: 0; vertical-align: middle;