_TimePicker.scss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. .time-picker {
  2. display: flex;
  3. flex-flow: column nowrap;
  4. .time-picker-buttons {
  5. display: flex;
  6. }
  7. }
  8. .time-picker-popover-popper {
  9. z-index: $zindex-timepicker-popover;
  10. }
  11. .time-picker-popover {
  12. display: flex;
  13. flex-flow: row nowrap;
  14. justify-content: space-around;
  15. border: 1px solid $popover-border-color;
  16. border-radius: $border-radius;
  17. background-color: $popover-border-color;
  18. color: $popover-color;
  19. .time-picker-popover-box {
  20. max-width: 500px;
  21. padding: 20px;
  22. ul {
  23. padding-right: $spacer;
  24. padding-top: $spacer;
  25. list-style-type: none;
  26. li {
  27. line-height: 22px;
  28. display: list-item;
  29. text-align: left;
  30. }
  31. li.active {
  32. border-bottom: 1px solid $blue;
  33. font-weight: $font-weight-semi-bold;
  34. }
  35. }
  36. .time-picker-popover-box-body {
  37. display: flex;
  38. flex-flow: row nowrap;
  39. justify-content: space-around;
  40. }
  41. }
  42. .time-picker-popover-box-title {
  43. font-size: $font-size-lg;
  44. font-weight: $font-weight-semi-bold;
  45. }
  46. .time-picker-popover-box:first-child {
  47. border-right: 1px ridge;
  48. }
  49. .time-picker-popover-box-body-custom-ranges:first-child {
  50. margin-right: $spacer;
  51. }
  52. .time-picker-popover-box-body-custom-ranges-input {
  53. display: flex;
  54. flex-flow: row nowrap;
  55. align-items: center;
  56. margin: $spacer 0;
  57. .our-custom-wrapper-class {
  58. margin-left: $spacer;
  59. width: 100%;
  60. .time-picker-input-error {
  61. box-shadow: inset 0 0px 5px $red;
  62. }
  63. }
  64. }
  65. .time-picker-popover-box-footer {
  66. display: flex;
  67. flex-flow: row nowrap;
  68. justify-content: flex-end;
  69. margin-top: $spacer;
  70. }
  71. }
  72. .time-picker-calendar {
  73. border: 1px solid $popover-border-color;
  74. max-width: 220px;
  75. color: $black;
  76. .react-calendar__navigation__label,
  77. .react-calendar__navigation__arrow,
  78. .react-calendar__navigation {
  79. color: $input-color;
  80. background-color: $input-bg;
  81. border: 0;
  82. }
  83. .react-calendar__month-view__weekdays {
  84. background-color: $popover-border-color;
  85. text-align: center;
  86. abbr {
  87. border: 0;
  88. text-decoration: none;
  89. cursor: default;
  90. color: $popover-color;
  91. font-weight: $font-weight-semi-bold;
  92. }
  93. }
  94. .time-picker-calendar-tile {
  95. color: $input-color;
  96. background-color: $input-bg;
  97. border: 0;
  98. line-height: 22px;
  99. }
  100. button.time-picker-calendar-tile:hover {
  101. font-weight: $font-weight-semi-bold;
  102. }
  103. .react-calendar__navigation__label,
  104. .react-calendar__navigation > button:focus,
  105. .time-picker-calendar-tile:focus {
  106. outline: 0;
  107. }
  108. .react-calendar__tile--now {
  109. color: $orange;
  110. }
  111. .react-calendar__tile--active {
  112. color: $blue;
  113. font-weight: $font-weight-semi-bold;
  114. }
  115. }
  116. @media only screen and (max-width: 1116px) {
  117. .time-picker-popover {
  118. margin-left: $spacer;
  119. display: flex;
  120. flex-flow: column nowrap;
  121. .time-picker-popover-box {
  122. padding: $spacer / 2 $spacer;
  123. .time-picker-popover-box-title {
  124. font-size: $font-size-md;
  125. font-weight: $font-weight-semi-bold;
  126. }
  127. }
  128. .time-picker-popover-box:first-child {
  129. border-right: none;
  130. border-bottom: 1px ridge;
  131. }
  132. .time-picker-popover-box:last-child {
  133. .time-picker-popover-box-body {
  134. display: flex;
  135. flex-flow: column nowrap;
  136. .time-picker-popover-box-body-custom-ranges:first-child {
  137. margin: 0;
  138. }
  139. }
  140. }
  141. .time-picker-popover-box-footer {
  142. display: flex;
  143. flex-flow: row nowrap;
  144. justify-content: flex-end;
  145. margin-top: $spacer;
  146. }
  147. }
  148. .time-picker-calendar {
  149. max-width: 500px;
  150. width: 100%;
  151. }
  152. }
  153. @media only screen and (max-width: 746px) {
  154. .time-picker-popover {
  155. margin-top: 48px;
  156. }
  157. }