From dbfb0de8e6930e41506a65be3cf37ebdeb115e81 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Thu, 4 Feb 2021 20:26:04 +1100 Subject: Steelman table hidden behind a toggle button --- project/assets/css/steelman.css | 39 +++++++++++++++++++++++++++++++++++++++ project/templates/steelman.html | 9 +++++++++ 2 files changed, 48 insertions(+) diff --git a/project/assets/css/steelman.css b/project/assets/css/steelman.css index 5b6b5c9..d0f2c2a 100644 --- a/project/assets/css/steelman.css +++ b/project/assets/css/steelman.css @@ -1,5 +1,44 @@ +section.accordian { + margin: 1em 2em 2em 2em; +} + + +.accordian > input[name="collapse"] { + display: none; +} + + +.accordian .hidden_content { + overflow: hidden; + height: 0; +} + + +.accordian label { + color: #ffffff; + cursor: pointer; + font-weight: normal; + padding: 0.5em; + background: #808080; +} + + +.accordian label:hover, +.accordian label:focus { + color: #ffffff; + background: #000000; +} + + +.accordian > input[name="collapse"]:checked ~ .hidden_content { + height: auto; +} + + + + table { margin: 2em auto 2em auto; max-width: 60em; diff --git a/project/templates/steelman.html b/project/templates/steelman.html index 4c0d209..bb61548 100644 --- a/project/templates/steelman.html +++ b/project/templates/steelman.html @@ -223,6 +223,12 @@ considered meet that requirement on the right. Some explanatory notes are includ

Note that due to the standardisation issues each of these languages has, a (fortunately quite low) number of these turned out to be educated guesses. Fairness was the goal, but nonetheless reader discretion is advised.

+ +
+ + +
+ @@ -2313,6 +2319,9 @@ turned out to be educated guesses. Fairness was the goal, but nonetheless reader
Requirement
+
+
+ {% endblock %} -- cgit