Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. //jQuery UI datepicker styles//
  2.  
  3. #ui-datepicker-div,
  4. .ui-datepicker {
  5. // width: 50%;
  6.  
  7. // @include respond-to(medium) {
  8. // margin-left: 0;
  9. // width: unset;
  10. // }
  11.  
  12. font-family: 'Roboto';
  13. border: none;
  14. border-radius: 0;
  15. @include light-shadow;
  16.  
  17. .ui-corner-all {
  18. width: unset;
  19. border: none;
  20.  
  21. &:hover {
  22. transform: none;
  23. }
  24. }
  25.  
  26. //The header section of the datepicker
  27. .ui-datepicker-header {
  28. display: flex;
  29. justify-content: center;
  30. padding: 0;
  31. background-color: $white;
  32. border: none;
  33. width: 100%;
  34. }
  35.  
  36. //The previous button in the datepicker
  37. .ui-datepicker-prev,
  38. .ui-datepicker-prev-hover {
  39. // flex-basis: 50%;
  40. text-align: left;
  41. @include icon($position: after, $icon: 'chevron-left', $styles: true);
  42. cursor: pointer;
  43.  
  44. span {
  45. display: none;
  46. }
  47.  
  48. &:hover {
  49. border: none;
  50. background-color: transparent;
  51. }
  52. }
  53.  
  54. //The next button in the datepicker
  55. .ui-datepicker-next,
  56. .ui-datepicker-next-hover {
  57. // flex-basis: 50%;
  58. text-align: right;
  59. @include icon($position: after, $icon: 'chevron-right', $styles: true);
  60. background-color: transparent;
  61. cursor: pointer;
  62.  
  63. span {
  64. display: none;
  65. }
  66.  
  67. &:hover {
  68. border: none;
  69. background-color: transparent;
  70. }
  71. }
  72.  
  73. .ui-state-hover {
  74. background: none;
  75. }
  76.  
  77. //The title of the datepicker
  78. .ui-datepicker-title {
  79. flex-basis: 100%;
  80. display: flex;
  81. flex-direction: row;
  82. align-items: center;
  83. justify-content: center;
  84. text-align: center;
  85. margin: 0;
  86. font-weight: 700;
  87. font-size: 1rem;
  88. font-family: 'Lato';
  89. background-color: $white;
  90.  
  91.  
  92. select {
  93. height: $spacing-sm;
  94. min-width: unset;
  95. width: 6rem;
  96. font-size: 0.8rem;
  97.  
  98. &:not(:last-child) {
  99. margin-right: $spacing-sm;
  100. }
  101. }
  102. }
  103.  
  104. //Styles for the datepicker table section
  105. .ui-datepicker-calendar {
  106. border: none;
  107.  
  108. }
  109.  
  110. table {
  111. border-collapse: unset;
  112. border-spacing: 5px;
  113. width: 100%;
  114. table-layout: fixed;
  115. }
  116.  
  117. thead {
  118. background-color: transparent;
  119. font-size: 0.8rem;
  120. color: $grey-4;
  121. }
  122.  
  123. th {
  124. border-bottom: none;
  125. }
  126.  
  127. tr {
  128. border-bottom: none;
  129. }
  130.  
  131. td,
  132. .ui-state-default,
  133. .available {
  134. border-radius: 5px;
  135. background-color: transparent;
  136. background-image: none;
  137. border: none;
  138. color: $black;
  139. text-align: center;
  140.  
  141. &:hover {
  142. background-color: $color-primary;
  143. color: $white;
  144. }
  145. }
  146.  
  147. .ui-state-disabled {
  148. background-color: $white;
  149. color: $grey-4;
  150. opacity: 1;
  151.  
  152. &:hover {
  153. pointer-events: none;
  154. background-color: $white;
  155. }
  156. }
  157. }
  158.  
  159.  
  160. .ui-datepicker.special-noCalander{
  161. .ui-datepicker-header{
  162. margin-top: $spacing-xs;
  163. margin-bottom: $spacing-xs;
  164. }
  165.  
  166. .ui-datepicker-calendar{
  167. display: none;
  168. }
  169. }
  170.  
  171. // //End of datepicker styles
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement