-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Better styles for DateMonthPicker (#1256)
feat: Better styles for DateMonthPicker
- Loading branch information
Showing
9 changed files
with
125 additions
and
67 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
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,40 +1,70 @@ | ||
.DateMonthPicker__YearControls | ||
@require 'settings/shadows' | ||
@require 'settings/radius' | ||
|
||
buttonHeight=3rem | ||
|
||
$buttonHover | ||
background var(--paleGrey) | ||
color var(--charcoalGrey) | ||
|
||
$buttonActive | ||
background-color var(--silver) | ||
color var(--charcoalGrey) | ||
font-weight bold | ||
outline 0 | ||
|
||
$button | ||
background none | ||
min-height buttonHeight | ||
min-width 3rem | ||
display inline-block | ||
border-width 0 | ||
color var(--coolGrey) | ||
cursor pointer | ||
|
||
&:hover | ||
@extend $buttonHover | ||
|
||
&:active, &:hover:active | ||
@extend $buttonActive | ||
|
||
$select | ||
justify-content center | ||
display flex | ||
align-items center | ||
border-radius radius-8 | ||
border 1px solid var(--silver) | ||
overflow hidden | ||
|
||
.DateMonthPicker__YearControls | ||
@extend $select | ||
@extend $raised-12 | ||
|
||
margin-bottom 1rem | ||
font-weight bold | ||
|
||
.DateMonthPicker__YearButton | ||
@extend $button | ||
flex-grow 0 | ||
min-width 3rem | ||
min-height 3rem | ||
text-align center | ||
border-width 0 | ||
margin 0 | ||
color var(--coolGrey) | ||
background none | ||
|
||
.DateMonthPicker__YearButton:hover | ||
background none | ||
cursor pointer | ||
|
||
.DateMonthPicker__Year | ||
flex-grow 1 | ||
display inline-flex | ||
justify-content center | ||
|
||
.DateMonthPicker__MonthGrid | ||
display grid | ||
grid-template-columns repeat(4, auto) | ||
grid-template-rows repeat(3, 1fr) | ||
overflow hidden | ||
grid-gap 1rem | ||
|
||
|
||
.DateMonthPicker__MonthButton | ||
min-height 3rem | ||
min-width 0 | ||
margin 0 | ||
border 0 | ||
border-radius 0 | ||
font-weight normal | ||
text-transform none | ||
|
||
.ValueSelected | ||
color var(--primaryColor) | ||
font-weight bold | ||
@extend $button | ||
border-radius buttonHeight | ||
|
||
&.DateMonthPicker__MonthButton--selected | ||
@extend $buttonHover | ||
font-weight bold |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
radius-8=8px |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
box-shadow-12=0 4px 12px 0 rgba(0, 0, 0, .08) | ||
|
||
$raised-12 | ||
box-shadow box-shadow-12 |