multiselect.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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: .5em;
  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: .5em;
  17. border-bottom-right-radius: .5em;
  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: .5em;
  25. border-top-right-radius: .5em;
  26. }
  27. ul.multiselectoptions>li {
  28. overflow: hidden;
  29. white-space: nowrap;
  30. }
  31. ul.multiselectoptions > li > input[type="checkbox"] {
  32. margin: 10px 7px;
  33. vertical-align: middle;
  34. }
  35. ul.multiselectoptions > li input[type='checkbox']+label {
  36. font-weight: normal;
  37. display: inline-block;
  38. width: 100%;
  39. padding: 5px 27px;
  40. margin-left: -27px; /* to have area around checkbox clickable as well */
  41. }
  42. ul.multiselectoptions > li input[type='checkbox']:checked+label {
  43. font-weight: bold;
  44. }
  45. div.multiselect {
  46. display: inline-block;
  47. max-width: 400px;
  48. min-width: 150px;
  49. padding-right: .6em;
  50. position: relative;
  51. vertical-align: bottom;
  52. }
  53. div.multiselect.active {
  54. background-color: #fff;
  55. position: relative;
  56. z-index: 50;
  57. }
  58. div.multiselect.up {
  59. border-top: 0 none;
  60. border-top-left-radius: 0;
  61. border-top-right-radius: 0;
  62. }
  63. div.multiselect.down {
  64. border-bottom: none;
  65. border-bottom-left-radius: 0;
  66. border-bottom-right-radius: 0;
  67. }
  68. div.multiselect>span:first-child {
  69. float: left;
  70. margin-right: 2em;
  71. overflow: hidden;
  72. text-overflow: ellipsis;
  73. width: 90%;
  74. }
  75. div.multiselect>span:last-child {
  76. position: absolute;
  77. right: .8em;
  78. }
  79. ul.multiselectoptions input.new {
  80. padding-bottom: .2em;
  81. padding-top: .2em;
  82. margin: 0;
  83. }
  84. ul.multiselectoptions > li.creator {
  85. padding: 10px;
  86. font-weight: bold;
  87. }
  88. ul.multiselectoptions > li.creator > input {
  89. width: 95% !important; /* do not constrain size of text input */
  90. padding: 5px;
  91. margin: -5px;
  92. }
  93. .ie8 div.multiselect span:first-child {
  94. display:block;
  95. position:relative;
  96. width: 90%;
  97. margin-right:-1px;
  98. }