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.

_twincolselect.scss 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. /**
  2. *
  3. *
  4. * @param {string} $primary-stylename (v-select-twincol) -
  5. *
  6. * @group twin-column-select
  7. */
  8. @mixin valo-twincolselect ($primary-stylename: v-select-twincol) {
  9. .#{$primary-stylename} {
  10. white-space: normal;
  11. select {
  12. @include valo-nativeselect-select-style;
  13. }
  14. .v-textfield,
  15. .v-nativebutton {
  16. width: auto !important;
  17. margin-top: round($v-unit-size/4);
  18. }
  19. .v-nativebutton {
  20. margin-left: round($v-unit-size/4);
  21. }
  22. }
  23. .#{$primary-stylename}-caption-left,
  24. .#{$primary-stylename}-caption-right {
  25. @include valo-caption-style;
  26. }
  27. .#{$primary-stylename}-buttons {
  28. white-space: nowrap;
  29. display: inline-block;
  30. vertical-align: top;
  31. position: relative;
  32. min-width: 3.5em;
  33. .v-button {
  34. @include valo-widget-style;
  35. position: absolute;
  36. left: round($v-unit-size/4);
  37. right: round($v-unit-size/4);
  38. top: $v-unit-size - first-number($v-border);
  39. padding: 0;
  40. text-align: center;
  41. &:first-child {
  42. top: 0;
  43. }
  44. }
  45. .v-button-caption {
  46. display: none;
  47. }
  48. .v-button:focus {
  49. z-index: 1;
  50. }
  51. @if $v-border-radius > 0 {
  52. .v-button:first-child {
  53. border-radius: $v-border-radius $v-border-radius 0 0;
  54. }
  55. .v-button:last-child {
  56. border-radius: 0 0 $v-border-radius $v-border-radius;
  57. }
  58. }
  59. .v-button-wrap:before {
  60. @include valo-twincolselect-remove-icon-style;
  61. }
  62. .v-button:first-child .v-button-wrap:before {
  63. @include valo-twincolselect-add-icon-style;
  64. }
  65. }
  66. .#{$primary-stylename}-error {
  67. .#{$primary-stylename}-options,
  68. .#{$primary-stylename}-selections {
  69. @include valo-textfield-error-style;
  70. }
  71. }
  72. .#{$primary-stylename}-error-info {
  73. .#{$primary-stylename}-options,
  74. .#{$primary-stylename}-selections {
  75. @include valo-textfield-error-level-info-style;
  76. }
  77. }
  78. .#{$primary-stylename}-error-warning {
  79. .#{$primary-stylename}-options,
  80. .#{$primary-stylename}-selections {
  81. @include valo-textfield-error-level-warning-style;
  82. }
  83. }
  84. .#{$primary-stylename}-error-error {
  85. .#{$primary-stylename}-options,
  86. .#{$primary-stylename}-selections {
  87. @include valo-textfield-error-level-error-style;
  88. }
  89. }
  90. .#{$primary-stylename}-error-critical {
  91. .#{$primary-stylename}-options,
  92. .#{$primary-stylename}-selections {
  93. @include valo-textfield-error-level-critical-style;
  94. }
  95. }
  96. .#{$primary-stylename}-error-system {
  97. .#{$primary-stylename}-options,
  98. .#{$primary-stylename}-selections {
  99. @include valo-textfield-error-level-system-style;
  100. }
  101. }
  102. }
  103. /**
  104. *
  105. *
  106. *
  107. * @group twin-column-select
  108. */
  109. @mixin valo-twincolselect-add-icon-style {
  110. font-family: ThemeIcons;
  111. content: "\f054";
  112. }
  113. /**
  114. *
  115. *
  116. *
  117. * @group twin-column-select
  118. */
  119. @mixin valo-twincolselect-remove-icon-style {
  120. font-family: ThemeIcons;
  121. content: "\f053";
  122. }