gnu-social/public/assets/default_theme/pages/feeds.css

423 lines
7.6 KiB
CSS

.favourite-button-container {
-moz-mask-image: url("../icons/heart.svg");
-o-mask-image: url("../icons/heart.svg");
-webkit-mask-image: url("../icons/heart.svg");
mask-image: url("../icons/heart.svg");
}
.reply-button-container {
-moz-mask-image: url("../icons/reply.svg");
-o-mask-image: url("../icons/reply.svg");
-webkit-mask-image: url("../icons/reply.svg");
mask-image: url("../icons/reply.svg");
}
.repeat-button-container {
-moz-mask-image: url("../icons/repeat.svg");
-o-mask-image: url("../icons/repeat.svg");
-webkit-mask-image: url("../icons/repeat.svg");
mask-image: url("../icons/repeat.svg");
}
.delete-button-container {
-moz-mask-image: url("../icons/delete.svg");
-o-mask-image: url("../icons/delete.svg");
-webkit-mask-image: url("../icons/delete.svg");
mask-image: url("../icons/delete.svg");
}
.icon-eye-opened {
background-color: var(--foreground);
-moz-mask-image: url("../icons/eye-opened.svg");
-o-mask-image: url("../icons/eye-opened.svg");
-webkit-mask-image: url("../icons/eye-opened.svg");
mask-image: url("../icons/eye-opened.svg");
display: inline-flex;
height: 1em;
width: 1em;
}
.icon-eye-closed {
background-color: var(--foreground);
-moz-mask-image: url("../icons/eye-closed.svg");
-o-mask-image: url("../icons/eye-closed.svg");
-webkit-mask-image: url("../icons/eye-closed.svg");
mask-image: url("../icons/eye-closed.svg");
display: inline-flex;
height: 1em;
width: 1em;
}
.embed {
border: unset;
display: flex;
padding: var(--s);
}
.embed .p-author,
.embed .p-name {
font-weight: 700;
}
.embed .p-summary {
width: 60%;
}
.embed .p-summary hr {
margin-bottom: var(--s);
margin-top: var(--s);
}
.embed header {
margin-bottom: var(--m);
width: 100%;
}
.embed img {
height: auto;
margin-right: var(--s);
width: 25%;
}
.embed img {
max-height: min-content;
max-width: min-content;
padding: unset;
}
.feed-actions-details summary,
.note-actions-extra-details summary {
display: block;
}
.feed-actions-details-dropdown {
font-size: 0.937rem;
}
.feed-actions-details[open]>.feed-actions-details-dropdown,
.note-actions-extra-details[open]>summary+* {
background: var(--background-card);
border: 1px solid var(--border);
border-radius: var(--s);
box-shadow: var(--shadow);
display: flex;
flex-direction: column;
padding: 4px 8px;
position: absolute;
right: 0;
width: max-content;
z-index: 1;
}
.feed-actions-details[open]>summary,
.note-actions-extra-details[open]>summary {
opacity: 1 !important;
}
.feed-actions-details[open] svg {
height: auto;
width: 1em;
}
.feed-empty {
display: flex;
}
.feed-empty .feed-background {
height: auto;
margin-left: auto;
margin-right: auto;
margin-top: var(--xxl);
opacity: 3%;
width: 40%;
}
.feed-header {
display: flex;
margin-bottom: var(--m);
align-items: center;
}
.feed-header .feed-actions {
margin-left: auto;
text-transform: capitalize;
}
.h-entry {
background-color: var(--background-card);
border-radius: var(--s);
display: flex;
flex-wrap: wrap;
}
.h-entry .embed[class*="p-"] {
padding: unset;
}
.note-replies .note-replies {
margin-left: 1em;
}
.note-replies-indicator {
font-size: 32px;
opacity: 0.66;
margin-right: 8px;
float: left;
}
.note-replies-indicator::before {
content: '\201C';
font-size: 1em;
opacity: 0.66;
margin-right: 0.33em;
}
.note-replies-parent {
opacity: 0.66;
font-size: 0.937rem;
}
.h-entry a:focus {
text-decoration: underline;
}
.h-entry figure,
.note-attachments-unit figure {
background: var(--gradient);
border-radius: var(--s);
margin: unset;
padding: var(--s);
}
.h-entry img,
.note-attachments-unit figure img {
background: repeating-conic-gradient(#ffffff66 0deg 90deg, #ffffff33 0deg 180deg) 0 0/40px 40px round;
}
.h-entry-language {
background: var(--gradient-backwards);
border-radius: 0 0 var(--s) 0;
color: var(--foreground);
float: right;
padding: 6px 12px;
position: relative;
}
.h-entry:not(:first-child) {
margin-top: var(--s);
}
.h-entry:not(embed) {
border: 1px solid var(--border);
}
.h-entry[id^="note-anchor-"]:target {
border: 2px solid var(--accent) !important;
}
.note-attachments {
display: flex;
flex-wrap: wrap;
}
.note-attachments-unit {
border-radius: var(--s);
display: flex;
max-width: max-content;
height: min-content;
padding: 4px;
}
.note-attachments-unit>figure figcaption {
display: flex;
word-break: break-all;
}
.note-attachments-unit:not(:only-child) {
margin-right: var(--s);
}
.note-info,
embed header {
border-bottom: unset;
border-radius: 0 var(--s) 0 0;
display: flex;
line-height: initial;
padding: 4px var(--s) 0 0;
}
.note-info {
display: flex;
align-items: flex-start;
white-space: nowrap;
overflow: auto;
touch-action: manipulation;
text-overflow: ellipsis;
}
.note-info .note-conversation-info,
.note-info .note-author-uri {
margin-left: 4px;
}
.note-info small {
opacity: 0.5;
}
.note-author-url {
font-weight: 700;
}
.note-author-uri,
.note-conversation-info {
font-style: italic;
}
.note-actions {
display: flex;
flex-direction: initial;
justify-content: flex-end;
flex: 1;
align-items: center;
}
.note-actions>li {
display: inline-block;
margin-left: 8px;
}
.note-actions-extra-details ul {
display: flex;
flex-direction: column;
}
.note-actions-extra-details hr {
margin: unset;
}
.note-actions-extra-details summary {
opacity: 0.5;
}
.note-actions-extra-details[open]>summary+*>a {
font-size: 0.937rem;
line-height: 2;
}
.note-actions-set {
opacity: 1 !important;
}
.note-end {
display: flex;
}
.note-complementary {
width: 100%;
display: flex;
flex-wrap: wrap;
font-size: 0.937rem;
background: var(--gradient-backwards);
padding: 4px 8px;
border-radius: 0 0 var(--s) 0;
}
.note-complementary-info a {
font-weight: 700;
}
.note-complementary-info span {
display: block;
line-height: 1.3;
}
.note-content {
border-radius: 0 0 var(--s) var(--s);
display: block;
padding: 0 0 8px 0;
flex: 1;
}
.note-replies-start {
font-size: 0.937rem;
font-weight: 700;
opacity: 0.5;
}
.hr-replies-end {
margin-top: var(--xl);
margin-bottom: var(--xl);
}
.note-sidebar {
display: flex;
flex-direction: column;
padding: var(--s);
}
.note-sidebar>* {
border-radius: 2px;
height: auto;
max-height: 3rem;
max-width: 3rem;
width: 100%;
}
.note-sidebar img {
background: unset !important;
}
.note-text a {
text-decoration: underline !important;
}
.note-text p:not(:last-of-type) {
display: block;
margin-bottom: var(--s);
width: 100%;
}
.note-text-details-summary:after {
content: "\2193";
}
.note-text-details .note-text-details-summary small {
font-style: italic;
}
.note-text-details[open] summary:after {
content: "\2191";
float: right;
}
.note-text-details[open] .note-text-details-summary small {
display: none;
}
.note-wrapper {
height: inherit;
flex: 1;
}
@media only screen and (max-width: 1280px) {
.note-sidebar {
max-width: min-content !important;
}
.note-sidebar .avatar {
min-width: var(--xl) !important;
}
.note-replies .note-replies {
margin-left: 0.33em;
}
.note-replies-indicator::before {
content: '\201C';
font-size: 1em;
opacity: 0.66;
margin-right: 0.33em;
}
}