@@ -242,7 +242,110 @@ h3 {
242242 display : flex;
243243}
244244
245+ .notion-bookmark {
246+ display : block;
247+ color : inherit;
248+ text-decoration : none;
249+ flex-grow : 1 ;
250+ min-width : 0px ;
251+ }
252+
253+ .notion-bookmark-inner {
254+ user-select : none;
255+ transition : background 120ms ease-in 0s ;
256+ cursor : pointer;
257+ width : 100% ;
258+ display : flex;
259+ flex-wrap : wrap-reverse;
260+ align-items : stretch;
261+ text-align : left;
262+ overflow : hidden;
263+ border : 1px solid rgba (55 , 53 , 47 , 0.16 );
264+ border-radius : 3px ;
265+ position : relative;
266+ color : inherit;
267+ fill : inherit;
268+ }
269+
270+ .notion-bookmark-inner > div : first-child {
271+ flex : 4 1 180px ;
272+ padding : 12px 14px 14px ;
273+ overflow : hidden;
274+ text-align : left;
275+ }
276+
277+ .notion-bookmark-title {
278+ font-size : 14px ;
279+ line-height : 20px ;
280+ color : rgb (55 , 53 , 47 );
281+ white-space : nowrap;
282+ overflow : hidden;
283+ text-overflow : ellipsis;
284+ min-height : 24px ;
285+ margin-bottom : 2px ;
286+ }
287+
288+ .notion-bookmark-description {
289+ font-size : 12px ;
290+ line-height : 16px ;
291+ color : rgba (55 , 53 , 47 , 0.6 );
292+ height : 32px ;
293+ overflow : hidden;
294+ }
295+
296+ .notion-bookmark-link {
297+ display : flex;
298+ margin-top : 6px ;
299+ }
300+
301+ .notion-bookmark-link > img {
302+ width : 16px ;
303+ height : 16px ;
304+ min-width : 16px ;
305+ margin-right : 6px ;
306+ }
307+
308+ .notion-bookmark-link > div {
309+ font-size : 12px ;
310+ line-height : 16px ;
311+ color : rgb (55 , 53 , 47 );
312+ white-space : nowrap;
313+ overflow : hidden;
314+ text-overflow : ellipsis;
315+ }
316+
317+ .notion-bookmark-inner > div : last-child {
318+ flex : 1 1 180px ;
319+ display : block;
320+ position : relative;
321+ }
322+
323+ .notion-bookmark-inner > div : last-child > div {
324+ position : absolute;
325+ top : 0px ;
326+ left : 0px ;
327+ right : 0px ;
328+ bottom : 0px ;
329+ }
330+
331+ .notion-bookmark-inner > div : last-child > div > div {
332+ width : 100% ;
333+ height : 100% ;
334+ }
335+
336+ .notion-bookmark-inner > div : last-child img {
337+ display : block;
338+ object-fit : cover;
339+ border-radius : 1px ;
340+ width : 100% ;
341+ height : 100% ;
342+ }
343+
245344@media (max-width : 640px ) {
345+ .notion-bookmark-inner > div : last-child {
346+ display : none;
347+ }
348+
246349 .notion-row {
247350 flex-direction : column;
248351 }
0 commit comments