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.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. @mixin runo-select($primaryStyleName : v-filterselect) {
  2. $select-button-width: 25px;
  3. $select-button-negative-width: -25px;
  4. .v-select-select {
  5. font-size: 13px;
  6. }
  7. /* Twincol style */
  8. .v-select-twincol-options,
  9. .v-select-twincol-selections {
  10. font-size: 13px;
  11. }
  12. .v-select-twincol-buttons {
  13. padding: 2px; /* does not work in first render in FF ? */
  14. }
  15. /** Filterselect aka ComboBox styles */
  16. .#{$primaryStyleName} {
  17. height: 23px;
  18. background: transparent url(img/bg-left-filter.png) no-repeat;
  19. padding-left: 4px;
  20. padding-right: $select-button-width; /* Space for the button */
  21. }
  22. &.v-app .#{$primaryStyleName} .#{$primaryStyleName}-input,
  23. .v-window .#{$primaryStyleName} .#{$primaryStyleName}-input,
  24. .v-popupview-popup .#{$primaryStyleName} .#{$primaryStyleName}-input {
  25. background: transparent url(img/bg-center-filter.png) no-repeat 1px 0;
  26. border: none;
  27. height: 23px;
  28. margin: 0;
  29. padding: 2px 0 1px 2px;
  30. font-size: 13px;
  31. }
  32. .#{$primaryStyleName}-prompt .#{$primaryStyleName}-input {
  33. font-style: normal;
  34. }
  35. .#{$primaryStyleName}-input:focus {
  36. /* remove safari/mac outline from this element */
  37. outline: none;
  38. }
  39. .#{$primaryStyleName}-focus {
  40. outline: 1px solid #5daee8;
  41. outline-offset: -1px;
  42. }
  43. .v-sa & .#{$primaryStyleName}-focus {
  44. /* place safari focus outline around the whole thing */
  45. outline: 5px auto -webkit-focus-ring-color;
  46. outline-offset: -4px;
  47. }
  48. .v-ch & .#{$primaryStyleName}-focus {
  49. /* remove safari focus outline offset for chrome (evaluates also as safari) */
  50. outline-offset: 0;
  51. }
  52. .#{$primaryStyleName}-button {
  53. width: $select-button-width;
  54. margin-right: $select-button-negative-width;
  55. height: 23px;
  56. background: transparent url(img/bg-right-filter.png);
  57. }
  58. .#{$primaryStyleName}-button:hover {
  59. background-position: bottom left;
  60. }
  61. .v-disabled .#{$primaryStyleName}-button:hover,
  62. .v-readonly .#{$primaryStyleName}-button:hover {
  63. background-position: top left;
  64. }
  65. .#{$primaryStyleName}.v-readonly .#{$primaryStyleName}-input {
  66. background: transparent;
  67. }
  68. .#{$primaryStyleName}-suggestpopup {
  69. background: #f6f7f7;
  70. border: 1px solid #b6bbbc;
  71. font-family: "Trebuchet MS", geneva, helvetica, arial, tahoma, verdana, sans-serif;
  72. color: #464f52;
  73. font-size: 12px;
  74. line-height: 18px;
  75. margin-top: -1px;
  76. }
  77. .#{$primaryStyleName}-suggestmenu .gwt-MenuItem {
  78. padding: 1px 6px;
  79. cursor: pointer;
  80. min-height: 21px;
  81. }
  82. .#{$primaryStyleName}-suggestmenu .gwt-MenuItem .v-icon {
  83. margin-right: 3px;
  84. }
  85. .#{$primaryStyleName}-suggestmenu .gwt-MenuItem-selected {
  86. background: #5daee8;
  87. color: #fff;
  88. }
  89. .#{$primaryStyleName}-nextpage,
  90. .#{$primaryStyleName}-nextpage-off,
  91. .#{$primaryStyleName}-prevpage-off,
  92. .#{$primaryStyleName}-prevpage {
  93. height: 11px;
  94. width:100%;
  95. background: transparent url(img/button-bg.png) no-repeat 50% 0;
  96. margin: 2px 0 0 0;
  97. }
  98. .#{$primaryStyleName}-prevpage,
  99. .#{$primaryStyleName}-prevpage-off {
  100. background-position: 50% -1px;
  101. margin: 0 0 2px 0;
  102. }
  103. .#{$primaryStyleName}-prevpage:hover {
  104. background-position: 50% bottom;
  105. }
  106. .#{$primaryStyleName}-nextpage:hover {
  107. background-position: 50% -12px;
  108. }
  109. .#{$primaryStyleName}-nextpage span,
  110. .#{$primaryStyleName}-nextpage-off span,
  111. .#{$primaryStyleName}-prevpage-off span,
  112. .#{$primaryStyleName}-prevpage span {
  113. display: block;
  114. height: 12px;
  115. width:100%;
  116. background: transparent url(img/arrow-up.png) no-repeat 50% 40%;
  117. text-indent: -90000px;
  118. cursor: pointer;
  119. overflow: hidden;
  120. }
  121. .#{$primaryStyleName}-nextpage span,
  122. .#{$primaryStyleName}-nextpage-off span {
  123. background: transparent url(img/arrow-down.png) no-repeat 50% 60%;
  124. }
  125. .#{$primaryStyleName}-status {
  126. font-size: 11px;
  127. line-height: 11px;
  128. width: 100%;
  129. padding: 4px 0px;
  130. height: 11px;
  131. border-top: 1px solid #b6bbbc;
  132. }
  133. /* Error styles (disabled by default)
  134. ----------------------------------
  135. .#{$primaryStyleName}-error {
  136. background-image: url(img/bg-left-filter-error.png);
  137. }
  138. .#{$primaryStyleName}-error .#{$primaryStyleName}-input {
  139. background-image: url(img/bg-center-filter-error.png);
  140. }
  141. .#{$primaryStyleName}-error .#{$primaryStyleName}-button {
  142. background-image: url(img/bg-right-filter-error.png);
  143. }
  144. .v-select-error .v-select-option,
  145. .v-select-error .v-select-select,
  146. .v-select-error .v-select-twincol-selections,
  147. .v-select-error .v-select-twincol-options {
  148. background: #FFE0E0;
  149. }
  150. */
  151. /* Required field styles (disabled by default)
  152. --------------------------------------------
  153. .v-select-required .v-select-option,
  154. .v-select-required .v-select-select,
  155. .v-select-required .v-select-twincol-selections,
  156. .v-select-required .v-select-twincol-options {
  157. background: #FFE0E0;
  158. }
  159. */
  160. }