adds favorites
This commit is contained in:
@@ -64,7 +64,7 @@ button:disabled {
|
||||
|
||||
.entry-stack {
|
||||
display: grid;
|
||||
width: min(760px, 100%);
|
||||
width: min(980px, 100%);
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
@@ -96,7 +96,12 @@ button:disabled {
|
||||
}
|
||||
|
||||
.url-form button,
|
||||
.control-button {
|
||||
.control-button,
|
||||
.small-button,
|
||||
.secondary-button,
|
||||
.primary-button,
|
||||
.icon-button,
|
||||
.remove-favorite {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 999px;
|
||||
color: var(--fg);
|
||||
@@ -111,28 +116,61 @@ button:disabled {
|
||||
color: #070707;
|
||||
}
|
||||
|
||||
.recent-panel {
|
||||
.library-panel {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.url-column {
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 28px;
|
||||
border-radius: 24px;
|
||||
background: rgba(255, 255, 255, 0.07);
|
||||
box-shadow: 0 18px 80px rgba(0, 0, 0, 0.28);
|
||||
backdrop-filter: blur(18px);
|
||||
}
|
||||
|
||||
.recent-list {
|
||||
.column-heading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
min-height: 3.2rem;
|
||||
padding: 0.55rem 0.75rem 0.2rem 1rem;
|
||||
}
|
||||
|
||||
.column-heading h2,
|
||||
.modal-heading h2 {
|
||||
margin: 0;
|
||||
font-size: 0.86rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0;
|
||||
text-transform: uppercase;
|
||||
color: var(--soft);
|
||||
}
|
||||
|
||||
.small-button {
|
||||
flex: 0 0 auto;
|
||||
min-width: 4.2rem;
|
||||
padding: 0.45rem 0.8rem;
|
||||
font-size: 0.84rem;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.url-list {
|
||||
display: grid;
|
||||
max-height: min(42vh, 24rem);
|
||||
overflow: auto;
|
||||
padding: 0.35rem;
|
||||
}
|
||||
|
||||
.recent-url {
|
||||
.url-item {
|
||||
display: block;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
border: 0;
|
||||
border-radius: 20px;
|
||||
border-radius: 16px;
|
||||
padding: 0.85rem 1rem;
|
||||
color: var(--soft);
|
||||
text-align: left;
|
||||
@@ -141,13 +179,19 @@ button:disabled {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.recent-url:hover,
|
||||
.recent-url:focus {
|
||||
.url-item:hover,
|
||||
.url-item:focus {
|
||||
color: var(--fg);
|
||||
background: rgba(255, 255, 255, 0.09);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.empty-list {
|
||||
margin: 0;
|
||||
padding: 0.85rem 1rem;
|
||||
color: rgba(246, 241, 232, 0.42);
|
||||
}
|
||||
|
||||
.message {
|
||||
position: fixed;
|
||||
bottom: 2rem;
|
||||
@@ -365,6 +409,107 @@ audio {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.modal {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 10;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 1rem;
|
||||
background: rgba(0, 0, 0, 0.72);
|
||||
backdrop-filter: blur(12px);
|
||||
}
|
||||
|
||||
.modal-panel {
|
||||
display: grid;
|
||||
width: min(860px, 100%);
|
||||
max-height: min(760px, calc(100vh - 2rem));
|
||||
overflow: auto;
|
||||
gap: 0.85rem;
|
||||
margin: 0;
|
||||
padding: 1rem;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: var(--glass-strong);
|
||||
box-shadow: 0 28px 120px rgba(0, 0, 0, 0.55);
|
||||
}
|
||||
|
||||
.modal-heading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.icon-button {
|
||||
display: grid;
|
||||
width: 2.3rem;
|
||||
height: 2.3rem;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
font-size: 1.2rem;
|
||||
font-weight: 800;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.favorites-editor-list {
|
||||
display: grid;
|
||||
gap: 0.55rem;
|
||||
}
|
||||
|
||||
.favorite-editor-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(8rem, 0.8fr) minmax(12rem, 1.6fr) auto;
|
||||
gap: 0.55rem;
|
||||
}
|
||||
|
||||
.favorite-editor-row input {
|
||||
min-width: 0;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
padding: 0.72rem 0.8rem;
|
||||
color: var(--fg);
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.favorite-editor-row input::placeholder {
|
||||
color: rgba(246, 241, 232, 0.42);
|
||||
}
|
||||
|
||||
.favorite-editor-row input:focus {
|
||||
border-color: rgba(232, 168, 79, 0.7);
|
||||
}
|
||||
|
||||
.secondary-button,
|
||||
.primary-button,
|
||||
.remove-favorite {
|
||||
min-height: 2.7rem;
|
||||
padding: 0.65rem 0.95rem;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.primary-button {
|
||||
border-color: transparent;
|
||||
color: #070707;
|
||||
background: var(--fg);
|
||||
}
|
||||
|
||||
.modal-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
|
||||
.modal-message {
|
||||
min-height: 1.2rem;
|
||||
color: var(--soft);
|
||||
}
|
||||
|
||||
.modal-message:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
@@ -386,6 +531,29 @@ audio {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.library-panel {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.url-list {
|
||||
max-height: 28vh;
|
||||
}
|
||||
|
||||
.favorite-editor-row {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.remove-favorite,
|
||||
.secondary-button,
|
||||
.primary-button {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.modal-actions {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
|
||||
.controls {
|
||||
right: 0.75rem;
|
||||
bottom: 0.75rem;
|
||||
|
||||
Reference in New Issue
Block a user