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
|
|
|
*/
|
|
|
|
|
2022-08-07 18:58:01 +03:00
|
|
|
@import "photoswipe/dist/photoswipe.css";
|
|
|
|
@import "photoswipe-dynamic-caption-plugin/photoswipe-dynamic-caption-plugin.css";
|
|
|
|
|
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;
|
2021-09-13 15:45:33 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.toot {
|
2022-07-04 17:23:59 +03:00
|
|
|
background: $status_unfocus_bg;
|
|
|
|
box-shadow: $boxshadow;
|
|
|
|
border: $boxshadow_border;
|
2021-09-13 15:45:33 +03:00
|
|
|
position: relative;
|
2022-06-21 11:48:42 +03:00
|
|
|
margin-bottom: $br;
|
|
|
|
border-radius: $br;
|
2022-07-04 17:23:59 +03:00
|
|
|
padding: 1.5rem 0;
|
2021-09-13 15:45:33 +03:00
|
|
|
|
|
|
|
a {
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
|
|
|
color: inherit;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2022-07-04 17:23:59 +03:00
|
|
|
.contentgrid {
|
|
|
|
padding: 0 1.5rem;
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 4rem auto 1fr;
|
|
|
|
grid-template-rows: 1.5rem auto auto;
|
|
|
|
column-gap: 0.5rem;
|
|
|
|
}
|
|
|
|
|
2021-09-13 15:45:33 +03:00
|
|
|
.avatar {
|
|
|
|
grid-row: span 2;
|
2022-06-21 11:48:42 +03:00
|
|
|
aspect-ratio: 1/1;
|
2022-07-04 17:23:59 +03:00
|
|
|
|
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;
|
|
|
|
border-radius: calc($br / 1.5);
|
2021-09-13 15:45:33 +03:00
|
|
|
}
|
|
|
|
}
|
2022-07-04 17:23:59 +03:00
|
|
|
|
2021-09-13 15:45:33 +03:00
|
|
|
.displayname {
|
2022-07-09 14:37:06 +03:00
|
|
|
grid-column: span 2;
|
2021-09-13 15:45:33 +03:00
|
|
|
font-weight: bold;
|
|
|
|
font-size: 1.2rem;
|
2022-07-04 17:23:59 +03:00
|
|
|
line-height: 2rem;
|
|
|
|
margin-top: -0.5rem;
|
2021-09-13 15:45:33 +03:00
|
|
|
align-self: start;
|
2022-07-09 14:37:06 +03:00
|
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2021-09-13 15:45:33 +03:00
|
|
|
}
|
2022-07-04 17:23:59 +03:00
|
|
|
|
2021-09-13 15:45:33 +03:00
|
|
|
.username {
|
2022-07-04 17:23:59 +03:00
|
|
|
color: $link_fg;
|
|
|
|
line-height: 2rem;
|
|
|
|
margin-top: -0.5rem;
|
|
|
|
align-self: start;
|
2022-07-09 14:37:06 +03:00
|
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2021-09-13 15:45:33 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
input.spoiler:checked ~ .content {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.spoiler {
|
2022-08-27 12:40:51 +03:00
|
|
|
padding-bottom: 0.5rem;
|
|
|
|
|
2022-07-09 14:36:56 +03:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
gap: 0.4rem;
|
|
|
|
|
|
|
|
.spoiler-text {
|
|
|
|
word-break: break-word;
|
|
|
|
}
|
|
|
|
|
2021-09-13 15:45:33 +03:00
|
|
|
label {
|
2022-07-04 17:23:59 +03:00
|
|
|
padding: 0.2rem 0.3rem;
|
2021-09-13 15:45:33 +03:00
|
|
|
cursor: pointer;
|
2022-07-04 17:23:59 +03:00
|
|
|
font-size: 1rem;
|
2021-09-13 15:45:33 +03:00
|
|
|
}
|
2022-06-21 11:48:42 +03:00
|
|
|
label:hover {
|
|
|
|
}
|
2021-09-13 15:45:33 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.text {
|
|
|
|
margin: 0;
|
2022-07-04 17:23:59 +03:00
|
|
|
margin-top: 0.5rem;
|
2022-08-27 12:40:51 +03:00
|
|
|
grid-column: span 3;
|
|
|
|
grid-row: span 1;
|
2022-08-11 20:11:19 +03:00
|
|
|
overflow: hidden;
|
2021-09-13 15:45:33 +03:00
|
|
|
|
2022-07-09 14:36:56 +03:00
|
|
|
position: relative;
|
|
|
|
z-index: 2;
|
|
|
|
|
2021-09-13 15:45:33 +03:00
|
|
|
a {
|
2022-07-04 17:23:59 +03:00
|
|
|
color: $link_fg;
|
2021-09-13 15:45:33 +03:00
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2022-07-13 12:28:05 +03:00
|
|
|
|
|
|
|
.content {
|
2022-08-11 20:11:19 +03:00
|
|
|
padding-top: 0.5rem;
|
|
|
|
padding-bottom: 0.5rem;
|
|
|
|
|
2022-07-13 12:28:05 +03:00
|
|
|
word-break: break-word;
|
2022-08-07 14:47:30 +03:00
|
|
|
|
|
|
|
blockquote {
|
|
|
|
padding: 0.5rem 0 0.5rem 1.5rem;
|
|
|
|
border-left: 0.2rem solid $sloth_orange1;
|
|
|
|
margin-left: 1rem;
|
|
|
|
font-style: italic;
|
|
|
|
}
|
2022-08-11 20:11:19 +03:00
|
|
|
|
|
|
|
hr {
|
|
|
|
border: 1px dashed $sloth_orange1;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre, code {
|
|
|
|
background-color: $sloth_gray2_darker7;
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
padding: 0.25rem;
|
|
|
|
border-radius: $br_inner;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
display: flex;
|
|
|
|
border-radius: $br;
|
|
|
|
padding: 0.5rem;
|
|
|
|
|
|
|
|
code {
|
|
|
|
padding: 0.5rem;
|
|
|
|
white-space: pre;
|
|
|
|
border-radius: 0;
|
|
|
|
overflow-x: auto;
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
}
|
|
|
|
}
|
2022-07-13 12:28:05 +03:00
|
|
|
}
|
2021-09-13 15:45:33 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.media {
|
|
|
|
margin-top: 0.6rem;
|
2022-08-14 20:22:13 +03:00
|
|
|
border-radius: $br;
|
2021-09-13 15:45:33 +03:00
|
|
|
grid-column: span 3;
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 50% 50%;
|
|
|
|
grid-auto-rows: 10rem;
|
|
|
|
overflow: hidden;
|
|
|
|
gap: 0.3rem;
|
|
|
|
|
2022-08-14 20:22:13 +03:00
|
|
|
.media-wrapper {
|
2021-09-13 15:45:33 +03:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2022-08-14 20:22:13 +03:00
|
|
|
&.single .media-wrapper {
|
|
|
|
grid-column: span 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.odd .media-wrapper:first-child, &.double .media-wrapper {
|
|
|
|
grid-row: span 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.open, .open .button {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.closed {
|
|
|
|
z-index: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
input.sensitive-checkbox:checked { /* Media is shown */
|
|
|
|
& ~ .sensitive {
|
|
|
|
.closed {
|
|
|
|
transition: 0.8s;
|
|
|
|
pointer-events: none;
|
|
|
|
opacity: 0;
|
|
|
|
|
|
|
|
& > * {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.open {
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
|
|
|
.button {
|
|
|
|
align-self: flex-start;
|
|
|
|
display: initial;
|
|
|
|
z-index: 4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sensitive {
|
|
|
|
position: absolute;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
.open, .closed {
|
|
|
|
display: flex;
|
|
|
|
position: absolute;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
justify-content: center;
|
|
|
|
padding: 1rem;
|
|
|
|
|
|
|
|
label {
|
|
|
|
z-index: 3;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.closed {
|
|
|
|
transition: 0.3s;
|
|
|
|
background: $bg_sensitive;
|
|
|
|
@supports (backdrop-filter: blur(2rem)) {
|
|
|
|
background: transparent;
|
|
|
|
backdrop-filter: blur(2rem);
|
|
|
|
}
|
|
|
|
|
|
|
|
.button {
|
|
|
|
align-self: center;
|
|
|
|
justify-self: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-13 15:45:33 +03:00
|
|
|
.no-image-desc {
|
2022-08-14 20:22:13 +03:00
|
|
|
color: $button_fg;
|
2021-09-13 15:45:33 +03:00
|
|
|
display: flex;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0.1rem;
|
|
|
|
right: 0.4rem;
|
2022-08-14 20:22:13 +03:00
|
|
|
margin-bottom: 0.4rem;
|
|
|
|
margin-right: 0.4rem;
|
|
|
|
background: $bg_no_img_desc;
|
|
|
|
padding: 0.1rem 0.45rem;
|
2021-09-13 15:45:33 +03:00
|
|
|
border-radius: 100%;
|
2022-08-14 20:22:13 +03:00
|
|
|
border: 0.2rem solid $button_fg;
|
2021-09-13 15:45:33 +03:00
|
|
|
z-index: 3;
|
|
|
|
|
|
|
|
i.fa {
|
|
|
|
display: block;
|
2022-08-14 20:22:13 +03:00
|
|
|
line-height: 1.6rem;
|
2021-09-13 15:45:33 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
|
|
|
margin-left: 0.3rem;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
span {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
border-radius: 0.2rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
object-fit: cover;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.info {
|
|
|
|
display: none;
|
2022-07-04 17:23:59 +03:00
|
|
|
border-top: 0.15rem solid $status_unfocus_bg;
|
|
|
|
padding: 0.5rem 1.5rem;
|
2021-09-13 15:45:33 +03:00
|
|
|
|
|
|
|
div {
|
|
|
|
position: relative;
|
|
|
|
padding-right: 1.3rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.stats {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
grid-column: span 3;
|
|
|
|
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-07-04 17:23:59 +03:00
|
|
|
border-top-left-radius: $br;
|
|
|
|
border-top-right-radius: $br;
|
2021-09-13 15:45:33 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
/* bottom left, bottom right */
|
2022-07-04 17:23:59 +03:00
|
|
|
border-bottom-left-radius: $br;
|
|
|
|
border-bottom-right-radius: $br;
|
2022-06-21 11:48:42 +03:00
|
|
|
margin-bottom: 0;
|
2021-09-13 15:45:33 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
&.expanded {
|
2022-07-04 17:23:59 +03:00
|
|
|
background: $status_focus_bg;
|
|
|
|
padding-bottom: 0;
|
2021-09-13 15:45:33 +03:00
|
|
|
|
2022-08-27 12:40:51 +03:00
|
|
|
.contentgrid {
|
|
|
|
padding-bottom: 1rem;
|
2021-09-13 15:45:33 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.info {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
footer + div { /* something weird from the devstack.. */
|
|
|
|
display: none;
|
|
|
|
}
|