暫無描述

bootstrap-multiselect.less 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. /**
  2. * Bootstrap Multiselect (https://github.com/davidstutz/bootstrap-multiselect)
  3. *
  4. * Apache License, Version 2.0:
  5. * Copyright (c) 2012 - 2015 David Stutz
  6. *
  7. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  8. * use this file except in compliance with the License. You may obtain a
  9. * copy of the License at http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations
  15. * under the License.
  16. *
  17. * BSD 3-Clause License:
  18. * Copyright (c) 2012 - 2015 David Stutz
  19. * All rights reserved.
  20. *
  21. * Redistribution and use in source and binary forms, with or without
  22. * modification, are permitted provided that the following conditions are met:
  23. * - Redistributions of source code must retain the above copyright notice,
  24. * this list of conditions and the following disclaimer.
  25. * - Redistributions in binary form must reproduce the above copyright notice,
  26. * this list of conditions and the following disclaimer in the documentation
  27. * and/or other materials provided with the distribution.
  28. * - Neither the name of David Stutz nor the names of its contributors may be
  29. * used to endorse or promote products derived from this software without
  30. * specific prior written permission.
  31. *
  32. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  33. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  34. * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  35. * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
  36. * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  37. * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  38. * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  39. * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  40. * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  41. * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  42. * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  43. */
  44. .multiselect-container {
  45. position: absolute;
  46. list-style-type: none;
  47. margin: 0;
  48. padding: 0;
  49. .input-group {
  50. margin: 5px;
  51. }
  52. > li {
  53. padding: 0;
  54. > a.multiselect-all label {
  55. font-weight: bold;
  56. }
  57. &.multiselect-group label {
  58. margin: 0;
  59. padding: 3px 20px 3px 20px;
  60. height: 100%;
  61. font-weight: bold;
  62. }
  63. &.multiselect-group-clickable label {
  64. cursor: pointer;
  65. }
  66. > a {
  67. padding: 0;
  68. > label {
  69. margin: 0;
  70. height: 100%;
  71. cursor: pointer;
  72. font-weight: normal;
  73. padding: 3px 20px 3px 40px;
  74. &.radio, &.checkbox {
  75. margin: 0;
  76. }
  77. > input[type="checkbox"] {
  78. margin-bottom:5px;
  79. }
  80. }
  81. }
  82. }
  83. }
  84. .btn-group > .btn-group:nth-child(2) > .multiselect.btn {
  85. border-top-left-radius: 4px;
  86. border-bottom-left-radius: 4px;
  87. }
  88. .form-inline .multiselect-container{
  89. label.checkbox, label.radio{
  90. padding: 3px 20px 3px 40px;
  91. }
  92. li a label{
  93. &.checkbox input[type="checkbox"], &.radio input[type="radio"]{
  94. margin-left: -20px;
  95. margin-right: 0;
  96. }
  97. }
  98. }