1
0

dp-dark.css 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /* (A) WRAPPER - POPUP MODE */
  2. .picker-wrap, .picker-wrap * { box-sizing: border-box; }
  3. .picker-wrap.popup {
  4. /* (A1) FULLSCREEN COVER */
  5. position: fixed;
  6. top: 0; left: 0; z-index: 99;
  7. width: 100vw; height: 100vh;
  8. /* (A2) BACKGROUND + HIDE BY DEFAULT */
  9. background: rgba(0, 0, 0, 0.5);
  10. opacity: 0; visibility: hidden;
  11. transition: opacity 0.2s;
  12. /* (A3) CENTER DATE PICKER */
  13. display: flex;
  14. align-items: center;
  15. justify-content: center;
  16. }
  17. /* (A4) SHOW POPUP */
  18. .picker-wrap.show {
  19. opacity: 1;
  20. visibility: visible;
  21. }
  22. /* (B) CONTAINER */
  23. .picker {
  24. max-width: 300px;
  25. border: 1px solid #000;
  26. background: #444;
  27. padding: 10px;
  28. }
  29. /* (C) PERIOD SELECTOR */
  30. .picker-p {
  31. width: 100%;
  32. display: flex;
  33. background: #333;
  34. }
  35. .picker-b, .picker-n {
  36. font-weight: 700;
  37. padding: 10px;
  38. color: #fff;
  39. background: #1a1a1a;
  40. cursor: pointer;
  41. }
  42. .picker-m, .picker-y {
  43. flex-grow: 1;
  44. padding: 10px;
  45. border: 0;
  46. color: #fff;
  47. background: none;
  48. }
  49. .picker-m:focus, .picker-y:focus { outline: none; }
  50. .picker-m option, .picker-y option { color: #000; }
  51. /* (D) DAYS IN MONTH */
  52. /* (D1) GRID LAYOUT */
  53. .picker-d {
  54. color: #fff;
  55. display: grid;
  56. grid-template-columns: repeat(7, minmax(0, 1fr));
  57. }
  58. .picker-d div { padding: 5px; }
  59. /* (D2) HEADER - DAY NAMES */
  60. .picker-d-h { font-weight: 700; }
  61. /* (D3) BLANK DATES */
  62. .picker-d-b { background: #4e4e4e; }
  63. /* (D4) TODAY */
  64. .picker-d-td { background: #6e1c18; }
  65. /* (D5) PICKABLE DATES */
  66. .picker-d-d:hover {
  67. cursor: pointer;
  68. background: #a33c3c;
  69. }
  70. /* (D6) UNPICKABLE DATES */
  71. .picker-d-dd {
  72. color: #888;
  73. background: #4e4e4e;
  74. }