You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

select.scss 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. @mixin base-select($primaryStyleName : v-select) {
  2. $select-button-width : 1em;
  3. $select-button-negative-width : -1em;
  4. .#{$primaryStyleName} {
  5. text-align: left;
  6. }
  7. .#{$primaryStyleName}-optiongroup .#{$primaryStyleName}-option {
  8. display: block;
  9. white-space: nowrap;
  10. }
  11. .#{$primaryStyleName}-optiongroup .v-icon {
  12. vertical-align: middle;
  13. white-space: nowrap;
  14. margin: 0 2px;
  15. }
  16. .v-ie & .#{$primaryStyleName}-optiongroup .#{$primaryStyleName}-option {
  17. zoom: 1;
  18. }
  19. .#{$primaryStyleName}-select {
  20. display: block;
  21. }
  22. .#{$primaryStyleName}-twincol {
  23. white-space: nowrap;
  24. }
  25. .#{$primaryStyleName}-twincol-options {
  26. float: left;
  27. }
  28. .#{$primaryStyleName}-twincol-caption-left {
  29. float: left;
  30. overflow: hidden;
  31. text-overflow: ellipsis;
  32. }
  33. .#{$primaryStyleName}-twincol-selections {
  34. font-weight: bold;
  35. }
  36. .#{$primaryStyleName}-twincol-caption-right {
  37. float: right;
  38. overflow: hidden;
  39. text-overflow: ellipsis;
  40. }
  41. .#{$primaryStyleName}-twincol-buttons {
  42. float: left;
  43. text-align: center;
  44. }
  45. .#{$primaryStyleName}-twincol-buttons .#{$primaryStyleName}-twincol-deco {
  46. clear: both;
  47. }
  48. .#{$primaryStyleName}-twincol .v-textfield {
  49. display: block;
  50. float: left;
  51. clear: left;
  52. }
  53. .#{$primaryStyleName}-twincol .v-button {
  54. float: left;
  55. }
  56. .#{$primaryStyleName}-twincol-buttons .v-button {
  57. float: none;
  58. }
  59. .v-filterselect {
  60. white-space: nowrap;
  61. text-align: left;
  62. display: inline-block;
  63. padding-right: $select-button-width; /* Space for the button */
  64. }
  65. .v-filterselect .v-icon {
  66. float: left;
  67. }
  68. &.v-app .v-filterselect-input,
  69. .v-window .v-filterselect-input,
  70. .v-popupview-popup .v-filterselect-input {
  71. margin: 0;
  72. float: left;
  73. -webkit-border-radius: 0px;
  74. -webkit-box-sizing: border-box;
  75. -moz-box-sizing: border-box;
  76. box-sizing: border-box;
  77. }
  78. .v-filterselect-prompt .v-filterselect-input {
  79. color: #999;
  80. font-style: italic;
  81. }
  82. .v-filterselect-button {
  83. display: inline-block;
  84. cursor: pointer;
  85. width: $select-button-width;
  86. margin-right: $select-button-negative-width;
  87. height: 1em;
  88. background: transparent url(../common/img/sprites.png) no-repeat -5px -8px;
  89. }
  90. .v-filterselect.v-readonly .v-filterselect-button {
  91. display: none;
  92. }
  93. .v-filterselect.v-readonly,
  94. .v-filterselect.v-readonly .v-filterselect-input {
  95. background: transparent;
  96. }
  97. .v-filterselect-suggestpopup {
  98. background: #fff;
  99. border: 1px solid #eee;
  100. }
  101. .v-filterselect-suggestmenu table {
  102. border-collapse: collapse;
  103. border: none;
  104. vertical-align:top;
  105. display: block;
  106. width: 100%;
  107. // float & clear needs to be set so that IE 8 & 9 displays the elements as block
  108. float: left;
  109. clear: both;
  110. & > tbody,
  111. & > tbody > tr,
  112. & > tbody > tr > td {
  113. display: block;
  114. width: 100%;
  115. // float & clear needs to be set so that IE 8 & 9 displays the elements as block
  116. float: left;
  117. clear: both;
  118. overflow-y: hidden;
  119. }
  120. }
  121. .v-filterselect-suggestmenu .gwt-MenuItem {
  122. white-space: nowrap;
  123. padding-left: 1px;
  124. padding-right: 0;
  125. -moz-box-sizing: border-box;
  126. -webkit-box-sizing: border-box;
  127. box-sizing: border-box;
  128. overflow-x: hidden;
  129. text-overflow: ellipsis;
  130. }
  131. .v-filterselect-suggestmenu .gwt-MenuItem .v-icon {
  132. margin-right: 3px;
  133. vertical-align: middle;
  134. }
  135. .v-filterselect-suggestmenu .gwt-MenuItem span {
  136. vertical-align: middle;
  137. }
  138. .v-filterselect-suggestmenu .gwt-MenuItem-selected {
  139. background: #333;
  140. color: #fff;
  141. }
  142. .v-filterselect-nextpage,
  143. .v-filterselect-nextpage-off,
  144. .v-filterselect-prevpage-off,
  145. .v-filterselect-prevpage {
  146. width: 100%;
  147. background: #aaa;
  148. text-align: center;
  149. overflow: hidden;
  150. cursor: pointer;
  151. }
  152. .v-filterselect-nextpage-off,
  153. .v-filterselect-prevpage-off {
  154. color: #666;
  155. opacity: .5;
  156. filter: alpha(opacity=50);
  157. cursor: default;
  158. }
  159. .v-filterselect-nextpage-off span,
  160. .v-filterselect-prevpage-off span {
  161. cursor: default;
  162. }
  163. .v-filterselect-status {
  164. white-space: nowrap;
  165. text-align: center;
  166. }
  167. .v-filterselect-no-input .v-filterselect-input {
  168. cursor: default;
  169. }
  170. /* Error styles (disabled by default)
  171. .v-filterselect-error .v-filterselect-input,
  172. .#{$primaryStyleName}-error .#{$primaryStyleName}-option,
  173. .#{$primaryStyleName}-error .#{$primaryStyleName}-select,
  174. .#{$primaryStyleName}-error .#{$primaryStyleName}-twincol-selections,
  175. .#{$primaryStyleName}-error .#{$primaryStyleName}-twincol-options {
  176. background: #ffaaaa;
  177. }
  178. */
  179. /* Required field styles (disabled by default)
  180. .v-filterselect-error .v-filterselect-input,
  181. .#{$primaryStyleName}-required .#{$primaryStyleName}-option,
  182. .#{$primaryStyleName}-required .#{$primaryStyleName}-select,
  183. .#{$primaryStyleName}-required .#{$primaryStyleName}-twincol-selections,
  184. .#{$primaryStyleName}-required .#{$primaryStyleName}-twincol-options {
  185. background: #ffaaaa;
  186. }
  187. */
  188. }