From 71422b2a0ce03d2c4ef4fc37ac3413a7a6a6933e Mon Sep 17 00:00:00 2001 From: Gareth Barnard <1058419+gjb2048@users.noreply.github.com> Date: Fri, 6 Sep 2024 21:26:03 +0100 Subject: [PATCH] Tidy. --- styles.css | 19 +++++++--------- templates/coursestyles.mustache | 3 +-- templates/grid.mustache | 40 +++++++++++++++++---------------- 3 files changed, 30 insertions(+), 32 deletions(-) diff --git a/styles.css b/styles.css index 922b9cf0..5a2834e0 100644 --- a/styles.css +++ b/styles.css @@ -61,6 +61,7 @@ } .format-grid .thegrid .grid-section { + box-sizing: content-box; width: 210px; } @@ -68,24 +69,20 @@ border: 2px solid var(--primary); } -.format-grid .thegrid .grid-image { +.format-grid .thegrid .grid-image-container { height: 140px; +} + +.format-grid .thegrid .grid-image { position: relative; } .format-grid .thegrid .grid-generatedimage { background-size: contain; - height: 140px; -} - -/*rtl:begin:ignore*/ -.format-grid .thegrid .grid-image img { - left: 50%; - position: absolute; - top: 50%; - transform: translate(-50%,-50%); + height: 100%; + position: relative; + width: 100%; } -/*rtl:end:ignore*/ .format-grid #gridPopup .modal-dialog { max-width: 100%; diff --git a/templates/coursestyles.mustache b/templates/coursestyles.mustache index 34361b82..f86ca0b1 100644 --- a/templates/coursestyles.mustache +++ b/templates/coursestyles.mustache @@ -34,8 +34,7 @@ /* {{^popup}} - {{#notavailable}}
{{/notavailable}} - {{^notavailable}}{{/notavailable}} + {{#notavailable}}
{{/notavailable}} + {{^notavailable}}{{/notavailable}} {{/popup}} {{#popup}} -