|
| 1 | +import { createGlobalStyle } from 'styled-components'; |
| 2 | + |
| 3 | +export const CalendarGlobalStyles = createGlobalStyle` |
| 4 | + .react-datepicker__wrapper { |
| 5 | + position: absolute; |
| 6 | + } |
| 7 | + .react-datepicker { |
| 8 | + position: absolute; |
| 9 | + left: 50%; |
| 10 | + top: 50%; |
| 11 | + transform: translate(-15%, 0%); |
| 12 | + display: flex; |
| 13 | + flex-direction: column; |
| 14 | + align-items: center; |
| 15 | +
|
| 16 | + padding: 14px; |
| 17 | + background-color: #ef8964; |
| 18 | + font-family: 'Roboto', sans-serif; |
| 19 | + border-radius: 8px; |
| 20 | + } |
| 21 | + .react-datepicker__month-container { |
| 22 | + float: inherit; |
| 23 | + box-sizing: border-box; |
| 24 | + } |
| 25 | + .react-datepicker__day-names { |
| 26 | + display: flex; |
| 27 | + justify-content: space-between; |
| 28 | + align-items: center; |
| 29 | + padding-top: 14px; |
| 30 | + margin-bottom: 8px; |
| 31 | + border-top: 1px solid rgba(239, 237, 232, 0.2); |
| 32 | + } |
| 33 | + .react-datepicker__header { |
| 34 | + position: relative; |
| 35 | + background-color: #ef8964; |
| 36 | + } |
| 37 | +
|
| 38 | + .react-datepicker__header:not(.react-datepicker__header--has-time-select) { |
| 39 | + border-bottom: 0px; |
| 40 | + padding: 0; |
| 41 | + } |
| 42 | + .react-datepicker__day |
| 43 | + react-datepicker__day--018.react-datepicker__day--selected |
| 44 | + react-datepicker__day--today { |
| 45 | + outline: none; |
| 46 | + border: none; |
| 47 | + } |
| 48 | + // .react-datepicker__current-month { |
| 49 | + // color: #efede8; |
| 50 | + // font-family: 'Roboto', sans-serif; |
| 51 | + // font-size: 16px; |
| 52 | + // font-weight: 500; |
| 53 | + // line-height: normal; |
| 54 | + // margin-bottom: 14px; |
| 55 | + // } |
| 56 | + .react-datepicker__day-name { |
| 57 | + margin: 0; |
| 58 | + color: rgba(239, 237, 232, 0.5); |
| 59 | + font-family: 'Roboto', sans-serif; |
| 60 | + font-size: 14px; |
| 61 | + font-style: normal; |
| 62 | + font-weight: 500; |
| 63 | + line-height: normal; |
| 64 | + } |
| 65 | +
|
| 66 | + .react-datepicker__day--disabled { |
| 67 | + opacity: 25%; |
| 68 | + } |
| 69 | + .react-datepicker__navigation { |
| 70 | + margin-top: 14px; |
| 71 | + color: white; |
| 72 | + } |
| 73 | + .react-datepicker__navigation--previous { |
| 74 | + left: 7px; |
| 75 | + width: 18px; |
| 76 | + height: 18px; |
| 77 | + } |
| 78 | + .react-datepicker__navigation--next { |
| 79 | + right: 7px; |
| 80 | + width: 18px; |
| 81 | + height: 18px; |
| 82 | + } |
| 83 | + .react-datepicker__navigation-icon::before:hover:focus { |
| 84 | + border-color: white; |
| 85 | + } |
| 86 | + .react-datepicker__week { |
| 87 | + display: flex; |
| 88 | + align-items: center; |
| 89 | + justify-content: space-between; |
| 90 | + color: white; |
| 91 | + } |
| 92 | + .react-datepicker__day { |
| 93 | + display: flex; |
| 94 | + flex-direction: column; |
| 95 | + justify-content: center; |
| 96 | + align-items: center; |
| 97 | + flex-shrink: 0; |
| 98 | + margin: 0; |
| 99 | + border-radius: 50%; |
| 100 | + color: #efede8; |
| 101 | + font-family: 'Roboto', sans-serif; |
| 102 | + font-size: 14px; |
| 103 | + font-weight: 400; |
| 104 | + line-height: 18px; |
| 105 | + text-align: center; |
| 106 | + width: 24px; |
| 107 | + height: 24px; |
| 108 | + } |
| 109 | + .react-datepicker__month { |
| 110 | + display: flex; |
| 111 | + gap: 5px; |
| 112 | + flex-direction: column; |
| 113 | + justify-content: space-between; |
| 114 | + margin: 0; |
| 115 | + } |
| 116 | + .react-datepicker__day--selected { |
| 117 | + background-color: #040404; |
| 118 | + color: #efede8; |
| 119 | + font-size: 14px; |
| 120 | + } |
| 121 | + .react-datepicker__day--selected:hover { |
| 122 | + border-radius: 50%; |
| 123 | + background-color: white; |
| 124 | + } |
| 125 | + .react-datepicker__day:hover { |
| 126 | + border-radius: 50%; |
| 127 | + background-color: white; |
| 128 | + color: #ef8964; |
| 129 | + } |
| 130 | + .react-datepicker__day--keyboard-selected { |
| 131 | + border-radius: 50%; |
| 132 | + background-color: white; |
| 133 | + color: #ef8964; |
| 134 | + } |
| 135 | + .react-datepicker__day--outside-month { |
| 136 | + opacity: 50%; |
| 137 | + } |
| 138 | + .react-datepicker__triangle { |
| 139 | + display: none; |
| 140 | + } |
| 141 | +`; |
0 commit comments