Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

369 Zeilen
7.0 KiB

  1. /*!
  2. * https://github.com/YouCanBookMe/react-datetime
  3. */
  4. .rdt {
  5. position: relative;
  6. .rdtPicker {
  7. -webkit-transition: all 150ms linear;
  8. -moz-transition: all 150ms linear;
  9. -o-transition: all 150ms linear;
  10. -ms-transition: all 150ms linear;
  11. transition: all 150ms linear;
  12. margin-top: -20px;
  13. visibility: hidden;
  14. display: block;
  15. opacity: 0;
  16. }
  17. &.rdtOpen {
  18. .rdtPicker {
  19. opacity: 1;
  20. visibility: visible;
  21. margin-top: 0;
  22. }
  23. }
  24. input.form-control {
  25. border: 0;
  26. background-image: linear-gradient(#9c27b0, #9c27b0),
  27. linear-gradient(#d2d2d2, #d2d2d2);
  28. background-size: 0 2px, 100% 1px;
  29. background-repeat: no-repeat;
  30. background-position: center bottom, center calc(100% - 1px);
  31. background-color: rgba(0, 0, 0, 0);
  32. transition: background 0s ease-out;
  33. float: none;
  34. box-shadow: none;
  35. border-radius: 0;
  36. font-weight: 400;
  37. width: 100%;
  38. height: 36px;
  39. padding: 7px 0;
  40. font-size: 14px;
  41. font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  42. font-weight: 400;
  43. line-height: 1.42857;
  44. display: block;
  45. width: 100%;
  46. color: #555;
  47. }
  48. input.form-control:focus {
  49. outline: none;
  50. background-image: linear-gradient(#9c27b0, #9c27b0),
  51. linear-gradient(#d2d2d2, #d2d2d2);
  52. background-size: 100% 2px, 100% 1px;
  53. box-shadow: none;
  54. transition-duration: 0.3s;
  55. }
  56. }
  57. .rdtPicker {
  58. display: none;
  59. position: absolute;
  60. width: 260px;
  61. padding: 4px;
  62. margin-top: 1px;
  63. z-index: 99999 !important;
  64. background: #fff;
  65. border-radius: 0.125rem;
  66. box-shadow: 0px 10px 50px 0px rgba(0, 0, 0, 0.2);
  67. -webkit-background-clip: padding-box;
  68. background-clip: padding-box;
  69. min-width: 160px;
  70. &:before {
  71. display: inline-block;
  72. position: absolute;
  73. width: 0;
  74. height: 0;
  75. vertical-align: middle;
  76. content: "";
  77. top: -5px;
  78. left: 10px;
  79. right: auto;
  80. color: #ffffff;
  81. border-bottom: 0.4em solid;
  82. border-right: 0.4em solid transparent;
  83. border-left: 0.4em solid transparent;
  84. }
  85. &:after {
  86. border-bottom: 0.4em solid #ffffff;
  87. border-right: 0.4em solid transparent;
  88. border-left: 0.4em solid transparent;
  89. content: "";
  90. display: inline-block;
  91. position: absolute;
  92. top: -5px;
  93. left: 10px;
  94. }
  95. }
  96. .rdtPicker {
  97. display: block;
  98. top: 40px;
  99. }
  100. .rdtStatic .rdtPicker {
  101. box-shadow: none;
  102. position: static;
  103. }
  104. .rdtPicker .rdtTimeToggle {
  105. text-align: center;
  106. padding: 5px;
  107. border-radius: 4px;
  108. }
  109. .rdtPicker table {
  110. width: 100%;
  111. margin: 0;
  112. border-color: $white-color !important;
  113. border-collapse: collapse;
  114. }
  115. .rdtPicker td,
  116. .rdtPicker th {
  117. text-align: center;
  118. padding: 1px;
  119. }
  120. .rdtPicker td {
  121. cursor: pointer;
  122. }
  123. .rdtDay {
  124. height: 30px;
  125. line-height: 33px;
  126. width: 30px;
  127. text-align: center;
  128. padding: 0px;
  129. border-radius: 50%;
  130. &.rdtToday.rdtActive,
  131. &.rdtActive,
  132. &.rdtActive:hover {
  133. background-color: $brand-primary !important;
  134. color: $white-color;
  135. @include shadow-big-color($brand-primary);
  136. }
  137. }
  138. .rdtDays {
  139. tr {
  140. .dow {
  141. border-bottom: 1px solid #e3e3e3;
  142. text-align: center;
  143. font-size: 12px;
  144. text-transform: uppercase;
  145. font-weight: inherit;
  146. padding-bottom: 5px;
  147. padding-top: 10px;
  148. }
  149. .rdtOld,
  150. .rdtNew {
  151. color: $grey-a400;
  152. }
  153. }
  154. }
  155. .rdtPicker td.rdtDay:hover,
  156. .rdtPicker td.rdtHour:hover,
  157. .rdtPicker td.rdtMinute:hover,
  158. .rdtPicker td.rdtSecond:hover,
  159. .rdtPicker .rdtTimeToggle:hover {
  160. background: #eeeeee;
  161. cursor: pointer;
  162. }
  163. .rdtPicker td.rdtToday {
  164. position: relative;
  165. }
  166. .rdtPicker td.rdtActive.rdtToday:before {
  167. border-bottom-color: #fff;
  168. }
  169. .rdtPicker td.rdtDisabled,
  170. .rdtPicker td.rdtDisabled:hover {
  171. background: none;
  172. color: #999999;
  173. cursor: not-allowed;
  174. }
  175. .rdtPicker td span.rdtOld {
  176. color: #999999;
  177. }
  178. .rdtPicker td span.rdtDisabled,
  179. .rdtPicker td span.rdtDisabled:hover {
  180. background: none;
  181. color: #999999;
  182. cursor: not-allowed;
  183. }
  184. .rdtPicker .dow {
  185. width: 14.2857%;
  186. border-bottom: none;
  187. }
  188. .rdtPicker th.rdtSwitch {
  189. width: 50px;
  190. padding: 5px;
  191. border-radius: 4px;
  192. }
  193. .rdtPicker th.rdtNext,
  194. .rdtPicker th.rdtPrev {
  195. font-size: 21px;
  196. vertical-align: top;
  197. border-radius: 50%;
  198. line-height: 33px;
  199. }
  200. .rdtPicker {
  201. .dow,
  202. th.rdtSwitch,
  203. th.rdtNext,
  204. th.rdtPrev,
  205. .rdtTimeToggle {
  206. color: $brand-primary;
  207. }
  208. }
  209. .rdtPrev span,
  210. .rdtNext span {
  211. display: block;
  212. -webkit-touch-callout: none; /* iOS Safari */
  213. -webkit-user-select: none; /* Chrome/Safari/Opera */
  214. -khtml-user-select: none; /* Konqueror */
  215. -moz-user-select: none; /* Firefox */
  216. -ms-user-select: none; /* Internet Explorer/Edge */
  217. user-select: none;
  218. }
  219. .rdtPicker th.rdtDisabled,
  220. .rdtPicker th.rdtDisabled:hover {
  221. background: none;
  222. color: #999999;
  223. cursor: not-allowed;
  224. }
  225. .rdtPicker thead tr:first-child th {
  226. cursor: pointer;
  227. }
  228. .rdtPicker thead tr:first-child th:hover {
  229. background: #eeeeee;
  230. }
  231. .rdtPicker button {
  232. border: none;
  233. background: none;
  234. cursor: pointer;
  235. }
  236. .rdtPicker button:hover {
  237. background-color: #eee;
  238. }
  239. .rdtPicker thead button {
  240. width: 100%;
  241. height: 100%;
  242. }
  243. td.rdtMonth,
  244. td.rdtYear {
  245. height: 50px;
  246. width: 25%;
  247. cursor: pointer;
  248. }
  249. td.rdtMonth:hover,
  250. td.rdtYear:hover {
  251. background: #eee;
  252. }
  253. .rdtCounters {
  254. display: inline-block;
  255. }
  256. .rdtCounters {
  257. > div {
  258. float: left;
  259. width: 40px;
  260. font-weight: inherit;
  261. margin: 3px;
  262. border-radius: 50%;
  263. }
  264. .rdtCounterSeparator {
  265. width: 0;
  266. border: 1px solid transparent;
  267. }
  268. }
  269. .rdtCounter {
  270. height: 100px;
  271. }
  272. .rdtCounter {
  273. width: 40px;
  274. .rdtCount {
  275. padding: 7px;
  276. height: 40px;
  277. border: 1px solid transparent;
  278. }
  279. }
  280. .rdtCounters {
  281. .rdtCounter:last-child {
  282. .rdtCount {
  283. color: $brand-primary;
  284. border-radius: 50%;
  285. border: 1px solid $brand-primary;
  286. }
  287. }
  288. }
  289. .rdtCounterSeparator {
  290. padding: 7px;
  291. line-height: 100px;
  292. }
  293. .rdtCounter .rdtBtn {
  294. line-height: 40px;
  295. cursor: pointer;
  296. display: block;
  297. border-radius: 50%;
  298. color: $grey-a200;
  299. -webkit-transition: all 60ms ease-in;
  300. -moz-transition: all 60ms ease-in;
  301. -o-transition: all 60ms ease-in;
  302. -ms-transition: all 60ms ease-in;
  303. transition: all 60ms ease-in;
  304. -webkit-touch-callout: none; /* iOS Safari */
  305. -webkit-user-select: none; /* Chrome/Safari/Opera */
  306. -khtml-user-select: none; /* Konqueror */
  307. -moz-user-select: none; /* Firefox */
  308. -ms-user-select: none; /* Internet Explorer/Edge */
  309. user-select: none;
  310. }
  311. .rdtCounter .rdtBtn:hover {
  312. background: #eee;
  313. color: #797979;
  314. }
  315. .rdtCounter .rdtCount {
  316. font-size: inherit;
  317. line-height: 25px;
  318. }
  319. .rdtMilli {
  320. vertical-align: middle;
  321. padding-left: 8px;
  322. width: 48px;
  323. }
  324. .rdtMilli input {
  325. width: 100%;
  326. font-size: inherit;
  327. margin-top: 37px;
  328. }
  329. .rdtMonths,
  330. .rdtYears {
  331. padding-bottom: 10px;
  332. .rdtMonth,
  333. .rdtYear {
  334. display: inline-block;
  335. width: 56px;
  336. height: 56px;
  337. line-height: 56px;
  338. margin: 3px 3px;
  339. cursor: pointer;
  340. border-radius: 50%;
  341. text-align: center;
  342. &.rdtActive {
  343. background-color: $brand-primary !important;
  344. color: $white-color;
  345. }
  346. }
  347. }