Skip to content

Commit f3dd435

Browse files
committed
css fix
1 parent 56acb9a commit f3dd435

File tree

1 file changed

+109
-0
lines changed

1 file changed

+109
-0
lines changed

assets/css/styles.css

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,3 +1022,112 @@ html, .scroll-hide{
10221022
line-height: 1;
10231023
}
10241024
}
1025+
1026+
1027+
.toots {
1028+
max-width: 400px;
1029+
list-style: none;
1030+
padding: 0;
1031+
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
1032+
}
1033+
1034+
.toot {
1035+
border-bottom: 1px solid #ccc;
1036+
padding: 1rem;
1037+
}
1038+
1039+
/* Posting user. */
1040+
.toot .user {
1041+
display: flex;
1042+
flex-flow: column wrap;
1043+
justify-content: space-evenly;
1044+
align-content: flex-start;
1045+
height: 46px; /* Avatar height. */
1046+
column-gap: 0.5rem;
1047+
1048+
text-decoration: none;
1049+
color: inherit;
1050+
}
1051+
1052+
.toot .avatar {
1053+
border-radius: 4px;
1054+
}
1055+
1056+
.toot .display-name {
1057+
font-weight: bold;
1058+
display: block;
1059+
}
1060+
1061+
.toot .user:hover .display-name {
1062+
text-decoration: underline;
1063+
}
1064+
1065+
.toot .username {
1066+
display: block;
1067+
margin-right: 1em;
1068+
color: #999;
1069+
}
1070+
1071+
/* Boosting user is smaller and above the posting user. */
1072+
.toot .boost {
1073+
height: 23px;
1074+
margin-bottom: 0.25rem;
1075+
column-gap: 0.25rem;
1076+
}
1077+
1078+
.toot .boost:before {
1079+
content: "♺";
1080+
font-size: 140%;
1081+
}
1082+
1083+
.toot .boost .username {
1084+
display: none;
1085+
}
1086+
1087+
.toot .permalink {
1088+
text-decoration: none;
1089+
display: block;
1090+
color: #999;
1091+
float: right;
1092+
}
1093+
1094+
.toot .permalink:hover {
1095+
text-decoration: underline;
1096+
}
1097+
1098+
.toot .body {
1099+
clear: both;
1100+
margin-top: 1em;
1101+
}
1102+
1103+
.toot .body a {
1104+
overflow-wrap: anywhere;
1105+
}
1106+
1107+
/* Weird trick to keep the text in the page but not display it. */
1108+
.toot .body .invisible {
1109+
display: inline-block;
1110+
font-size: 0;
1111+
line-height: 0;
1112+
width: 0;
1113+
height: 0;
1114+
position: absolute;
1115+
}
1116+
1117+
.toot .body .ellipsis::after {
1118+
content: "…";
1119+
}
1120+
1121+
.toot .attachment {
1122+
display: block;
1123+
width: 100%;
1124+
aspect-ratio: 16 / 9;
1125+
border-radius: 4px;
1126+
}
1127+
1128+
.toot .attachment img {
1129+
width: 100%;
1130+
height: 100%;
1131+
object-fit: cover;
1132+
}
1133+

0 commit comments

Comments
 (0)