Last active
January 9, 2018 14:26
-
-
Save philliproth/e5dcf6fa388fe215d6fa4492ccfedcb5 to your computer and use it in GitHub Desktop.
This file contains 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
.page-id-40711 .wrapper p { | |
height: 0px; | |
margin: 0px; | |
} | |
.page-id-40711 .tab { | |
position: relative; | |
margin-bottom: 1px; | |
width: 100%; | |
color: #fff; | |
overflow: hidden; | |
} | |
.page-id-40711 input { | |
position: absolute; | |
opacity: 0; | |
z-index: -1; | |
} | |
.page-id-40711 label { | |
position: relative; | |
display: block; | |
padding: 0 0 0 1em; | |
background: #5566c3; | |
font-weight: bold; | |
line-height: 3; | |
cursor: pointer; | |
} | |
.page-id-40711 .blue label { | |
background: #5566c3; | |
} | |
.page-id-40711 .tab-content { | |
max-height: 0; | |
overflow: hidden; | |
background: #f95758; | |
-webkit-transition: max-height .35s; | |
-o-transition: max-height .35s; | |
transition: max-height .35s; | |
} | |
.page-id-40711 .blue .tab-content { | |
background: #f95758; | |
} | |
.page-id-40711 .tab-content li a { | |
text-decoration: underline; | |
font-weight: bold; | |
color: #f2f2f2; | |
padding-top: 20px; | |
font-size: 24px; | |
} | |
.page-id-40711 .tab-content p { | |
margin: 1em; | |
} | |
.page-id-40711 input:checked ~ .tab-content { | |
max-height: 10em; | |
} | |
.page-id-40711 label::after { | |
position: absolute; | |
right: 0; | |
top: 0; | |
display: block; | |
width: 3em; | |
height: 3em; | |
line-height: 3; | |
text-align: center; | |
-webkit-transition: all .35s; | |
-o-transition: all .35s; | |
transition: all .35s; | |
} | |
.page-id-40711 input[type=checkbox] + label::after { | |
content: "+"; | |
} | |
.page-id-40711 input[type=radio] + label::after { | |
content: "\25BC"; | |
} | |
.page-id-40711 input[type=checkbox]:checked + label::after { | |
transform: rotate(315deg); | |
} | |
.page-id-40711 input[type=radio]:checked + label::after { | |
transform: rotateX(180deg); | |
} | |
.page-id-40711 input[type=checkbox]:focus + label { background: #000; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment