105 lines
3.7 KiB
SCSS
105 lines
3.7 KiB
SCSS
@charset "UTF-8";
|
||
// based on the classic picker styling for pickadate.js
|
||
// http://amsul.github.io/pickadate.js
|
||
|
||
@import "foundation/base";
|
||
|
||
@include exports("pickadate-base") {
|
||
/* ==========================================================================
|
||
$BASE-PICKER
|
||
========================================================================== */
|
||
/**
|
||
* Note: the root picker element should *NOT* be styled more than what’s here.
|
||
*/
|
||
.picker {
|
||
font-size: 1rem;
|
||
// text-align: left;
|
||
// line-height: 1.2;
|
||
// color: #000000;
|
||
position: absolute;
|
||
z-index: 10000;
|
||
-webkit-user-select: none;
|
||
-moz-user-select: none;
|
||
-ms-user-select: none;
|
||
user-select: none;
|
||
width: 100%;
|
||
}
|
||
/**
|
||
* The picker input element.
|
||
*/
|
||
.picker__input.picker__input--active {
|
||
cursor: default;
|
||
margin-bottom: 0;
|
||
}
|
||
/**
|
||
* When the picker is opened, the input element is “activated”.
|
||
*/
|
||
// .picker__input.picker__input--active {
|
||
// border-color: #0089ec;
|
||
// }
|
||
/**
|
||
* The holder is the only “scrollable” top-level container element.
|
||
*/
|
||
.picker__holder {
|
||
width: 100%;
|
||
overflow-y: auto;
|
||
-webkit-overflow-scrolling: touch;
|
||
position: absolute;
|
||
// background: #ffffff;
|
||
// border: 1px solid #aaaaaa;
|
||
border-top-width: 0;
|
||
border-bottom-width: 0;
|
||
// -webkit-border-radius: 0 0 5px 5px;
|
||
// -moz-border-radius: 0 0 5px 5px;
|
||
// border-radius: 0 0 5px 5px;
|
||
// -webkit-box-sizing: border-box;
|
||
// -moz-box-sizing: border-box;
|
||
// box-sizing: border-box;
|
||
@include radius();
|
||
min-width: 176px;
|
||
max-width: 466px;
|
||
max-height: 0;
|
||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
|
||
filter: alpha(opacity=0);
|
||
-moz-opacity: 0;
|
||
opacity: 0;
|
||
-webkit-transform: translateY(-1em) perspective(600px) rotateX(10deg);
|
||
-moz-transform: translateY(-1em) perspective(600px) rotateX(10deg);
|
||
transform: translateY(-1em) perspective(600px) rotateX(10deg);
|
||
-webkit-transition: -webkit-transform 0.15s ease-out, opacity 0.15s ease-out, max-height 0s 0.15s, border-width 0s 0.15s;
|
||
-moz-transition: -moz-transform 0.15s ease-out, opacity 0.15s ease-out, max-height 0s 0.15s, border-width 0s 0.15s;
|
||
transition: transform 0.15s ease-out, opacity 0.15s ease-out, max-height 0s 0.15s, border-width 0s 0.15s;
|
||
}
|
||
/**
|
||
* The frame and wrap work together to ensure that
|
||
* clicks within the picker don’t reach the holder.
|
||
*/
|
||
.picker__frame {
|
||
padding: 1px;
|
||
}
|
||
.picker__wrap {
|
||
margin: -1px;
|
||
}
|
||
/**
|
||
* When the picker opens...
|
||
*/
|
||
.picker--opened .picker__holder {
|
||
max-height: 25em;
|
||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
|
||
filter: alpha(opacity=100);
|
||
-moz-opacity: 1;
|
||
opacity: 1;
|
||
border-top-width: 1px;
|
||
border-bottom-width: 1px;
|
||
-webkit-transform: translateY(0) perspective(600px) rotateX(0);
|
||
-moz-transform: translateY(0) perspective(600px) rotateX(0);
|
||
transform: translateY(0) perspective(600px) rotateX(0);
|
||
-webkit-transition: -webkit-transform 0.15s ease-out, opacity 0.15s ease-out, max-height 0s, border-width 0s;
|
||
-moz-transition: -moz-transform 0.15s ease-out, opacity 0.15s ease-out, max-height 0s, border-width 0s;
|
||
transition: transform 0.15s ease-out, opacity 0.15s ease-out, max-height 0s, border-width 0s;
|
||
-webkit-box-shadow: 0 6px 18px 1px rgba(0, 0, 0, 0.12);
|
||
-moz-box-shadow: 0 6px 18px 1px rgba(0, 0, 0, 0.12);
|
||
box-shadow: 0 6px 18px 1px rgba(0, 0, 0, 0.12);
|
||
}
|
||
|
||
}
|