dropdown.less 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. // ==========================================================================
  2. // DROPDOWN
  3. //
  4. // dropdown.scss
  5. // ==========================================================================
  6. .select-input {
  7. display: inline-block;
  8. position: relative;
  9. width: auto;
  10. max-width: 100%;
  11. margin: 0 5px;
  12. padding: 0 12px 0 6px;
  13. border: @grafanaPanelBorder;
  14. background-color: @grafanaSelectBackground;
  15. background-color: red;
  16. overflow: hidden;
  17. vertical-align: top;
  18. -webkit-border-radius: 3px;
  19. -moz-border-radius: 3px;
  20. border-radius: 3px;
  21. }
  22. .select-input > select {
  23. width: 115%;
  24. min-width: 110%;
  25. max-width: 115%;
  26. height: 24px;
  27. margin: 0;
  28. padding: 0 20px 0 0;
  29. border: 0;
  30. outline: none;
  31. background: transparent;
  32. color: @linkColor;
  33. font-size: 16px;
  34. font-weight: 400;
  35. line-height: 24px;
  36. text-indent: .01px;
  37. text-overflow: '';
  38. -webkit-appearance: none;
  39. -moz-appearance: menulist-text; // was set to "window" and caused odd display on windows and linux.
  40. appearance: none;
  41. }
  42. // This hides native dropdown button arrow in IE
  43. .select-input > select::-ms-expand {
  44. display: none;
  45. }
  46. .select-input:after {
  47. position: absolute;
  48. top: 50%;
  49. right: 10px;
  50. height: 12px;
  51. margin-top: -6px;
  52. padding: 0;
  53. background-color: transparent;
  54. color: @linkColor;
  55. font: normal normal normal 14px/1 FontAwesome;
  56. text-align: center;
  57. content: '\f0d7';
  58. pointer-events: none;
  59. }
  60. .select-input > select:focus {
  61. outline: none;
  62. }
  63. // This hides focus around selected option in FF
  64. .select-input > select:-moz-focusring {
  65. color: transparent;
  66. text-shadow: 0 0 0 #adafae;
  67. }
  68. .rt-form .select-input {
  69. margin: 0;
  70. background: @grafanaSelectBackground;
  71. }
  72. .rt-form .select-interior {
  73. margin: 0;
  74. background-color: @inputBackground;
  75. border: 1px solid @inputBorder;
  76. }
  77. .rt-form .select-input > select {
  78. height: 34px;
  79. line-height: 34px;
  80. }