search.less 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. .search-container {
  2. left: 52px;
  3. top: 33px;
  4. margin: 15px;
  5. z-index: 1000;
  6. position: absolute;
  7. width: 700px;
  8. box-shadow: 0px 0px 55px 0px black;
  9. padding: 10px;
  10. background-color: @grafanaPanelBackground;
  11. border: 1px solid @grafanaTargetFuncBackground;
  12. .label-tag {
  13. margin-left: 6px;
  14. font-size: 11px;
  15. padding: 2px 6px;
  16. }
  17. }
  18. // Search
  19. .search-field-wrapper {
  20. padding-bottom: 10px;
  21. input {
  22. width: 100%;
  23. padding: 8px 8px;
  24. height: 100%;
  25. box-sizing: border-box;
  26. }
  27. button {
  28. margin: 0 4px 0 0;
  29. }
  30. > span {
  31. display: block;
  32. overflow: hidden;
  33. }
  34. }
  35. .search-results-container {
  36. height: 450px;
  37. overflow: auto;
  38. display: block;
  39. line-height: 28px;
  40. .search-item:hover, .search-item.selected {
  41. background-color: @grafanaListHighlight;
  42. }
  43. .selected {
  44. .search-result-tag {
  45. opacity: 0.70;
  46. color: white;
  47. }
  48. }
  49. .fa-star, .fa-star-o {
  50. padding-left: 13px;
  51. }
  52. .fa-star {
  53. color: @orange;
  54. }
  55. .search-result-link {
  56. color: @grafanaListMainLinkColor;
  57. .fa {
  58. padding-right: 10px;
  59. }
  60. }
  61. .search-item {
  62. display: block;
  63. padding: 3px 10px;
  64. white-space: nowrap;
  65. background-color: @grafanaListBackground;
  66. margin-bottom: 4px;
  67. .search-result-icon:before {
  68. content: "\f009";
  69. }
  70. &.search-item-dash-home .search-result-icon:before {
  71. content: "\f015";
  72. }
  73. }
  74. .search-result-tags {
  75. float: right;
  76. }
  77. .search-result-actions {
  78. float: right;
  79. padding-left: 20px;
  80. }
  81. }
  82. .search-switches {
  83. position: absolute;
  84. top: 19px;
  85. right: 21px;
  86. }
  87. .search-button-row {
  88. padding-top: 20px;
  89. button, a {
  90. margin-right: 10px;
  91. }
  92. }