Skip to content

Commit

Permalink
Merge pull request #71 from JeroenVdb/use-flexbox
Browse files Browse the repository at this point in the history
Use flexbox to layout months
  • Loading branch information
Paul-DS committed Aug 22, 2021
2 parents 691804c + 392e14a commit ada2107
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/less/js-year-calendar.less
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@
.months-container {
width:100%;
display:none;
flex-wrap: wrap;

.month-container {
float: left;
text-align:center;
height:200px;
padding:0;

&.month-2 {
Expand Down
2 changes: 1 addition & 1 deletion src/ts/js-year-calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ export default class Calendar<T extends CalendarDataSourceElement> {
// Fade animation
var months = this.element.querySelector('.months-container') as HTMLElement;
months.style.opacity = '0';
months.style.display = 'block';
months.style.display = 'flex';
months.style.transition = 'opacity 0.5s';
setTimeout(() => {
months.style.opacity = '1';
Expand Down

0 comments on commit ada2107

Please sign in to comment.