From d21e84790ad14423cb5bfa1a5a825f9d4b1ccb49 Mon Sep 17 00:00:00 2001 From: Bruce Bannon Date: Sun, 7 Jan 2024 05:51:08 -0700 Subject: [PATCH] Improve base img style. From https://www.youtube.com/watch?v=345V2MU3E_w&list=WL&index=40 --- includes/css/styles.css | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/includes/css/styles.css b/includes/css/styles.css index 82fd37321..9817463fb 100644 --- a/includes/css/styles.css +++ b/includes/css/styles.css @@ -179,7 +179,19 @@ td.weekcell { text-decoration:none; } img { - border:0; + max-inline-size: 100%; + block-size: auto; + + /* These 2 presume pre-load a low-res image in an inline style="" on each img. */ + /* We probably don't need them. Yet. */ + /* + background-repeat: no-repeat; + background-size: cover; + */ + + shape-margin: 1rem; + border: 0; + vertical-align: middle; } img.color { width:.9375rem;