woocommerce/plugins/woocommerce-admin/client/components/date-picker/style.scss

163 lines
2.6 KiB
SCSS
Raw Normal View History

/** @format */
.woocommerce-date-picker {
width: 100%;
max-width: 360px;
}
.woocommerce-date-picker__content {
.components-popover__content {
width: 360px;
padding: 1em 0;
border: 1px solid $gray;
background-color: $white;
display: flex;
flex-direction: column;
& > * {
margin: 0 0 1em 0;
&:last-child {
margin: 0;
}
}
}
&.is-mobile {
.components-popover__content {
width: 100%;
2018-05-28 10:55:19 +00:00
height: 100%;
}
.components-popover__header {
border: none;
height: 0;
}
.components-popover__close {
transform: translateY(22px);
}
}
}
2018-05-28 10:55:19 +00:00
.woocommerce-date-picker__date-inputs {
max-width: 320px;
width: 100%;
display: grid;
margin: 0 1em 1em 1em;
grid-template-columns: 45% 10% 45%;
text-align: center;
}
.woocommerce-date-picker__tabs {
.components-tab-panel__tabs {
display: grid;
grid-template-columns: 1fr 1fr;
border-radius: 5px;
margin: 0 1em 1em 1em;
}
.components-tab-panel__tab-content {
display: flex;
flex-direction: column;
2018-05-28 10:55:19 +00:00
align-items: center;
& > * {
margin: 0 0 1em 0;
&:last-child {
margin: 0;
}
}
}
}
.woocommerce-date-picker__tab {
outline: none;
border: 1px solid $black;
padding: 10px;
margin: 0;
border-radius: 5px 0 0 5px;
background-color: transparent;
&:last-child {
border-radius: 0 5px 5px 0;
}
&.is-active {
background-color: $black;
color: $white;
}
&:focus {
outline: 2px solid lightseagreen;
}
}
.woocommerce-date-picker__update-btn {
border: 1px solid $gray;
background-color: transparent;
padding: 0.5em;
width: 50%;
text-align: center;
text-decoration: none;
2018-05-28 10:55:19 +00:00
justify-content: center;
line-height: inherit;
}
.woocommerce-date-picker__text {
2018-05-28 10:55:19 +00:00
@include font-size( 14 );
font-weight: 200;
text-transform: uppercase;
text-align: center;
color: $gray-text;
}
.woocommerce-date-picker__toggle {
background-color: $white;
position: relative;
border: 1px solid $gray;
border-radius: 5px;
padding: 0 40px 0 0;
&::after {
content: '';
position: absolute;
right: 14px;
top: 50%;
transform: translateY(-50%);
width: 0;
height: 0;
border-style: solid;
border-width: 6px 6px 0 6px;
border-color: #444 transparent transparent transparent;
}
}
.woocommerce-date-picker__toggle-label {
text-align: left;
padding: 2px 7px;
border-right: 1px solid $gray;
p:first-child {
margin: 0 0 3px 0;
2018-05-28 10:55:19 +00:00
@include font-size( 14 );
}
p:last-child {
2018-05-28 10:55:19 +00:00
@include font-size( 12 );
margin: 0;
color: $gray-text;
}
@include breakpoint( '<400px' ) {
p:first-child {
2018-05-28 10:55:19 +00:00
@include font-size( 12 );
}
p:last-child {
2018-05-28 10:55:19 +00:00
@include font-size( 10 );
}
}
}