196 lines
3.5 KiB
CSS
196 lines
3.5 KiB
CSS
body {
|
|
margin: 0 auto;
|
|
max-width: 1230px;
|
|
}
|
|
.row {
|
|
width: 100%;
|
|
min-width: 1230px;
|
|
display: flex;
|
|
flex-direction: row-reverse;
|
|
}
|
|
.accordion {
|
|
display: flex;
|
|
width: 40%; /* 40% страницы */
|
|
height: 348px;
|
|
gap: 10px; /* отступ между колонками */
|
|
}
|
|
.accordion-item {
|
|
flex: 1;
|
|
border-radius: 30px; /* закругление краёв */
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
flex-direction: column-reverse;
|
|
align-items: center;
|
|
}
|
|
.accordion-item.active{
|
|
display: flex;
|
|
flex: 5; /* раскрытая колонка */
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.accordion-item.active .accordion_index{
|
|
display: none;
|
|
}
|
|
.accordion-item.active .accordion_title{
|
|
display: none;
|
|
}
|
|
.accordion-item.active .img-open {
|
|
display: none;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
.accordion_index {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 15px;
|
|
border-radius: 50%;
|
|
background-color: #fff;
|
|
font-weight: 600;
|
|
width: 10px;
|
|
height: 10px;
|
|
margin-bottom: 10px;
|
|
}
|
|
.accordion_title {
|
|
color: white;
|
|
display: flex;
|
|
align-items: center;
|
|
writing-mode: vertical-lr;
|
|
transform: rotate(-180deg);
|
|
}
|
|
/* not-actine */
|
|
|
|
#item1 {
|
|
background-color: #0C47A0;
|
|
}
|
|
#item2 {
|
|
background-color: #A5C6F6;
|
|
}
|
|
#item3 {
|
|
background-color: #0C47A0;
|
|
}
|
|
#item4 {
|
|
background-color: #A5C6F6;
|
|
}
|
|
#item5 {
|
|
background-color: #0C47A0;
|
|
}
|
|
|
|
/* active */
|
|
|
|
#item1.active {
|
|
background: url("/main/001.png") 100% 100% / cover;
|
|
}
|
|
#item2.active {
|
|
background: url("/main/002.png") 100% 100% / cover;
|
|
}
|
|
#item3.active {
|
|
background: url("/main/003.png") 100% 100% / cover;
|
|
}
|
|
#item4.active {
|
|
background: url("/main/004.png") 100% 100% / cover;
|
|
}
|
|
#item5.active {
|
|
background: url("/main/005.png") 100% 100% / cover;
|
|
}
|
|
.img-open {
|
|
display: block;
|
|
object-fit: cover;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.img-open {
|
|
display: none;
|
|
}
|
|
.accordion-item.active .blue-square {
|
|
display: block;
|
|
height: 100%;
|
|
width: 82%;
|
|
margin: 20px;
|
|
background-color: rgba(2, 76, 187, 0.259);
|
|
border-radius: 33px;
|
|
}
|
|
/* not-active */
|
|
.item_wrapper_index {
|
|
display: none;
|
|
}
|
|
.item_wrapper {
|
|
display: none;
|
|
}
|
|
/* active */
|
|
.accordion-item.active .item_wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 15px;
|
|
height: 92%;
|
|
}
|
|
.accordion-item.active .wrapper_row_first {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
margin-bottom: 15px;
|
|
height: 30%;
|
|
}
|
|
.accordion-item.active .item_wrapper_index {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 700;
|
|
padding: 10px;
|
|
border-radius: 50%;
|
|
background-color: #fff;
|
|
width: 20px;
|
|
height: 20px;
|
|
font-size: 18px;
|
|
}
|
|
.item_wrapper_icon {
|
|
background-color: #fff;
|
|
border-radius: 50%;
|
|
}
|
|
.item_wrapper_icon svg {
|
|
display: block;
|
|
width: 42px;
|
|
height: 42px;
|
|
padding: 18px;
|
|
}
|
|
.wrapper_row_middle {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
height: 100%;
|
|
}
|
|
.row_middle_title {
|
|
color: #fff;
|
|
font-weight: 500;
|
|
font-size: 24px;
|
|
text-transform: uppercase;
|
|
}
|
|
.row_middle_text {
|
|
font-size: 16px;
|
|
color: #fff;
|
|
margin-bottom: 15px;
|
|
}
|
|
.wrapper_row_botton {
|
|
height: 20%;
|
|
}
|
|
.wrapper_row_botton {
|
|
display: flex;
|
|
justify-content: end;
|
|
}
|
|
.wrapper_row_btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding: 8px;
|
|
border-radius: 16px;
|
|
border: none;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
}
|
|
.wrapper_row_btn svg {
|
|
display: block;
|
|
width: 14px;
|
|
height: 16px;
|
|
} |