I'd really like it if it would expand, in a transition. So when you click again it fades out and closes. Would be nicer.
I've tried adding transition to both faq-tile and other elements but i cannot get it to work.
Code: Select all
.faq-new
{
color: #97BE00;
font-size: 1.6em;
}
.faq-tile
{
box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.085);
border: 1px solid #97BE00;
border-top: 1px solid #C7D9A4;
border-left: 1px solid #C7D9A4;
margin-bottom: 30px;
padding: 15px;
transition: background-color 0.2s;
position: relative;
}
.faq-tile:hover
{
background-color: #F5F5F5;
box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.095);
}
.faq-tile-new
{
position: absolute;
right: 0px;
top: 0px;
background-color: #412782;
color: #ffffff;
padding-top: 3px;
padding-bottom: 3px;
padding-left: 10px;
padding-right: 10px;
font-size: 1em;
}
.faq-tile-circle
{
position: absolute;
background-color: #C5E18B;
width: 50px;
height: 50px;
border-radius: 50%;
bottom: -25px;
left: -25px;
text-align: center;
color: #000000;
font-size: 1.7em;
box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.075);
}
.faq-tile-circle i
{
line-height: 50px;
}
.faq-tile-question
{
cursor: pointer;
display: block;
color: #412782;
}
.faq-tile-question h2
{
font-size: 1.6em;
}
.faq-tile-answer
{
color: #333333;
font-size: 1.2em;
padding-left: 40px;
}
.faq-tile input{
display: none; /* hide the checkboxes */
}
.faq-tile-question + input + div{
display:none;
}
.faq-tile-question + input:checked + div{
display:block;
}