diff --git a/css/grid-n-view.css b/css/grid-n-view.css index 5fc5551..f2a1ff5 100644 --- a/css/grid-n-view.css +++ b/css/grid-n-view.css @@ -12,6 +12,7 @@ :root { /* dimensions */ --gallery-image-base-height: 18rem; + --gallery-image-base-width: auto; --gallery-image-spacing: 0rem; --gallery-current-image-border: 0.7rem; --gallery-padding: 3rem; @@ -206,7 +207,9 @@ button:active { /* image... */ .gallery .images img { height: var(--gallery-image-base-height); - width: auto; + width: var(--gallery-image-base-width); + + object-fit: contain; border: solid var(--gallery-image-margin) transparent; box-sizing: border-box; @@ -841,6 +844,15 @@ button:active { display: none; } + +icon { + font-family: "Material Symbols Outlined"; + font-weight: 300; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + text-rendering: optimizeLegibility; + font-feature-settings: "liga"; +} /********************************************************************** diff --git a/grid-n-view.html b/grid-n-view.html index 7c9325c..ca70e71 100644 --- a/grid-n-view.html +++ b/grid-n-view.html @@ -15,11 +15,29 @@ body.splash { opacity: 0; } -/* demo classes... */ + +/* demo: image spacing... */ .image-spacing { --gallery-image-spacing: 0.5em; } + +/* demo: tiny images... */ +.tiny-images { + --gallery-image-base-height: 10rem; +} + +/* demo: square image blocks... */ +.image-squares { + --gallery-image-spacing: 0.5em; +} +.image-squares .images img { + --gallery-image-base-width: var(--gallery-image-base-height); + + background: var(--gallery-secondary-color); + outline: solid 1px var(--gallery-background-color); +} +