Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort dictionaries by drag and drop #1329

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 15 additions & 31 deletions ext/css/settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -2299,29 +2299,28 @@ button.hotkey-list-item-enabled-button[data-scope-count='0'] {
/* Dictionary settings */
.dictionary-list {
width: 100%;
display: flex;
flex-direction: column;
margin-top: 0.5em;
}

.dictionary-item {
display: grid;
grid-template-columns: auto auto 1fr auto auto auto auto;
grid-template-rows: auto;
place-items: center start;
margin-top: 0.5em;
}
:root:not([data-advanced=true]) .dictionary-list {
grid-template-columns: auto auto 1fr auto auto auto;
--dictionary-item-index-margin: 0.5em;
--dictionary-item-index-width: 1.2em;
}
.dictionary-list-index {
margin-right: 0.5em;
}
.dictionary-list[data-count='0']>.dictionary-item-top {
display: none;
margin-right: var(--dictionary-item-index-margin);
}
.dictionary-item-button-height {
height: var(--icon-button-size);
}
.dictionary-item {
display: flex;
flex-flow: row nowrap;
align-items: center;
border-top: var(--thin-border-size) solid var(--separator-color2);
.dictionary-item .generic-list-index-prefix::after {
display: block;
width: var(--dictionary-item-index-width);
}
.dictionary-item-enabled-toggle-container {
margin-right: 0.5em;
Expand All @@ -2338,13 +2337,10 @@ button.hotkey-list-item-enabled-button[data-scope-count='0'] {
color: inherit;
transition: color var(--animation-duration) ease-in-out;
}
.dictionary-item[data-enabled=false] .dictionary-title {
color: var(--text-color-light2);
}
input[type=number].dictionary-priority {
margin-top: 0;
margin-right: 0.5em;
.dictionary-item.top {
padding-left: calc(var(--dictionary-item-index-width) + var(--dictionary-item-index-margin));
}

.dictionary-outdated-button,
.dictionary-update-available,
.dictionary-integrity-button {
Expand Down Expand Up @@ -2408,10 +2404,6 @@ input[type=number].dictionary-priority {
width: 100%;
}

#dictionary-move-up>span.icon-button-inner,
#dictionary-move-down>span.icon-button-inner {
width: 26px;
}

/* Secondary search dictionary settings */
.secondary-search-dictionary-list {
Expand Down Expand Up @@ -2663,14 +2655,6 @@ input[type=number].dictionary-priority {

/* Mobile overrides */

/* Treat devices that can't hover as mobile devices */
@media (hover: none) {
#dictionary-move-up>span.icon-button-inner,
#dictionary-move-down>span.icon-button-inner {
width: 36px;
}
}

/* Dark mode before themes are applied
DO NOT use this for normal theming */
@media (prefers-color-scheme: dark) {
Expand Down
Loading