forked from AzetJP/mastodon-timeline-widget
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mastodon.widget.css
149 lines (130 loc) · 2.46 KB
/
mastodon.widget.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/**
* Mastodon User Timeline Widget
* Copyright (c) 2017 有限会社アゼット
* ライセンスに関して、LICENSEファイルを参照下さい。
* see license file for details.
*
* @author Azet <http://www.azet.jp>
* @version 1.05
*/
/* main container >>> */
.mastodon-timeline {
font-family: 'Noto Sans Japanese', "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, メイリオ, Meiryo, "MS Pゴシック", "MS PGothic", sans-serif;
}
.mt-body {
/* force wrap */
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
}
.mt-body .invisible {
display: none;
}
.mt-loading {
padding: 10px;
text-align: center;
}
/* toots -messages */
.mt-toot {
padding: 0 0 2em 65px;
position: relative;
min-height: 60px;
}
.mt-toot p:last-child {
margin-bottom: 0;
}
.mt-date .nsfw {
background: black;
color: white;
margin-right: .5em;
padding: 0 3px;
border-radius: 2px;
}
.mt-avatar {
position: absolute;
top: 5px;
left: 5px;
/*margin: 0 10px 5px 0;*/
width: 50px;
height: 50px;
border-radius: 5px;
box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}
.mt-avatar-boosted {
width: 40px;
height: 40px;
}
.mt-avatar-booster {
width: 25px;
height: 25px;
top: 25px;
left: 25px;
}
.mt-error {
color: darkred;
background: lightpink;
margin: 5px;
padding: 10px;
}
/* spoiler === */
a.btn-spoiler {
margin-left: 5px;
padding: 3px;
background: purple;
color: white;
border-radius: 3px;
font-size: 80%;
}
.spoiler-body {
display: none;
}
/* medias === */
.toot-media-preview {
position: relative;
margin-top: 5px;
height: 100px;
background-size: cover;
background-position: center center;
box-sizing: border-box;
color: white;
text-align: center;
padding-top: 40px;
}
.toot-media-preview a {
display: block;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
/* toots status === */
.toot-status {
font-weight: bold;
margin-top: 5px;
}
.toot-status .toot-status-boosts,
.toot-status .toot-status-favourites {
display: inline-block;
white-space: nowrap;
margin-right: 10px;
}
/* medias display === */
.toot-media-filter {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0, 0, 0, 0.9);
}
.toot-media-zoom {
position: fixed;
top: 5%;
right: 5%;
bottom: 5%;
left: 5%;
}
/* vim set foldmethod=marker foldlevel=0 */