| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- /* ==========================================================================
- $BASE-PICKER
- ========================================================================== */
- /**
- * Note: the root picker element should *NOT* be styled more than what’s here.
- */
- .um .picker {
- font-size: 16px;
- text-align: left;
- line-height: 1.2;
- color: #fff;
- position: absolute;
- z-index: 10000;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- }
-
- .um .picker__box ul li[role="presentation"] {
- margin: 10px 0 0 0;
- }
-
- /**
- * The picker input element.
- */
- .um .picker__input {
- cursor: default;
- }
- /**
- * When the picker is opened, the input element is “activated”.
- */
- .um .picker__input.picker__input--active {
- border-color: #0089ec;
- }
- /**
- * The holder is the only “scrollable” top-level container element.
- */
- .um .picker__holder {
- width: 100%;
- overflow-y: auto;
- -webkit-overflow-scrolling: touch;
- }
-
- /*!
- * Default mobile-first, responsive styling for pickadate.js
- * Demo: http://amsul.github.io/pickadate.js
- */
- /**
- * Note: the root picker element should *NOT* be styled more than what’s here.
- */
- /**
- * Make the holder and frame fullscreen.
- */
- .um .picker__holder,
- .um .picker__frame {
- bottom: 0;
- left: 0;
- right: 0;
- top: 100%;
- }
- /**
- * The holder should overlay the entire screen.
- */
- .um .picker__holder {
- position: fixed;
- -webkit-transition: background 0.15s ease-out, top 0s 0.15s;
- -moz-transition: background 0.15s ease-out, top 0s 0.15s;
- transition: background 0.15s ease-out, top 0s 0.15s;
- }
- /**
- * The frame that bounds the box contents of the picker.
- */
- .um .picker__frame {
- position: absolute;
- margin: 0 auto;
- min-width: 256px;
- max-width: 400px;
- width: 100%;
- -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
- filter: alpha(opacity=0);
- -moz-opacity: 0;
- opacity: 0;
- -webkit-transition: all 0.15s ease-out;
- -moz-transition: all 0.15s ease-out;
- transition: all 0.15s ease-out;
- }
- @media (min-height: 33.875em) {
- .um .picker__frame {
- overflow: visible;
- top: auto;
- bottom: -100%;
- max-height: 80%;
- }
- }
- @media (min-height: 40.125em) {
- .um .picker__frame {
- margin-bottom: 15% !important;
- }
- }
- /**
- * The wrapper sets the stage to vertically align the box contents.
- */
- .um .picker__wrap {
- display: table;
- width: 100%;
- height: 100%;
- }
- @media (min-height: 33.875em) {
- .um .picker__wrap {
- display: block;
- }
- }
- /**
- * The box contains all the picker contents.
- */
- .um .picker__box {
- display: table-cell;
- vertical-align: middle;
- }
- @media (min-height: 26.5em) {
- .um .picker__box {
-
- }
- }
- @media (min-height: 33.875em) {
- .um .picker__box {
- display: block;
- -webkit-border-radius: 2px;
- -moz-border-radius: 2px;
- border-radius: 2px;
- }
- }
- @media (min-height: 40.125em) {
- .um .picker__box {
-
- border-bottom-width: 1px;
- -webkit-border-radius: 2px;
- -moz-border-radius: 2px;
- border-radius: 2px;
- }
- }
- /**
- * When the picker opens...
- */
- .um .picker--opened .picker__holder {
- top: 0;
- background: transparent;
- -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#1E000000,endColorstr=#1E000000)";
- zoom: 1;
- background: rgba(0, 0, 0, 0.7);
- -webkit-transition: background 0.15s ease-out;
- -moz-transition: background 0.15s ease-out;
- transition: background 0.15s ease-out;
- }
- .um .picker--opened .picker__frame {
- top: 0;
- -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
- filter: alpha(opacity=100);
- -moz-opacity: 1;
- opacity: 1;
- }
- @media (min-height: 33.875em) {
- .um .picker--opened .picker__frame {
- top: auto;
- bottom: 0;
- }
- }
- /**
- * For `large` screens, transform into an inline picker.
- */
|