Implement proper dark mode (#800)
* Implement proper dark mode Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Fix footer color in light mode Signed-off-by: hossainemruz <hossainemruz@gmail.com> --------- Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
parent
6dc9d1d33d
commit
5f0aebcf68
38 changed files with 1136 additions and 353 deletions
|
@ -1,24 +1,24 @@
|
|||
table {
|
||||
border-radius: 0.1rem;
|
||||
border: 1px solid $border-color;
|
||||
border: 1px solid rgba(get-light-color('accent-color'), 0.1);
|
||||
min-width: 10rem;
|
||||
padding: 0.1rem;
|
||||
thead {
|
||||
tr {
|
||||
background: $accent-color;
|
||||
color: $text-over-accent-color;
|
||||
background: get-light-color('accent-color');
|
||||
color: get-light-color('text-over-accent-color');
|
||||
}
|
||||
}
|
||||
|
||||
tbody {
|
||||
tr {
|
||||
height: 40px !important;
|
||||
color: $text-color;
|
||||
color: get-light-color('text-color');
|
||||
&:nth-child(odd) {
|
||||
background-color: $bg-primary;
|
||||
background-color: get-light-color('bg-primary');
|
||||
}
|
||||
&:nth-child(even) {
|
||||
background-color: rgba($accent-color, 0.05);
|
||||
background-color: rgba(get-light-color('accent-color'), 0.05);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -33,10 +33,10 @@ table {
|
|||
|
||||
.gist {
|
||||
table {
|
||||
border-radius: unset;
|
||||
background: unset;
|
||||
border: unset;
|
||||
padding: unset;
|
||||
border-radius: unset !important;
|
||||
background: unset !important;
|
||||
border: unset !important;
|
||||
padding: unset !important;
|
||||
|
||||
tr {
|
||||
height: unset !important;
|
||||
|
@ -44,31 +44,67 @@ table {
|
|||
|
||||
th,
|
||||
td {
|
||||
padding: unset;
|
||||
border-left: unset;
|
||||
border-bottom: unset;
|
||||
padding: unset !important;
|
||||
border-left: unset !important;
|
||||
border-bottom: unset !important;
|
||||
}
|
||||
td,
|
||||
tc {
|
||||
border-right: 1px solid $border-color;
|
||||
border-right: 1px solid rgba(get-light-color('accent-color'), 0.1);
|
||||
}
|
||||
|
||||
thead {
|
||||
tr {
|
||||
background: unset;
|
||||
color: unset;
|
||||
background: unset !important;
|
||||
color: unset !important;
|
||||
}
|
||||
}
|
||||
|
||||
tbody {
|
||||
tr {
|
||||
&:nth-child(odd) {
|
||||
background-color: unset;
|
||||
background-color: unset !important;
|
||||
}
|
||||
&:hover {
|
||||
background: unset;
|
||||
background: unset !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
html[data-theme='dark'] {
|
||||
table {
|
||||
border: 1px solid rgba(get-dark-color('accent-color'), 0.1);
|
||||
thead {
|
||||
tr {
|
||||
background: get-dark-color('accent-color');
|
||||
color: get-dark-color('text-over-accent-color');
|
||||
}
|
||||
}
|
||||
|
||||
tbody {
|
||||
tr {
|
||||
color: get-dark-color('text-color');
|
||||
&:nth-child(odd) {
|
||||
background-color: get-dark-color('bg-primary');
|
||||
}
|
||||
&:nth-child(even) {
|
||||
background-color: rgba(get-dark-color('accent-color'), 0.05);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.gist {
|
||||
&::selection{
|
||||
background: get-dark-color('text-color');
|
||||
color: get-dark-color('inverse-text-color');
|
||||
}
|
||||
table {
|
||||
td,
|
||||
tc {
|
||||
border-right: 1px solid rgba(get-dark-color('accent-color'), 0.1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue