You are here

multiselect.css in Multiselect 8

Same filename and directory in other branches
  1. 2.x css/multiselect.css

Styles for the multiselect module.

File

css/multiselect.css
View source
  1. /**
  2. * @file
  3. * Styles for the multiselect module.
  4. */
  5. .multiselect-wrapper:after {
  6. content: "";
  7. display: table;
  8. clear: both;
  9. }
  10. .multiselect-wrapper select.form-multiselect {
  11. padding: 2px;
  12. width: 250px;
  13. border: 1px solid #ccc;
  14. border-top-color: #999;
  15. background: #fff;
  16. color: #333;
  17. }
  18. .multiselect-wrapper select.form-multiselect:focus {
  19. border-color: #ace;
  20. color: #000;
  21. }
  22. .multiselect-wrapper label {
  23. color: #999;
  24. font-weight: bold;
  25. }
  26. div.multiselect-available,
  27. div.multiselect-selected {
  28. float: left;
  29. width: 250px;
  30. }
  31. [dir="rtl"] div.multiselect-available,
  32. [dir="rtl"] div.multiselect-selected {
  33. float: right;
  34. }
  35. .form-disabled select.form-multiselect {
  36. background-color: #eee;
  37. color: #777;
  38. }
  39. .multiselect-btns > ul {
  40. float: left;
  41. margin: 10px 10px 0 20px;
  42. padding: 0;
  43. list-style: none;
  44. }
  45. [dir="rtl"] .multiselect-btns > ul {
  46. float: right;
  47. margin: 10px 20px 0 10px;
  48. }
  49. .multiselect-btns > ul > li.multiselect-add,
  50. .multiselect-btns > ul > li.multiselect-remove {
  51. display: block;
  52. overflow: hidden;
  53. margin: 0;
  54. padding: 0;
  55. width: 33px;
  56. height: 38px;
  57. background: url(../images/remove.png) no-repeat 0 0;
  58. text-indent: -9999px;
  59. }
  60. [dir="rtl"] .multiselect-btns > ul > li.multiselect-add,
  61. [dir="rtl"] .multiselect-btns > ul > li.multiselect-remove {
  62. background: url(../images/remove-rtl.png) no-repeat 0 0;
  63. }
  64. .multiselect-btns > ul > li.multiselect-add {
  65. margin-bottom: 15px;
  66. background: url(../images/add.png) no-repeat 0 0;
  67. }
  68. [dir="rtl"] .multiselect-btns > ul > li.multiselect-add {
  69. background: url(../images/add-rtl.png) no-repeat 0 0;
  70. }
  71. .multiselect-btns > ul > li.multiselect-add:hover,
  72. .multiselect-btns > ul > li.multiselect-remove:hover {
  73. background-position: -33px 0;
  74. }
  75. .multiselect-btns > ul > li.multiselect-add:active,
  76. .multiselect-btns > ul > li.multiselect-remove:active {
  77. background-position: -66px 0;
  78. }
  79. /* Responsive Styles */
  80. @media screen and (max-width: 991px) {
  81. .multiselect-wrapper select.form-multiselect {
  82. width: 100%;
  83. }
  84. div.multiselect-available,
  85. div.multiselect-selected {
  86. float: none;
  87. width: 100%;
  88. }
  89. .multiselect-btns > ul {
  90. float: none;
  91. display: flex;
  92. position: relative;
  93. left: 35%;
  94. top: 10px;
  95. }
  96. .multiselect-available.form-multiselect option,
  97. .multiselect-selected.form-multiselect option {
  98. padding: 15px;
  99. }
  100. .multiselect-btns > ul > li.multiselect-add {
  101. background: url(../images/add-mobile.png) no-repeat 0 0;
  102. }
  103. .multiselect-btns > ul > li.multiselect-remove {
  104. background: url(../images/remove-mobile.png) no-repeat 0 0;
  105. }
  106. .multiselect-btns > ul > li.multiselect-add,
  107. .multiselect-btns > ul > li.multiselect-remove {
  108. margin-right: 50px;
  109. width: 35px;
  110. }
  111. }