]> BookStack Code Mirror - bookstack/blob - resources/assets/sass/_tables.scss
Updated version for v0.15.3
[bookstack] / resources / assets / sass / _tables.scss
1 table {
2   min-width: 100px;
3   max-width: 100%;
4   thead {
5     background-color: #F8F8F8;
6     font-weight: 500;
7   }
8   td, th {
9     min-width: 10px;
10     padding: 6px 8px;
11     border: 1px solid #DDD;
12     overflow: auto;
13     line-height: 1.2;
14   }
15   td p, th p {
16     margin: 0;
17   }
18 }
19
20 table.table {
21   width: 100%;
22   tr {
23     border-bottom: 1px solid #DDD;
24   }
25   th, td {
26     text-align: left;
27     border: none;
28     padding: $-xs $-xs;
29     vertical-align: middle;
30     margin: 0;
31   }
32   th {
33     font-weight: bold;
34   }
35   tr:hover {
36     background-color: #EEE;
37   }
38   .text-right {
39     text-align: right;
40   }
41   .text-center {
42     text-align: center;
43   }
44 }
45
46 table.no-style {
47   td {
48     border: 0;
49     padding: 0;
50   }
51 }
52
53 table.list-table {
54   margin: 0 -$-xs;
55   td {
56     border: 0;
57     vertical-align: middle;
58     padding: $-xs;
59   }
60 }
61
62 table.file-table {
63   @extend .no-style;
64   td {
65     padding: $-xs;
66   }
67   .ui-sortable-helper {
68     display: table;
69   }
70 }