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 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. }
  67. /**
  68. *
  69. *
  70. *
  71. * @group twin-column-select
  72. */
  73. @mixin valo-twincolselect-add-icon-style {
  74. font-family: ThemeIcons;
  75. content: "\f054";
  76. }
  77. /**
  78. *
  79. *
  80. *
  81. * @group twin-column-select
  82. */
  83. @mixin valo-twincolselect-remove-icon-style {
  84. font-family: ThemeIcons;
  85. content: "\f053";
  86. }