bx-1379-redesign #15
|
@ -61,14 +61,19 @@ $boxShadow: 0px 0px 8px rgba(0, 0, 0, .25);
|
|||
box-shadow: $boxShadow;
|
||||
|
||||
color: $textColor;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-height: calc(100vh - 8rem);
|
||||
}
|
||||
|
||||
&-accordion {
|
||||
padding: 1.125rem 1rem;
|
||||
border-bottom: 2px solid var(--primary-color);
|
||||
max-height: 4rem;
|
||||
min-height: 1.625rem;
|
||||
overflow: hidden;
|
||||
transition: max-height 300ms linear;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
|
@ -97,13 +102,9 @@ $boxShadow: 0px 0px 8px rgba(0, 0, 0, .25);
|
|||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&.open {
|
||||
max-height: 50vh;
|
||||
}
|
||||
|
||||
&-content {
|
||||
max-height: 32vh;
|
||||
height: calc(100% - 2rem);
|
||||
overflow: auto;
|
||||
margin-top: 1.125rem;
|
||||
padding-left: 2rem;
|
||||
|
|
|
@ -28,9 +28,6 @@ export const usePromoSidebar = defineStore('promo_sidebar', {
|
|||
if (target?.target) {
|
||||
sidebar_data.target = target.target.toString()
|
||||
}
|
||||
if (!this.isAccOpen('desc')) {
|
||||
this.accordions.push('desc')
|
||||
}
|
||||
this.setData(sidebar_data)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue