PluginProbe
ActivityPub / 7.7.0
ActivityPub v7.7.0
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 7.7.0, at assets/css/activitypub-embed.css

167 lines 2.8 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 overflow: hidden;
71 }
72
73 .activitypub-embed-content .ap-preview img {
74 width: 100%;
75 height: auto;
76 display: block;
77 }
78
79 .activitypub-embed-content .ap-preview {
80 border-radius: 8px;
81 box-sizing: border-box;
82 display: grid;
83 gap: 2px;
84 grid-template-columns: 1fr 1fr;
85 grid-template-rows: 1fr 1fr;
86 margin: 1em 0 0;
87 min-height: 64px;
88 overflow: hidden;
89 position: relative;
90 width: 100%;
91 }
92
93 .activitypub-embed-content .ap-preview.layout-1 {
94 grid-template-columns: 1fr;
95 grid-template-rows: 1fr;
96 }
97
98 .activitypub-embed-content .ap-preview.layout-2 {
99 aspect-ratio: auto;
100 grid-template-rows: 1fr;
101 height: auto;
102 }
103
104 .activitypub-embed-content .ap-preview.layout-3 > img:first-child {
105 grid-row: span 2;
106 }
107
108 .activitypub-embed-content .ap-preview img {
109 border: 0;
110 box-sizing: border-box;
111 display: inline-block;
112 height: 100%;
113 object-fit: cover;
114 overflow: hidden;
115 position: relative;
116 width: 100%;
117 }
118
119 .activitypub-embed-content .ap-preview video,
120 .activitypub-embed-content .ap-preview audio {
121 max-width: 100%;
122 display: block;
123 grid-column: 1 / span 2;
124 }
125
126 .activitypub-embed-content .ap-preview audio {
127 width: 100%;
128 }
129
130 .activitypub-embed-content .ap-preview-text {
131 padding: 15px;
132 }
133
134 .activitypub-embed-meta {
135 padding: 15px;
136 border-top: 1px solid #e6e6e6;
137 color: #687684;
138 font-size: 13px;
139 display: flex;
140 gap: 15px;
141 }
142
143 .activitypub-embed-meta .ap-stat {
144 display: flex;
145 align-items: center;
146 gap: 5px;
147 }
148 @media only screen and (max-width: 399px) {
149 .activitypub-embed-meta span.ap-stat {
150 display: none !important;
151 }
152 }
153
154 .activitypub-embed-meta a.ap-stat {
155 color: inherit;
156 text-decoration: none;
157 }
158
159 .activitypub-embed-meta strong {
160 font-weight: 600;
161 color: #000;
162 }
163
164 .activitypub-embed-meta .ap-stat-label {
165 color: #687684;
166 }
167