master
ブランチ master
LittleBeast / public / static / style-comments.css
2.1 KB、122行 生 Blame 履歴
1.comments {
2 margin: 20px 0;
3}
4
5.comments h2, .comments h1 {
6 border-bottom: 1px solid var(--color-b8b515, #b8b515);
7 padding-bottom: 4px;
8}
9
10.comment {
11 border: 1px solid var(--color-b8b515, #b8b515);
12 border-radius: 2px;
13 padding: 8px;
14 margin: 10px 0;
15}
16
17.comment.depth-1 { margin-left: 24px; }
18.comment.depth-2 { margin-left: 48px; }
19.comment.depth-3 { margin-left: 72px; }
20.comment.depth-4 { margin-left: 96px; }
21.comment.depth-5 { margin-left: 120px; }
22
23.comment-head, .notification {
24 display: flex;
25 flex-wrap: wrap;
26 align-items: center;
27 gap: 8px;
28}
29
30.comment-avatar {
31 width: 32px;
32 height: 32px;
33 border-radius: 4px;
34 object-fit: cover;
35}
36
37.comment-handle, .comment-date, .comment-help, .comment-deleted, .comment-none, .comment-likes {
38 font-size: small;
39 opacity: 0.8;
40}
41
42.comment-body {
43 margin: 6px 0;
44 overflow-wrap: anywhere;
45}
46
47.comment-body pre {
48 overflow-x: auto;
49}
50
51.comment-actions {
52 display: flex;
53 gap: 8px;
54 align-items: center;
55}
56
57.comment-actions form {
58 display: inline;
59}
60
61.comments button {
62 background: var(--color-2b2a01, #2b2a01);
63 color: var(--color-fcfcfc, #fcfcfc);
64 border: 1px solid var(--color-ecea71, #ecea71);
65 border-radius: 2px;
66 padding: 2px 8px;
67 cursor: pointer;
68}
69
70.comments button.on {
71 background: var(--color-ac7718, #ac7718);
72}
73
74.comment-reply summary {
75 cursor: pointer;
76 font-size: small;
77}
78
79.comment-form {
80 display: flex;
81 flex-direction: column;
82 gap: 4px;
83 margin: 8px 0;
84}
85
86.comment-form textarea {
87 width: 100%;
88 box-sizing: border-box;
89}
90
91.comment-form-bottom {
92 display: flex;
93 justify-content: space-between;
94 align-items: center;
95 flex-wrap: wrap;
96 gap: 8px;
97}
98
99.comment-form-bottom button {
100 margin-left: auto;
101}
102
103.comment-fedi {
104 font-size: small;
105 overflow-wrap: anywhere;
106}
107
108.notification {
109 margin: 8px 0;
110 flex-wrap: nowrap;
111}
112
113.notification.unread {
114 border-left: 3px solid var(--color-ecea71, #ecea71);
115 padding-left: 4px;
116}
117
118@media screen and (max-width: 480px) {
119 .comment.depth-1, .comment.depth-2, .comment.depth-3, .comment.depth-4, .comment.depth-5 {
120 margin-left: 12px;
121 }
122}