BookStack/resources/assets/sass/_tables.scss
Dan Brown 393f6047f2
Updated table styling to ideally by more predictable
Set styles to be fixed and not cut text.
2016-09-06 20:47:34 +01:00

54 lines
732 B
SCSS

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%;
tr {
border-bottom: 1px solid #DDD;
}
th, td {
text-align: left;
border: none;
padding: $-xs $-xs;
vertical-align: middle;
margin: 0;
}
th {
font-weight: bold;
}
tr:hover {
background-color: #EEE;
}
}
table.no-style {
td {
border: 0;
padding: 0;
}
}
table.list-table {
margin: 0 -$-xs;
td {
border: 0;
vertical-align: middle;
padding: $-xs;
}
}