Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
galaxyproject
GitHub Repository: galaxyproject/training-material
Path: blob/main/assets/js/emfed/toots.css
1678 views
1
.toots {
2
max-width: 400px;
3
list-style: none;
4
padding: 0;
5
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
6
}
7
8
.toot {
9
border-bottom: 1px solid #ccc;
10
padding: 1rem;
11
}
12
13
/* Posting user. */
14
.toot .user {
15
display: flex;
16
flex-flow: column wrap;
17
justify-content: space-evenly;
18
align-content: flex-start;
19
height: 46px; /* Avatar height. */
20
column-gap: 0.5rem;
21
22
text-decoration: none;
23
color: inherit;
24
}
25
26
.toot .avatar {
27
border-radius: 4px;
28
}
29
30
.toot .display-name {
31
font-weight: bold;
32
display: block;
33
}
34
35
.toot .user:hover .display-name {
36
text-decoration: underline;
37
}
38
39
.toot .username {
40
display: block;
41
margin-right: 1em;
42
color: #999;
43
}
44
45
/* Boosting user is smaller and above the posting user. */
46
.toot .boost {
47
height: 23px;
48
margin-bottom: 0.25rem;
49
column-gap: 0.25rem;
50
}
51
52
.toot .boost:before {
53
content: "♺";
54
font-size: 140%;
55
}
56
57
.toot .boost .username {
58
display: none;
59
}
60
61
.toot .permalink {
62
text-decoration: none;
63
display: block;
64
color: #999;
65
float: right;
66
}
67
68
.toot .permalink:hover {
69
text-decoration: underline;
70
}
71
72
.toot .body {
73
clear: both;
74
margin-top: 1em;
75
}
76
77
.toot .body a {
78
overflow-wrap: anywhere;
79
}
80
81
/* Weird trick to keep the text in the page but not display it. */
82
.toot .body .invisible {
83
display: inline-block;
84
font-size: 0;
85
line-height: 0;
86
width: 0;
87
height: 0;
88
position: absolute;
89
}
90
91
.toot .body .ellipsis::after {
92
content: "…";
93
}
94
95
.toot .attachment {
96
display: block;
97
width: 100%;
98
aspect-ratio: 16 / 9;
99
border-radius: 4px;
100
}
101
102
.toot .attachment img {
103
width: 100%;
104
height: 100%;
105
object-fit: cover;
106
}
107
108