Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

bootstrap-daterangepicker.scss 7.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. @import "../../scss/_bootstrap-extended/include";
  2. @import "../../scss/_components/include";
  3. .daterangepicker {
  4. position: absolute;
  5. z-index: $picker-zindex;
  6. display: none;
  7. background-color: $picker-bg;
  8. box-shadow: $picker-box-shadow;
  9. margin-block-start: $picker-spacer;
  10. @include border-radius($picker-border-radius);
  11. .calendar-table{
  12. /* prev & next arrow wrapper styles */
  13. .next,
  14. .prev {
  15. position: absolute;
  16. display: flex;
  17. align-items: center;
  18. justify-content: center;
  19. background-color: $picker-arrow-bg;
  20. block-size: $picker-arrow-wrapper-size;
  21. inline-size: $picker-arrow-wrapper-size;
  22. inset-block-start: .65rem;
  23. min-inline-size: unset;
  24. @include border-radius($picker-cell-border-radius);
  25. }
  26. /* prev & next arrow default styles with border */
  27. .next span,
  28. .prev span {
  29. display: inline-block;
  30. border-width: 0 2px 2px 0;
  31. border-style: solid;
  32. border-color: $picker-arrow-color;
  33. block-size: $picker-arrow-size;
  34. inline-size: $picker-arrow-size;
  35. @include border-radius(0);
  36. }
  37. .prev span {
  38. margin-inline-end: -$picker-arrow-size * .5;
  39. transform: rotate(135deg);
  40. :dir(rtl) & {
  41. transform: rotate(-45deg);
  42. }
  43. }
  44. .next span {
  45. margin-inline-start: -$picker-arrow-size * .5;
  46. transform: rotate(-45deg);
  47. :dir(rtl) & {
  48. margin-inline: 0;
  49. transform: rotate(135deg);
  50. }
  51. }
  52. /* picker table styles */
  53. table {
  54. border: 0;
  55. margin: 0;
  56. border-collapse: collapse;
  57. border-spacing: 0;
  58. inline-size: 100%;
  59. thead {
  60. tr:first-child {
  61. position: relative;
  62. block-size: $picker-header-size;
  63. }
  64. tr:last-child th {
  65. color: $picker-header-color;
  66. font-size: $font-size-sm;
  67. font-weight: $font-weight-medium;
  68. @include border-radius(0);
  69. }
  70. th select{
  71. background-color: transparent;
  72. }
  73. }
  74. th.month {
  75. inline-size: auto;
  76. }
  77. td {
  78. inline-size: $picker-cell-size;
  79. @include border-radius($picker-cell-border-radius);
  80. &.start-date:not(.end-date) {
  81. @include border-end-radius(0);
  82. }
  83. &.end-date:not(.start-date) {
  84. @include border-start-radius(0);
  85. }
  86. &.start-date:not(.end-date, .off),
  87. &.end-date:not(.start-date, .off) {
  88. border: 0;
  89. background-color: $picker-cell-active-bg;
  90. color: $picker-cell-active-color;
  91. &:hover {
  92. background-color: $picker-cell-active-bg;
  93. }
  94. }
  95. &.off{
  96. color: $picker-disabled-color;
  97. }
  98. /* week header styles */
  99. &.week{
  100. color: $picker-header-color;
  101. font-weight: $font-weight-normal;
  102. }
  103. /* active date styles */
  104. &.active.today.start-date:not(.off),
  105. &.active.today.end-date:not(.off),
  106. &.active:not(.off){
  107. background: $picker-cell-active-bg;
  108. box-shadow: $picker-cell-active-shadow;
  109. color: $picker-cell-active-color;
  110. }
  111. /* today date styles */
  112. &.today,
  113. &.today.active,
  114. &.today:hover {
  115. background: $picker-cell-today-bg;
  116. color: $picker-cell-today-color;
  117. }
  118. &.in-range:not(.start-date, .end-date) {
  119. @include border-radius(0);
  120. box-shadow: none;
  121. }
  122. /* hover & not in range date styles */
  123. &.in-range:not(.start-date, .end-date, .off) {
  124. &,
  125. &:hover {
  126. background-color: $picker-range-active-bg;
  127. color: $picker-range-active-color;
  128. }
  129. }
  130. }
  131. th{
  132. block-size: $picker-cell-size + .5rem;
  133. }
  134. th,
  135. td {
  136. block-size: $picker-cell-size;
  137. cursor: pointer;
  138. line-height: calc(#{$picker-cell-size} - 2px);
  139. min-inline-size: $picker-cell-size;
  140. text-align: center;
  141. vertical-align: middle;
  142. white-space: nowrap;
  143. &.available:not(.active, .in-range):hover {
  144. background-color: $picker-cell-hover-bg;
  145. }
  146. }
  147. td.disabled,
  148. option.disabled {
  149. color: $picker-disabled-color;
  150. cursor: not-allowed;
  151. text-decoration: line-through;
  152. }
  153. }
  154. }
  155. .input-mini.active {
  156. border-color: $picker-cell-active-bg;
  157. }
  158. /* dual date range picker styles */
  159. .drp-calendar:not(.single){
  160. &.left{
  161. .prev{
  162. inset-inline-start: .625rem;
  163. }
  164. }
  165. &.right{
  166. .next{
  167. inset-inline-end: .625rem;
  168. }
  169. }
  170. }
  171. .drp-calendar.single{
  172. .prev{
  173. inset-inline-start: .4rem;
  174. }
  175. }
  176. &:not(.single) {
  177. /* responsive above md */
  178. @include media-breakpoint-up(md) {
  179. .drp-calendar {
  180. float: inline-start;
  181. }
  182. }
  183. .drp-selected {
  184. display: inline-block;
  185. padding: 0;
  186. inline-size: auto;
  187. }
  188. }
  189. /* selected date range styles */
  190. .drp-selected{
  191. display: block;
  192. font-size: $font-size-sm;
  193. inline-size: 100%;
  194. padding-block-end: $picker-padding;
  195. }
  196. &.auto-apply .drp-buttons {
  197. display: none;
  198. }
  199. &.show-calendar .drp-calendar,
  200. &.show-calendar .drp-buttons {
  201. display: block;
  202. }
  203. .drp-calendar {
  204. display: none;
  205. padding: $picker-padding;
  206. &.single .calendar-table {
  207. border: 0;
  208. }
  209. }
  210. &.single {
  211. .drp-selected {
  212. display: none;
  213. }
  214. .daterangepicker .ranges,
  215. .drp-calendar {
  216. float: none;
  217. }
  218. }
  219. /* select dropdown styles */
  220. select {
  221. &.monthselect,
  222. &.yearselect {
  223. padding: 1px;
  224. border: 0;
  225. margin: 0;
  226. block-size: auto;
  227. cursor: default;
  228. }
  229. &:focus-visible {
  230. outline: 0;
  231. }
  232. &.hourselect,
  233. &.minuteselect,
  234. &.secondselect,
  235. &.ampmselect {
  236. padding: 2px;
  237. border: 1px solid transparent;
  238. background: $picker-select-bg;
  239. color: $picker-color;
  240. font-size: $font-size-sm;
  241. inline-size: $picker-select-width;
  242. margin-block: 0;
  243. margin-inline: auto;
  244. outline: 0;
  245. @include border-radius($picker-select-timer-radius);
  246. option {
  247. background: $picker-bg;
  248. }
  249. }
  250. &.monthselect {
  251. margin-inline-end: 4%;
  252. }
  253. &.yearselect {
  254. inline-size: 40%;
  255. }
  256. }
  257. /* time picker styles */
  258. .calendar-time {
  259. position: relative;
  260. line-height: 30px;
  261. margin-block: 0;
  262. margin-inline: auto;
  263. text-align: center;
  264. select.disabled {
  265. color: $picker-disabled-color;
  266. cursor: not-allowed;
  267. }
  268. }
  269. .drp-buttons {
  270. display: none;
  271. padding: $picker-padding;
  272. clear: both;
  273. text-align: end;
  274. vertical-align: middle;
  275. .btn {
  276. margin-inline-start: $picker-padding * 1.2;
  277. }
  278. }
  279. /* ranges styles */
  280. .ranges {
  281. margin: 0;
  282. float: inline-start;
  283. text-align: start;
  284. ul {
  285. padding: .5rem;
  286. inline-size: 100%;
  287. list-style: none;
  288. margin-block: 0;
  289. margin-inline: auto;
  290. li{
  291. @include border-radius($picker-border-radius);
  292. cursor: pointer;
  293. padding-block: $dropdown-item-padding-y;
  294. padding-inline: $dropdown-item-padding-x;
  295. &:not(:first-child) {
  296. margin-block-start: .125rem;
  297. }
  298. &:hover {
  299. background-color: $picker-cell-hover-bg;
  300. }
  301. &.active {
  302. background-color: $picker-cell-active-bg;
  303. color: $picker-cell-active-color;
  304. }
  305. }
  306. }
  307. }
  308. &.show-calendar .ranges {
  309. &:empty {
  310. display: none;
  311. }
  312. }
  313. }