Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

multiselect.css 2.4KB

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: 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. }
  41. ul.multiselectoptions > li input[type='checkbox']:checked+label {
  42. font-weight: bold;
  43. }
  44. div.multiselect, select.multiselect {
  45. display: inline-block;
  46. max-width: 200px;
  47. min-width: 150px !important;
  48. padding-right: 10px;
  49. min-height: 20px;
  50. position: relative;
  51. vertical-align: bottom;
  52. }
  53. /* To make a select look like a multiselect until it's initialized */
  54. select.multiselect {
  55. height: 30px;
  56. min-width: 113px;
  57. }
  58. div.multiselect.active {
  59. background-color: #fff;
  60. position: relative;
  61. z-index: 50;
  62. }
  63. div.multiselect.up {
  64. border-top: 0 none;
  65. border-top-left-radius: 0;
  66. border-top-right-radius: 0;
  67. }
  68. div.multiselect.down {
  69. border-bottom: none;
  70. border-bottom-left-radius: 0;
  71. border-bottom-right-radius: 0;
  72. }
  73. div.multiselect>span:first-child {
  74. float: left;
  75. margin-right: 32px;
  76. overflow: hidden;
  77. text-overflow: ellipsis;
  78. width: 90%;
  79. white-space: nowrap;
  80. }
  81. div.multiselect>span:last-child {
  82. position: absolute;
  83. right: 8px;
  84. top: 8px;
  85. }
  86. ul.multiselectoptions input.new {
  87. padding-bottom: 3px;
  88. padding-top: 3px;
  89. margin: 0;
  90. }
  91. ul.multiselectoptions > li.creator {
  92. padding: 10px;
  93. font-weight: bold;
  94. }
  95. ul.multiselectoptions > li.creator > input {
  96. width: 95% !important; /* do not constrain size of text input */
  97. padding: 5px;
  98. margin: -5px;
  99. }