Gate shares behind magic-link sessions, add comments and new-photo email digests
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user