Skip to content

Instantly share code, notes, and snippets.

@safrankov
Created March 9, 2017 21:17
Show Gist options
  • Select an option

  • Save safrankov/c6776c9a4ee2eb1b24408fda05f1e56e to your computer and use it in GitHub Desktop.

Select an option

Save safrankov/c6776c9a4ee2eb1b24408fda05f1e56e to your computer and use it in GitHub Desktop.
.faq-block{
position: relative;
width: 840px;
margin: 0 auto 50px auto;
}
.faq-block__item{
position: relative;
width: 100%;
margin-bottom: 10px;
}
.faq-block__name{
position: relative;
width: 100%;
background: #2d3241;
min-height: 56px;
padding: 21px 50px 21px 25px;
color: #fff;
font-size: 16px;
font-weight: bold;
cursor: pointer;
-webkit-transition: all .2s;
-moz-transition: all .2s;
-ms-transition: all .2s;
-o-transition: all .2s;
transition: all .2s;
}
.faq-block__name:hover{
background: #374049;
}
.faq-block__name:after{
position: absolute;
top: 20px;
right: 15px;
content: '';
width: 26px;
height: 26px;
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaBAMAAABbZFH9AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEXZ4O7////Z4O7Z4O7Z4O7///88FEiFAAAABXRSTlMAALS76zDVHP4AAAABYktHRAH/Ai3eAAAACXBIWXMAAAsSAAALEgHS3X78AAAAH0lEQVQY02NgAAMlBkEQYBi8PGMwcIFQaLzB5E48PACXgRB5pY8xYwAAAABJRU5ErkJggg==") no-repeat;
font-size: 25px;
}
.faq-block__name-active:after{
content: '';
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAACAQMAAAB8AV57AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABlBMVEWrssD////KSMuCAAAAAWJLR0QB/wIt3gAAAAlwSFlzAAALEgAACxIB0t1+/AAAAAtJREFUCNdjYIABAAAKAAHn+Nr6AAAAAElFTkSuQmCC") no-repeat;
top: 30px;
}
.faq-block__text{
display: none;
padding: 20px 25px 0 25px;
background: #222632;
font-size: 16px;
color: #babfcc;
}
.faq-block__text p{
padding-bottom: 25px;
}
.faq-block__item p a{
color: #13bf54;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment