timepicker.less 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. /*!
  2. * Timepicker Component for Twitter Bootstrap
  3. *
  4. * Copyright 2013 Joris de Wit
  5. *
  6. * Contributors https://github.com/jdewit/bootstrap-timepicker/graphs/contributors
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. .bootstrap-timepicker {
  12. position: relative;
  13. &.pull-right {
  14. .bootstrap-timepicker-widget {
  15. &.dropdown-menu {
  16. left: auto;
  17. right: 0;
  18. &:before {
  19. left: auto;
  20. right: 12px;
  21. }
  22. &:after {
  23. left: auto;
  24. right: 13px;
  25. }
  26. }
  27. }
  28. }
  29. .input-group-addon {
  30. cursor: pointer;
  31. i {
  32. display: inline-block;
  33. width: 16px;
  34. height: 16px;
  35. }
  36. }
  37. }
  38. .bootstrap-timepicker-widget {
  39. &.dropdown-menu {
  40. padding: 4px;
  41. &.open {
  42. display: inline-block;
  43. }
  44. &:before {
  45. border-bottom: 7px solid rgba(0, 0, 0, 0.2);
  46. border-left: 7px solid transparent;
  47. border-right: 7px solid transparent;
  48. content: "";
  49. display: inline-block;
  50. position: absolute;
  51. }
  52. &:after {
  53. border-bottom: 6px solid #FFFFFF;
  54. border-left: 6px solid transparent;
  55. border-right: 6px solid transparent;
  56. content: "";
  57. display: inline-block;
  58. position: absolute;
  59. }
  60. }
  61. &.timepicker-orient-left {
  62. &:before {
  63. left: 6px;
  64. }
  65. &:after {
  66. left: 7px;
  67. }
  68. }
  69. &.timepicker-orient-right {
  70. &:before {
  71. right: 6px;
  72. }
  73. &:after {
  74. right: 7px;
  75. }
  76. }
  77. &.timepicker-orient-top {
  78. &:before {
  79. top: -7px;
  80. }
  81. &:after {
  82. top: -6px;
  83. }
  84. }
  85. &.timepicker-orient-bottom {
  86. &:before {
  87. bottom: -7px;
  88. border-bottom: 0;
  89. border-top: 7px solid #999;
  90. }
  91. &:after {
  92. bottom: -6px;
  93. border-bottom: 0;
  94. border-top: 6px solid #ffffff;
  95. }
  96. }
  97. a.btn, input {
  98. border-radius: 4px;
  99. }
  100. table {
  101. width: 100%;
  102. margin: 0;
  103. td {
  104. text-align: center;
  105. height: 30px;
  106. margin: 0;
  107. padding: 2px;
  108. &:not(.separator) {
  109. min-width: 30px;
  110. }
  111. span {
  112. width: 100%;
  113. }
  114. a {
  115. border: 1px transparent solid;
  116. width: 100%;
  117. display: inline-block;
  118. margin: 0;
  119. padding: 8px 0;
  120. outline: 0;
  121. color: #333;
  122. &:hover {
  123. text-decoration: none;
  124. background-color: #eee;
  125. -webkit-border-radius: 4px;
  126. -moz-border-radius: 4px;
  127. border-radius: 4px;
  128. border-color: #ddd;
  129. }
  130. i {
  131. margin-top: 2px;
  132. font-size: 18px;
  133. }
  134. }
  135. input {
  136. width: 25px;
  137. margin: 0;
  138. text-align: center;
  139. }
  140. }
  141. }
  142. }
  143. .bootstrap-timepicker-widget .modal-content {
  144. padding: 4px;
  145. }
  146. @media (min-width: 767px) {
  147. .bootstrap-timepicker-widget.modal {
  148. width: 200px;
  149. margin-left: -100px;
  150. }
  151. }
  152. @media (max-width: 767px) {
  153. .bootstrap-timepicker {
  154. width: 100%;
  155. .dropdown-menu {
  156. width: 100%;
  157. }
  158. }
  159. }