From 4ce671d5ea8846ae59af3cff64e589e6480b8da9 Mon Sep 17 00:00:00 2001 From: Carsten Schoenert Date: Sun, 7 Apr 2019 12:26:58 +0200 Subject: toggle.css: adding a new files with stylsheet info A new set of classes to get content managed that is added to a site but should be hided. --- english/download/toggle.css | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 english/download/toggle.css diff --git a/english/download/toggle.css b/english/download/toggle.css new file mode 100644 index 00000000000..fc0657c61c7 --- /dev/null +++ b/english/download/toggle.css @@ -0,0 +1,37 @@ +input[type='checkbox'] { + display: none; +} + +.lbl-toggle { + %display: block; + %font-weight: bold; + %font-family: monospace; + %font-size: 1.2rem; + %text-transform: uppercase; + %text-align: center; + padding: .5rem; + %color: #A77B0E; + background: #b2b5bf; + cursor: pointer; + border-radius: 7px; +} + +.lbl-toggle:hover { + color: #7C5A0B; + color: #ffffff; +} + +.collapsible-content { + max-height: 0px; + overflow: hidden; + transition: max-height .65s ease-in; +} + +.toggle:checked + .lbl-toggle + .collapsible-content { + /* Increase the size of max-height to something more pixels than the section + will need, the real height of the section will get used anyway. */ + max-height: 1250px; + transition-timing-function: ease-out; + transition: 1.25s; + transform: translateY(0); +} -- cgit v1.2.3