Gate shares behind magic-link sessions, add comments and new-photo email digests

This commit is contained in:
zyphlar
2026-10-19 15:10:57 -07:00
parent c8d8dc9dbc
commit f598200e24
34 changed files with 3387 additions and 375 deletions
+111
View File
@@ -450,3 +450,114 @@ html.ipp-sidebar-open .ipp-sidebar {
opacity: 0.6;
text-align: center;
}
/* ============================================================================
Comments, the last section of the sidebar
============================================================================ */
.ipp-sidebar-comments {
border-top: 1px solid var(--color-gray);
margin-top: 8px;
}
.ipp-sidebar-comments-only {
border-top: none;
margin-top: 0;
}
.ipp-comments-list .ipp-sidebar-empty {
padding: 8px 0;
text-align: left;
}
.ipp-comment {
padding: 10px 0;
border-bottom: 1px solid rgba(127, 127, 127, 0.2);
}
.ipp-comment header {
display: flex;
align-items: baseline;
gap: 8px;
flex-wrap: wrap;
}
.ipp-comment time {
font-size: 12px;
opacity: 0.6;
}
.ipp-comment p {
margin: 4px 0 0;
white-space: pre-wrap;
word-break: break-word;
}
.ipp-comment-delete {
border: none;
background: none;
color: var(--color-fg);
opacity: 0.6;
font-size: 12px;
padding: 4px 0 0;
cursor: pointer;
}
.ipp-comment-delete:hover {
opacity: 1;
text-decoration: underline;
}
.ipp-comment-form {
display: flex;
flex-direction: column;
gap: 8px;
padding-top: 12px;
}
.ipp-comment-input {
width: 100%;
box-sizing: border-box;
resize: vertical;
min-height: 64px;
font: inherit;
color: var(--color-fg);
background: var(--color-bg);
border: 1px solid var(--color-gray);
border-radius: 8px;
padding: 8px 10px;
}
.ipp-comment-input:focus {
outline: 2px solid var(--color-primary);
outline-offset: -1px;
}
.ipp-comment-submit {
align-self: flex-end;
border: none;
border-radius: 999px;
padding: 6px 18px;
background: var(--color-primary);
color: var(--color-bg);
font: inherit;
font-weight: 500;
cursor: pointer;
}
.ipp-comment-submit:disabled {
opacity: 0.5;
cursor: default;
}
.ipp-comment-error {
margin: 0;
color: var(--color-danger);
font-size: 13px;
}
/* Count badge on the lightbox's comments button */
.pswp__button--comments-toggle {
position: relative;
}
.ipp-comment-badge {
position: absolute;
top: 8px;
right: 6px;
min-width: 16px;
height: 16px;
padding: 0 4px;
box-sizing: border-box;
border-radius: 8px;
background: var(--color-primary);
color: #fff;
font: 600 10px/16px var(--font-sans);
text-align: center;
pointer-events: none;
}