File tree Expand file tree Collapse file tree 3 files changed +247
-61
lines changed
Expand file tree Collapse file tree 3 files changed +247
-61
lines changed Original file line number Diff line number Diff line change @@ -281,13 +281,11 @@ a[href^='http'][rel*='nofollow']:visited:not(:has(div)) {
281281 --grid-gap : 16px ;
282282 grid-template-columns : 1fr 1fr 1fr ;
283283
284- @media (min-width : 40em ) {
285- width : 95vw ;
286- max-width : calc (320px * 3.3 );
287- transform : translateX (calc (-50% + var (--main-width ) / 2 ));
288- & : dir (rtl ) {
289- transform : translateX (calc (50% - var (--main-width ) / 2 ));
290- }
284+ width : 95vw ;
285+ max-width : calc (320px * 3.3 );
286+ transform : translateX (calc (-50% + var (--main-width ) / 2 ));
287+ & : dir (rtl ) {
288+ transform : translateX (calc (50% - var (--main-width ) / 2 ));
291289 }
292290 }
293291
Original file line number Diff line number Diff line change 264264 box-shadow :
265265 0 2px 4px var (--drop-shadow-color ),
266266 0 4px 8px var (--drop-shadow-color );
267+ filter : none;
267268 }
268269
269270 & : active {
285286 }
286287 }
287288
289+ .media-grid & {
290+ background-color : var (--bg-faded-blur-color );
291+
292+ & ::before {
293+ background-image : none;
294+ background-color : var (--outline-hover-color );
295+ }
296+
297+ & .is-active {
298+ background-color : var (--bg-color );
299+ }
300+ }
301+
288302 & : is (: hover , : focus ) .month-name {
289303 color : var (--text-color );
290304 }
314328 .month-heatmap {
315329 display : grid;
316330 grid-template-columns : repeat (7 , 1fr );
331+ grid-template-rows : repeat (6 , 1fr );
317332 gap : var (--hairline-width );
318333 transition : opacity 0.3s ease;
319334
379394 }
380395 }
381396
397+ .month-media-grid {
398+ display : grid;
399+ grid-template-columns : repeat (7 , 1fr );
400+ grid-template-rows : repeat (6 , 1fr );
401+ gap : var (--hairline-width );
402+
403+ .media-day {
404+ --cell-size : 24px ;
405+ .calendar-bar .horizontal & {
406+ --cell-size : 16px ;
407+ }
408+
409+ width : var (--cell-size );
410+ height : var (--cell-size );
411+
412+ & : not (.empty ) {
413+ border-radius : 4px ;
414+ outline : 1px solid var (--outline-hover-color );
415+ outline-offset : -1px ;
416+ overflow : hidden;
417+ }
418+
419+ & .empty {
420+ opacity : 0 ;
421+ }
422+
423+ & .no-media {
424+ background-color : var (--bg-blur-color );
425+ outline-color : var (--outline-color );
426+ scale : 0.8 ;
427+ }
428+
429+ img {
430+ width : 100% ;
431+ height : 100% ;
432+ object-fit : cover;
433+ image-rendering : crisp-edges;
434+ }
435+ }
436+ }
437+
382438 .year-in-posts-nav {
383439 display : flex;
384440 justify-content : space-between;
You can’t perform that action at this time.
0 commit comments