_explore.scss 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. .explore {
  2. .graph-legend {
  3. flex-wrap: wrap;
  4. }
  5. }
  6. .query-row {
  7. position: relative;
  8. & + & {
  9. margin-top: 0.5rem;
  10. }
  11. }
  12. .query-row-tools {
  13. position: absolute;
  14. left: -4rem;
  15. top: 0.33rem;
  16. > * {
  17. margin-right: 0.25rem;
  18. }
  19. }
  20. .query-field {
  21. font-size: 14px;
  22. font-family: Consolas, Menlo, Courier, monospace;
  23. height: auto;
  24. }
  25. .query-field-wrapper {
  26. position: relative;
  27. display: inline-block;
  28. padding: 6px 7px 4px;
  29. width: 100%;
  30. cursor: text;
  31. line-height: 1.5;
  32. color: rgba(0, 0, 0, 0.65);
  33. background-color: #fff;
  34. background-image: none;
  35. border: 1px solid lightgray;
  36. border-radius: 3px;
  37. transition: all 0.3s;
  38. }
  39. .explore {
  40. .typeahead {
  41. position: absolute;
  42. z-index: auto;
  43. top: -10000px;
  44. left: -10000px;
  45. opacity: 0;
  46. border-radius: 4px;
  47. transition: opacity 0.75s;
  48. border: 1px solid #e4e4e4;
  49. max-height: calc(66vh);
  50. overflow-y: scroll;
  51. max-width: calc(66%);
  52. overflow-x: hidden;
  53. outline: none;
  54. list-style: none;
  55. background: #fff;
  56. color: rgba(0, 0, 0, 0.65);
  57. transition: opacity 0.4s ease-out;
  58. }
  59. .typeahead-group__title {
  60. color: rgba(0, 0, 0, 0.43);
  61. font-size: 12px;
  62. line-height: 1.5;
  63. padding: 8px 16px;
  64. }
  65. .typeahead-item {
  66. line-height: 200%;
  67. height: auto;
  68. font-family: Consolas, Menlo, Courier, monospace;
  69. padding: 0 16px 0 28px;
  70. font-size: 12px;
  71. text-overflow: ellipsis;
  72. overflow: hidden;
  73. margin-left: -1px;
  74. left: 1px;
  75. position: relative;
  76. z-index: 1;
  77. display: block;
  78. white-space: nowrap;
  79. cursor: pointer;
  80. 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),
  81. background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
  82. }
  83. .typeahead-item__selected {
  84. background-color: #ecf6fd;
  85. color: #108ee9;
  86. }
  87. }
  88. /* SYNTAX */
  89. /**
  90. * prism.js Coy theme for JavaScript, CoffeeScript, CSS and HTML
  91. * Based on https://github.com/tshedor/workshop-wp-theme (Example: http://workshop.kansan.com/category/sessions/basics or http://workshop.timshedor.com/category/sessions/basics);
  92. * @author Tim Shedor
  93. */
  94. code[class*='language-'],
  95. pre[class*='language-'] {
  96. color: black;
  97. background: none;
  98. font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  99. text-align: left;
  100. white-space: pre;
  101. word-spacing: normal;
  102. word-break: normal;
  103. word-wrap: normal;
  104. line-height: 1.5;
  105. -moz-tab-size: 4;
  106. -o-tab-size: 4;
  107. tab-size: 4;
  108. -webkit-hyphens: none;
  109. -moz-hyphens: none;
  110. -ms-hyphens: none;
  111. hyphens: none;
  112. }
  113. /* Code blocks */
  114. pre[class*='language-'] {
  115. position: relative;
  116. margin: 0.5em 0;
  117. overflow: visible;
  118. padding: 0;
  119. }
  120. pre[class*='language-'] > code {
  121. position: relative;
  122. border-left: 10px solid #358ccb;
  123. box-shadow: -1px 0px 0px 0px #358ccb, 0px 0px 0px 1px #dfdfdf;
  124. background-color: #fdfdfd;
  125. background-image: linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%);
  126. background-size: 3em 3em;
  127. background-origin: content-box;
  128. background-attachment: local;
  129. }
  130. code[class*='language'] {
  131. max-height: inherit;
  132. height: inherit;
  133. padding: 0 1em;
  134. display: block;
  135. overflow: auto;
  136. }
  137. /* Margin bottom to accomodate shadow */
  138. :not(pre) > code[class*='language-'],
  139. pre[class*='language-'] {
  140. background-color: #fdfdfd;
  141. -webkit-box-sizing: border-box;
  142. -moz-box-sizing: border-box;
  143. box-sizing: border-box;
  144. margin-bottom: 1em;
  145. }
  146. /* Inline code */
  147. :not(pre) > code[class*='language-'] {
  148. position: relative;
  149. padding: 0.2em;
  150. border-radius: 0.3em;
  151. color: #c92c2c;
  152. border: 1px solid rgba(0, 0, 0, 0.1);
  153. display: inline;
  154. white-space: normal;
  155. }
  156. pre[class*='language-']:before,
  157. pre[class*='language-']:after {
  158. content: '';
  159. z-index: -2;
  160. display: block;
  161. position: absolute;
  162. bottom: 0.75em;
  163. left: 0.18em;
  164. width: 40%;
  165. height: 20%;
  166. max-height: 13em;
  167. box-shadow: 0px 13px 8px #979797;
  168. -webkit-transform: rotate(-2deg);
  169. -moz-transform: rotate(-2deg);
  170. -ms-transform: rotate(-2deg);
  171. -o-transform: rotate(-2deg);
  172. transform: rotate(-2deg);
  173. }
  174. :not(pre) > code[class*='language-']:after,
  175. pre[class*='language-']:after {
  176. right: 0.75em;
  177. left: auto;
  178. -webkit-transform: rotate(2deg);
  179. -moz-transform: rotate(2deg);
  180. -ms-transform: rotate(2deg);
  181. -o-transform: rotate(2deg);
  182. transform: rotate(2deg);
  183. }
  184. .token.comment,
  185. .token.block-comment,
  186. .token.prolog,
  187. .token.doctype,
  188. .token.cdata {
  189. color: #7d8b99;
  190. }
  191. .token.punctuation {
  192. color: #5f6364;
  193. }
  194. .token.property,
  195. .token.tag,
  196. .token.boolean,
  197. .token.number,
  198. .token.function-name,
  199. .token.constant,
  200. .token.symbol,
  201. .token.deleted {
  202. color: #c92c2c;
  203. }
  204. .token.selector,
  205. .token.attr-name,
  206. .token.string,
  207. .token.char,
  208. .token.function,
  209. .token.builtin,
  210. .token.inserted {
  211. color: #2f9c0a;
  212. }
  213. .token.operator,
  214. .token.entity,
  215. .token.url,
  216. .token.variable {
  217. color: #a67f59;
  218. background: rgba(255, 255, 255, 0.5);
  219. }
  220. .token.atrule,
  221. .token.attr-value,
  222. .token.keyword,
  223. .token.class-name {
  224. color: #1990b8;
  225. }
  226. .token.regex,
  227. .token.important {
  228. color: #e90;
  229. }
  230. .language-css .token.string,
  231. .style .token.string {
  232. color: #a67f59;
  233. background: rgba(255, 255, 255, 0.5);
  234. }
  235. .token.important {
  236. font-weight: normal;
  237. }
  238. .token.bold {
  239. font-weight: bold;
  240. }
  241. .token.italic {
  242. font-style: italic;
  243. }
  244. .token.entity {
  245. cursor: help;
  246. }
  247. .namespace {
  248. opacity: 0.7;
  249. }
  250. @media screen and (max-width: 767px) {
  251. pre[class*='language-']:before,
  252. pre[class*='language-']:after {
  253. bottom: 14px;
  254. box-shadow: none;
  255. }
  256. }
  257. /* Plugin styles */
  258. .token.tab:not(:empty):before,
  259. .token.cr:before,
  260. .token.lf:before {
  261. color: #e0d7d1;
  262. }
  263. /* Plugin styles: Line Numbers */
  264. pre[class*='language-'].line-numbers {
  265. padding-left: 0;
  266. }
  267. pre[class*='language-'].line-numbers code {
  268. padding-left: 3.8em;
  269. }
  270. pre[class*='language-'].line-numbers .line-numbers-rows {
  271. left: 0;
  272. }
  273. /* Plugin styles: Line Highlight */
  274. pre[class*='language-'][data-line] {
  275. padding-top: 0;
  276. padding-bottom: 0;
  277. padding-left: 0;
  278. }
  279. pre[data-line] code {
  280. position: relative;
  281. padding-left: 4em;
  282. }
  283. pre .line-highlight {
  284. margin-top: 0;
  285. }