From 15fcc190319a3deaaeaa544833ea07475e790585 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sun, 29 May 2016 20:52:17 -0400 Subject: re-synching --- ws2a/help.css | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 ws2a/help.css (limited to 'ws2a/help.css') diff --git a/ws2a/help.css b/ws2a/help.css new file mode 100644 index 0000000..3645ed7 --- /dev/null +++ b/ws2a/help.css @@ -0,0 +1,54 @@ +/* F.A.Q */ + +div { position: relative; } +input[type=checkbox] { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + opacity: 0; +} +h2 { + font-size: 30px; + font-weight: 400; + margin: 60px 0 10px 0; +} +label { + cursor: pointer; +} +label { + position: relative; + display: block; + padding-left: 30px; +} +label:before { + content: ""; + position: absolute; + width: 0; + height: 0; + top: 50%; + left: 10px; + border-left: 8px solid black; + border-top: 8px solid transparent; + border-bottom: 8px solid transparent; + margin-top: -8px; +} +input[type=checkbox]:checked ~ h2 label:before { + border-left: 8px solid transparent; + border-top: 8px solid black; + border-right: 8px solid transparent; + margin-left: -4px; + margin-top: -4px +} + +p { + max-height: 100; + overflow: hidden; + padding-left: 30px; + transition: max-height 0.4s ease; + font-family: 'Habibi', serif; +} +input[type=checkbox]:checked ~ h2 ~ p { + max-height: 80px; +} -- cgit v1.2.3-70-g09d2