BookStack/resources/sass/_tables.scss

74 lines
1.1 KiB
SCSS
Raw Normal View History

table {
min-width: 100px;
max-width: 100%;
thead {
@include lightDark(background-color, #f8f8f8, #333);
font-weight: 500;
}
td, th {
min-width: 10px;
padding: 6px 8px;
border: 1px solid #DDD;
overflow: auto;
line-height: 1.2;
2021-05-10 11:11:28 +00:00
word-break: break-word;
}
td p, th p {
margin: 0;
}
}
2015-08-08 19:05:30 +00:00
table.table {
width: 100%;
tr td, tr th {
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
2015-08-08 19:05:30 +00:00
}
th, td {
text-align: start;
2015-08-08 19:05:30 +00:00
border: none;
padding: $-s $-s;
2015-08-23 12:41:35 +00:00
vertical-align: middle;
margin: 0;
overflow: visible;
2015-08-08 19:05:30 +00:00
}
th {
font-weight: bold;
}
tr:hover {
@include lightDark(background-color, #F2F2F2, #333);
2015-08-08 19:05:30 +00:00
}
.text-right {
text-align: end;
}
.text-center {
text-align: center;
}
td.actions {
overflow: visible;
}
a {
display: inline-block;
}
&.expand-to-padding {
margin-left: -$-s;
margin-right: -$-s;
width: calc(100% + (2*#{$-s}));
max-width: calc(100% + (2*#{$-s}));
}
2015-09-06 13:35:53 +00:00
}
table.no-style {
td {
border: 0;
padding: 0;
}
}
2016-04-09 12:52:44 +00:00
table.list-table {
2022-10-24 10:40:05 +00:00
margin: 0 (-$-xs);
2016-04-09 12:52:44 +00:00
td {
border: 0;
vertical-align: middle;
padding: $-xs;
}
2015-08-08 19:05:30 +00:00
}