multi-select.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. .ms-container{
  2. background: transparent url('../images/switch.png') no-repeat 50% 50%;
  3. width: 370px;
  4. }
  5. .ms-container:after{
  6. content: ".";
  7. display: block;
  8. height: 0;
  9. line-height: 0;
  10. font-size: 0;
  11. clear: both;
  12. min-height: 0;
  13. visibility: hidden;
  14. }
  15. .ms-container .ms-selectable, .ms-container .ms-selection{
  16. background: #fff;
  17. color: #555555;
  18. float: left;
  19. width: 45%;
  20. }
  21. .ms-container .ms-selection{
  22. float: right;
  23. }
  24. .ms-container .ms-list{
  25. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  26. -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  27. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  28. -webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
  29. -moz-transition: border linear 0.2s, box-shadow linear 0.2s;
  30. -ms-transition: border linear 0.2s, box-shadow linear 0.2s;
  31. -o-transition: border linear 0.2s, box-shadow linear 0.2s;
  32. transition: border linear 0.2s, box-shadow linear 0.2s;
  33. border: 1px solid #ccc;
  34. -webkit-border-radius: 3px;
  35. -moz-border-radius: 3px;
  36. border-radius: 3px;
  37. position: relative;
  38. height: 200px;
  39. padding: 0;
  40. overflow-y: auto;
  41. }
  42. .ms-container .ms-list.ms-focus{
  43. border-color: rgba(82, 168, 236, 0.8);
  44. -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  45. -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  46. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  47. outline: 0;
  48. outline: thin dotted \9;
  49. }
  50. .ms-container ul{
  51. margin: 0;
  52. list-style-type: none;
  53. padding: 0;
  54. }
  55. .ms-container .ms-optgroup-container{
  56. width: 100%;
  57. }
  58. .ms-container .ms-optgroup-label{
  59. margin: 0;
  60. padding: 5px 0px 0px 5px;
  61. cursor: pointer;
  62. color: #999;
  63. }
  64. .ms-container .ms-selectable li.ms-elem-selectable,
  65. .ms-container .ms-selection li.ms-elem-selection{
  66. border-bottom: 1px #eee solid;
  67. padding: 2px 10px;
  68. color: #555;
  69. font-size: 14px;
  70. }
  71. .ms-container .ms-selectable li.ms-hover,
  72. .ms-container .ms-selection li.ms-hover{
  73. cursor: pointer;
  74. color: #fff;
  75. text-decoration: none;
  76. background-color: #08c;
  77. }
  78. .ms-container .ms-selectable li.disabled,
  79. .ms-container .ms-selection li.disabled{
  80. background-color: #eee;
  81. color: #aaa;
  82. cursor: text;
  83. }