mirror of
https://gitlab.com/idotj/mastodon-embed-timeline.git
synced 2025-05-24 08:52:46 +00:00
Update comments
This commit is contained in:
parent
74a623dd1f
commit
9343ec2d43
@ -1,178 +1,181 @@
|
|||||||
/* Mastodon embed timeline */
|
/* Mastodon embed feed timeline */
|
||||||
|
/* More info at: */
|
||||||
/* Main container */
|
/* https://gitlab.com/idotj/mastodon-embed-feed-timeline */
|
||||||
.mt-timeline {
|
|
||||||
height: calc(100% - 4rem);
|
|
||||||
padding: 2rem 3rem;
|
/* Main container */
|
||||||
position: relative;
|
.mt-timeline {
|
||||||
background: lightgray;
|
height: calc(100% - 4rem);
|
||||||
}
|
padding: 2rem 3rem;
|
||||||
|
position: relative;
|
||||||
.mt-timeline a:link,
|
background: lightgray;
|
||||||
.mt-timeline a:active,
|
}
|
||||||
.mt-timeline a {
|
|
||||||
text-decoration: none;
|
.mt-timeline a:link,
|
||||||
color: darkblue;
|
.mt-timeline a:active,
|
||||||
}
|
.mt-timeline a {
|
||||||
|
text-decoration: none;
|
||||||
.mt-body {
|
color: darkblue;
|
||||||
height: 100%;
|
}
|
||||||
overflow-y: auto;
|
|
||||||
white-space: pre-wrap;
|
.mt-body {
|
||||||
word-wrap: break-word;
|
height: 100%;
|
||||||
}
|
overflow-y: auto;
|
||||||
|
white-space: pre-wrap;
|
||||||
.mt-body .invisible {
|
word-wrap: break-word;
|
||||||
display: none;
|
}
|
||||||
}
|
|
||||||
|
.mt-body .invisible {
|
||||||
/* Toot container */
|
display: none;
|
||||||
.mt-toot {
|
}
|
||||||
margin: 0 0.5rem 0 0;
|
|
||||||
padding: 1rem 0 2rem 65px;
|
/* Toot container */
|
||||||
position: relative;
|
.mt-toot {
|
||||||
min-height: 60px;
|
margin: 0 0.5rem 0 0;
|
||||||
background-color: transparent;
|
padding: 1rem 0 2rem 65px;
|
||||||
border-bottom: 1px solid #dee2e6;
|
position: relative;
|
||||||
}
|
min-height: 60px;
|
||||||
.mt-toot:hover {
|
background-color: transparent;
|
||||||
cursor: pointer;
|
border-bottom: 1px solid #dee2e6;
|
||||||
background-color: rgba(124, 124, 124, 0.2);
|
}
|
||||||
}
|
.mt-toot:hover {
|
||||||
.mt-toot p:last-child {
|
cursor: pointer;
|
||||||
margin-bottom: 0;
|
background-color: rgba(124, 124, 124, 0.2);
|
||||||
}
|
}
|
||||||
|
.mt-toot p:last-child {
|
||||||
/* User icon */
|
margin-bottom: 0;
|
||||||
.mt-user {
|
}
|
||||||
display: table;
|
|
||||||
font-weight: 600;
|
/* User icon */
|
||||||
}
|
.mt-user {
|
||||||
.mt-avatar {
|
display: table;
|
||||||
position: absolute;
|
font-weight: 600;
|
||||||
top: 20px;
|
}
|
||||||
left: 5px;
|
.mt-avatar {
|
||||||
width: 50px;
|
position: absolute;
|
||||||
height: 50px;
|
top: 20px;
|
||||||
background-color: transparent;
|
left: 5px;
|
||||||
background-repeat: no-repeat;
|
width: 50px;
|
||||||
background-position: 50% 50%;
|
height: 50px;
|
||||||
background-size: contain;
|
background-color: transparent;
|
||||||
background-color: #fff;
|
background-repeat: no-repeat;
|
||||||
border-radius: 5px;
|
background-position: 50% 50%;
|
||||||
}
|
background-size: contain;
|
||||||
.mt-avatar-boosted {
|
background-color: #fff;
|
||||||
width: 40px;
|
border-radius: 5px;
|
||||||
height: 40px;
|
}
|
||||||
}
|
.mt-avatar-boosted {
|
||||||
.mt-avatar-booster {
|
width: 40px;
|
||||||
width: 25px;
|
height: 40px;
|
||||||
height: 25px;
|
}
|
||||||
top: 25px;
|
.mt-avatar-booster {
|
||||||
left: 25px;
|
width: 25px;
|
||||||
}
|
height: 25px;
|
||||||
|
top: 25px;
|
||||||
/* Message */
|
left: 25px;
|
||||||
.toot-text {
|
}
|
||||||
margin-bottom: 0.25rem;
|
|
||||||
}
|
/* Message */
|
||||||
.toot-text .ellipsis::after{
|
.toot-text {
|
||||||
content:'...';
|
margin-bottom: 0.25rem;
|
||||||
}
|
}
|
||||||
.mt-error {
|
.toot-text .ellipsis::after{
|
||||||
color: darkred;
|
content:'...';
|
||||||
background: lightpink;
|
}
|
||||||
margin: 5px;
|
.mt-error {
|
||||||
padding: 10px;
|
color: darkred;
|
||||||
}
|
background: lightpink;
|
||||||
|
margin: 5px;
|
||||||
/* Poll */
|
padding: 10px;
|
||||||
.toot-poll {
|
}
|
||||||
margin-bottom: 0.25rem;
|
|
||||||
}
|
/* Poll */
|
||||||
.toot-poll ul{
|
.toot-poll {
|
||||||
list-style: none;
|
margin-bottom: 0.25rem;
|
||||||
padding: 0;
|
}
|
||||||
margin: 0;
|
.toot-poll ul{
|
||||||
}
|
list-style: none;
|
||||||
.toot-poll ul li:not(:last-child){
|
padding: 0;
|
||||||
margin-bottom: 0.25rem;
|
margin: 0;
|
||||||
}
|
}
|
||||||
.toot-poll ul li:before {
|
.toot-poll ul li:not(:last-child){
|
||||||
content: "◯";
|
margin-bottom: 0.25rem;
|
||||||
padding-right: 0.5rem;
|
}
|
||||||
}
|
.toot-poll ul li:before {
|
||||||
|
content: "◯";
|
||||||
/* Medias */
|
padding-right: 0.5rem;
|
||||||
.toot-media {
|
}
|
||||||
overflow: hidden;
|
|
||||||
margin-bottom: 0.25rem;
|
/* Medias */
|
||||||
}
|
.toot-media {
|
||||||
.toot-media-preview {
|
overflow: hidden;
|
||||||
position: relative;
|
margin-bottom: 0.25rem;
|
||||||
margin-top: 0.25rem;
|
}
|
||||||
height: auto;
|
.toot-media-preview {
|
||||||
text-align: center;
|
position: relative;
|
||||||
width: 100%;
|
margin-top: 0.25rem;
|
||||||
}
|
height: auto;
|
||||||
.toot-media-spoiler > img {
|
text-align: center;
|
||||||
filter: blur(2rem);
|
width: 100%;
|
||||||
}
|
}
|
||||||
.toot-media-preview a {
|
.toot-media-spoiler > img {
|
||||||
display: block;
|
filter: blur(2rem);
|
||||||
position: absolute;
|
}
|
||||||
top: 0;
|
.toot-media-preview a {
|
||||||
right: 0;
|
display: block;
|
||||||
bottom: 0;
|
position: absolute;
|
||||||
left: 0;
|
top: 0;
|
||||||
}
|
right: 0;
|
||||||
.img-ratio14_7 {
|
bottom: 0;
|
||||||
position: relative;
|
left: 0;
|
||||||
padding-top: 48.95%; /* 14:7 */
|
}
|
||||||
width: 100%;
|
.img-ratio14_7 {
|
||||||
}
|
position: relative;
|
||||||
.img-ratio14_7 > img {
|
padding-top: 48.95%; /* 14:7 */
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
}
|
||||||
position: absolute;
|
.img-ratio14_7 > img {
|
||||||
top: 50%;
|
width: 100%;
|
||||||
left: 50%;
|
height: auto;
|
||||||
transform: translate(-50%, -50%);
|
position: absolute;
|
||||||
text-align: center;
|
top: 50%;
|
||||||
}
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
/* Date */
|
text-align: center;
|
||||||
.toot-date {
|
}
|
||||||
font-size: 0.75rem;
|
|
||||||
opacity: 0.5;
|
/* Date */
|
||||||
}
|
.toot-date {
|
||||||
|
font-size: 0.75rem;
|
||||||
/* Loading-spinner */
|
opacity: 0.5;
|
||||||
.loading-spinner {
|
}
|
||||||
height: 100%;
|
|
||||||
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns:svg='http://www.w3.org/2000/svg' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.0' viewBox='0 0 128 128' %3E%3Cg%3E%3Cpath d='M64 128A64 64 0 0 1 18.34 19.16L21.16 22a60 60 0 1 0 52.8-17.17l.62-3.95A64 64 0 0 1 64 128z' fill='%23404040'/%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 64 64' to='360 64 64' dur='1000ms' repeatCount='indefinite'%3E%3C/animateTransform%3E%3C/g%3E%3C/svg%3E");
|
/* Loading-spinner */
|
||||||
background-repeat: no-repeat;
|
.loading-spinner {
|
||||||
background-position: center center;
|
height: 100%;
|
||||||
background-color: transparent;
|
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns:svg='http://www.w3.org/2000/svg' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.0' viewBox='0 0 128 128' %3E%3Cg%3E%3Cpath d='M64 128A64 64 0 0 1 18.34 19.16L21.16 22a60 60 0 1 0 52.8-17.17l.62-3.95A64 64 0 0 1 64 128z' fill='%23404040'/%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 64 64' to='360 64 64' dur='1000ms' repeatCount='indefinite'%3E%3C/animateTransform%3E%3C/g%3E%3C/svg%3E");
|
||||||
background-size: min(2.5rem, calc(100% - 0.5rem));
|
background-repeat: no-repeat;
|
||||||
}
|
background-position: center center;
|
||||||
|
background-color: transparent;
|
||||||
/* See more btn */
|
background-size: min(2.5rem, calc(100% - 0.5rem));
|
||||||
.mt-seeMore{
|
}
|
||||||
margin: 2rem auto;
|
|
||||||
padding: 0 2rem;
|
/* See more btn */
|
||||||
text-align: center;
|
.mt-seeMore{
|
||||||
}
|
margin: 2rem auto;
|
||||||
|
padding: 0 2rem;
|
||||||
/* Hidden element */
|
text-align: center;
|
||||||
.visually-hidden {
|
}
|
||||||
position: absolute !important;
|
|
||||||
width: 1px !important;
|
/* Hidden element */
|
||||||
height: 1px !important;
|
.visually-hidden {
|
||||||
padding: 0 !important;
|
position: absolute !important;
|
||||||
margin: -1px !important;
|
width: 1px !important;
|
||||||
overflow: hidden !important;
|
height: 1px !important;
|
||||||
clip: rect(0, 0, 0, 0) !important;
|
padding: 0 !important;
|
||||||
white-space: nowrap !important;
|
margin: -1px !important;
|
||||||
border: 0 !important;
|
overflow: hidden !important;
|
||||||
}
|
clip: rect(0, 0, 0, 0) !important;
|
||||||
|
white-space: nowrap !important;
|
||||||
|
border: 0 !important;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user