This commit is contained in:
Markos Gogoulos 2025-10-18 18:43:20 +03:00
parent 2ea45bfd78
commit 61925bbd6e
3 changed files with 286 additions and 282 deletions

View File

@ -170,181 +170,183 @@
} }
} }
.available-categories { .category-modal {
margin-top: 16px; .available-categories {
flex: 1; margin-top: 16px;
display: flex; flex: 1;
flex-direction: column; display: flex;
overflow: visible; flex-direction: column;
} overflow: visible;
.category-list {
border: 1px solid #ddd;
border-radius: 4px;
padding: 8px;
background-color: #f9f9f9;
min-height: 100px;
.dark_theme & {
background-color: #333;
border-color: #555;
} }
&.scrollable { .category-list {
max-height: 300px; border: 1px solid #ddd;
overflow-y: auto; border-radius: 4px;
padding: 8px;
background-color: #f9f9f9;
min-height: 100px;
&::-webkit-scrollbar { .dark_theme & {
width: 8px; background-color: #333;
border-color: #555;
} }
&::-webkit-scrollbar-track { &.scrollable {
background: #f1f1f1; max-height: 300px;
border-radius: 4px; overflow-y: auto;
.dark_theme & { &::-webkit-scrollbar {
background: #2a2a2a; width: 8px;
}
}
&::-webkit-scrollbar-thumb {
background: #ccc;
border-radius: 4px;
&:hover {
background: #aaa;
} }
.dark_theme & { &::-webkit-scrollbar-track {
background: #555; background: #f1f1f1;
border-radius: 4px;
.dark_theme & {
background: #2a2a2a;
}
}
&::-webkit-scrollbar-thumb {
background: #ccc;
border-radius: 4px;
&:hover { &:hover {
background: #666; background: #aaa;
}
.dark_theme & {
background: #555;
&:hover {
background: #666;
}
} }
} }
} }
} }
}
.category-item { .category-item {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 10px 12px; padding: 10px 12px;
margin-bottom: 6px; margin-bottom: 6px;
background-color: white; background-color: white;
border: 1px solid #e0e0e0; border: 1px solid #e0e0e0;
border-radius: 4px; border-radius: 4px;
font-size: 14px; font-size: 14px;
transition: all 0.2s ease; transition: all 0.2s ease;
.dark_theme & { .dark_theme & {
background-color: #2a2a2a; background-color: #2a2a2a;
border-color: #444; border-color: #444;
color: #fff; color: #fff;
} }
&.clickable { &.clickable {
cursor: pointer; cursor: pointer;
&:hover { &:hover {
background-color: #f0f7ff; background-color: #f0f7ff;
border-color: var(--default-theme-color, #009933); border-color: var(--default-theme-color, #009933);
.dark_theme & {
background-color: #3a3a3a;
}
}
}
&.marked-for-removal {
background-color: #ffe0e0;
border-color: #ffaaaa;
opacity: 0.7;
.dark_theme & { .dark_theme & {
background-color: #3a3a3a; background-color: #4a2a2a;
border-color: #aa5555;
}
span {
text-decoration: line-through;
}
}
span {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.add-btn,
.remove-btn {
background: none;
border: none;
font-size: 24px;
font-weight: bold;
cursor: pointer;
padding: 0;
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: all 0.2s ease;
flex-shrink: 0;
}
.add-btn {
color: var(--default-theme-color, #009933);
&:hover {
background-color: rgba(0, 153, 51, 0.1);
}
.dark_theme & {
color: #66bb66;
&:hover {
background-color: rgba(102, 187, 102, 0.2);
} }
} }
} }
&.marked-for-removal { .remove-btn {
background-color: #ffe0e0; color: #dc3545;
border-color: #ffaaaa;
opacity: 0.7; &:hover {
background-color: rgba(220, 53, 69, 0.1);
color: #c82333;
}
.dark_theme & { .dark_theme & {
background-color: #4a2a2a; color: #ff6b6b;
border-color: #aa5555;
}
span { &:hover {
text-decoration: line-through; background-color: rgba(255, 107, 107, 0.2);
color: #ff8787;
}
} }
} }
span { .empty-message,
flex: 1; .loading-message {
overflow: hidden; padding: 40px 20px;
text-overflow: ellipsis; text-align: center;
white-space: nowrap; color: #999;
} font-size: 14px;
} font-style: italic;
.add-btn, .dark_theme & {
.remove-btn { color: #666;
background: none;
border: none;
font-size: 24px;
font-weight: bold;
cursor: pointer;
padding: 0;
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: all 0.2s ease;
flex-shrink: 0;
}
.add-btn {
color: var(--default-theme-color, #009933);
&:hover {
background-color: rgba(0, 153, 51, 0.1);
}
.dark_theme & {
color: #66bb66;
&:hover {
background-color: rgba(102, 187, 102, 0.2);
} }
} }
} }
.remove-btn {
color: #dc3545;
&:hover {
background-color: rgba(220, 53, 69, 0.1);
color: #c82333;
}
.dark_theme & {
color: #ff6b6b;
&:hover {
background-color: rgba(255, 107, 107, 0.2);
color: #ff8787;
}
}
}
.empty-message,
.loading-message {
padding: 40px 20px;
text-align: center;
color: #999;
font-size: 14px;
font-style: italic;
.dark_theme & {
color: #666;
}
}
.category-modal-footer { .category-modal-footer {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;

View File

@ -170,181 +170,183 @@
} }
} }
.available-tags { .tag-modal {
margin-top: 16px; .available-tags {
flex: 1; margin-top: 16px;
display: flex; flex: 1;
flex-direction: column; display: flex;
overflow: visible; flex-direction: column;
} overflow: visible;
.tag-list {
border: 1px solid #ddd;
border-radius: 4px;
padding: 8px;
background-color: #f9f9f9;
min-height: 100px;
.dark_theme & {
background-color: #333;
border-color: #555;
} }
&.scrollable { .tag-list {
max-height: 300px; border: 1px solid #ddd;
overflow-y: auto; border-radius: 4px;
padding: 8px;
background-color: #f9f9f9;
min-height: 100px;
&::-webkit-scrollbar { .dark_theme & {
width: 8px; background-color: #333;
border-color: #555;
} }
&::-webkit-scrollbar-track { &.scrollable {
background: #f1f1f1; max-height: 300px;
border-radius: 4px; overflow-y: auto;
.dark_theme & { &::-webkit-scrollbar {
background: #2a2a2a; width: 8px;
}
}
&::-webkit-scrollbar-thumb {
background: #ccc;
border-radius: 4px;
&:hover {
background: #aaa;
} }
.dark_theme & { &::-webkit-scrollbar-track {
background: #555; background: #f1f1f1;
border-radius: 4px;
.dark_theme & {
background: #2a2a2a;
}
}
&::-webkit-scrollbar-thumb {
background: #ccc;
border-radius: 4px;
&:hover { &:hover {
background: #666; background: #aaa;
}
.dark_theme & {
background: #555;
&:hover {
background: #666;
}
} }
} }
} }
} }
}
.tag-item { .tag-item {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 10px 12px; padding: 10px 12px;
margin-bottom: 6px; margin-bottom: 6px;
background-color: white; background-color: white;
border: 1px solid #e0e0e0; border: 1px solid #e0e0e0;
border-radius: 4px; border-radius: 4px;
font-size: 14px; font-size: 14px;
transition: all 0.2s ease; transition: all 0.2s ease;
.dark_theme & { .dark_theme & {
background-color: #2a2a2a; background-color: #2a2a2a;
border-color: #444; border-color: #444;
color: #fff; color: #fff;
} }
&.clickable { &.clickable {
cursor: pointer; cursor: pointer;
&:hover { &:hover {
background-color: #f0f7ff; background-color: #f0f7ff;
border-color: var(--default-theme-color, #009933); border-color: var(--default-theme-color, #009933);
.dark_theme & {
background-color: #3a3a3a;
}
}
}
&.marked-for-removal {
background-color: #ffe0e0;
border-color: #ffaaaa;
opacity: 0.7;
.dark_theme & { .dark_theme & {
background-color: #3a3a3a; background-color: #4a2a2a;
border-color: #aa5555;
}
span {
text-decoration: line-through;
}
}
span {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.add-btn,
.remove-btn {
background: none;
border: none;
font-size: 24px;
font-weight: bold;
cursor: pointer;
padding: 0;
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: all 0.2s ease;
flex-shrink: 0;
}
.add-btn {
color: var(--default-theme-color, #009933);
&:hover {
background-color: rgba(0, 153, 51, 0.1);
}
.dark_theme & {
color: #66bb66;
&:hover {
background-color: rgba(102, 187, 102, 0.2);
} }
} }
} }
&.marked-for-removal { .remove-btn {
background-color: #ffe0e0; color: #dc3545;
border-color: #ffaaaa;
opacity: 0.7; &:hover {
background-color: rgba(220, 53, 69, 0.1);
color: #c82333;
}
.dark_theme & { .dark_theme & {
background-color: #4a2a2a; color: #ff6b6b;
border-color: #aa5555;
}
span { &:hover {
text-decoration: line-through; background-color: rgba(255, 107, 107, 0.2);
color: #ff8787;
}
} }
} }
span { .empty-message,
flex: 1; .loading-message {
overflow: hidden; padding: 40px 20px;
text-overflow: ellipsis; text-align: center;
white-space: nowrap; color: #999;
} font-size: 14px;
} font-style: italic;
.add-btn, .dark_theme & {
.remove-btn { color: #666;
background: none;
border: none;
font-size: 24px;
font-weight: bold;
cursor: pointer;
padding: 0;
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: all 0.2s ease;
flex-shrink: 0;
}
.add-btn {
color: var(--default-theme-color, #009933);
&:hover {
background-color: rgba(0, 153, 51, 0.1);
}
.dark_theme & {
color: #66bb66;
&:hover {
background-color: rgba(102, 187, 102, 0.2);
} }
} }
} }
.remove-btn {
color: #dc3545;
&:hover {
background-color: rgba(220, 53, 69, 0.1);
color: #c82333;
}
.dark_theme & {
color: #ff6b6b;
&:hover {
background-color: rgba(255, 107, 107, 0.2);
color: #ff8787;
}
}
}
.empty-message,
.loading-message {
padding: 40px 20px;
text-align: center;
color: #999;
font-size: 14px;
font-style: italic;
.dark_theme & {
color: #666;
}
}
.tag-modal-footer { .tag-modal-footer {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;

File diff suppressed because one or more lines are too long