New Entry functionality
This commit is contained in:
@@ -248,6 +248,31 @@ body::selection {
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
.new-entry-button {
|
||||
padding: 10px 13px;
|
||||
border: 1px solid var(--mauve);
|
||||
border-radius: 7px;
|
||||
background: var(--mauve);
|
||||
color: var(--crust);
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.new-entry-button:hover {
|
||||
background: var(--lavender);
|
||||
border-color: var(--lavender);
|
||||
}
|
||||
|
||||
.new-entry-button a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.new-entry-button.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.auth-menu {
|
||||
position: absolute;
|
||||
z-index: 30;
|
||||
@@ -768,6 +793,221 @@ button:disabled {
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
/* Entry form styling */
|
||||
.entry-form {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.entry-form.hidden,
|
||||
#auth-required.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#auth-required {
|
||||
max-width: 600px;
|
||||
margin: 40px auto;
|
||||
padding: 16px;
|
||||
background: var(--surface-0);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
border-left: 4px solid var(--red);
|
||||
}
|
||||
|
||||
#auth-required p {
|
||||
margin: 0;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
#auth-required a {
|
||||
color: var(--lavender);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#auth-required a:hover {
|
||||
color: var(--mauve);
|
||||
}
|
||||
|
||||
.form-section {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.form-section label {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.form-section > legend {
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
font-size: 0.95rem;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.form-section input[type='url'],
|
||||
.form-section input[type='text'],
|
||||
.form-section textarea {
|
||||
padding: 10px 12px;
|
||||
background: var(--mantle);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
color: var(--text);
|
||||
font-family: inherit;
|
||||
font-size: 0.95rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.form-section textarea {
|
||||
resize: vertical;
|
||||
min-height: 100px;
|
||||
}
|
||||
|
||||
.form-section input[type='url']:focus,
|
||||
.form-section input[type='text']:focus,
|
||||
.form-section textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--lavender);
|
||||
box-shadow: 0 0 0 3px rgba(180, 190, 254, 0.1);
|
||||
}
|
||||
|
||||
.tag-options {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px 10px;
|
||||
padding: 12px;
|
||||
background: var(--mantle);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.tag-checkbox {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
color: var(--subtext);
|
||||
font-size: 0.9rem;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.tag-checkbox input {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.form-section fieldset {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 12px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.form-section fieldset legend {
|
||||
margin: 0;
|
||||
padding: 0 6px;
|
||||
}
|
||||
|
||||
.form-section fieldset label {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.form-section fieldset input[type='text'] {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.form-section fieldset input[type='checkbox'] {
|
||||
width: auto;
|
||||
margin-right: 6px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.form-actions {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.form-actions button,
|
||||
.form-actions a {
|
||||
padding: 10px 16px;
|
||||
border-radius: 8px;
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.form-actions button[type='submit'],
|
||||
#scrape-button:not(:disabled) {
|
||||
background: var(--mauve);
|
||||
border: 1px solid var(--mauve);
|
||||
color: var(--crust);
|
||||
}
|
||||
|
||||
.form-actions button[type='submit']:hover:not(:disabled) {
|
||||
background: var(--lavender);
|
||||
border-color: var(--lavender);
|
||||
}
|
||||
|
||||
.form-actions button[type='submit']:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
#scrape-button {
|
||||
background: var(--surface-1);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
#scrape-button:not(:disabled):hover {
|
||||
background: var(--surface-2);
|
||||
border-color: var(--text);
|
||||
}
|
||||
|
||||
#scrape-button:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.form-actions a {
|
||||
background: var(--surface-1);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.form-actions a:hover {
|
||||
background: var(--surface-2);
|
||||
border-color: var(--text);
|
||||
}
|
||||
|
||||
.status {
|
||||
padding: 12px;
|
||||
border-radius: 8px;
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.status.success {
|
||||
background: rgba(131, 165, 152, 0.2);
|
||||
border: 1px solid var(--teal);
|
||||
color: var(--teal);
|
||||
}
|
||||
|
||||
.status.error {
|
||||
background: rgba(243, 139, 168, 0.2);
|
||||
border: 1px solid var(--red);
|
||||
color: var(--red);
|
||||
}
|
||||
|
||||
.status.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.container {
|
||||
padding: 0 14px;
|
||||
@@ -815,6 +1055,11 @@ button:disabled {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.new-entry-button {
|
||||
padding: 8px 11px;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.logout-button {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user