-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(datepicker): make calendar look more like mocks (#3138)
* style changes * more styles * addressed comments
- Loading branch information
Showing
7 changed files
with
132 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,44 @@ | ||
<div class="mat-calendar-header"> | ||
<button class="mat-calendar-button mat-calendar-period-button" (click)="_currentPeriodClicked()"> | ||
{{_label}} | ||
<div class="mat-calendar-arrow"></div> | ||
</button> | ||
<div class="mat-calendar-spacer"></div> | ||
<button class="mat-calendar-button mat-calendar-previous-button" (click)="_previousClicked()"> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24" | ||
fill="#000000"> | ||
<path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"/> | ||
<path d="M0-.5h24v24H0z" fill="none"/> | ||
</svg> | ||
</button> | ||
<button class="mat-calendar-button mat-calendar-next-button" (click)="_nextClicked()"> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24" | ||
fill="#000000"> | ||
<path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"/> | ||
<path d="M0-.25h24v24H0z" fill="none"/> | ||
</svg> | ||
</button> | ||
</div> | ||
<div class="mat-calendar-controls"> | ||
<button class="mat-calendar-button mat-calendar-period-button" | ||
(click)="_currentPeriodClicked()"> | ||
{{_label}} | ||
<div class="mat-calendar-arrow" [class.mat-calendar-invert]="!_monthView"></div> | ||
</button> | ||
<div class="mat-calendar-spacer"></div> | ||
<button class="mat-calendar-button mat-calendar-previous-button" (click)="_previousClicked()"> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24" | ||
fill="currentColor"> | ||
<path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"/> | ||
<path d="M0-.5h24v24H0z" fill="none"/> | ||
</svg> | ||
</button> | ||
<button class="mat-calendar-button mat-calendar-next-button" (click)="_nextClicked()"> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24" | ||
fill="currentColor"> | ||
<path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"/> | ||
<path d="M0-.25h24v24H0z" fill="none"/> | ||
</svg> | ||
</button> | ||
</div> | ||
|
||
<table class="mat-calendar-weekday-table"> | ||
<tr><td *ngFor="let day of _weekdays">{{day}}</td></tr> | ||
</table> | ||
<table class="mat-calendar-weekday-table"> | ||
<tr><td *ngFor="let day of _weekdays">{{day}}</td></tr> | ||
</table> | ||
</div> | ||
|
||
<md-month-view | ||
*ngIf="_monthView" | ||
[date]="_currentPeriod" | ||
[selected]="selected" | ||
(selectedChange)="_dateSelected($event)"> | ||
</md-month-view> | ||
<div class="mat-calendar-body"> | ||
<md-month-view | ||
*ngIf="_monthView" | ||
[date]="_currentPeriod" | ||
[selected]="selected" | ||
(selectedChange)="_dateSelected($event)"> | ||
</md-month-view> | ||
|
||
<md-year-view | ||
*ngIf="!_monthView" | ||
[date]="_currentPeriod" | ||
[selected]="selected" | ||
(selectedChange)="_monthSelected($event)"> | ||
</md-year-view> | ||
<md-year-view | ||
*ngIf="!_monthView" | ||
[date]="_currentPeriod" | ||
[selected]="selected" | ||
(selectedChange)="_monthSelected($event)"> | ||
</md-year-view> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters