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

     1  /* ==========================================================================
     2     $BASE-DATE-PICKER
     3     ========================================================================== */
     4  /**
     5   * The picker box.
     6   */
     7  .picker__box {
     8    padding: 0 1em;
     9  }
    10  /**
    11   * The header containing the month and year stuff.
    12   */
    13  .picker__header {
    14    text-align: center;
    15    position: relative;
    16    margin-top: .75em;
    17  }
    18  /**
    19   * The month and year labels.
    20   */
    21  .picker__month,
    22  .picker__year {
    23  //  font-weight: 500;
    24    display: inline-block;
    25    margin-left: .25em;
    26    margin-right: .25em;
    27  }
    28  /**
    29   * The month and year selectors.
    30   */
    31  .picker__select--month,
    32  .picker__select--year {
    33  
    34    height: 2em;
    35    padding: 0;
    36    margin-left: .25em;
    37    margin-right: .25em;
    38  }
    39  
    40  // Modified
    41  .picker__select--month.browser-default {
    42    display: inline;
    43    background-color: #FFFFFF;
    44    width: 40%;
    45  }
    46  .picker__select--year.browser-default {
    47    display: inline;
    48    background-color: #FFFFFF;
    49    width: 25%;
    50  }
    51  .picker__select--month:focus,
    52  .picker__select--year:focus {
    53    border-color: $datepicker-focus;
    54  }
    55  /**
    56   * The month navigation buttons.
    57   */
    58  .picker__nav--prev,
    59  .picker__nav--next {
    60    position: absolute;
    61    padding: .5em 1.25em;
    62    width: 1em;
    63    height: 1em;
    64    box-sizing: content-box;
    65    top: -0.25em;
    66  }
    67  //@media (min-width: 24.5em) {
    68  //  .picker__nav--prev,
    69  //  .picker__nav--next {
    70  //    top: -0.33em;
    71  //  }
    72  //}
    73  .picker__nav--prev {
    74    left: -1em;
    75    padding-right: 1.25em;
    76  }
    77  //@media (min-width: 24.5em) {
    78  //  .picker__nav--prev {
    79  //    padding-right: 1.5em;
    80  //  }
    81  //}
    82  .picker__nav--next {
    83    right: -1em;
    84    padding-left: 1.25em;
    85  }
    86  //@media (min-width: 24.5em) {
    87  //  .picker__nav--next {
    88  //    padding-left: 1.5em;
    89  //  }
    90  //}
    91  
    92  .picker__nav--disabled,
    93  .picker__nav--disabled:hover,
    94  .picker__nav--disabled:before,
    95  .picker__nav--disabled:before:hover {
    96    cursor: default;
    97    background: none;
    98    border-right-color: #f5f5f5;
    99    border-left-color: #f5f5f5;
   100  }
   101  /**
   102   * The calendar table of dates
   103   */
   104  .picker__table {
   105    text-align: center;
   106    border-collapse: collapse;
   107    border-spacing: 0;
   108    table-layout: fixed;
   109    font-size: 1rem;
   110    width: 100%;
   111    margin-top: .75em;
   112    margin-bottom: .5em;
   113  }
   114  
   115  
   116  
   117  .picker__table th, .picker__table td {
   118    text-align: center;
   119  }
   120  
   121  
   122  
   123  
   124  
   125  
   126  .picker__table td {
   127    margin: 0;
   128    padding: 0;
   129  }
   130  /**
   131   * The weekday labels
   132   */
   133  .picker__weekday {
   134    width: 14.285714286%;
   135    font-size: .75em;
   136    padding-bottom: .25em;
   137    color: #999999;
   138    font-weight: 500;
   139    /* Increase the spacing a tad */
   140  }
   141  @media (min-height: 33.875em) {
   142    .picker__weekday {
   143      padding-bottom: .5em;
   144    }
   145  }
   146  /**
   147   * The days on the calendar
   148   */
   149  
   150  .picker__day--today {
   151    position: relative;
   152    color: #595959;
   153    letter-spacing: -.3;
   154    padding: .75rem 0;
   155    font-weight: 400;
   156    border: 1px solid transparent;
   157  
   158  }
   159  
   160  //.picker__day--today:before {
   161  //  content: " ";
   162  //  position: absolute;
   163  //  top: 2px;
   164  //  right: 2px;
   165  //  width: 0;
   166  //  height: 0;
   167  //  border-top: 0.5em solid #0059bc;
   168  //  border-left: .5em solid transparent;
   169  //}
   170  .picker__day--disabled:before {
   171    border-top-color: #aaaaaa;
   172  }
   173  
   174  
   175  .picker__day--infocus:hover{
   176    cursor: pointer;
   177    color: #000;
   178    font-weight: 500;
   179  }
   180  
   181  .picker__day--outfocus {
   182    display: none;
   183    padding: .75rem 0;
   184    color: #fff;
   185  
   186  }
   187  .picker__day--outfocus:hover {
   188    cursor: pointer;
   189    color: #dddddd;
   190  //  background: #b1dcfb;
   191    font-weight: 500;
   192  }
   193  
   194  
   195  .picker__day--highlighted {
   196  //  border-color: #0089ec;
   197  }
   198  .picker__day--highlighted:hover,
   199  .picker--focused .picker__day--highlighted {
   200    cursor: pointer;
   201  //  color: #000000;
   202  //  background: #b1dcfb;
   203  //  font-weight: 500;
   204  }
   205  .picker__day--selected,
   206  .picker__day--selected:hover,
   207  .picker--focused .picker__day--selected {
   208  
   209  
   210  //  Circle background
   211     border-radius: 50%;
   212    @include transform(scale(.75));
   213    background: #0089ec;
   214    color: #ffffff;
   215  }
   216  .picker__day--disabled,
   217  .picker__day--disabled:hover,
   218  .picker--focused .picker__day--disabled {
   219    background: #f5f5f5;
   220    border-color: #f5f5f5;
   221    color: #dddddd;
   222    cursor: default;
   223  }
   224  .picker__day--highlighted.picker__day--disabled,
   225  .picker__day--highlighted.picker__day--disabled:hover {
   226    background: #bbbbbb;
   227  }
   228  /**
   229   * The footer containing the "today", "clear", and "close" buttons.
   230   */
   231  .picker__footer {
   232    text-align: center;
   233    display: flex;
   234    align-items: center;
   235    justify-content: space-between;
   236  }
   237  .picker__button--today,
   238  .picker__button--clear,
   239  .picker__button--close {
   240    border: 1px solid #ffffff;
   241    background: #ffffff;
   242    font-size: .8em;
   243    padding: .66em 0;
   244    font-weight: bold;
   245    width: 33%;
   246    display: inline-block;
   247    vertical-align: bottom;
   248  }
   249  .picker__button--today:hover,
   250  .picker__button--clear:hover,
   251  .picker__button--close:hover {
   252    cursor: pointer;
   253    color: #000000;
   254    background: #b1dcfb;
   255    border-bottom-color: #b1dcfb;
   256  }
   257  .picker__button--today:focus,
   258  .picker__button--clear:focus,
   259  .picker__button--close:focus {
   260    background: #b1dcfb;
   261    border-color: $datepicker-focus;
   262    outline: none;
   263  }
   264  .picker__button--today:before,
   265  .picker__button--clear:before,
   266  .picker__button--close:before {
   267    position: relative;
   268    display: inline-block;
   269    height: 0;
   270  }
   271  .picker__button--today:before,
   272  .picker__button--clear:before {
   273    content: " ";
   274    margin-right: .45em;
   275  }
   276  .picker__button--today:before {
   277    top: -0.05em;
   278    width: 0;
   279    border-top: 0.66em solid #0059bc;
   280    border-left: .66em solid transparent;
   281  }
   282  .picker__button--clear:before {
   283    top: -0.25em;
   284    width: .66em;
   285    border-top: 3px solid #ee2200;
   286  }
   287  .picker__button--close:before {
   288    content: "\D7";
   289    top: -0.1em;
   290    vertical-align: top;
   291    font-size: 1.1em;
   292    margin-right: .35em;
   293    color: #777777;
   294  }
   295  .picker__button--today[disabled],
   296  .picker__button--today[disabled]:hover {
   297    background: #f5f5f5;
   298    border-color: #f5f5f5;
   299    color: #dddddd;
   300    cursor: default;
   301  }
   302  .picker__button--today[disabled]:before {
   303    border-top-color: #aaaaaa;
   304  }
   305  
   306  /* ==========================================================================
   307     CUSTOM MATERIALIZE STYLES
   308     ========================================================================== */
   309  .picker__box {
   310    border-radius: 2px;
   311    overflow: hidden;
   312  }
   313  
   314  .picker__date-display {
   315    text-align: center;
   316    background-color: $datepicker-date-bg;
   317    color: #fff;
   318    padding-bottom: 15px;
   319    font-weight: 300;
   320  }
   321  
   322  .picker__nav--prev:hover,
   323  .picker__nav--next:hover {
   324    cursor: pointer;
   325    color: #000000;
   326    background: $datepicker-selected-outfocus;
   327  }
   328  
   329  .picker__weekday-display {
   330    background-color: $datepicker-weekday-bg;
   331    padding: 10px;
   332    font-weight: 200;
   333    letter-spacing: .5;
   334    font-size: 1rem;
   335    margin-bottom: 15px;
   336  }
   337  
   338  .picker__month-display {
   339    text-transform: uppercase;
   340    font-size: 2rem;
   341  }
   342  .picker__day-display {
   343  
   344    font-size: 4.5rem;
   345    font-weight: 400;
   346  }
   347  .picker__year-display {
   348    font-size: 1.8rem;
   349    color: $datepicker-year;
   350  }
   351  
   352  .picker__box {
   353    padding: 0;
   354  }
   355  .picker__calendar-container {
   356    padding: 0 1rem;
   357  
   358    thead {
   359      border: none;
   360    }
   361  }
   362  
   363  // Calendar
   364  .picker__table {
   365    margin-top: 0;
   366    margin-bottom: .5em;
   367  }
   368  
   369  .picker__day--infocus {
   370    color: #595959;
   371    letter-spacing: -.3;
   372    padding: .75rem 0;
   373    font-weight: 400;
   374    border: 1px solid transparent;
   375  }
   376  
   377  //Today style
   378  .picker__day.picker__day--today {
   379    color: $datepicker-selected;
   380  }
   381  
   382  .picker__day.picker__day--today.picker__day--selected {
   383    color: #fff;
   384  }
   385  
   386  // Table Header
   387  .picker__weekday {
   388    font-size: .9rem;
   389  }
   390  
   391  
   392  .picker__day--selected,
   393  .picker__day--selected:hover,
   394  .picker--focused .picker__day--selected {
   395    // Circle background
   396    border-radius: 50%;
   397    @include transform(scale(.9));
   398    background-color: $datepicker-selected;
   399    &.picker__day--outfocus {
   400      background-color: $datepicker-selected-outfocus;
   401    }
   402    color: #ffffff;
   403  }
   404  
   405  .picker__footer {
   406    text-align: right;
   407    padding: 5px 10px;
   408  }
   409  
   410  // Materialize modified
   411  .picker__close, .picker__today {
   412    font-size: 1.1rem;
   413    padding: 0 1rem;
   414    color: $datepicker-selected;
   415  }
   416  
   417  //month nav buttons
   418  .picker__nav--prev:before,
   419  .picker__nav--next:before {
   420    content: " ";
   421    border-top: .5em solid transparent;
   422    border-bottom: .5em solid transparent;
   423    border-right: 0.75em solid #676767;
   424    width: 0;
   425    height: 0;
   426    display: block;
   427    margin: 0 auto;
   428  }
   429  .picker__nav--next:before {
   430    border-right: 0;
   431    border-left: 0.75em solid #676767;
   432  }
   433  button.picker__today:focus, button.picker__clear:focus, button.picker__close:focus {
   434    background-color: $datepicker-selected-outfocus;
   435  }