woocommerce/plugins/woocommerce-admin/client/components/calendar/style.scss

175 lines
2.9 KiB
SCSS

/** @format */
.woocommerce-calendar {
width: 100%;
background-color: $core-grey-light-100;
border-top: 1px solid $core-grey-light-700;
height: 396px;
&.is-mobile {
height: 100%;
min-height: 537px;
}
}
.woocommerce-calendar__react-dates {
width: 100%;
overflow-x: hidden;
.DayPicker {
margin: 0 auto;
}
.CalendarMonth_table {
margin-top: 10px;
}
.CalendarDay__selected_span {
background: $woocommerce;
border: 1px solid $core-grey-light-700;
}
.CalendarDay__selected {
background: $woocommerce-700;
border: 1px solid $core-grey-light-700;
}
.CalendarDay__hovered_span {
background: $woocommerce;
border: 1px solid $core-grey-light-500;
color: $white;
}
.CalendarDay__blocked_out_of_range {
color: $core-grey-light-900;
}
.DayPicker_transitionContainer,
.CalendarMonthGrid,
.CalendarMonth,
.DayPicker {
background-color: $core-grey-light-100;
}
.DayPicker_weekHeader_li {
color: $core-grey-dark-400;
}
.DayPickerNavigation_button {
&:focus {
outline: 2px solid #bfe7f3;
}
}
}
.woocommerce-calendar__inputs {
padding: 1em;
width: 100%;
max-width: 500px;
display: grid;
grid-template-columns: 43% 14% 43%;
margin: 0 auto;
.components-base-control {
margin: 0;
}
}
.woocommerce-calendar__inputs-to {
display: flex;
align-items: center;
justify-content: center;
grid-column-start: 2;
}
.woocommerce-calendar__input {
position: relative;
.dashicons-calendar {
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 10px;
path {
fill: $core-grey-dark-300;
}
}
&:first-child {
grid-column-start: 1;
}
&:last-child {
grid-column-start: 3;
}
&.is-empty {
.dashicons-calendar path {
fill: $core-grey-dark-300;
}
}
&.is-error {
.dashicons-calendar path {
fill: $error-red;
}
.woocommerce-calendar__input-text {
border: 1px solid $error-red;
box-shadow: inset 0 0 8px $error-red;
&:focus {
box-shadow: inset 0 0 8px $error-red, 0 0 6px rgba(30, 140, 190, 0.8);
}
}
}
.woocommerce-calendar__input-text {
color: $core-grey-dark-500;
border-radius: 3px;
padding: 10px 10px 10px 30px;
width: 100%;
@include font-size( 13 );
&::placeholder {
color: $core-grey-dark-300;
}
&:focus + span .woocommerce-calendar__input-error {
display: block;
}
}
}
.woocommerce-filters-date__content {
.woocommerce-calendar__input-error {
display: none;
.components-popover__content {
background-color: $core-grey-dark-400;
color: $white;
padding: 0.5em;
border: none;
}
&.components-popover {
.components-popover__content {
min-width: 100px;
width: 100px;
text-align: center;
}
&:not(.no-arrow):not(.is-mobile).is-bottom::before {
border-bottom-color: $core-grey-dark-400;
z-index: 1;
top: -6px;
}
}
}
&.is-mobile .woocommerce-calendar__input-error .components-popover__content {
height: initial;
}
}