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.css 2.4KB

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