Skip to content

Commit

Permalink
css fix
Browse files Browse the repository at this point in the history
  • Loading branch information
behdanisohrab committed Apr 5, 2024
1 parent 56acb9a commit f3dd435
Showing 1 changed file with 109 additions and 0 deletions.
109 changes: 109 additions & 0 deletions assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1022,3 +1022,112 @@ html, .scroll-hide{
line-height: 1;
}
}


.toots {
max-width: 400px;
list-style: none;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
}

.toot {
border-bottom: 1px solid #ccc;
padding: 1rem;
}

/* Posting user. */
.toot .user {
display: flex;
flex-flow: column wrap;
justify-content: space-evenly;
align-content: flex-start;
height: 46px; /* Avatar height. */
column-gap: 0.5rem;

text-decoration: none;
color: inherit;
}

.toot .avatar {
border-radius: 4px;
}

.toot .display-name {
font-weight: bold;
display: block;
}

.toot .user:hover .display-name {
text-decoration: underline;
}

.toot .username {
display: block;
margin-right: 1em;
color: #999;
}

/* Boosting user is smaller and above the posting user. */
.toot .boost {
height: 23px;
margin-bottom: 0.25rem;
column-gap: 0.25rem;
}

.toot .boost:before {
content: "♺";
font-size: 140%;
}

.toot .boost .username {
display: none;
}

.toot .permalink {
text-decoration: none;
display: block;
color: #999;
float: right;
}

.toot .permalink:hover {
text-decoration: underline;
}

.toot .body {
clear: both;
margin-top: 1em;
}

.toot .body a {
overflow-wrap: anywhere;
}

/* Weird trick to keep the text in the page but not display it. */
.toot .body .invisible {
display: inline-block;
font-size: 0;
line-height: 0;
width: 0;
height: 0;
position: absolute;
}

.toot .body .ellipsis::after {
content: "…";
}

.toot .attachment {
display: block;
width: 100%;
aspect-ratio: 16 / 9;
border-radius: 4px;
}

.toot .attachment img {
width: 100%;
height: 100%;
object-fit: cover;
}

0 comments on commit f3dd435

Please sign in to comment.