2022-06-09 13:51:19 +03:00
|
|
|
/*
|
2022-06-21 11:48:42 +03:00
|
|
|
GoToSocial
|
|
|
|
Copyright (C) 2021-2022 GoToSocial Authors admin@gotosocial.org
|
2022-06-09 13:51:19 +03:00
|
|
|
|
2022-06-21 11:48:42 +03:00
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Affero General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
2022-06-09 13:51:19 +03:00
|
|
|
|
2022-06-21 11:48:42 +03:00
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Affero General Public License for more details.
|
2022-06-09 13:51:19 +03:00
|
|
|
|
2022-06-21 11:48:42 +03:00
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2022-06-09 13:51:19 +03:00
|
|
|
*/
|
|
|
|
|
2021-09-13 15:45:33 +03:00
|
|
|
main {
|
|
|
|
background: transparent;
|
|
|
|
grid-auto-rows: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.thread {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-06-21 11:48:42 +03:00
|
|
|
border-radius: $br;
|
|
|
|
background: $bg_darker5;
|
|
|
|
box-shadow: $boxshadow;
|
2021-09-13 15:45:33 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.toot {
|
|
|
|
position: relative;
|
2022-06-09 13:51:19 +03:00
|
|
|
background: $bg_darker3;
|
2022-06-21 11:48:42 +03:00
|
|
|
padding: 1.5rem;
|
2021-09-13 15:45:33 +03:00
|
|
|
display: grid;
|
2022-06-21 11:48:42 +03:00
|
|
|
grid-template-columns: 4rem auto 1fr;
|
2021-09-13 15:45:33 +03:00
|
|
|
column-gap: 0.5rem;
|
2022-06-21 11:48:42 +03:00
|
|
|
margin-bottom: $br;
|
|
|
|
border-radius: $br;
|
2021-09-13 15:45:33 +03:00
|
|
|
|
|
|
|
a {
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
|
|
|
color: inherit;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.avatar {
|
|
|
|
grid-row: span 2;
|
2022-06-21 11:48:42 +03:00
|
|
|
aspect-ratio: 1/1;
|
2021-09-13 15:45:33 +03:00
|
|
|
|
|
|
|
img {
|
2022-06-21 11:48:42 +03:00
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2021-09-13 15:45:33 +03:00
|
|
|
object-fit: cover;
|
2022-06-21 11:48:42 +03:00
|
|
|
background: $bg;
|
|
|
|
border: 0.1rem solid $acc2;
|
|
|
|
/* box-sizing: border-box; */
|
|
|
|
border-radius: calc($br / 1.5);
|
2021-09-13 15:45:33 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.displayname {
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 1.2rem;
|
|
|
|
align-self: start;
|
|
|
|
}
|
|
|
|
|
|
|
|
.username {
|
|
|
|
color: $fg_dark;
|
|
|
|
justify-self: start;
|
|
|
|
}
|
|
|
|
|
|
|
|
input.spoiler:checked ~ .content {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.spoiler {
|
|
|
|
label {
|
|
|
|
background: $acc1;
|
|
|
|
border-radius: 0.3rem;
|
|
|
|
padding: 0.3rem;
|
|
|
|
margin-left: 0.4rem;
|
|
|
|
position: relative;
|
|
|
|
z-index: 2;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2022-06-21 11:48:42 +03:00
|
|
|
label:hover {
|
|
|
|
background: $acc2;
|
|
|
|
}
|
2021-09-13 15:45:33 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.text {
|
|
|
|
margin: 0;
|
|
|
|
grid-column: span 2;
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: $acc1;
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.media {
|
|
|
|
margin-top: 0.6rem;
|
|
|
|
border-radius: 0.2rem;
|
|
|
|
grid-column: span 3;
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 50% 50%;
|
|
|
|
grid-auto-rows: 10rem;
|
|
|
|
overflow: hidden;
|
|
|
|
gap: 0.3rem;
|
|
|
|
|
|
|
|
a {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.no-image-desc {
|
|
|
|
display: flex;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0.1rem;
|
|
|
|
right: 0.4rem;
|
|
|
|
color: white;
|
|
|
|
background: $blue;
|
|
|
|
padding: 0.2rem 0.4rem;
|
|
|
|
border-radius: 100%;
|
|
|
|
z-index: 3;
|
|
|
|
|
|
|
|
i.fa {
|
|
|
|
display: block;
|
|
|
|
line-height: 1.3rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
|
|
|
margin-left: 0.3rem;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
span {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
border-radius: 0.2rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
object-fit: cover;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.single a {
|
|
|
|
grid-column: span 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.odd a:first-child, &.double a {
|
|
|
|
grid-row: span 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.info {
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
div {
|
|
|
|
position: relative;
|
|
|
|
padding-right: 1.3rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.stats {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
color: #b0b0b5;
|
|
|
|
grid-column: span 3;
|
|
|
|
margin-top: 0.5rem;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
|
|
div.stats::after {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
div::after {
|
|
|
|
$size: 0.25rem;
|
|
|
|
display: block;
|
|
|
|
background: $fg_dark;
|
|
|
|
height: $size;
|
|
|
|
width: $size;
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
top: calc((1.5rem - $size) / 2);
|
|
|
|
right: 0.55rem;
|
|
|
|
border-radius: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
div:last-child {
|
|
|
|
&::after {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.toot-link {
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
text-indent: 100%;
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
z-index: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
/* top left, top right */
|
2022-06-21 11:48:42 +03:00
|
|
|
border-radius: $br $br 0 0;
|
2021-09-13 15:45:33 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
/* bottom left, bottom right */
|
2022-06-21 11:48:42 +03:00
|
|
|
border-radius: 0 0 $br $br;
|
2021-09-13 15:45:33 +03:00
|
|
|
padding-bottom: 1.5rem;
|
2022-06-21 11:48:42 +03:00
|
|
|
margin-bottom: 0;
|
2021-09-13 15:45:33 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
&.expanded {
|
|
|
|
background: $bg;
|
|
|
|
padding-bottom: 1.5rem;
|
|
|
|
|
|
|
|
.displayname {
|
|
|
|
grid-column: span 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.text {
|
|
|
|
grid-column: span 3;
|
|
|
|
grid-row: span 1;
|
|
|
|
margin-top: 0.3rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.info {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.media {
|
|
|
|
grid-auto-rows: 1fr;
|
|
|
|
max-height: 120rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
footer + div { /* something weird from the devstack.. */
|
|
|
|
display: none;
|
|
|
|
}
|