lbry-desktop/src/renderer/scss/component/_table.scss

137 lines
2.3 KiB
SCSS
Raw Normal View History

2018-05-07 07:13:30 +02:00
table.table,
.markdown-preview table {
2016-08-08 06:47:48 +02:00
word-wrap: break-word;
max-width: 100%;
2018-03-26 23:32:43 +02:00
text-align: left;
margin-top: $spacing-width;
tr td:first-of-type,
tr th:first-of-type {
padding-left: $spacing-vertical * 2/3;
}
tr td:last-of-type,
tr th:last-of-type {
padding-right: $spacing-vertical * 2/3;
}
thead {
2018-04-17 04:21:19 +02:00
color: var(--text-color);
border-bottom: var(--table-border);
2018-03-26 23:32:43 +02:00
}
2016-08-08 06:47:48 +02:00
th,
td {
2018-03-26 23:32:43 +02:00
font-size: 13px;
2018-04-17 04:21:19 +02:00
padding: 8px 0;
2016-08-08 06:47:48 +02:00
}
2018-03-26 23:32:43 +02:00
2016-08-08 06:47:48 +02:00
th {
2018-03-26 23:32:43 +02:00
font-family: 'metropolis-semibold';
2018-05-30 20:12:54 +02:00
border: 0;
2016-08-08 06:47:48 +02:00
}
2018-03-26 23:32:43 +02:00
2016-08-08 06:47:48 +02:00
td {
2018-03-26 23:32:43 +02:00
font-family: 'metropolis-medium';
2018-04-17 04:21:19 +02:00
color: var(--color-help);
2018-03-26 23:32:43 +02:00
padding: $spacing-vertical * 1/6 0;
.btn:not(.btn--link) {
display: inline;
margin-left: $spacing-vertical * 1/3;
2017-08-18 05:31:44 +02:00
}
2016-08-08 06:47:48 +02:00
}
2018-03-26 23:32:43 +02:00
.table__item-label {
font-size: 12px;
2016-08-08 06:47:48 +02:00
}
2018-03-26 23:32:43 +02:00
.table__item--actionable span + .btn {
padding-left: $spacing-vertical * 1/3;
2016-08-08 06:47:48 +02:00
}
2018-03-26 23:32:43 +02:00
2016-08-08 06:47:48 +02:00
tbody {
tr {
2018-04-17 04:21:19 +02:00
border-bottom: var(--table-item-border);
padding: 8px 0;
2018-08-30 07:11:05 +02:00
&:nth-child(even) {
background-color: var(--table-item-odd);
2016-08-08 06:47:48 +02:00
}
2018-08-30 07:11:05 +02:00
&:nth-child(odd) {
2017-08-19 21:04:45 +02:00
background-color: var(--table-item-even);
2016-08-08 06:47:48 +02:00
}
&.thead {
background: none;
}
td {
border: 0 none;
}
}
}
}
2018-03-26 23:32:43 +02:00
table.table--stretch {
width: 100%;
}
2018-03-26 23:32:43 +02:00
table.table--help {
td:nth-of-type(1) {
2018-04-17 04:21:19 +02:00
color: var(--text-color);
2018-03-26 23:32:43 +02:00
font-family: 'metropolis-semibold';
min-width: 130px;
}
td:nth-of-type(2) {
/*Tourniquets text over 20VW*/
max-width: 20vw;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: var(--color-help);
}
2018-03-26 23:32:43 +02:00
}
table.table--transactions {
td:nth-of-type(1) {
2018-04-23 07:33:06 +02:00
width: 25%;
}
td:nth-of-type(2) {
2018-04-23 07:33:06 +02:00
width: 20%;
}
td:nth-of-type(3) {
2018-03-26 23:32:43 +02:00
width: 22.5%;
}
td:nth-of-type(4) {
2018-03-26 23:32:43 +02:00
width: 17.5%;
}
td:nth-of-type(5) {
width: 15%;
}
2017-10-03 19:27:52 +02:00
}
2018-08-30 07:11:05 +02:00
table.table--history {
margin-top: 0;
tbody {
tr {
&:nth-child(even),
&:nth-child(odd) {
background-color: var(--table-item-even);
&.history__selected {
color: red;
background-color: var(--table-item-odd);
}
}
}
td:nth-of-type(2) {
/*Tourniquets text over 20VW*/
max-width: 20vw;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: var(--color-help);
}
}
}