mirror of
https://github.com/sergeyyarkov/accordion-js.git
synced 2026-10-11 09:58:52 +03:00
103 lines
2.0 KiB
CSS
103 lines
2.0 KiB
CSS
/* Fade In Animation */
|
|
.fadein {
|
|
-webkit-animation: fadein 1s; /* Safari, Chrome and Opera > 12.1 */
|
|
-moz-animation: fadein 1s; /* Firefox < 16 */
|
|
-ms-animation: fadein 1s; /* Internet Explorer */
|
|
-o-animation: fadein 1s; /* Opera < 12.1 */
|
|
animation: fadein 1s;
|
|
}
|
|
@keyframes fadein {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
/* Firefox < 16 */
|
|
@-moz-keyframes fadein {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
/* Safari, Chrome and Opera > 12.1 */
|
|
@-webkit-keyframes fadein {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
/* Internet Explorer */
|
|
@-ms-keyframes fadein {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
/* Opera < 12.1 */
|
|
@-o-keyframes fadein {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
body {
|
|
font-family: 'Roboto';
|
|
}
|
|
.container {
|
|
max-width: 690px;
|
|
margin-right: auto;
|
|
margin-left: auto;
|
|
}
|
|
.tabs-wrapper {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
justify-content: center;
|
|
}
|
|
.tab {
|
|
height: 55px;
|
|
background-color: #fff;
|
|
border: 1px solid #C7C7C7;
|
|
border-radius: 3px;
|
|
margin-top: 10px;
|
|
padding-left: 27px;
|
|
cursor: pointer;
|
|
transition: all 0.1s;
|
|
}
|
|
.tab-wrap {
|
|
transition: all 0.2s;
|
|
}
|
|
.tab:hover {
|
|
background-color: #f1f1f1;
|
|
}
|
|
.tab span {
|
|
top: 17px;
|
|
position: relative;
|
|
display: block;
|
|
}
|
|
.tab span::after {
|
|
background-image: url(../img/arrow.svg);
|
|
background-repeat: no-repeat;
|
|
display: block;
|
|
content: '';
|
|
height: 30px;
|
|
width: 30px;
|
|
position: absolute;
|
|
right: 20px;
|
|
top: 0;
|
|
z-index: 999;
|
|
transition: all 0.2s;
|
|
}
|
|
.tab-active .tab span::after {
|
|
transform: rotate(180deg);
|
|
}
|
|
.tab-content {
|
|
min-height: 175px;
|
|
width: 99%;
|
|
margin: 0 auto;
|
|
background-color: #F4F4F4;
|
|
border: 1px solid #C7C7C7;
|
|
display: block;
|
|
padding-top: 26px;
|
|
font-size: 14px;
|
|
display: none;
|
|
}
|
|
.tab-content p {
|
|
padding-left: 20px;
|
|
padding-right: 20px;
|
|
}
|
|
|