Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
update core styles
Browse files Browse the repository at this point in the history
  • Loading branch information
psealock committed Dec 17, 2018
1 parent 07be925 commit 4b6fbda
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/calendar/date-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class DatePicker extends Component {
<H className="woocommerce-calendar__date-picker-title">
{ __( 'select a date', 'wc-admin' ) }
</H>
<div className="woocommerce-calendar__react-dates">
<div className="woocommerce-calendar__react-dates is-core-datepicker">
<WpDatePicker
currentDate={ date }
onChange={ partial( this.onDateChange, onToggle ) }
Expand Down
28 changes: 18 additions & 10 deletions packages/components/src/calendar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,9 @@
border: 1px solid $core-grey-light-700;
}

.CalendarDay__default {
background-color: transparent;
}

.CalendarDay__selected {
background: $woocommerce-700;
//border: 1px solid $core-grey-light-700;
}

.components-datetime__date {
padding-left: 0;
border: 1px solid $core-grey-light-700;
}

.CalendarDay__hovered_span {
Expand Down Expand Up @@ -68,7 +60,23 @@
outline: 2px solid #bfe7f3;
}
}
}

// Make exceptions for wp Core DatePicker.
&.is-core-datepicker {
.components-datetime__date {
padding-left: 0;
}

.CalendarDay__default {
background-color: transparent;
}

.CalendarDay__selected {
background: $woocommerce-700;
border: none;
}
}
}

.woocommerce-calendar__inputs {
padding: 1em;
Expand Down

0 comments on commit 4b6fbda

Please sign in to comment.