X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/a33deed26be2a6ba7131c6efbd7f77e842ee8647..refs/pull/494/head:/resources/assets/sass/_tables.scss diff --git a/resources/assets/sass/_tables.scss b/resources/assets/sass/_tables.scss index e6ec76b38..31ac92f60 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; } } @@ -33,4 +57,18 @@ table.list-table { vertical-align: middle; padding: $-xs; } +} + +.fake-table { + display: table; + width: 100%; + > div { + display: table-row-group; + } + > div > div { + display: table-row; + } + > div > div > div { + display: table-cell; + } } \ No newline at end of file