always contrast zebra-stripe and action block
This commit is contained in:
parent
3242be16fc
commit
2379b2bc0c
|
@ -230,8 +230,14 @@ html[style] .entry-content {
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry:nth-child(even) {
|
[data-ui-theme="light"] .zebra .entry:nth-child(even),
|
||||||
background-color: rgba(0, 0, 0, 0.05);
|
[data-ui-theme="light"] .reverse-zebra .entry:nth-child(odd) {
|
||||||
|
background-color: hsla(0, 0%, 50%, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-ui-theme="dark"] .zebra .entry:nth-child(even),
|
||||||
|
[data-ui-theme="dark"] .reverse-zebra .entry:nth-child(odd) {
|
||||||
|
background-color: hsla(0, 0%, 50%, 0.05);
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry:nth-child(-n+10):before,
|
.entry:nth-child(-n+10):before,
|
||||||
|
|
|
@ -293,6 +293,9 @@ function showStyles(frameResults) {
|
||||||
} else {
|
} else {
|
||||||
installed.appendChild(t.template.noStyles);
|
installed.appendChild(t.template.noStyles);
|
||||||
}
|
}
|
||||||
|
const zebra = $('.entry:last-child:nth-child(odd)') &&
|
||||||
|
!$('.styles-last') ? 'reverse-zebra' : 'zebra';
|
||||||
|
$('#installed').classList.add(`${zebra}`);
|
||||||
require(['/popup/hotkeys']);
|
require(['/popup/hotkeys']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user