]> BookStack Code Mirror - bookstack/blobdiff - resources/assets/sass/_tables.scss
Merge branch 'master' into translations
[bookstack] / resources / assets / sass / _tables.scss
index 768eb18e60698210df90924b29688abb067c3222..21553b8394d01f76392132b1fbeb3b2c269bbeed 100644 (file)
@@ -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%;
@@ -8,6 +26,8 @@ table.table {
     text-align: left;
     border: none;
     padding: $-xs $-xs;
+    vertical-align: middle;
+    margin: 0;
   }
   th {
     font-weight: bold;
@@ -15,4 +35,36 @@ table.table {
   tr:hover {
     background-color: #EEE;
   }
+  .text-right {
+    text-align: right;
+  }
+  .text-center {
+    text-align: center;
+  }
+}
+
+table.no-style {
+  td {
+    border: 0;
+    padding: 0;
+  }
+}
+
+table.list-table {
+  margin: 0 -$-xs;
+  td {
+    border: 0;
+    vertical-align: middle;
+    padding: $-xs;
+  }
+}
+
+table.file-table {
+  @extend .no-style;
+  td {
+    padding: $-xs;
+  }
+  .ui-sortable-helper {
+    display: table;
+  }
 }
\ No newline at end of file