X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/043cdeafb3773288fd7d07ac3dbdbf989ef94bb8..refs/pull/806/head:/resources/assets/sass/_tables.scss diff --git a/resources/assets/sass/_tables.scss b/resources/assets/sass/_tables.scss index e6ec76b38..38b044268 100644 --- a/resources/assets/sass/_tables.scss +++ b/resources/assets/sass/_tables.scss @@ -1,3 +1,21 @@ +table { + min-width: 100px; + max-width: 100%; + thead { + background-color: #F8F8F8; + font-weight: 500; + } + td, th { + min-width: 10px; + padding: 6px 8px; + border: 1px solid #DDD; + overflow: auto; + line-height: 1.2; + } + td p, th p { + margin: 0; + } +} table.table { width: 100%; @@ -9,6 +27,7 @@ table.table { border: none; padding: $-xs $-xs; vertical-align: middle; + margin: 0; } th { font-weight: bold; @@ -16,13 +35,18 @@ table.table { tr:hover { background-color: #EEE; } + .text-right { + text-align: right; + } + .text-center { + text-align: center; + } } -table { - max-width: 100%; - thead { - background-color: #F8F8F8; - font-weight: 500; +table.no-style { + td { + border: 0; + padding: 0; } }