widgets.less 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. @import 'common.less';
  19. @undo-btn-margin: 10px;
  20. @combo-widget-width: 100px;
  21. .widget {
  22. margin-bottom: 30px;
  23. .widget {
  24. margin-bottom: 0;
  25. }
  26. .widget-config-label {
  27. font-size: 90%;
  28. }
  29. .action-button {
  30. margin-right: @undo-btn-margin;
  31. }
  32. }
  33. .list-widget {
  34. li, li:active {
  35. a, a:hover, a:focus, a:active, a:visited {
  36. background-color: #fff !important;
  37. background-image: none !important;
  38. color: #333 !important;
  39. }
  40. }
  41. }
  42. .slider-widget {
  43. @slider-widget-border-color: #999;
  44. .slider-track {
  45. height: 20px !important;
  46. border: 1px solid @slider-widget-border-color;
  47. border-radius: 10px;
  48. }
  49. .slider-tick {
  50. margin-top: 6px !important;
  51. width: 0px;
  52. font-size: 8px;
  53. margin-left: 0px !important;
  54. &:before {
  55. content: '|';
  56. }
  57. &:nth-of-type(1):before {
  58. content: '$$$' !important;
  59. }
  60. }
  61. .slider-handle {
  62. margin-top: -2px !important;
  63. height: 22px;
  64. width: 22px;
  65. margin-left: -12px !important;
  66. background-color: transparent !important;
  67. background-image: radial-gradient(#aaa 5px, #eee 5px) !important;
  68. border: 1px solid @slider-widget-border-color;
  69. }
  70. .slider-tick-label {
  71. font-size: 10px;
  72. }
  73. .slider-selection {
  74. background-image: none;
  75. background-color: lighten(@blue, 20%);
  76. border-radius: 11px;
  77. box-shadow: none;
  78. }
  79. .ui-slider-wrapper {
  80. height: 40px;
  81. .ui-slider-wrapper-inner {
  82. width: 70%;
  83. margin-right: 10px;
  84. }
  85. .ui-slider-label {
  86. line-height: 35px;
  87. }
  88. }
  89. }
  90. .slider-disabled {
  91. .slider-selection {
  92. background-color: @gray-blue;
  93. }
  94. }
  95. .spinner-input-widget {
  96. .spinner-input {
  97. display: inline-block;
  98. padding: 0 5px;
  99. line-height: normal;
  100. float: left;
  101. .input-append.input-prepend {
  102. margin: 0;
  103. }
  104. input {
  105. width: 20px;
  106. font-size: 12px;
  107. text-align: center;
  108. }
  109. .btn {
  110. &:first-child {
  111. padding-left: 4px;
  112. padding-right: 2px;
  113. }
  114. &:last-child {
  115. padding-left: 2px;
  116. padding-right: 4px;
  117. }
  118. }
  119. .spinner-input-label {
  120. font-size: 11px;
  121. }
  122. }
  123. .undo-button {
  124. padding: 2px 10px;
  125. float: left;
  126. }
  127. }
  128. .toggle-widget {
  129. .undo-button {
  130. margin-left: @undo-btn-margin;
  131. }
  132. }
  133. .combo-widget {
  134. .input-append {
  135. > input {
  136. border-radius: 3px 0 0 3px;
  137. width: @combo-widget-width;
  138. &[disabled] {
  139. background: #fff;
  140. cursor: default;
  141. }
  142. }
  143. .btn-group {
  144. display: inline-block;
  145. margin-left: -1px;
  146. .btn {
  147. border-radius: 0 3px 3px 0;
  148. }
  149. }
  150. }
  151. .action-button {
  152. margin-left: @undo-btn-margin;
  153. }
  154. }
  155. .checkbox-widget {
  156. .widget-config-label {
  157. margin-left: 10px;
  158. }
  159. }