2015-08-10 18:50:38 +08:00
|
|
|
/*!
|
|
|
|
* Pikaday
|
|
|
|
* Copyright © 2014 David Bushell | BSD & MIT license | http://dbushell.com/
|
|
|
|
*/
|
|
|
|
|
2016-04-15 23:58:32 +08:00
|
|
|
// Variables
|
|
|
|
// Declare any of these variables before importing this SCSS file to easily override defaults
|
|
|
|
// Variables are namespaced with the pd (pikaday) prefix
|
|
|
|
|
|
|
|
// Colours
|
2020-08-04 10:57:10 +08:00
|
|
|
$pd-text-color: var(--primary) !default;
|
|
|
|
$pd-title-color: var(--primary) !default;
|
|
|
|
$pd-title-bg: var(--secondary) !default;
|
|
|
|
$pd-picker-bg: var(--secondary) !default;
|
|
|
|
$pd-picker-border: var(--primary-low) !default;
|
|
|
|
$pd-picker-border-bottom: var(--primary-low) !default;
|
2016-04-15 23:58:32 +08:00
|
|
|
$pd-picker-shadow: rgba(0,0,0,.5) !default;
|
2020-08-04 10:57:10 +08:00
|
|
|
$pd-th-color: var(--primary) !default;
|
|
|
|
$pd-day-color: var(--primary) !default;
|
|
|
|
$pd-day-bg: var(--secondary) !default;
|
|
|
|
$pd-day-hover-color: var(--primary) !default;
|
|
|
|
$pd-day-hover-bg: var(--tertiary-low) !default;
|
|
|
|
$pd-day-today-color: var(--tertiary) !default;
|
|
|
|
$pd-day-selected-color: var(--secondary) !default;
|
|
|
|
$pd-day-selected-bg: var(--tertiary) !default;
|
|
|
|
$pd-day-selected-shadow: var(--tertiary-low) !default;
|
|
|
|
$pd-day-disabled-color: var(--primary) !default;
|
|
|
|
$pd-week-color: var(--primary) !default;
|
2016-04-15 23:58:32 +08:00
|
|
|
|
|
|
|
// Font
|
2021-02-06 06:01:21 +08:00
|
|
|
$pd-font-family: Arial, sans-serif !default;
|
2016-04-15 23:58:32 +08:00
|
|
|
|
|
|
|
|
2015-08-10 18:50:38 +08:00
|
|
|
.pika-single {
|
|
|
|
z-index: 9999;
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
2016-04-15 23:58:32 +08:00
|
|
|
color: $pd-text-color;
|
|
|
|
background: $pd-picker-bg;
|
|
|
|
border: 1px solid $pd-picker-border;
|
|
|
|
border-bottom-color: $pd-picker-border-bottom;
|
|
|
|
font-family: $pd-font-family;
|
2015-08-10 18:50:38 +08:00
|
|
|
|
|
|
|
&.is-hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-bound {
|
|
|
|
position: absolute;
|
2016-04-15 23:58:32 +08:00
|
|
|
box-shadow: 0 5px 15px -5px $pd-picker-shadow;
|
2015-08-10 18:50:38 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// clear child float (pika-lendar), using the famous micro clearfix hack
|
|
|
|
// http://nicolasgallagher.com/micro-clearfix-hack/
|
|
|
|
.pika-single {
|
|
|
|
&:before,
|
|
|
|
&:after {
|
|
|
|
content: " ";
|
|
|
|
display: table;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after { clear: both }
|
|
|
|
}
|
|
|
|
|
|
|
|
.pika-lendar {
|
|
|
|
float: left;
|
|
|
|
width: 240px;
|
|
|
|
margin: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pika-title {
|
|
|
|
position: relative;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
select {
|
|
|
|
cursor: pointer;
|
|
|
|
position: absolute;
|
|
|
|
z-index: 9998;
|
|
|
|
margin: 0;
|
|
|
|
left: 0;
|
|
|
|
top: 5px;
|
|
|
|
filter: alpha(opacity=0);
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.pika-label {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
z-index: 9999;
|
|
|
|
overflow: hidden;
|
|
|
|
margin: 0;
|
|
|
|
padding: 5px 3px;
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 20px;
|
|
|
|
font-weight: bold;
|
2016-04-15 23:58:32 +08:00
|
|
|
color: $pd-title-color;
|
|
|
|
background-color: $pd-title-bg;
|
2015-08-10 18:50:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.pika-prev,
|
|
|
|
.pika-next {
|
|
|
|
display: block;
|
|
|
|
cursor: pointer;
|
|
|
|
position: relative;
|
|
|
|
outline: none;
|
|
|
|
border: 0;
|
|
|
|
padding: 0;
|
|
|
|
width: 20px;
|
|
|
|
height: 30px;
|
|
|
|
text-indent: 20px; // hide text using text-indent trick, using width value (it's enough)
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
2020-08-05 02:39:25 +08:00
|
|
|
background-color: var(--primary); // sets color of SVG masks below
|
2015-08-10 18:50:38 +08:00
|
|
|
background-size: 75% 75%;
|
|
|
|
opacity: .5;
|
|
|
|
|
2022-08-16 02:50:07 +08:00
|
|
|
&:hover, &:focus {
|
2015-08-10 18:50:38 +08:00
|
|
|
opacity: 1;
|
2022-08-16 02:50:07 +08:00
|
|
|
background: var(--tertiary);
|
2015-08-10 18:50:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-disabled {
|
|
|
|
cursor: default;
|
|
|
|
opacity: .2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.pika-prev,
|
|
|
|
.is-rtl .pika-next {
|
|
|
|
float: left;
|
2020-08-05 02:39:25 +08:00
|
|
|
-webkit-mask: svg-uri(
|
|
|
|
'<svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" width="14px" height="16px" viewBox="0 0 192 512"><path d="M192 127.338v257.324c0 17.818-21.543 26.741-34.142 14.142L29.196 270.142c-7.81-7.81-7.81-20.474 0-28.284l128.662-128.662c12.599-12.6 34.142-3.676 34.142 14.142z"></path></svg>'
|
|
|
|
)
|
|
|
|
no-repeat 50% 50%;
|
|
|
|
mask: svg-uri(
|
|
|
|
'<svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" width="14px" height="16px" viewBox="0 0 192 512"><path d="M192 127.338v257.324c0 17.818-21.543 26.741-34.142 14.142L29.196 270.142c-7.81-7.81-7.81-20.474 0-28.284l128.662-128.662c12.599-12.6 34.142-3.676 34.142 14.142z"></path></svg>'
|
|
|
|
)
|
|
|
|
no-repeat 50% 50%;
|
2015-08-10 18:50:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.pika-next,
|
|
|
|
.is-rtl .pika-prev {
|
|
|
|
float: right;
|
2020-08-05 02:39:25 +08:00
|
|
|
-webkit-mask: svg-uri(
|
|
|
|
'<svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" width="14px" height="16px" viewBox="0 0 192 512"><path d="M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"></path></svg>'
|
|
|
|
)
|
|
|
|
no-repeat 50% 50%;
|
|
|
|
mask: svg-uri(
|
|
|
|
'<svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" width="14px" height="16px" viewBox="0 0 192 512"><path d="M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"></path></svg>'
|
|
|
|
)
|
|
|
|
no-repeat 50% 50%;
|
|
|
|
}
|
2015-08-10 18:50:38 +08:00
|
|
|
|
|
|
|
.pika-select {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pika-table {
|
|
|
|
width: 100%;
|
|
|
|
border-collapse: collapse;
|
|
|
|
border-spacing: 0;
|
|
|
|
border: 0;
|
|
|
|
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
width: 14.285714285714286%;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
th {
|
2016-04-15 23:58:32 +08:00
|
|
|
color: $pd-th-color;
|
2015-08-10 18:50:38 +08:00
|
|
|
font-size: 12px;
|
|
|
|
line-height: 25px;
|
|
|
|
font-weight: bold;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
abbr {
|
|
|
|
border-bottom: none;
|
|
|
|
cursor: help;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.pika-button {
|
|
|
|
cursor: pointer;
|
|
|
|
display: block;
|
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
box-sizing: border-box;
|
|
|
|
outline: none;
|
|
|
|
border: 0;
|
|
|
|
margin: 0;
|
|
|
|
width: 100%;
|
|
|
|
padding: 5px;
|
2016-04-15 23:58:32 +08:00
|
|
|
color: $pd-day-color;
|
2015-08-10 18:50:38 +08:00
|
|
|
font-size: 12px;
|
|
|
|
line-height: 15px;
|
|
|
|
text-align: right;
|
2016-04-15 23:58:32 +08:00
|
|
|
background: $pd-day-bg;
|
2015-08-10 18:50:38 +08:00
|
|
|
|
|
|
|
.is-today & {
|
2016-04-15 23:58:32 +08:00
|
|
|
color: $pd-day-today-color;
|
2015-08-10 18:50:38 +08:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.is-selected & {
|
2016-04-15 23:58:32 +08:00
|
|
|
color: $pd-day-selected-color;
|
2015-08-10 18:50:38 +08:00
|
|
|
font-weight: bold;
|
2016-04-15 23:58:32 +08:00
|
|
|
background: $pd-day-selected-bg;
|
|
|
|
box-shadow: inset 0 1px 3px $pd-day-selected-shadow;
|
2015-08-10 18:50:38 +08:00
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
|
2016-04-15 23:58:32 +08:00
|
|
|
.is-disabled &,
|
|
|
|
.is-outside-current-month & {
|
2015-08-10 18:50:38 +08:00
|
|
|
pointer-events: none;
|
|
|
|
cursor: default;
|
2016-04-15 23:58:32 +08:00
|
|
|
color: $pd-day-disabled-color;
|
2015-08-10 18:50:38 +08:00
|
|
|
opacity: .3;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2016-04-15 23:58:32 +08:00
|
|
|
color: $pd-day-hover-color;
|
|
|
|
background: $pd-day-hover-bg;
|
2015-08-10 18:50:38 +08:00
|
|
|
box-shadow: none;
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.pika-week {
|
|
|
|
font-size: 11px;
|
2016-04-15 23:58:32 +08:00
|
|
|
color: $pd-week-color;
|
2015-08-10 18:50:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.is-inrange .pika-button {
|
|
|
|
background: #D5E9F7;
|
|
|
|
}
|
|
|
|
|
|
|
|
.is-startrange .pika-button {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--secondary);
|
2015-08-10 18:50:38 +08:00
|
|
|
background: #6CB31D;
|
|
|
|
box-shadow: none;
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.is-endrange .pika-button {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--secondary);
|
|
|
|
background: var(--tertiary);
|
2015-08-10 18:50:38 +08:00
|
|
|
box-shadow: none;
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
2022-08-16 02:50:07 +08:00
|
|
|
|
|
|
|
.pika-day {
|
|
|
|
&:focus {
|
|
|
|
background-color: var(--tertiary-very-low);
|
|
|
|
}
|
|
|
|
}
|