lbry-desktop/src/renderer/scss/component/_table.scss
Sean Yesmunt e379f6774e
Final fixes (#2184)
* fix: modal upgrade help text

* change: copy on invites page with link to rewards

* fix: tx table icon alignment and cost size

* fix: show subscription modal on actual first subscription
2019-01-14 16:21:37 -05:00

124 lines
2.1 KiB
SCSS

.table {
max-width: 100%;
text-align: left;
word-wrap: break-word;
th,
td {
&:first-of-type {
padding-left: var(--spacing-vertical-medium);
}
}
th {
font-size: 1.25rem;
font-weight: 700;
padding-top: var(--spacing-vertical-small);
padding-bottom: var(--spacing-vertical-small);
}
td {
color: $lbry-gray-5;
font-weight: 500;
padding-top: var(--spacing-vertical-small);
padding-bottom: var(--spacing-vertical-small);
html[data-theme='dark'] & {
color: inherit;
}
&:not(:first-of-type) {
padding-right: var(--spacing-vertical-medium);
}
.btn:not(.btn--link) {
display: inline;
}
&.table__item--actionable {
span + .btn {
margin-left: var(--spacing-vertical-small);
}
.btn svg {
top: 3px;
}
}
}
thead {
border-bottom: 1px solid rgba($lbry-gray-1, 0.7);
html[data-theme='dark'] & {
border-color: rgba($lbry-gray-5, 0.3);
}
}
tbody {
border: 1px solid $lbry-gray-1;
html[data-theme='dark'] & {
border-color: rgba($lbry-gray-5, 0.3);
}
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);
}
}
&:nth-child(even) {
background-color: rgba($lbry-gray-1, 0.3);
html[data-theme='dark'] & {
background-color: rgba($lbry-white, 0.1);
}
}
}
}
}
.table--help {
td:nth-of-type(1) {
font-weight: 600;
min-width: 130px;
}
td:nth-of-type(2) {
@include constrict;
}
}
.table--stretch {
width: 100%;
}
.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%;
}
}