-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(styles): make new calendar match figma
- Loading branch information
1 parent
2a61b1b
commit 681b746
Showing
5 changed files
with
158 additions
and
286 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,65 +1,69 @@ | ||
:host { | ||
display: block; | ||
} | ||
|
||
.day { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
text-align: center; | ||
height: 38px; | ||
width: 38px; | ||
margin: 0; | ||
padding: 0; | ||
color: var(--wc-datepicker-cell-text); | ||
position: relative; | ||
width: var(--auro-size-xxl); | ||
height: var(--auro-size-xxxl); | ||
|
||
border: none; | ||
outline: none; | ||
background-color: transparent; | ||
} | ||
border-width: 1px; | ||
border-style: solid; | ||
border-color: transparent; | ||
border-radius: var(--auro-size-lg); | ||
|
||
.day:focus { | ||
outline: 1px solid | ||
var(--wc-datepicker-cell-hovered, rgba(0, 150, 136, 0.5)); | ||
} | ||
// background-color: var(--auro-color-background-lightest); | ||
background-color: transparent; | ||
color: var(--auro-color-text-primary-on-light); | ||
|
||
.day:not(.disabled):hover { | ||
background: var(--wc-datepicker-cell-hover, #e4e7e7); | ||
cursor: pointer; | ||
} | ||
|
||
.day.hovered { | ||
background: var( | ||
--wc-datepicker-cell-hovered, | ||
rgba(0, 150, 136, 0.5) | ||
) !important; | ||
color: var(--wc-datepicker-cell-hovered-text, white); | ||
} | ||
font-family: var(--auro-font-family-default); | ||
font-size: var(--auro-text-body-size-lg); | ||
|
||
.day.selected { | ||
background: var( | ||
--wc-datepicker-cell-selected, | ||
rgb(0, 150, 136) | ||
) !important; | ||
color: var(--wc-datepicker-cell-selected-text, white); | ||
} | ||
&.disabled { | ||
color: var(--auro-color-text-secondary-on-dark); | ||
|
||
.day.currentDate .currentDayMarker { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
text-align: center; | ||
pointer-events: none; | ||
} | ||
|
||
width: 80%; | ||
height: 80%; | ||
font-weight: var(--wc-current-day-font-weight, bold); | ||
border-radius: 50%; | ||
background-color: var(--wc-current-day-color); | ||
color: var(--wc-current-day-color-text); | ||
} | ||
&.selected { | ||
border-color: var(--auro-color-background-darker); | ||
|
||
background-color: var(--auro-color-background-darker); | ||
box-shadow: 0 0 10px rgba(0, 0, 0, .15); | ||
color: var(--auro-color-background-lightest); | ||
} | ||
|
||
&.inRange { | ||
&:before { | ||
position: absolute; | ||
content: ''; | ||
display: block; | ||
background-color: var(--auro-color-background-lighter); | ||
height: 48px; | ||
width: 48px; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
z-index: -1; | ||
} | ||
} | ||
|
||
&:hover { | ||
cursor: pointer; | ||
background-color: #f0f0f0; // var(--auro-color-ui-bkg-hover-on-light); | ||
color: var(--auro-color-text-primary-on-light); | ||
|
||
.day.disabled { | ||
opacity: 0.4; | ||
// &.inRange { | ||
// &:before { | ||
// position: absolute; | ||
// content: ''; | ||
// display: block; | ||
// background-color: var(--auro-color-background-lighter); | ||
// height: 48px; | ||
// width: 29px; | ||
// top: 50%; | ||
// left: -5px; | ||
// transform: translate(0%, -50%); | ||
// z-index: -1; | ||
// } | ||
// } | ||
} | ||
} |
Oops, something went wrong.