From 6ccc265bb1fb2570ccab62ee42bcaefcde889d02 Mon Sep 17 00:00:00 2001 From: Alex Lewin Date: Mon, 23 Feb 2026 12:49:22 +0000 Subject: [PATCH 1/2] Show top box shadow on figures at the top of accordions --- src/scss/phy/questions.scss | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/scss/phy/questions.scss b/src/scss/phy/questions.scss index fc1434ccba..703380f977 100644 --- a/src/scss/phy/questions.scss +++ b/src/scss/phy/questions.scss @@ -16,6 +16,11 @@ // if a figure is in the top level of a content block that is not the top level of a page (i.e. preamble), indent it. otherwise (i.e. when inside a layout component), leave it for that component to handle // TODO: move the padding from this to the layout component (usually accordions!) padding: 0 3rem; + + // Ensure that the top box shadow is not cut off for figures at the top of accordions + &:first-child { + padding-top: 1.5rem; + } } } @@ -90,7 +95,7 @@ .symbolic-question, .equality-page { .eqn-editor-preview { - font-size: 1.25rem; + font-size: 1.5rem; border: solid 1px $black; } } @@ -117,11 +122,6 @@ background: #ffb847; color: #3c0000; } - &.correct, &.almost { - code { - background-color: transparent; - } - } } .numeric-question { @@ -201,4 +201,4 @@ form:has(> .question-component), div.quiz-question-container:has(> .question-com .coordinate-input-separator, .coordinate-input > span { font-size: 1.2rem; -} +} \ No newline at end of file From c055293adfc57f9894b268fc4a01e12894a9aeec Mon Sep 17 00:00:00 2001 From: Alex Lewin Date: Mon, 23 Feb 2026 12:54:48 +0000 Subject: [PATCH 2/2] Revert accidental changes --- src/scss/phy/questions.scss | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/scss/phy/questions.scss b/src/scss/phy/questions.scss index 703380f977..9a325162e3 100644 --- a/src/scss/phy/questions.scss +++ b/src/scss/phy/questions.scss @@ -95,7 +95,7 @@ .symbolic-question, .equality-page { .eqn-editor-preview { - font-size: 1.5rem; + font-size: 1.25rem; border: solid 1px $black; } } @@ -122,6 +122,11 @@ background: #ffb847; color: #3c0000; } + &.correct, &.almost { + code { + background-color: transparent; + } + } } .numeric-question { @@ -201,4 +206,4 @@ form:has(> .question-component), div.quiz-question-container:has(> .question-com .coordinate-input-separator, .coordinate-input > span { font-size: 1.2rem; -} \ No newline at end of file +}