[Glitch] Implement quote posts in Moderator UI
Port 210b3896439c3ec741be477bfc4054ef3705a76e to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
4c0104084d
commit
2b2de5cdb1
@ -1976,60 +1976,77 @@ a.sparkline {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
|
|
||||||
|
&.status--has-quote {
|
||||||
|
.quote-inline {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.status__quote & {
|
||||||
|
// Remove the border from the .status__card within .status__quote
|
||||||
|
border: none;
|
||||||
|
|
||||||
|
.display-name__account {
|
||||||
|
line-height: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status__avatar,
|
||||||
|
.status__avatar .account__avatar {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.status__prepend {
|
.status__prepend {
|
||||||
padding: 0 0 15px;
|
padding: 0 0 15px;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status__content {
|
> details {
|
||||||
padding-top: 0;
|
summary {
|
||||||
|
display: block;
|
||||||
|
box-sizing: border-box;
|
||||||
|
background: var(--nested-card-background);
|
||||||
|
color: var(--nested-card-text);
|
||||||
|
border: var(--nested-card-border);
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 8px 13px;
|
||||||
|
position: relative;
|
||||||
|
font-size: 15px;
|
||||||
|
line-height: 22px;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
> details {
|
&::after {
|
||||||
summary {
|
content: attr(data-show, 'Show more');
|
||||||
|
margin-top: 8px;
|
||||||
display: block;
|
display: block;
|
||||||
box-sizing: border-box;
|
|
||||||
background: var(--nested-card-background);
|
|
||||||
color: var(--nested-card-text);
|
|
||||||
border: var(--nested-card-border);
|
|
||||||
border-radius: 8px;
|
|
||||||
padding: 8px 13px;
|
|
||||||
position: relative;
|
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
line-height: 22px;
|
line-height: 20px;
|
||||||
|
color: $highlight-text-color;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
border: 0;
|
||||||
&::after {
|
background: transparent;
|
||||||
content: attr(data-show, 'Show more');
|
padding: 0;
|
||||||
margin-top: 8px;
|
text-decoration: none;
|
||||||
display: block;
|
font-weight: 500;
|
||||||
font-size: 15px;
|
|
||||||
line-height: 20px;
|
|
||||||
color: $highlight-text-color;
|
|
||||||
cursor: pointer;
|
|
||||||
border: 0;
|
|
||||||
background: transparent;
|
|
||||||
padding: 0;
|
|
||||||
text-decoration: none;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover,
|
|
||||||
&:focus-visible {
|
|
||||||
&::after {
|
|
||||||
text-decoration: underline !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&[open] summary {
|
&:hover,
|
||||||
margin-bottom: 16px;
|
&:focus-visible {
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
content: attr(data-hide, 'Hide post');
|
text-decoration: underline !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&[open] summary {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
content: attr(data-hide, 'Hide post');
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.preview-card {
|
.preview-card {
|
||||||
@ -2086,6 +2103,14 @@ a.sparkline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.detailed-status__meta {
|
||||||
|
.detailed-status__application,
|
||||||
|
.detailed-status__datetime,
|
||||||
|
.detailed-status__link {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin {
|
.admin {
|
||||||
|
|||||||
@ -356,7 +356,7 @@ a.table-action-link {
|
|||||||
|
|
||||||
// Reset the status card to not have borders, background or padding when
|
// Reset the status card to not have borders, background or padding when
|
||||||
// inline in the table of statuses
|
// inline in the table of statuses
|
||||||
.status__card {
|
.batch-table__row__content > .status__card {
|
||||||
border: none;
|
border: none;
|
||||||
background: none;
|
background: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user