github.com/bosssauce/ponzu@v0.11.1-0.20200102001432-9bc41b703131/system/admin/static/editor/sass/components/date_picker/_default.scss (about)

     1  /* ==========================================================================
     2     $BASE-PICKER
     3     ========================================================================== */
     4  /**
     5   * Note: the root picker element should *NOT* be styled more than what's here.
     6   */
     7  .picker {
     8    font-size: 16px;
     9    text-align: left;
    10    line-height: 1.2;
    11    color: #000000;
    12    position: absolute;
    13    z-index: 10000;
    14    -webkit-user-select: none;
    15    -moz-user-select: none;
    16    -ms-user-select: none;
    17    user-select: none;
    18  }
    19  /**
    20   * The picker input element.
    21   */
    22  .picker__input {
    23    cursor: default;
    24  }
    25  /**
    26   * When the picker is opened, the input element is "activated".
    27   */
    28  .picker__input.picker__input--active {
    29    border-color: #0089ec;
    30  }
    31  /**
    32   * The holder is the only "scrollable" top-level container element.
    33   */
    34  .picker__holder {
    35    width: 100%;
    36    overflow-y: auto;
    37    -webkit-overflow-scrolling: touch;
    38  }
    39  
    40  /*!
    41   * Default mobile-first, responsive styling for pickadate.js
    42   * Demo: http://amsul.github.io/pickadate.js
    43   */
    44  /**
    45   * Note: the root picker element should *NOT* be styled more than what's here.
    46   */
    47  /**
    48   * Make the holder and frame fullscreen.
    49   */
    50  .picker__holder,
    51  .picker__frame {
    52    bottom: 0;
    53    left: 0;
    54    right: 0;
    55    top: 100%;
    56  }
    57  /**
    58   * The holder should overlay the entire screen.
    59   */
    60  .picker__holder {
    61    position: fixed;
    62    -webkit-transition: background 0.15s ease-out, top 0s 0.15s;
    63    -moz-transition: background 0.15s ease-out, top 0s 0.15s;
    64    transition: background 0.15s ease-out, top 0s 0.15s;
    65    -webkit-backface-visibility: hidden;
    66  }
    67  /**
    68   * The frame that bounds the box contents of the picker.
    69   */
    70  .picker__frame {
    71    position: absolute;
    72    margin: 0 auto;
    73    min-width: 256px;
    74  
    75  //  picker width
    76    width: 300px;
    77    max-height: 350px;
    78  
    79    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    80    filter: alpha(opacity=0);
    81    -moz-opacity: 0;
    82    opacity: 0;
    83    -webkit-transition: all 0.15s ease-out;
    84    -moz-transition: all 0.15s ease-out;
    85    transition: all 0.15s ease-out;
    86  }
    87  @media (min-height: 28.875em) {
    88    .picker__frame {
    89      overflow: visible;
    90      top: auto;
    91      bottom: -100%;
    92      max-height: 80%;
    93    }
    94  }
    95  @media (min-height: 40.125em) {
    96    .picker__frame {
    97      margin-bottom: 7.5%;
    98    }
    99  }
   100  /**
   101   * The wrapper sets the stage to vertically align the box contents.
   102   */
   103  .picker__wrap {
   104    display: table;
   105    width: 100%;
   106    height: 100%;
   107  }
   108  @media (min-height: 28.875em) {
   109    .picker__wrap {
   110      display: block;
   111    }
   112  }
   113  /**
   114   * The box contains all the picker contents.
   115   */
   116  .picker__box {
   117    background: #ffffff;
   118    display: table-cell;
   119    vertical-align: middle;
   120  }
   121  //@media (min-height: 26.5em) {
   122  //  .picker__box {
   123  ////    font-size: 1.25em;
   124  //  }
   125  //}
   126  @media (min-height: 28.875em) {
   127    .picker__box {
   128      display: block;
   129  
   130  //    picker header font-size
   131  //    font-size: 1rem;
   132  
   133      border: 1px solid #777777;
   134      border-top-color: #898989;
   135      border-bottom-width: 0;
   136      -webkit-border-radius: 5px 5px 0 0;
   137      -moz-border-radius: 5px 5px 0 0;
   138      border-radius: 5px 5px 0 0;
   139      -webkit-box-shadow: 0 12px 36px 16px rgba(0, 0, 0, 0.24);
   140      -moz-box-shadow: 0 12px 36px 16px rgba(0, 0, 0, 0.24);
   141      box-shadow: 0 12px 36px 16px rgba(0, 0, 0, 0.24);
   142    }
   143  }
   144  //@media (min-height: 40.125em) {
   145  //  .picker__box {
   146  //    font-size: 1.1rem;
   147  //    border-bottom-width: 1px;
   148  //    -webkit-border-radius: 5px;
   149  //    -moz-border-radius: 5px;
   150  //    border-radius: 5px;
   151  //  }
   152  //}
   153  /**
   154   * When the picker opens...
   155   */
   156  .picker--opened .picker__holder {
   157    top: 0;
   158    background: transparent;
   159    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#1E000000,endColorstr=#1E000000)";
   160    zoom: 1;
   161    background: rgba(0, 0, 0, 0.32);
   162    -webkit-transition: background 0.15s ease-out;
   163    -moz-transition: background 0.15s ease-out;
   164    transition: background 0.15s ease-out;
   165  }
   166  .picker--opened .picker__frame {
   167    top: 0;
   168    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
   169    filter: alpha(opacity=100);
   170    -moz-opacity: 1;
   171    opacity: 1;
   172  }
   173  @media (min-height: 35.875em) {
   174    .picker--opened .picker__frame {
   175      top: 10%;
   176      bottom: 20%auto;
   177    }
   178  }
   179  /**
   180   * For `large` screens, transform into an inline picker.
   181   */
   182  
   183  /* ==========================================================================
   184     CUSTOM MATERIALIZE STYLES
   185     ========================================================================== */
   186  
   187  .picker__input.picker__input--active {
   188    border-color: color("blue", "lighten-5");
   189  }
   190  
   191  .picker__frame {
   192    margin: 0 auto;
   193    max-width: 325px;
   194  }
   195  
   196  @media (min-height: 38.875em) {
   197    .picker--opened .picker__frame {
   198      top: 10%;
   199      bottom: auto;
   200    }
   201  }