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

125 lines
2.1 KiB
SCSS
Raw Normal View History

.table {
2016-08-08 06:47:48 +02:00
max-width: 100%;
2018-03-26 23:32:43 +02:00
text-align: left;
2018-10-17 19:14:24 +02:00
word-wrap: break-word;
2018-03-26 23:32:43 +02:00
th,
td {
&:first-of-type {
padding-left: var(--spacing-vertical-medium);
}
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 {
font-size: 1.25rem;
font-weight: 700;
padding-top: var(--spacing-vertical-small);
padding-bottom: var(--spacing-vertical-small);
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 {
color: $lbry-gray-5;
2018-10-17 21:42:05 +02:00
font-weight: 500;
padding-top: var(--spacing-vertical-small);
padding-bottom: var(--spacing-vertical-small);
2018-03-26 23:32:43 +02:00
html[data-theme='dark'] & {
color: inherit;
2017-08-18 05:31:44 +02:00
}
2018-03-26 23:32:43 +02:00
&:not(:first-of-type) {
padding-right: var(--spacing-vertical-medium);
}
2018-03-26 23:32:43 +02:00
.btn:not(.btn--link) {
display: inline;
}
&.table__item--actionable {
span + .btn {
margin-left: var(--spacing-vertical-small);
}
.btn svg {
top: 3px;
}
}
2016-08-08 06:47:48 +02:00
}
2018-03-26 23:32:43 +02:00
2018-09-07 07:24:54 +02:00
thead {
2018-10-17 21:42:05 +02:00
border-bottom: 1px solid rgba($lbry-gray-1, 0.7);
html[data-theme='dark'] & {
border-color: rgba($lbry-gray-5, 0.3);
}
2018-09-07 07:24:54 +02:00
}
2016-08-08 06:47:48 +02:00
tbody {
border: 1px solid $lbry-gray-1;
html[data-theme='dark'] & {
border-color: rgba($lbry-gray-5, 0.3);
}
2016-08-08 06:47:48 +02:00
tr {
padding-top: var(--spacing-vertical-small);
padding-bottom: var(--spacing-vertical-small);
&:not(:last-of-type) {
border-bottom: 1px solid $lbry-gray-1;
html[data-theme='dark'] & {
border-color: rgba($lbry-gray-5, 0.3);
}
2016-08-08 06:47:48 +02:00
}
2018-10-19 22:16:39 +02:00
&:nth-child(even) {
background-color: rgba($lbry-gray-1, 0.3);
html[data-theme='dark'] & {
background-color: rgba($lbry-white, 0.1);
}
2016-08-08 06:47:48 +02:00
}
}
}
}
.table--help {
td:nth-of-type(1) {
font-weight: 600;
min-width: 130px;
}
td:nth-of-type(2) {
@include constrict;
}
}
.table--stretch {
width: 100%;
}
2018-03-26 23:32:43 +02:00
.table--transactions {
td:nth-of-type(1) {
// TX amounts
width: 25%;
font-size: 0.9em;
font-weight: 600;
}
td:nth-of-type(2) {
width: 20%;
}
td:nth-of-type(3) {
width: 22.5%;
}
td:nth-of-type(4) {
width: 17.5%;
}
td:nth-of-type(5) {
width: 15%;
}
2017-10-03 19:27:52 +02:00
}