.container {
width: calc(100% - 32px); // отступ по 16px в случае если страница <= 1024px
max-width: 1024px; // размер для примера
margin: 0 auto;
}
.container {
width: 100%;
max-width: 1056px;
margin: 0 auto;
padding: 0 16px;
}
*ngIf="year === activeYear"
. Типа так:activeYear = null;
log(year) {
this.activeYear = this.activeYear === year ? null : year;
}
<div class="middle-content" *ngFor="let year of years">
<a class="middle-content_top-indent" (click)="log(year)">{{ year }}</a>
<ul class="list-of-month" *ngIf="year === activeYear">
<li *ngFor="let month of months">
<span class="list-of-month__marker"></span>
<a href="#">{{ month }}</a>
</li>
</ul>
</div>
trigger('fadeInOut', [
transition(':enter', [style({
width: '59px',
border: 'none',
}),
animate(3000, style({
width: '*',
border: 'solid 1px #ebebeb',
}))],
),
transition(':leave', [
animate(3000, style({
width: '59px',
border: 'none',
}))],
),
])