PluginProbe
ActivityPub / 8.2.1
ActivityPub v8.2.1
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
activitypub / assets / css / activitypub-embed.css

activitypub-embed.css in ActivityPub 8.2.1, at assets/css/activitypub-embed.css

158 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * ActivityPub embed styles.
3 */
4
5 .activitypub-embed {
6 background: #fff;
7 border: 1px solid #e6e6e6;
8 border-radius: 12px;
9 padding: 0;
10 max-width: 100%;
11 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
12 }
13
14 .activitypub-reply-block .activitypub-embed {
15 margin: 1em 0;
16 }
17
18 .activitypub-embed-header {
19 padding: 15px;
20 display: flex;
21 align-items: center;
22 gap: 10px;
23 }
24
25 .activitypub-embed-header img {
26 width: 48px;
27 height: 48px;
28 border-radius: 50%;
29 }
30
31 .activitypub-embed-header-text {
32 flex-grow: 1;
33 }
34
35 .activitypub-embed-header-text h2 {
36 color: #000;
37 font-size: 15px;
38 font-weight: 600;
39 margin: 0;
40 padding: 0;
41 }
42
43 .activitypub-embed-header-text .ap-account {
44 color: #687684;
45 font-size: 14px;
46 text-decoration: none;
47 }
48
49 .activitypub-embed-content {
50 padding: 0 15px 15px;
51 }
52
53 .activitypub-embed-content .ap-title {
54 font-size: 23px;
55 font-weight: 600;
56 margin: 0 0 10px;
57 padding: 0;
58 color: #000;
59 }
60
61 .activitypub-embed-content .ap-subtitle {
62 font-size: 15px;
63 color: #000;
64 margin: 0 0 15px;
65 }
66
67 .activitypub-embed-content .ap-preview {
68 border: 1px solid #e6e6e6;
69 border-radius: 8px;
70 box-sizing: border-box;
71 display: grid;
72 gap: 2px;
73 grid-template-columns: 1fr 1fr;
74 grid-template-rows: 1fr 1fr;
75 margin: 1em 0 0;
76 min-height: 64px;
77 overflow: hidden;
78 position: relative;
79 width: 100%;
80 }
81
82 .activitypub-embed-content .ap-preview img {
83 border: 0;
84 box-sizing: border-box;
85 display: block;
86 height: 100%;
87 object-fit: cover;
88 overflow: hidden;
89 position: relative;
90 width: 100%;
91 }
92
93 .activitypub-embed-content .ap-preview video,
94 .activitypub-embed-content .ap-preview audio {
95 max-width: 100%;
96 display: block;
97 grid-column: 1 / span 2;
98 }
99
100 .activitypub-embed-content .ap-preview audio {
101 width: 100%;
102 }
103
104 .activitypub-embed-content .ap-preview.layout-1 {
105 grid-template-columns: 1fr;
106 grid-template-rows: 1fr;
107 }
108
109 .activitypub-embed-content .ap-preview.layout-2 {
110 aspect-ratio: auto;
111 grid-template-rows: 1fr;
112 height: auto;
113 }
114
115 .activitypub-embed-content .ap-preview.layout-3 > img:first-child {
116 grid-row: span 2;
117 }
118
119 .activitypub-embed-content .ap-preview-text {
120 padding: 15px;
121 }
122
123 .activitypub-embed-meta {
124 padding: 15px;
125 border-top: 1px solid #e6e6e6;
126 color: #687684;
127 font-size: 13px;
128 display: flex;
129 gap: 15px;
130 }
131
132 .activitypub-embed-meta .ap-stat {
133 display: flex;
134 align-items: center;
135 gap: 5px;
136 }
137
138 @media only screen and (max-width: 399px) {
139
140 .activitypub-embed-meta span.ap-stat {
141 display: none !important;
142 }
143 }
144
145 .activitypub-embed-meta a.ap-stat {
146 color: inherit;
147 text-decoration: none;
148 }
149
150 .activitypub-embed-meta strong {
151 font-weight: 600;
152 color: #000;
153 }
154
155 .activitypub-embed-meta .ap-stat-label {
156 color: #687684;
157 }
158