_explore.scss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. .explore {
  2. width: 100%;
  3. &-container {
  4. padding: 2rem;
  5. }
  6. &-wrapper {
  7. display: flex;
  8. > .explore-split {
  9. width: 50%;
  10. }
  11. }
  12. // Push split button a bit
  13. .explore-first-button {
  14. margin-left: 15px;
  15. }
  16. // Graph panel needs a bit extra padding at top
  17. .panel-container {
  18. padding: $panel-padding;
  19. padding-top: 10px;
  20. }
  21. // Make sure wrap buttons around on small screens
  22. .navbar {
  23. flex-wrap: wrap;
  24. height: auto;
  25. }
  26. .navbar-page-btn {
  27. margin-right: 1rem;
  28. // Explore icon in header
  29. .fa {
  30. font-size: 100%;
  31. opacity: 0.75;
  32. margin-right: 0.5em;
  33. }
  34. }
  35. // Toggle mode
  36. .navbar-button.active {
  37. color: $btn-active-text-color;
  38. background-color: $btn-active-bg;
  39. }
  40. .elapsed-time {
  41. position: absolute;
  42. left: 0;
  43. right: 0;
  44. top: 3.5rem;
  45. text-align: center;
  46. font-size: 0.8rem;
  47. }
  48. .graph-legend {
  49. flex-wrap: wrap;
  50. }
  51. .timepicker {
  52. display: flex;
  53. &-rangestring {
  54. margin-left: 0.5em;
  55. }
  56. }
  57. .run-icon {
  58. margin-left: 0.5em;
  59. transform: rotate(90deg);
  60. }
  61. .relative {
  62. position: relative;
  63. }
  64. }
  65. .explore + .explore {
  66. border-left: 1px dotted $table-border;
  67. }
  68. .query-row {
  69. display: flex;
  70. & + & {
  71. margin-top: 0.5rem;
  72. }
  73. }
  74. .query-row-tools {
  75. width: 4rem;
  76. }
  77. .query-field {
  78. font-size: $font-size-root;
  79. font-family: $font-family-monospace;
  80. height: auto;
  81. }
  82. .query-field-wrapper {
  83. position: relative;
  84. display: inline-block;
  85. padding: 6px 7px 4px;
  86. width: 100%;
  87. cursor: text;
  88. line-height: $line-height-base;
  89. color: $text-color-weak;
  90. background-color: $panel-bg;
  91. background-image: none;
  92. border: $panel-border;
  93. border-radius: $border-radius;
  94. transition: all 0.3s;
  95. }
  96. .explore-typeahead {
  97. .typeahead {
  98. position: absolute;
  99. z-index: auto;
  100. top: -10000px;
  101. left: -10000px;
  102. opacity: 0;
  103. border-radius: $border-radius;
  104. transition: opacity 0.75s;
  105. border: $panel-border;
  106. max-height: calc(66vh);
  107. overflow-y: scroll;
  108. max-width: calc(66%);
  109. overflow-x: hidden;
  110. outline: none;
  111. list-style: none;
  112. background: $panel-bg;
  113. color: $text-color;
  114. transition: opacity 0.4s ease-out;
  115. box-shadow: $typeahead-shadow;
  116. }
  117. .typeahead-group__title {
  118. color: $text-color-weak;
  119. font-size: $font-size-sm;
  120. line-height: $line-height-base;
  121. padding: $input-padding-y $input-padding-x;
  122. }
  123. .typeahead-item {
  124. height: auto;
  125. font-family: $font-family-monospace;
  126. padding: $input-padding-y $input-padding-x;
  127. padding-left: $input-padding-x-lg;
  128. font-size: $font-size-sm;
  129. text-overflow: ellipsis;
  130. overflow: hidden;
  131. z-index: 1;
  132. display: block;
  133. white-space: nowrap;
  134. cursor: pointer;
  135. transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1),
  136. background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
  137. }
  138. .typeahead-item__selected {
  139. background-color: $typeahead-selected-bg;
  140. color: $typeahead-selected-color;
  141. }
  142. }
  143. /* SYNTAX */
  144. .explore {
  145. .token.comment,
  146. .token.block-comment,
  147. .token.prolog,
  148. .token.doctype,
  149. .token.cdata {
  150. color: $text-color-weak;
  151. }
  152. .token.punctuation {
  153. color: $text-color-weak;
  154. }
  155. .token.property,
  156. .token.tag,
  157. .token.boolean,
  158. .token.number,
  159. .token.function-name,
  160. .token.constant,
  161. .token.symbol,
  162. .token.deleted {
  163. color: $query-red;
  164. }
  165. .token.selector,
  166. .token.attr-name,
  167. .token.string,
  168. .token.char,
  169. .token.function,
  170. .token.builtin,
  171. .token.inserted {
  172. color: $query-green;
  173. }
  174. .token.operator,
  175. .token.entity,
  176. .token.url,
  177. .token.variable {
  178. color: $query-purple;
  179. }
  180. .token.atrule,
  181. .token.attr-value,
  182. .token.keyword,
  183. .token.class-name {
  184. color: $query-blue;
  185. }
  186. .token.regex,
  187. .token.important {
  188. color: $query-orange;
  189. }
  190. .token.important {
  191. font-weight: normal;
  192. }
  193. .token.bold {
  194. font-weight: bold;
  195. }
  196. .token.italic {
  197. font-style: italic;
  198. }
  199. .token.entity {
  200. cursor: help;
  201. }
  202. .namespace {
  203. opacity: 0.7;
  204. }
  205. }