方诺官网改正版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

115 lines
3.0 KiB

  1. .litepicker {
  2. @apply bg-white rounded-md text-sm;
  3. margin-top: 7px;
  4. box-shadow: 0px 3px 20px #00000014;
  5. &:before {
  6. content: "";
  7. left: 9px;
  8. top: -7px;
  9. border-bottom-color: #f7f7f7;
  10. border-right: 7px solid transparent;
  11. border-left: 7px solid transparent;
  12. border-bottom: 7px solid #e8e8e8;
  13. @apply absolute inline-block;
  14. }
  15. &:after {
  16. content: "";
  17. left: 10px;
  18. top: -6px;
  19. border-right: 6px solid transparent;
  20. border-bottom: 6px solid #fff;
  21. border-left: 6px solid transparent;
  22. @apply absolute inline-block;
  23. }
  24. .container__months,
  25. .container__footer {
  26. @apply shadow-none bg-transparent pt-0;
  27. }
  28. .container__footer {
  29. @apply border-t border-gray-200 m-0 p-3;
  30. .button-apply,
  31. .button-cancel {
  32. @apply w-20 py-1 px-2 rounded-md font-medium ml-1 mr-0;
  33. }
  34. .button-apply {
  35. @apply bg-theme-1 text-white;
  36. }
  37. .button-cancel {
  38. @apply bg-gray-200 text-gray-600;
  39. }
  40. }
  41. .container__months {
  42. @apply px-1;
  43. .month-item-weekdays-row {
  44. @apply text-gray-500 mt-3;
  45. }
  46. .month-item-header {
  47. @apply px-0 pb-0 pt-2;
  48. .button-previous-month {
  49. @apply flex items-center justify-center w-8 h-8;
  50. &:hover {
  51. @apply bg-gray-200;
  52. }
  53. svg {
  54. transform: rotate(135deg);
  55. @apply -mr-1;
  56. }
  57. }
  58. .button-next-month {
  59. @apply flex items-center justify-center w-8 h-8;
  60. &:hover {
  61. @apply bg-gray-200;
  62. }
  63. svg {
  64. transform: rotate(-45deg);
  65. @apply -ml-1;
  66. }
  67. }
  68. .button-previous-month:hover svg,
  69. .button-previous-month svg,
  70. .button-next-month:hover svg,
  71. .button-next-month svg {
  72. fill: transparent;
  73. border: solid black;
  74. border-width: 0 2px 2px 0;
  75. border-radius: 0;
  76. display: inline-block;
  77. border-color: #4a5568;
  78. @apply w-2 h-2 block;
  79. }
  80. div > .month-item-name,
  81. div > .month-item-year {
  82. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(74, 85, 104)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-chevron-down'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  83. background-size: 15px;
  84. background-position: center right 0.60rem;
  85. @apply bg-transparent border bg-no-repeat py-1 pl-2 pr-8 rounded-md appearance-none;
  86. }
  87. }
  88. }
  89. .container__days {
  90. .day-item {
  91. @apply text-gray-800;
  92. &:hover {
  93. @apply shadow-none bg-gray-200 text-gray-800;
  94. }
  95. &.is-today,
  96. &.is-today:hover {
  97. @apply text-theme-6;
  98. }
  99. &.is-start-date,
  100. &.is-start-date:hover,
  101. &.is-end-date,
  102. &.is-end-date:hover {
  103. @apply bg-theme-1 text-white;
  104. }
  105. &.is-in-range,
  106. &.is-in-range:hover {
  107. @apply bg-theme-14;
  108. }
  109. }
  110. .week-number {
  111. @apply text-gray-500;
  112. }
  113. }
  114. }