bookmarks restyling

This commit is contained in:
MDeeApp
2025-10-23 21:22:41 +02:00
parent cd5a179125
commit 9d85044b7f
3 changed files with 736 additions and 139 deletions

View File

@@ -1109,13 +1109,16 @@ h1 {
position: absolute;
top: calc(100% + 8px);
right: 0;
width: min(420px, 90vw);
width: min(540px, 92vw);
max-height: 70vh;
background: #ffffff;
border-radius: 10px;
border-radius: 12px;
box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
padding: 16px;
z-index: 20;
border: 1px solid rgba(229, 231, 235, 0.8);
display: flex;
flex-direction: column;
}
.bookmark-panel__header {
@@ -1124,11 +1127,13 @@ h1 {
align-items: center;
gap: 12px;
margin-bottom: 12px;
border-bottom: 1px solid rgba(229, 231, 235, 0.8);
padding-bottom: 8px;
}
.bookmark-panel__title {
margin: 0;
font-size: 16px;
font-size: 15px;
font-weight: 600;
}
@@ -1148,62 +1153,136 @@ h1 {
}
.bookmark-list {
flex: 1;
overflow-y: auto;
display: flex;
flex-wrap: wrap;
flex-direction: column;
gap: 16px;
padding-right: 6px;
}
.bookmark-section {
display: flex;
flex-direction: column;
gap: 8px;
}
.bookmark-item {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 10px;
background: #f0f2f5;
border-radius: 999px;
.bookmark-section__header {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 12px;
}
.bookmark-button {
border: none;
background: transparent;
color: #1d2129;
.bookmark-section__title {
margin: 0;
font-size: 13px;
font-weight: 600;
cursor: pointer;
display: inline-flex;
align-items: center;
color: #111827;
}
.bookmark-section__hint {
font-size: 11px;
color: #6b7280;
}
.bookmark-section__list {
display: flex;
flex-direction: column;
gap: 6px;
padding: 0;
font-size: 14px;
}
.bookmark-button:hover,
.bookmark-button:focus {
text-decoration: underline;
.bookmark-row {
display: grid;
grid-template-columns: minmax(0, 1fr) auto auto;
align-items: center;
gap: 10px;
background: #f3f4f6;
border-radius: 8px;
padding: 7px 10px;
}
.bookmark-button:focus-visible {
outline: 2px solid #2563eb;
outline-offset: 2px;
.bookmark-row[data-state="never-used"] {
background: #eef2ff;
}
.bookmark-remove-btn {
.bookmark-row__open {
border: none;
background: transparent;
color: #7f8186;
text-align: left;
display: flex;
flex-direction: column;
gap: 2px;
cursor: pointer;
color: inherit;
padding: 0;
}
.bookmark-row__open:focus-visible {
outline: 2px solid #2563eb;
outline-offset: 3px;
border-radius: 6px;
}
.bookmark-row__label {
font-size: 13px;
font-weight: 600;
color: #1f2937;
}
.bookmark-row__query {
font-size: 11px;
color: #4b5563;
}
.bookmark-row__meta {
font-size: 11px;
color: #6b7280;
white-space: nowrap;
justify-self: end;
}
.bookmark-row__remove {
border: none;
background: transparent;
color: #9ca3af;
cursor: pointer;
font-size: 16px;
line-height: 1;
padding: 0 2px;
padding: 0 6px;
border-radius: 6px;
transition: background-color 0.2s ease, color 0.2s ease;
}
.bookmark-remove-btn:hover,
.bookmark-remove-btn:focus {
color: #c0392b;
.bookmark-row__remove:hover,
.bookmark-row__remove:focus-visible {
color: #ef4444;
background: rgba(239, 68, 68, 0.12);
}
.bookmark-status {
font-size: 13px;
padding: 10px 12px;
border-radius: 8px;
background: #f3f4f6;
color: #374151;
}
.bookmark-status--error {
background: #fee2e2;
color: #991b1b;
border: 1px solid rgba(248, 113, 113, 0.4);
}
.bookmark-status--loading {
background: #ede9fe;
color: #4c1d95;
}
.bookmark-form {
margin-top: 12px;
border-top: 1px solid #e4e6eb;
padding-top: 12px;
margin-top: 16px;
border-top: 1px solid #e5e7eb;
padding-top: 14px;
display: flex;
flex-direction: column;
gap: 12px;
@@ -1246,11 +1325,27 @@ h1 {
}
.bookmark-empty {
font-size: 14px;
color: #65676b;
background: #f0f2f5;
border-radius: 8px;
padding: 12px;
font-size: 13px;
color: #4b5563;
background: #f3f4f6;
border-radius: 10px;
padding: 14px;
text-align: center;
}
@media (max-width: 640px) {
.bookmark-panel {
width: min(480px, 94vw);
max-height: 75vh;
}
.bookmark-section__list {
gap: 5px;
}
.bookmark-row {
grid-template-columns: minmax(0, 1fr) auto;
}
}
.screenshot-modal {
@@ -1434,6 +1529,12 @@ h1 {
position: static;
width: 100%;
margin-top: 10px;
max-height: none;
box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}
.bookmark-list {
max-height: none;
}
.bookmark-form__actions {