feat: archiving
This commit is contained in:
@@ -89,6 +89,77 @@ body {
|
||||
flex: 1;
|
||||
justify-content: flex-end;
|
||||
max-width: 400px;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.archive-toggle-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.toggle-label {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 500;
|
||||
color: var(--text-secondary);
|
||||
transition: color 0.3s ease;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.archive-toggle-wrapper.active .toggle-label {
|
||||
color: var(--text-primary);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.archive-toggle-wrapper:not(.active) .toggle-label {
|
||||
color: var(--text-secondary);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.archive-toggle {
|
||||
position: relative;
|
||||
width: 50px;
|
||||
height: 26px;
|
||||
background: var(--surface-light);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 13px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
padding: 0;
|
||||
outline: none;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.archive-toggle:hover {
|
||||
border-color: var(--secondary-color);
|
||||
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
|
||||
}
|
||||
|
||||
.archive-toggle.active {
|
||||
background: var(--secondary-color);
|
||||
border-color: var(--secondary-color);
|
||||
}
|
||||
|
||||
.archive-toggle.active:hover {
|
||||
background: var(--primary-hover);
|
||||
border-color: var(--primary-hover);
|
||||
}
|
||||
|
||||
.toggle-slider {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 2px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background: white;
|
||||
border-radius: 50%;
|
||||
transition: transform 0.3s ease;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.archive-toggle.active .toggle-slider {
|
||||
transform: translateX(24px);
|
||||
}
|
||||
|
||||
.container {
|
||||
@@ -257,23 +328,51 @@ body {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.message {
|
||||
padding: 1rem;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 1.5rem;
|
||||
animation: slideDown 0.3s ease-out;
|
||||
/* Toast Container */
|
||||
.toast-container {
|
||||
position: fixed;
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
z-index: 1000;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
pointer-events: none;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.message.success {
|
||||
background: rgba(16, 185, 129, 0.2);
|
||||
.toast {
|
||||
padding: 0.875rem 1.25rem;
|
||||
border-radius: 12px;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
|
||||
backdrop-filter: blur(10px);
|
||||
opacity: 0;
|
||||
transform: translateX(400px);
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
pointer-events: auto;
|
||||
word-wrap: break-word;
|
||||
white-space: nowrap;
|
||||
width: fit-content;
|
||||
max-width: calc(100vw - 2rem);
|
||||
}
|
||||
|
||||
.toast.show {
|
||||
opacity: 1;
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
.toast-success {
|
||||
background: rgba(16, 185, 129, 0.95);
|
||||
border: 1px solid var(--success);
|
||||
color: var(--success);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.message.error {
|
||||
background: rgba(239, 68, 68, 0.2);
|
||||
.toast-error {
|
||||
background: rgba(239, 68, 68, 0.95);
|
||||
border: 1px solid var(--error);
|
||||
color: var(--error);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.links-container {
|
||||
@@ -380,11 +479,34 @@ body {
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.link-actions {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.link-date {
|
||||
color: var(--text-muted);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.archive-btn {
|
||||
background: rgba(139, 92, 246, 0.2);
|
||||
color: var(--secondary-color);
|
||||
border: 1px solid var(--secondary-color);
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 6px;
|
||||
font-size: 0.85rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.archive-btn:hover {
|
||||
background: var(--secondary-color);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.delete-btn {
|
||||
background: rgba(239, 68, 68, 0.2);
|
||||
color: var(--error);
|
||||
@@ -394,6 +516,7 @@ body {
|
||||
font-size: 0.85rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.delete-btn:hover {
|
||||
@@ -433,6 +556,18 @@ body {
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.toast-container {
|
||||
top: 0.75rem;
|
||||
right: 0.75rem;
|
||||
left: 0.75rem;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.toast {
|
||||
white-space: normal;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.top-header-bar {
|
||||
padding: 0.75rem 0;
|
||||
}
|
||||
@@ -457,10 +592,29 @@ body {
|
||||
|
||||
.header-right {
|
||||
max-width: 100%;
|
||||
flex-direction: row;
|
||||
gap: 0.75rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.search-wrapper {
|
||||
min-width: 100%;
|
||||
flex: 1;
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
.archive-toggle-wrapper {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.link-actions {
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.archive-btn,
|
||||
.delete-btn {
|
||||
flex: 1;
|
||||
min-width: 80px;
|
||||
}
|
||||
|
||||
.input-wrapper {
|
||||
@@ -477,3 +631,19 @@ body {
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 400px) {
|
||||
.header-right {
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.search-wrapper {
|
||||
min-width: 100%;
|
||||
}
|
||||
|
||||
.archive-toggle-wrapper {
|
||||
width: 100%;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user