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.

multiselect.scss 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /**
  2. * @copyright Copyright (c) 2011, Jan-Christoph Borchardt <hey@jancborchardt.net>
  3. *
  4. * @license GNU AGPL version 3 or any later version
  5. *
  6. */
  7. ul.multiselectoptions {
  8. background-color: #fff;
  9. border: 1px solid #ddd;
  10. border-top: none;
  11. box-shadow: 0 1px 1px #ddd;
  12. padding-top: 8px;
  13. position: absolute;
  14. max-height: 20em;
  15. overflow-y: auto;
  16. z-index: 49;
  17. &.down {
  18. border-bottom-left-radius: 8px;
  19. border-bottom-right-radius: 8px;
  20. width: 100%;
  21. /* do not cut off group names */
  22. -webkit-box-shadow: 0px 0px 20px rgba(29, 45, 68, 0.4);
  23. -moz-box-shadow: 0px 0px 20px rgba(29, 45, 68, 0.4);
  24. box-shadow: 0px 0px 20px rgba(29, 45, 68, 0.4);
  25. }
  26. &.up {
  27. border-top-left-radius: 8px;
  28. border-top-right-radius: 8px;
  29. }
  30. > li {
  31. overflow: hidden;
  32. white-space: nowrap;
  33. margin-left: 7px;
  34. input[type='checkbox'] {
  35. + label {
  36. font-weight: normal;
  37. display: inline-block;
  38. width: 100%;
  39. padding: 5px 27px;
  40. margin-left: -27px;
  41. /* to have area around checkbox clickable as well */
  42. text-overflow: ellipsis;
  43. overflow: hidden;
  44. }
  45. &:checked + label {
  46. font-weight: bold;
  47. }
  48. }
  49. }
  50. input.new {
  51. padding-bottom: 3px;
  52. padding-top: 3px;
  53. margin: 0;
  54. }
  55. > li.creator {
  56. padding: 10px;
  57. margin: 0;
  58. font-weight: bold;
  59. > input {
  60. width: 95% !important;
  61. /* do not constrain size of text input */
  62. padding: 5px;
  63. margin: -5px;
  64. }
  65. }
  66. }
  67. div.multiselect,
  68. select.multiselect {
  69. display: inline-block;
  70. max-width: 200px;
  71. min-width: 150px !important;
  72. padding-right: 10px;
  73. min-height: 20px;
  74. position: relative;
  75. vertical-align: bottom;
  76. }
  77. select.multiselect {
  78. height: 30px;
  79. min-width: 113px;
  80. }
  81. /* To make a select look like a multiselect until it's initialized */
  82. div.multiselect {
  83. &.active {
  84. background-color: #fff;
  85. position: relative;
  86. z-index: 50;
  87. }
  88. &.up {
  89. border-top: 0 none;
  90. border-top-left-radius: 0;
  91. border-top-right-radius: 0;
  92. }
  93. &.down {
  94. border-bottom: none;
  95. border-bottom-left-radius: 0;
  96. border-bottom-right-radius: 0;
  97. }
  98. > span {
  99. &:first-child {
  100. float: left;
  101. margin-right: 32px;
  102. overflow: hidden;
  103. text-overflow: ellipsis;
  104. width: 90%;
  105. white-space: nowrap;
  106. }
  107. &:last-child {
  108. position: absolute;
  109. right: 8px;
  110. top: 8px;
  111. }
  112. }
  113. }