Skip to content

Commit

Permalink
style(toolbox): 优化剧情翻译暗色模式
Browse files Browse the repository at this point in the history
  • Loading branch information
mark9804 committed Oct 21, 2024
1 parent e1028ce commit 477ca47
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
v-if="'' !== line.TextJp"
style="cursor: pointer"
ref="currentElement"
class="card bg-white @dark:bg-slate-800 border-solid border-gray-300 @dark:border-gray-700"
class="card bg-white @dark:bg-slate-800 border-solid border-1 border-gray-300 @dark:border-gray-700"
:class="{ selected: index === config.selectLine, unsure: line.Unsure }"
>
<n-image v-if="false"></n-image>
Expand Down Expand Up @@ -139,7 +139,7 @@ div {
&::before {
display: inline-flex;
color: #165dff;
background: rgba(32, 128, 240, 0.12);
background: #e8f3ff;
padding: 1px 4px;
margin-right: 6px;
border-radius: 2px;
Expand All @@ -158,4 +158,15 @@ div {
content: "文本";
}
}
@media (prefers-color-scheme: dark) {
div {
:is(.type-title, .type-selection, .type-text) {
&::before {
color: #3c7eff;
background: #000d4d;
}
}
}
}
</style>

0 comments on commit 477ca47

Please sign in to comment.