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