diff --git a/README.md b/README.md index 293cc80..f8a2185 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,14 @@ - ... +## Install + +Before testing this needs icon fonts to be available: +``` +$ npm install +``` + + ## Architecture XXX diff --git a/css/grid-n-view.css b/css/grid-n-view.css index 9f926ec..bf597ef 100644 --- a/css/grid-n-view.css +++ b/css/grid-n-view.css @@ -4,6 +4,8 @@ * **********************************************************************/ +@import '../node_modules/material-symbols/outlined.css'; + /********************************************************* Config ****/ @@ -258,13 +260,49 @@ body { /* buttons... */ .gallery .toolbar button { - line-height: 1.5rem; - min-width; 1.5rem; - text-align: center; + min-width: 1.5rem; border: solid 1px transparent; background: var(--gallery-background-color); + + font-family: "Material Symbols Outlined"; + font-size: 1.5rem; + line-height: 1.5rem; + font-weight: 300; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + text-rendering: optimizeLegibility; + font-feature-settings: "liga"; + + text-align: center; } +.gallery .toolbar button sec { + display: inline-block; + position: relative; + + left: 0; + bottom: -0.25rem; + margin-left: -0.95rem; + + font-size: 1.3rem; + + /* XXX this works but needs another layer of black text on top... + * ...not sure how to do this without JS -- SVG would be simpler! */ + /*-webkit-text-stroke: 0.1em white; + text-stroke: 0.1em white; */ + + /* XXX HACK: might be better to use SVG for this... */ + text-shadow: + 0em 0.05em 0px var(--gallery-background-color), + 0.05em 0em 0px var(--gallery-background-color), + -0.05em 0em 0px var(--gallery-background-color), + 0em -0.05em 0px var(--gallery-background-color), + 0.05em 0.05em 0px var(--gallery-background-color), + -0.05em -0.05em 0px var(--gallery-background-color), + -0.05em 0.05em 0px var(--gallery-background-color), + 0.05em -0.05em 0px var(--gallery-background-color); +} + .gallery .toolbar button:hover { border-radius: calc(1.5rem / 5); border: solid 1px var(--gallery-secondary-color); @@ -349,12 +387,14 @@ body { position: absolute; top: 0; right: 0; + } .gallery .button { disbplay: inline-block; cursor: pointer; width: var(--lightbox-button-size); height: var(--lightbox-button-size); + font-size: var(--lightbox-button-size); line-height: var(--lightbox-button-size); filter: saturate(0); @@ -376,7 +416,7 @@ body { /* controls: close... */ .gallery .button.close:after { content: "✕"; - color: red; + /*color: red;*/ } .gallery .button.fullscreen:after { content: "⛶"; diff --git a/grid-n-view.html b/grid-n-view.html index f592c76..0517796 100644 --- a/grid-n-view.html +++ b/grid-n-view.html @@ -6,7 +6,8 @@ Grid n' View - + +