Created
September 20, 2012 23:31
-
-
Save gunnarbittersmann/3758960 to your computer and use it in GitHub Desktop.
Quiz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Quiz | |
| */ | |
| label | |
| { | |
| display: inline-block; | |
| line-height: 1.5em; | |
| margin-right: 2em; | |
| width: 2em; | |
| } | |
| label::after | |
| { | |
| visibility: hidden; | |
| font-size: 1.4em; | |
| margin-left: 0.5em; | |
| } | |
| #solution:target label::after | |
| { | |
| visibility: visible; | |
| } | |
| :checked + label::after | |
| { | |
| color: red; | |
| content: '✘'; | |
| } | |
| [value="true"] + label::after | |
| { | |
| color: lightgreen; | |
| content: '☚'; | |
| } | |
| [value="true"]:checked + label::after | |
| { | |
| color: green; | |
| content: '✔'; | |
| } | |
| a | |
| { | |
| background: linear-gradient(#f8f8fa, #eeeef0 50%, #e8e8ea 50%, #dddddf); | |
| border-radius: 666em; | |
| box-shadow: 0.1em 0.1em 0.1em #666; | |
| color: inherit; | |
| display: inline-block; | |
| padding: 0.5em 1em; | |
| text-decoration: none; | |
| width: 10em; | |
| } | |
| #solution:not(:target) [href="#"], | |
| #solution:target [href="#solution"] | |
| { | |
| display: none; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <form id="solution"> | |
| <p> | |
| <input type="radio" name="q1" id="q1a" value="true"/> | |
| <label for="q1a">a</label> | |
| <input type="radio" name="q1" id="q1b" value="false"/> | |
| <label for="q1b">b</label> | |
| <input type="radio" name="q1" id="q1c" value="false"/> | |
| <label for="q1c">c</label> | |
| </p> | |
| <p> | |
| <input type="radio" name="q2" id="q2a" value="false"/> | |
| <label for="q2a">a</label> | |
| <input type="radio" name="q2" id="q2b" value="true"/> | |
| <label for="q2b">b</label> | |
| <input type="radio" name="q2" id="q2c" value="false"/> | |
| <label for="q2c">c</label> | |
| </p> | |
| <p> | |
| <a href="#solution">Auflösung anzeigen</a> | |
| <a href="#">Auflösung verstecken</a> | |
| </p> | |
| </form> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment