Tweak dark mode color

#9
This commit is contained in:
CzBiX
2020-04-01 17:00:15 +08:00
parent 081a79657d
commit 58ed6e11aa
2 changed files with 17 additions and 3 deletions

View File

@@ -7,3 +7,12 @@
}
}
}
@mixin dark-mode-value($light, $dark) {
&.theme--light {
@content($light);
}
&.theme--dark {
@content($dark);
}
}

View File

@@ -561,7 +561,7 @@ export default class Torrents extends Vue {
flex: 1;
position: relative;
@include theme(v-data-table) using ($material) {
.v-data-table {
position: absolute;
width: 100%;
height: 100%;
@@ -584,8 +584,13 @@ export default class Torrents extends Vue {
padding-left: 4px;
}
tr:nth-child(2n) {
background-color: map-deep-get($material, 'table', 'hover');
@include dark-mode-value(
map-deep-get($material-light, 'table', 'hover'),
map-get($material-dark-elevation-colors, '4'),
) using ($color) {
tr:nth-child(2n) {
background-color: $color;
}
}
td {