2022-06-09 10:51:19 +00:00
|
|
|
/*
|
2022-06-21 08:48:42 +00:00
|
|
|
GoToSocial
|
2023-01-05 11:43:00 +00:00
|
|
|
Copyright (C) 2021-2023 GoToSocial Authors admin@gotosocial.org
|
2022-06-09 10:51:19 +00:00
|
|
|
|
2022-06-21 08:48:42 +00: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 10:51:19 +00:00
|
|
|
|
2022-06-21 08:48:42 +00: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 10:51:19 +00:00
|
|
|
|
2022-06-21 08:48:42 +00: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 10:51:19 +00:00
|
|
|
*/
|
|
|
|
|
2022-08-07 15:58:01 +00:00
|
|
|
@import "photoswipe/dist/photoswipe.css";
|
|
|
|
@import "photoswipe-dynamic-caption-plugin/photoswipe-dynamic-caption-plugin.css";
|
|
|
|
|
2021-09-13 12:45:33 +00:00
|
|
|
main {
|
|
|
|
background: transparent;
|
|
|
|
grid-auto-rows: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.thread {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-06-21 08:48:42 +00:00
|
|
|
border-radius: $br;
|
2021-09-13 12:45:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.toot {
|
2022-09-29 10:02:41 +00:00
|
|
|
background: $toot-unfocus-bg;
|
2022-07-04 14:23:59 +00:00
|
|
|
box-shadow: $boxshadow;
|
2022-09-29 10:02:41 +00:00
|
|
|
border: $boxshadow-border;
|
2021-09-13 12:45:33 +00:00
|
|
|
position: relative;
|
2022-06-21 08:48:42 +00:00
|
|
|
margin-bottom: $br;
|
2022-09-29 10:02:41 +00:00
|
|
|
padding-top: 1.5rem;
|
|
|
|
padding-bottom: 0.7rem;
|
2021-09-13 12:45:33 +00:00
|
|
|
|
|
|
|
a {
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
|
|
|
color: inherit;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2022-07-04 14:23:59 +00:00
|
|
|
.contentgrid {
|
|
|
|
padding: 0 1.5rem;
|
|
|
|
display: grid;
|
2022-09-29 10:02:41 +00:00
|
|
|
grid-template-columns: 4rem 1fr auto;
|
|
|
|
grid-template-rows: 1.5rem auto auto auto;
|
2022-07-04 14:23:59 +00:00
|
|
|
column-gap: 0.5rem;
|
|
|
|
}
|
|
|
|
|
2022-09-29 10:02:41 +00:00
|
|
|
.not-expanded {
|
|
|
|
color: $fg-reduced;
|
|
|
|
grid-column: 3;
|
|
|
|
grid-row: 1;
|
|
|
|
}
|
|
|
|
|
2021-09-13 12:45:33 +00:00
|
|
|
.avatar {
|
2022-09-29 10:02:41 +00:00
|
|
|
grid-row: span 3;
|
2022-06-21 08:48:42 +00:00
|
|
|
aspect-ratio: 1/1;
|
2022-09-29 10:02:41 +00:00
|
|
|
display: flex;
|
|
|
|
border: 0.2rem solid $avatar-border;
|
|
|
|
border-radius: 0.4rem;
|
|
|
|
overflow: hidden; /* hides corners from img overflowing */
|
2022-07-04 14:23:59 +00:00
|
|
|
|
2021-09-13 12:45:33 +00:00
|
|
|
img {
|
2022-06-21 08:48:42 +00:00
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2021-09-13 12:45:33 +00:00
|
|
|
object-fit: cover;
|
2022-06-21 08:48:42 +00:00
|
|
|
background: $bg;
|
2021-09-13 12:45:33 +00:00
|
|
|
}
|
|
|
|
}
|
2022-07-09 11:37:06 +00:00
|
|
|
|
2022-10-02 13:54:42 +00:00
|
|
|
.displayname, .username {
|
|
|
|
justify-self: start;
|
|
|
|
align-self: start;
|
|
|
|
|
|
|
|
max-width: 100%;
|
2022-07-09 11:37:06 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2021-09-13 12:45:33 +00:00
|
|
|
}
|
2022-07-04 14:23:59 +00:00
|
|
|
|
2022-10-02 13:54:42 +00:00
|
|
|
.displayname {
|
|
|
|
font-weight: bold;
|
2022-10-03 16:26:41 +00:00
|
|
|
font-size: 1.5rem;
|
|
|
|
line-height: 2rem;
|
|
|
|
margin-top: -0.5rem;
|
2022-10-02 13:54:42 +00:00
|
|
|
}
|
|
|
|
|
2021-09-13 12:45:33 +00:00
|
|
|
.username {
|
2022-09-29 10:02:41 +00:00
|
|
|
color: $link-fg;
|
2022-10-03 16:26:41 +00:00
|
|
|
font-size: 1rem;
|
|
|
|
line-height: 1.3rem;
|
2021-09-13 12:45:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
input.spoiler:checked ~ .content {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.spoiler {
|
2022-08-27 09:40:51 +00:00
|
|
|
padding-bottom: 0.5rem;
|
|
|
|
|
2022-07-09 11:36:56 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
gap: 0.4rem;
|
|
|
|
|
|
|
|
.spoiler-text {
|
|
|
|
word-break: break-word;
|
|
|
|
}
|
|
|
|
|
2021-09-13 12:45:33 +00:00
|
|
|
label {
|
2022-07-04 14:23:59 +00:00
|
|
|
padding: 0.2rem 0.3rem;
|
2021-09-13 12:45:33 +00:00
|
|
|
cursor: pointer;
|
2022-07-04 14:23:59 +00:00
|
|
|
font-size: 1rem;
|
2021-09-13 12:45:33 +00:00
|
|
|
}
|
2022-06-21 08:48:42 +00:00
|
|
|
label:hover {
|
|
|
|
}
|
2021-09-13 12:45:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.text {
|
|
|
|
margin: 0;
|
2022-10-03 16:26:41 +00:00
|
|
|
padding-top: 0.5rem;
|
2022-08-27 09:40:51 +00:00
|
|
|
grid-row: span 1;
|
2022-10-03 16:26:41 +00:00
|
|
|
grid-column: 1 / span 3;
|
2021-09-13 12:45:33 +00:00
|
|
|
|
2022-07-09 11:36:56 +00:00
|
|
|
position: relative;
|
|
|
|
z-index: 2;
|
|
|
|
|
2022-10-12 16:23:50 +00:00
|
|
|
width: 100%;
|
|
|
|
|
2021-09-13 12:45:33 +00:00
|
|
|
a {
|
2022-09-29 10:02:41 +00:00
|
|
|
color: $link-fg;
|
2021-09-13 12:45:33 +00:00
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2022-07-13 09:28:05 +00:00
|
|
|
|
|
|
|
.content {
|
2022-08-11 17:11:19 +00:00
|
|
|
padding-bottom: 0.5rem;
|
|
|
|
|
2022-07-13 09:28:05 +00:00
|
|
|
word-break: break-word;
|
2022-08-07 11:47:30 +00:00
|
|
|
|
|
|
|
blockquote {
|
2023-01-06 15:01:09 +00:00
|
|
|
padding: 0.5rem 0 0.5rem 0.5rem;
|
2022-09-29 10:02:41 +00:00
|
|
|
border-left: 0.2rem solid $border-accent;
|
2023-01-06 15:01:09 +00:00
|
|
|
margin: 0;
|
2022-08-07 11:47:30 +00:00
|
|
|
font-style: italic;
|
|
|
|
}
|
2022-08-11 17:11:19 +00:00
|
|
|
|
|
|
|
hr {
|
2022-09-29 10:02:41 +00:00
|
|
|
border: 1px dashed $border-accent;
|
2022-08-11 17:11:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pre, code {
|
2022-09-29 10:02:41 +00:00
|
|
|
background-color: $gray2;
|
2022-08-11 17:11:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
padding: 0.25rem;
|
2022-09-29 10:02:41 +00:00
|
|
|
border-radius: $br-inner;
|
2022-08-11 17:11:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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-11-02 08:04:23 +00:00
|
|
|
|
|
|
|
img {
|
|
|
|
max-width: 100%;
|
|
|
|
margin: 5px auto;
|
|
|
|
}
|
|
|
|
img[alt~="!center"] {
|
|
|
|
display: block;
|
|
|
|
}
|
2022-07-13 09:28:05 +00:00
|
|
|
}
|
2022-10-02 13:54:49 +00:00
|
|
|
|
|
|
|
.emoji {
|
|
|
|
transition: 0.1s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.emoji:hover, .emoji:active {
|
2022-10-06 09:36:07 +00:00
|
|
|
transform: scale(2);
|
2022-10-02 13:54:49 +00:00
|
|
|
background-color: $bg;
|
|
|
|
box-shadow: $boxshadow;
|
|
|
|
border: $boxshadow-border;
|
|
|
|
border-radius: $br-inner;
|
|
|
|
}
|
2021-09-13 12:45:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.media {
|
2022-10-02 13:54:42 +00:00
|
|
|
margin-top: 0.5rem;
|
2022-08-14 17:22:13 +00:00
|
|
|
border-radius: $br;
|
2021-09-13 12:45:33 +00:00
|
|
|
grid-column: span 3;
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 50% 50%;
|
|
|
|
grid-auto-rows: 10rem;
|
|
|
|
overflow: hidden;
|
|
|
|
gap: 0.3rem;
|
|
|
|
|
2022-08-14 17:22:13 +00:00
|
|
|
.media-wrapper {
|
2021-09-13 12:45:33 +00:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2022-08-14 17:22:13 +00: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 */
|
2022-12-17 04:38:56 +00:00
|
|
|
& ~ .video-play {
|
|
|
|
display: flex;
|
|
|
|
}
|
2022-08-14 17:22:13 +00:00
|
|
|
& ~ .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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-17 04:38:56 +00:00
|
|
|
.video-play {
|
|
|
|
.icon-span {
|
|
|
|
align-self: center;
|
|
|
|
display: initial;
|
|
|
|
z-index: 4;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
color: $white1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon-bg {
|
|
|
|
color: $gray1;
|
|
|
|
font-size: 1.1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
font-size: 7em;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2022-08-14 17:22:13 +00:00
|
|
|
.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;
|
2022-09-29 10:02:41 +00:00
|
|
|
background: $bg-sensitive;
|
2022-08-14 17:22:13 +00:00
|
|
|
@supports (backdrop-filter: blur(2rem)) {
|
|
|
|
background: transparent;
|
|
|
|
backdrop-filter: blur(2rem);
|
|
|
|
}
|
|
|
|
|
|
|
|
.button {
|
|
|
|
align-self: center;
|
|
|
|
justify-self: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-13 12:45:33 +00:00
|
|
|
.no-image-desc {
|
2022-09-29 10:02:41 +00:00
|
|
|
color: $no-img-desc-fg;
|
|
|
|
background: $no-img-desc-bg;
|
2021-09-13 12:45:33 +00:00
|
|
|
display: flex;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0.1rem;
|
|
|
|
right: 0.4rem;
|
2022-08-14 17:22:13 +00:00
|
|
|
margin-bottom: 0.4rem;
|
|
|
|
margin-right: 0.4rem;
|
|
|
|
padding: 0.1rem 0.45rem;
|
2021-09-13 12:45:33 +00:00
|
|
|
border-radius: 100%;
|
2022-09-29 10:02:41 +00:00
|
|
|
border: 0.2rem solid $button-fg;
|
2021-09-13 12:45:33 +00:00
|
|
|
z-index: 3;
|
|
|
|
|
|
|
|
i.fa {
|
|
|
|
display: block;
|
2022-08-14 17:22:13 +00:00
|
|
|
line-height: 1.6rem;
|
2021-09-13 12:45:33 +00: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 {
|
2022-09-29 10:02:41 +00:00
|
|
|
background: $toot-info-bg;
|
|
|
|
color: $fg-reduced;
|
2021-09-13 12:45:33 +00:00
|
|
|
display: none;
|
2022-09-29 10:02:41 +00:00
|
|
|
border-top: 0.15rem solid $toot-info-border;
|
2022-07-04 14:23:59 +00:00
|
|
|
padding: 0.5rem 1.5rem;
|
2021-09-13 12:45:33 +00:00
|
|
|
|
|
|
|
div {
|
|
|
|
padding-right: 1.3rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.stats {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
grid-column: span 3;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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 14:23:59 +00:00
|
|
|
border-top-left-radius: $br;
|
|
|
|
border-top-right-radius: $br;
|
2021-09-13 12:45:33 +00:00
|
|
|
}
|
|
|
|
|
2022-09-29 10:02:41 +00:00
|
|
|
&:last-child, &:last-child .info {
|
2021-09-13 12:45:33 +00:00
|
|
|
/* bottom left, bottom right */
|
2022-07-04 14:23:59 +00:00
|
|
|
border-bottom-left-radius: $br;
|
|
|
|
border-bottom-right-radius: $br;
|
2022-06-21 08:48:42 +00:00
|
|
|
margin-bottom: 0;
|
2021-09-13 12:45:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.expanded {
|
2022-09-29 10:02:41 +00:00
|
|
|
background: $toot-focus-bg;
|
2022-07-04 14:23:59 +00:00
|
|
|
padding-bottom: 0;
|
2021-09-13 12:45:33 +00:00
|
|
|
|
2022-08-27 09:40:51 +00:00
|
|
|
.contentgrid {
|
2022-09-29 10:02:41 +00:00
|
|
|
.displayname {
|
|
|
|
grid-column: span 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.not-expanded {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-09-13 12:45:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.info {
|
|
|
|
display: flex;
|
|
|
|
}
|
2022-10-02 13:54:42 +00:00
|
|
|
|
|
|
|
.media {
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
}
|
2021-09-13 12:45:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
footer + div { /* something weird from the devstack.. */
|
|
|
|
display: none;
|
2022-10-03 16:26:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 89ch) {
|
|
|
|
.toot {
|
|
|
|
.contentgrid {
|
|
|
|
grid-template-rows: 1.5rem 1.3rem 1.3rem auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.username, .not-expanded {
|
|
|
|
grid-column: 2;
|
|
|
|
grid-row: auto;
|
|
|
|
}
|
|
|
|
}
|
2022-12-17 04:38:56 +00:00
|
|
|
}
|