@@ -1477,6 +1477,11 @@ a[href*="obsidian://search"] {
14771477 background-image : url ("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='17' height='17' class='search'><path fill='white' stroke='white' stroke-width='2' d='M42,6C23.2,6,8,21.2,8,40s15.2,34,34,34c7.4,0,14.3-2.4,19.9-6.4l26.3,26.3l5.6-5.6l-26-26.1c5.1-6,8.2-13.7,8.2-22.1 C76,21.2,60.8,6,42,6z M42,10c16.6,0,30,13.4,30,30S58.6,70,42,70S12,56.6,12,40S25.4,10,42,10z'></path></svg>" );
14781478}
14791479
1480+ .plain-external-links .external-link {
1481+ background-image : none;
1482+ padding-right : 0 ;
1483+ }
1484+
14801485/* Reading Mode Lists
14811486div > ol,
14821487div > ul {
@@ -3513,32 +3518,54 @@ body {
35133518.img-grid .image-embed .is-loaded img : active {
35143519 background-color : transparent;
35153520}
3516- .img-grid .markdown-preview-section {
3517- /*img:not(.emoji):not([width]),
3518- video {
3519- width:100%;
3520- }*/
3521+ .img-grid .markdown-preview-section > div : has (img ) p : empty ,
3522+ .img-grid .markdown-preview-section > div : has (img ) img ~ br ,
3523+ .img-grid .markdown-preview-section > div : has (img ) .image-embed ~ br {
3524+ display : none;
35213525}
3522- .img-grid .markdown-preview-section > div : has (.image-embed ) > p {
3526+ .img-grid .markdown-preview-section div : has (> .image-embed ~ .image-embed ),
3527+ .img-grid .markdown-preview-section p : has (> .image-embed ~ .image-embed ),
3528+ .img-grid .markdown-preview-section div : has (> img ~ img ),
3529+ .img-grid .markdown-preview-section p : has (> .image-embed ~ img ),
3530+ .img-grid .markdown-preview-section p : has (> img ~ .image-embed ),
3531+ .img-grid .markdown-preview-section p : has (> img ~ img ) {
35233532 display : grid;
35243533 margin-block-start : var (--img-grid-gap );
35253534 margin-block-end : var (--img-grid-gap );
35263535 grid-column-gap : var (--img-grid-gap );
35273536 grid-row-gap : 0 ;
35283537 grid-template-columns : repeat (auto-fit, minmax (0 , 1fr ));
35293538}
3530- .img-grid .markdown-preview-section > div : has (.image-embed ) > p > br {
3531- display : none;
3532- }
3533- .img-grid .markdown-preview-section > div : has (.image-embed ) > p > img {
3539+ .img-grid .markdown-preview-section div : has (> .image-embed ~ .image-embed ) > img ,
3540+ .img-grid .markdown-preview-section p : has (> .image-embed ~ .image-embed ) > img ,
3541+ .img-grid .markdown-preview-section div : has (> img ~ img ) > img ,
3542+ .img-grid .markdown-preview-section p : has (> .image-embed ~ img ) > img ,
3543+ .img-grid .markdown-preview-section p : has (> img ~ .image-embed ) > img ,
3544+ .img-grid .markdown-preview-section p : has (> img ~ img ) > img {
35343545 object-fit : var (--image-grid-fit );
35353546 align-self : stretch;
35363547}
3537- .img-grid .markdown-preview-section > div : has (.image-embed ) > p > .internal-embed img {
3548+ .img-grid .markdown-preview-section div : has (> .image-embed ~ .image-embed ) > .internal-embed img ,
3549+ .img-grid .markdown-preview-section p : has (> .image-embed ~ .image-embed ) > .internal-embed img ,
3550+ .img-grid .markdown-preview-section div : has (> img ~ img ) > .internal-embed img ,
3551+ .img-grid .markdown-preview-section p : has (> .image-embed ~ img ) > .internal-embed img ,
3552+ .img-grid .markdown-preview-section p : has (> img ~ .image-embed ) > .internal-embed img ,
3553+ .img-grid .markdown-preview-section p : has (> img ~ img ) > .internal-embed img {
35383554 object-fit : var (--image-grid-fit );
35393555 height : 100% ;
35403556 align-self : center;
35413557}
3558+ .img-grid .markdown-preview-section > div : has (img ) > p {
3559+ display : grid;
3560+ margin-block-start : var (--img-grid-gap );
3561+ margin-block-end : var (--img-grid-gap );
3562+ grid-column-gap : var (--img-grid-gap );
3563+ grid-row-gap : 0 ;
3564+ grid-template-columns : repeat (auto-fit, minmax (0 , 1fr ));
3565+ }
3566+ .img-grid .markdown-preview-section > div : has (img ) > p > br {
3567+ display : none;
3568+ }
35423569
35433570/* Image zoom */
35443571/* MIT License | Copyright (c) Stephan Ango (@kepano) */
0 commit comments