Reverted structure

This commit is contained in:
Joan Sanchez 2020-08-11 12:10:37 +02:00
parent d17f289af9
commit 64abd29257
2 changed files with 23 additions and 33 deletions

View File

@ -19,33 +19,28 @@
ng-if="$ctrl.displayControls">
</vn-button>
</div>
<div class="rows">
<div class="weeksNumber">a</div>
<div class="weeks">
<div class="weekdays">
<section
ng-repeat="day in ::$ctrl.weekDays"
translate-attr="::{title: day.name}"
ng-click="$ctrl.selectWeekDay($event, day.index)">
<span>{{::day.localeChar}}</span>
</section>
</div>
<div class="weekdays">
<section
ng-repeat="day in ::$ctrl.weekDays"
translate-attr="::{title: day.name}"
ng-click="$ctrl.selectWeekDay($event, day.index)">
<span>{{::day.localeChar}}</span>
</section>
</div>
<div
class="days"
ng-class="{'hide-contiguous': $ctrl.hideContiguous}">
<section
ng-repeat="day in $ctrl.days"
class="day"
ng-class="::$ctrl.getDayClasses(day)"
vn-repeat-last
on-last="$ctrl.repeatLast()">
<div
class="days"
ng-class="{'hide-contiguous': $ctrl.hideContiguous}">
<section
ng-repeat="day in $ctrl.days"
class="day"
ng-class="::$ctrl.getDayClasses(day)"
vn-repeat-last
on-last="$ctrl.repeatLast()">
<div
class="day-number"
ng-click="$ctrl.select($event, day)">
{{::day | date: 'd'}}
</div>
</section>
class="day-number"
ng-click="$ctrl.select($event, day)">
{{::day | date: 'd'}}
</div>
</div>
</section>
</div>
</div>

View File

@ -19,12 +19,7 @@
color: inherit;
}
}
& > .rows > .weeksNumber,
& > .rows > .weeks {
float: left
}
& > .rows > .weeks > .weekdays {
& > .weekdays {
display: flex;
color: $color-font-secondary;
margin-bottom: 8px;
@ -38,7 +33,7 @@
cursor: pointer;
}
}
& > .rows > .weeks > .days {
& > .days {
display: flex;
justify-content: center;
align-items: center;