master
ブランチ master
LittleBeast / public / static / style-microblog.css
4 KB、255行 生 Blame 履歴
1/* マイクロブログ(/microblog)。JavaScriptなし */
2.mb-nav {
3 display: flex;
4 flex-wrap: wrap;
5 gap: 8px;
6 justify-content: space-between;
7 align-items: center;
8 border-bottom: 1px solid #c016c6;
9 padding-bottom: 8px;
10 margin-bottom: 8px;
11}
12
13.mb-tabs a {
14 padding: 2px 8px;
15 text-decoration: none;
16}
17
18.mb-tabs a.active {
19 border: 1px solid #ea79d8;
20 border-radius: 10px;
21 background-color: #550f75;
22}
23
24.mb-search input {
25 width: 22em;
26 max-width: 60vw;
27}
28
29.mb-compose {
30 display: flex;
31 flex-direction: column;
32 gap: 4px;
33 border: 1px solid #c016c6;
34 border-radius: 2px;
35 padding: 8px;
36 margin: 8px 0;
37}
38
39.mb-compose textarea, .mb-compose input[type="text"], .mb-report textarea, .mb-confirm textarea {
40 width: 100%;
41 box-sizing: border-box;
42}
43
44.mb-compose-bottom {
45 display: flex;
46 justify-content: flex-end;
47 gap: 8px;
48}
49
50.mb-file {
51 display: flex;
52 gap: 4px;
53 margin: 2px 0;
54}
55
56.mb-note {
57 border: 1px solid var(--color-b8b515, #c016c6);
58 border-radius: 2px;
59 padding: 8px;
60 margin: 14px 0;
61 box-shadow: 0 0 6px 1px var(--color-dddf78, #dc78df);
62 animation: mbGlow 0.7s ease-in-out infinite alternate;
63}
64
65@keyframes mbGlow {
66 from { box-shadow: 0 0 4px 1px var(--color-dddf78, #dc78df); }
67 to { box-shadow: 0 0 8px 2px var(--color-dddf78, #dc78df); }
68}
69
70.mb-focus .mb-note {
71 border-color: var(--color-ecea71, #ea79d8);
72}
73
74.mb-ancestor .mb-note, .mb-replyitem .mb-note {
75 margin-left: 16px;
76}
77
78.mb-author, .mb-row {
79 display: flex;
80 align-items: center;
81 gap: 8px;
82}
83
84.mb-author {
85 padding-bottom: 6px;
86 border-bottom: 1px solid var(--color-ac7718, #550f75);
87}
88
89.mb-meta {
90 margin-top: 6px;
91 padding-top: 4px;
92 border-top: 1px solid var(--color-ac7718, #550f75);
93}
94
95.mb-row {
96 margin: 6px 0;
97}
98
99.mb-row.unread {
100 border-left: 3px solid #ea79d8;
101 padding-left: 4px;
102}
103
104.mb-avatar {
105 width: 40px;
106 height: 40px;
107 border-radius: 4px;
108 object-fit: cover;
109}
110
111.mb-avatar-large {
112 width: 100px;
113 height: 100px;
114 border-radius: 6px;
115 object-fit: cover;
116}
117
118.mb-profile {
119 display: flex;
120 gap: 16px;
121 align-items: flex-start;
122 margin-bottom: 16px;
123}
124
125.mb-profile h1 {
126 margin: 0;
127}
128
129.mb-name {
130 font-weight: bold;
131 text-decoration: none;
132}
133
134.mb-handle, .mb-small, .mb-meta {
135 color: #b0a0b0;
136 font-size: small;
137}
138
139.mb-content {
140 overflow-wrap: anywhere;
141 margin: 4px 0;
142}
143
144.mb-content p {
145 margin: 4px 0;
146}
147
148.mb-content blockquote {
149 margin: 4px 0;
150 padding-left: 8px;
151 border-left: 3px solid #550f75;
152}
153
154.mb-content pre {
155 overflow-x: auto;
156 margin: 4px 0;
157 padding: 4px 8px;
158 background-color: #2b012a;
159 border-radius: 2px;
160}
161
162.mb-content code {
163 background-color: #2b012a;
164 border-radius: 2px;
165 padding: 0 3px;
166}
167
168.mb-content pre code {
169 padding: 0;
170}
171
172.mb-content ul, .mb-content ol {
173 margin: 4px 0;
174 padding-left: 24px;
175}
176
177.mb-content .invisible {
178 display: none;
179}
180
181.mb-content .ellipsis::after {
182 content: "…";
183}
184
185.mb-media {
186 display: flex;
187 flex-wrap: wrap;
188 gap: 4px;
189}
190
191.mb-media img, .mb-media video {
192 max-width: 280px;
193 max-height: 280px;
194 border-radius: 2px;
195}
196
197.mb-cw summary, .mb-confirm summary, .mb-report summary {
198 cursor: pointer;
199 color: #ea79d8;
200}
201
202.mb-actions {
203 display: flex;
204 flex-wrap: wrap;
205 gap: 6px;
206 align-items: flex-start;
207 margin-top: 4px;
208}
209
210.mb-actions form {
211 display: inline;
212}
213
214.mb-actions button, .mb-button, .mb-row button, .mb-compose button {
215 background: #2b012a;
216 color: #fcfcfc;
217 border: 1px solid #ea79d8;
218 border-radius: 2px;
219 padding: 2px 8px;
220 cursor: pointer;
221 font-size: small;
222 text-decoration: none;
223}
224
225.mb-actions button.on, .mb-row button.on, .mb-compose button, .mb-button:hover, .mb-actions button:hover, .mb-row button:hover {
226 background: #550f75;
227}
228
229button.danger {
230 border-color: #ee4030;
231 color: #ee4030;
232}
233
234.mb-more {
235 text-align: center;
236}
237
238.mb-report-item {
239 border: 1px solid #550f75;
240 padding: 8px;
241 margin: 8px 0;
242}
243
244.mb-report-item.resolved {
245 opacity: 0.5;
246}
247
248@media screen and (max-width: 768px) {
249 .mb-profile {
250 flex-direction: column;
251 }
252 .mb-media img, .mb-media video {
253 max-width: 100%;
254 }
255}