layout.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. .select2-container.select2-theme-default {
  2. .selection {
  3. .single-select {
  4. background-color: #fff;
  5. border: 1px solid #aaa;
  6. border-radius: 4px;
  7. .rendered-selection {
  8. color: #444;
  9. line-height: 28px;
  10. .placeholder {
  11. color: #999;
  12. }
  13. }
  14. }
  15. .multiple-select {
  16. background-color: white;
  17. border: 1px solid #aaa;
  18. border-radius: 4px;
  19. .rendered-selection {
  20. list-style: none;
  21. margin: 0;
  22. padding: 5px;
  23. padding-bottom: 0;
  24. .placeholder {
  25. color: #999;
  26. float: left;
  27. }
  28. .choice {
  29. background-color: #e4e4e4;
  30. border: 1px solid #aaa;
  31. border-radius: 4px;
  32. float: left;
  33. margin-right: 5px;
  34. margin-bottom: 5px;
  35. padding: 0 5px;
  36. .remove {
  37. color: #999;
  38. display: inline-block;
  39. font-weight: bold;
  40. margin-right: 2px;
  41. &:hover {
  42. color: #333;
  43. }
  44. }
  45. }
  46. }
  47. }
  48. }
  49. &.open {
  50. .selection {
  51. .single-select,
  52. .multiple-select {
  53. border-bottom-left-radius: 0;
  54. border-bottom-right-radius: 0;
  55. }
  56. }
  57. }
  58. .dropdown {
  59. .search {
  60. input {
  61. border: 1px solid #aaa;
  62. }
  63. }
  64. .results {
  65. &> .options {
  66. max-height: 200px;
  67. overflow-y: auto;
  68. }
  69. .options {
  70. .option {
  71. &[role=group] {
  72. padding: 0;
  73. .group-label {
  74. cursor: default;
  75. display: block;
  76. padding: 6px;
  77. }
  78. }
  79. &[aria-disabled=true] {
  80. color: #999;
  81. }
  82. &[aria-selected=true] {
  83. background-color: #ddd;
  84. }
  85. &[aria-selected].highlighted {
  86. background-color: #5897fb;
  87. color: white;
  88. }
  89. }
  90. }
  91. }
  92. }
  93. }