Fixed dark mode issues

This commit is contained in:
ポール ウェッブ 2018-10-19 15:16:39 -05:00 committed by Sean Yesmunt
parent ecde8dd1ab
commit a14ecf0e8d
11 changed files with 64 additions and 36 deletions

View file

@ -36,12 +36,13 @@ ul {
input {
background-color: transparent;
border-bottom: var(--input-border-size) dotted $lbry-gray-5;
color: $lbry-black;
color: inherit; // $lbry-black;
cursor: text;
line-height: 1;
&::placeholder {
color: rgba($lbry-gray-5, 0.5);
color: inherit;
opacity: 0.3;
}
&[type='checkbox'],

View file

@ -19,6 +19,9 @@ $large-breakpoint: 1921px;
--text-max-width: 660px;
--text-link-padding: 4px;
// Input
--input-border-size: 1px;
// Select
--select-height: 30px;

View file

@ -3,7 +3,7 @@
height: var(--btn-height);
align-items: center;
background-color: $lbry-teal-3;
background-color: $lbry-teal-5;
border: none;
border-radius: var(--btn-radius);
color: $lbry-white;
@ -21,7 +21,7 @@
}
&:hover {
background-color: $lbry-teal-1;
background-color: $lbry-teal-4;
}
&:not(.btn--no-padding):not(.btn--link):not(.btn--no-style) {
@ -86,7 +86,7 @@
}
&.btn--header-balance {
color: $lbry-teal-3;
color: $lbry-teal-5;
font-size: 14px;
@media only screen and (min-width: $large-breakpoint) {
@ -101,13 +101,13 @@
background-color: transparent;
.btn__label--balance {
color: $lbry-teal-3;
color: $lbry-teal-5;
}
}
}
&.btn--header-publish {
background-color: $lbry-teal-3;
background-color: $lbry-teal-5;
}
&.btn--home-nav {
@ -122,7 +122,7 @@
&.btn--inverse {
background-color: transparent;
box-shadow: none;
color: $lbry-teal-3;
color: $lbry-teal-5;
}
&.btn--link {
@ -132,7 +132,7 @@
background-color: inherit;
border-radius: 0;
box-shadow: none;
color: $lbry-teal-3;
color: $lbry-teal-5;
display: inline;
font-size: 1em;
min-width: 0;
@ -153,7 +153,7 @@
}
&.btn--secondary {
background-color: $lbry-teal-3;
background-color: $lbry-teal-5;
}
&.btn--tourniquet {
@ -192,6 +192,6 @@
transition: color var(--animation-duration) var(--animation-style);
&:hover {
color: $lbry-teal-3;
color: $lbry-teal-4;
}
}

View file

@ -253,9 +253,9 @@
margin: $spacing-vertical * 1/3 0;
padding: $spacing-vertical * 1/3;
background-color: rgba($lbry-green-1, 0.3);
border-left: 2px solid mix($lbry-green-3, $lbry-blue-3, 50%);
color: $lbry-green-3;
background-color: rgba($lbry-green-1, 0.1);
border-left: 5px solid $lbry-green-5;
color: $lbry-green-5;
}
.card__title {

View file

@ -101,7 +101,8 @@
}
.form-field__label {
color: rgba($lbry-black, 0.5);
color: inherit;
opacity: 0.7;
}
.form-field__prefix,

View file

@ -1,6 +1,7 @@
.item-list {
background-color: $lbry-white;
margin-top: $spacing-vertical;
padding: $spacing-vertical;
}
.item-list__item {

View file

@ -18,8 +18,8 @@
}
.modal {
background-color: rgba($lbry-gray-1, 0.5);
border: 1px solid $lbry-gray-1;
background-color: $lbry-white;
border: 1px solid $lbry-gray-3;
border-radius: 4px;
display: flex;
flex-direction: column;

View file

@ -75,9 +75,11 @@
.wunderbar__suggestion-label--action {
font-size: 12px;
font-weight: 600;
line-height: 0.1; // to vertically align because the font size is smaller
margin-left: 0.5rem;
opacity: 0.3;
opacity: 0.7;
text-transform: uppercase;
white-space: nowrap;
}
@ -100,6 +102,6 @@
}
.search__top {
background-color: $lbry-gray-2;
background-color: rgba($lbry-gray-1, 0.3);
padding: 0 $spacing-width $spacing-width;
}

View file

@ -48,22 +48,21 @@ table.table,
thead {
border-bottom: 1px solid rgba($lbry-gray-1, 0.7);
color: $lbry-black;
}
tbody {
tr {
border-bottom: 1px solid rgba($lbry-gray-1, 0.3);
border-bottom: 1px solid $lbry-gray-1;
padding: 8px 0;
&:nth-child(even) {
background-color: rgba($lbry-gray-1, 0.3);
}
&:nth-child(odd) {
background-color: transparent;
}
&:nth-child(even) {
background-color: rgba($lbry-gray-1, 0.3);
}
&.thead {
background: none;
}
@ -78,13 +77,11 @@ table.table,
table {
&.table--help {
td:nth-of-type(1) {
color: $lbry-black;
font-weight: 600;
min-width: 130px;
}
td:nth-of-type(2) {
color: $lbry-gray-5;
max-width: 20vw; // Tourniquets text over 20vw
overflow: hidden;
text-overflow: ellipsis;

View file

@ -24,13 +24,13 @@
&:hover {
&:not(.react-toggle--disabled) {
.react-toggle-track {
background-color: $lbry-teal-5;
background-color: $lbry-black;
}
}
}
.react-toggle-track {
background-color: $lbry-teal-3;
background-color: $lbry-teal-5;
}
.react-toggle-track-check {
@ -43,7 +43,7 @@
}
.react-toggle-thumb {
border-color: $lbry-teal-3;
border-color: $lbry-teal-5;
left: 22px;
}
}

View file

@ -30,12 +30,6 @@ html[data-theme='dark'] {
top: 3rem;
}
input {
&::placeholder {
color: rgba($lbry-black, 0.7);
}
}
.nav {
background-color: rgba($lbry-white, 0.05);
@ -78,4 +72,33 @@ html[data-theme='dark'] {
background-color: rgba($lbry-white, 0.1);
color: $lbry-gray-1;
}
.search__top {
background-color: rgba($lbry-white, 0.15);
}
table.table,
.markdown-preview table {
thead {
border-bottom: 1px solid rgba($lbry-gray-1, 0.1);
}
tbody {
tr {
border-bottom: 1px solid rgba($lbry-gray-1, 0.1);
&:nth-child(even) {
background-color: rgba($lbry-gray-1, 0.1);
}
}
}
}
.item-list {
background-color: rgba($lbry-white, 0.1);
}
.item-list__item:not(:last-of-type) {
border-bottom: 1px solid rgba($lbry-gray-1, 0.1);
}
}