_content.scss 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302
  1. /* ------------------------------------------------- */
  2. /* ----- Typography ----- */
  3. /* ------------------------------------------------- */
  4. h1,
  5. h2,
  6. h3,
  7. h4,
  8. h5,
  9. h6 {
  10. color: var(--important);
  11. font-weight: 500;
  12. line-height: 1.2;
  13. code {
  14. font-size: inherit !important;
  15. color: inherit !important;
  16. background: none !important;
  17. border: none !important;
  18. }
  19. &+& {
  20. margin-top: var(--micro);
  21. }
  22. }
  23. h1 {
  24. font-size: var(--h1);
  25. margin-bottom: var(--xx-small);
  26. }
  27. h2 {
  28. font-size: var(--h2);
  29. margin: var(--medium) 0 var(--nano);
  30. }
  31. h3 {
  32. font-size: var(--h3);
  33. margin: var(--small) 0 var(--nano);
  34. }
  35. h4 {
  36. font-size: var(--h4);
  37. margin: var(--small) 0 var(--nano);
  38. }
  39. h5 {
  40. font-size: var(--h5);
  41. margin: var(--small) 0 var(--nano);
  42. }
  43. strong {
  44. font-weight: 500;
  45. }
  46. p+p {
  47. margin-top: var(--milli);
  48. }
  49. /* ------------------------------------------------- */
  50. /* ----- Content ----- */
  51. /* ------------------------------------------------- */
  52. .content {
  53. border-left: 1px solid var(--divider-light);
  54. border-right: 1px solid var(--divider-light);
  55. a.anchorjs-link {
  56. &:hover,
  57. &:focus {
  58. text-decoration: none;
  59. }
  60. }
  61. a > code {
  62. color: inherit;
  63. }
  64. code {
  65. font-size: inherit;
  66. color: var(--code-simple);
  67. background: var(--code-simple-bg);
  68. border: none;
  69. }
  70. &>*:first-child {
  71. margin-top: var(--small);
  72. min-width:fit-content;
  73. }
  74. ul {
  75. margin: var(--micro) 0;
  76. }
  77. ul,
  78. ol {
  79. padding-left: var(--milli);
  80. }
  81. li {
  82. .highlight {
  83. display: block;
  84. }
  85. .highlight:only-child {
  86. margin: rem(1) 0;
  87. pre {
  88. margin: 0;
  89. }
  90. }
  91. pre {
  92. margin-left: rem(1.8);
  93. margin: rem(1) 0;
  94. display: block;
  95. }
  96. }
  97. ul>li:first-child>p:first-child {
  98. margin: 0;
  99. }
  100. p+p,
  101. p+ul,
  102. ul+p,
  103. ul p,
  104. ol p,
  105. p+ol,
  106. p+ol.has-p,
  107. ol+p,
  108. .highlight+p,
  109. pre+p,
  110. table+p,
  111. *+p {
  112. margin-top: rem(1.6);
  113. }
  114. p+table {
  115. margin-top: rem(0.5);
  116. }
  117. pre,
  118. .warning,
  119. .note,
  120. .annotation,
  121. .tip,
  122. .important {
  123. font-size: rem(1.5);
  124. font-weight: 300;
  125. }
  126. a:not(a[class]) {
  127. &,
  128. strong {
  129. color: var(--link);
  130. font-weight: 300;
  131. transition: all 0.2s;
  132. transition-delay: 50ms;
  133. }
  134. &[href*="https://"] {
  135. text-decoration: none;
  136. border-bottom: 1px solid transparent;
  137. // &::after {
  138. // content: "";
  139. // background-image: url("../images/icon_external_link.svg");
  140. // background-repeat: no-repeat;
  141. // // Use padding rather than `display-inline: block; width: 16px` to keep
  142. // // the icon from wrapping onto a new line.
  143. // padding-left: 16px;
  144. // filter: invert(50%);
  145. // background-position: center;
  146. // transition: all 0.2s;
  147. // transition-delay: 50ms;
  148. // }
  149. }
  150. &:hover,
  151. &:focus {
  152. &,
  153. strong {
  154. color: var(--important);
  155. }
  156. border-color: var(--important);
  157. &[href*="https://"] {
  158. &::after {
  159. filter: none;
  160. }
  161. }
  162. }
  163. }
  164. .callout {
  165. background: var(--brand);
  166. border-radius: 3px;
  167. padding: 1px;
  168. border-radius: rem(1.2);
  169. box-shadow: var(--shadow-default);
  170. &:not(.bottom) {
  171. margin: var(--large) 0;
  172. }
  173. a {
  174. margin-top: var(--milli);
  175. }
  176. div {
  177. background: var(--card-light);
  178. padding: var(--x-small);
  179. border-radius: inherit;
  180. @media(max-width: 400px) {
  181. padding: var(--milli);
  182. }
  183. }
  184. div> :first-child {
  185. margin-top: 0;
  186. }
  187. }
  188. .multilinkbox {
  189. margin: var(--small) 0;
  190. display: flex;
  191. gap: var(--milli);
  192. @media(max-width: 1325px) {
  193. flex-direction: column;
  194. max-width: 400px;
  195. }
  196. }
  197. .linkbox {
  198. flex: 0 0 31%;
  199. position: relative;
  200. padding: var(--milli) var(--milli) var(--nano);
  201. font-size: var(--sm);
  202. @include card;
  203. &::before {
  204. content: "";
  205. width: 48px;
  206. height: 48px;
  207. position: absolute;
  208. top: rem(2);
  209. background-size: contain;
  210. }
  211. &.book,
  212. &.bulb,
  213. &.doc,
  214. &.touch {
  215. padding-top: rem(8);
  216. }
  217. &.book::before {
  218. background-image: url("../images/icon_book.png");
  219. }
  220. &.bulb::before {
  221. background-image: url("../images/icon_bulb.png");
  222. }
  223. &.doc::before {
  224. background-image: url("../images/icon_doc.png");
  225. }
  226. &.touch::before {
  227. background-image: url("../images/icon_touch.png");
  228. }
  229. .title {
  230. text-transform: uppercase;
  231. font-weight: 500;
  232. color: var(--important);
  233. margin-bottom: var(--nano);
  234. }
  235. ul {
  236. list-style: none;
  237. }
  238. a {
  239. font-weight: 300;
  240. }
  241. }
  242. img {
  243. max-width: 100%;
  244. }
  245. table {
  246. border-collapse: collapse;
  247. font-size: var(--sm);
  248. font-weight: 300;
  249. line-height: rem(2.1);
  250. @media(max-width: 500px) {
  251. code {
  252. font-size: var(--xsm);
  253. }
  254. }
  255. }
  256. tr {
  257. border-bottom: 1px solid var(--divider-light);
  258. }
  259. th {
  260. color: var(--important);
  261. border-bottom: 1px var(--highlight) solid;
  262. text-align: left;
  263. padding: 8px;
  264. font-size: rem(1.3);
  265. vertical-align: bottom;
  266. }
  267. td {
  268. padding: var(--nano);
  269. vertical-align: top;
  270. @media(max-width: 500px) {
  271. padding: var(--nano) var(--pico);
  272. }
  273. pre {
  274. background-color: inherit;
  275. border: 0;
  276. font-size: inherit;
  277. margin: 0;
  278. padding: 0;
  279. }
  280. }
  281. pre {
  282. background-color: var(--code-block);
  283. border-radius: 4px;
  284. border: 1px solid var(--divider-light);
  285. color: $black-v2;
  286. font-family: Courier, monospace;
  287. font-size: rem(1.5);
  288. margin: rem(1) 0 rem(0.5);
  289. overflow: auto;
  290. padding: rem(1.6);
  291. code {
  292. color: $black-v2;
  293. background: none;
  294. border: none;
  295. padding: 0;
  296. }
  297. }
  298. code {
  299. font-family: "Fira Code", Courier, monospace;
  300. font-variant-ligatures: none;
  301. font-size: rem(1.3);
  302. font-weight: 500;
  303. background: var(--code-block);
  304. border: 1px solid var(--divider-light);
  305. box-sizing: border-box;
  306. border-radius: 2px;
  307. padding: rem(0.1) rem(0.25) rem(0);
  308. color: var(--code-simple);
  309. background: var(--code-simple-bg);
  310. }
  311. // Merge a highlighted code block followed by a non-highlighted code block,
  312. // since this is a common pattern in our docs to indicate a (highlighted)
  313. // shell or SQL snippet followed by its (unhighlighted) output.
  314. .highlight+pre {
  315. border-top: 0;
  316. margin-top: -16px;
  317. padding-top: 0;
  318. }
  319. ul,
  320. ol {
  321. margin: 0;
  322. li {
  323. margin-bottom: rem(0.5);
  324. }
  325. }
  326. li {
  327. h4 {
  328. margin-top: 0;
  329. }
  330. }
  331. :not(div.footnotes) > ol.has-p:not(ol.has-p ol.has-p) {
  332. list-style-type: none;
  333. counter-reset: list-counter;
  334. margin: 0;
  335. padding: 0;
  336. >li {
  337. counter-increment: list-counter;
  338. min-height: rem(5);
  339. position: relative;
  340. padding: rem(1.6) 0 rem(1.6) rem(6);
  341. border-top: 1px solid var(--divider-light);
  342. ul,
  343. ol {
  344. padding-left: var(--milli);
  345. }
  346. ol {
  347. li {
  348. list-style-type: lower-alpha;
  349. }
  350. }
  351. @media(max-width: 850px) {
  352. padding-left: rem(4.5);
  353. }
  354. @media(max-width: 480px) {
  355. padding-left: rem(3);
  356. }
  357. &:before {
  358. content: counter(list-counter);
  359. color: var(--orchid);
  360. font-size: rem(3);
  361. font-weight: 100;
  362. position: absolute;
  363. top: 100;
  364. left: rem(1);
  365. @media(max-width: 850px) {
  366. font-size: rem(4);
  367. left: rem(.5);
  368. }
  369. @media(max-width: 480px) {
  370. font-size: rem(3.5);
  371. left: 0;
  372. }
  373. }
  374. &:last-child {
  375. padding-bottom: 0;
  376. }
  377. p {
  378. display: block;
  379. }
  380. }
  381. }
  382. hr {
  383. border: none;
  384. border-top: 1px solid $medium-grey-v2;
  385. margin: rem(3.6) auto;
  386. width: 80%;
  387. }
  388. .warning,
  389. .private-preview {
  390. // NOTE(benesch): please ensure these colors stay yellowish/orange.
  391. // Private preview and warnings should indicate a moderate amount of
  392. // caution--not serious danger, but nothing to overlook either.
  393. background: rgba(238, 134, 96, 0.05);
  394. border: 1px solid rgba(238, 134, 96, 0.2);
  395. &::after {
  396. border-color: var(--bg) var(--bg) #fbe2d9 #fbe2d9;
  397. background: #fbe2d9;
  398. }
  399. .gutter {
  400. color: #d33902;
  401. }
  402. }
  403. .note,
  404. .important {
  405. background: var(--note);
  406. border: 1px solid var(--note-border);
  407. a {
  408. &:hover,
  409. &:focus {
  410. color: var(--sub) !important;
  411. }
  412. code {
  413. &:hover,
  414. &:focus {
  415. color: var(--sub) !important;
  416. }
  417. }
  418. }
  419. &::after {
  420. border-color: var(--bg) var(--bg) var(--note-after) var(--note-after);
  421. background: var(--note-after);
  422. }
  423. .gutter {
  424. color: var(--note-gutter);
  425. }
  426. }
  427. .tip {
  428. background: var(--tip);
  429. border: 1px solid var(--tip-border);
  430. a {
  431. &:hover,
  432. &:focus {
  433. color: var(--sub) !important;
  434. }
  435. code {
  436. &:hover,
  437. &:focus {
  438. color: var(--sub) !important;
  439. }
  440. }
  441. }
  442. &::after {
  443. border-color: var(--bg) var(--bg) var(--tip-after) var(--tip-after);
  444. background: var(--tip-after);
  445. }
  446. .gutter {
  447. color: var(--tip-gutter);
  448. }
  449. }
  450. .annotation {
  451. border: 4px solid var(--annotation-border);
  452. background: var(--annotation-bg);
  453. a {
  454. &:hover,
  455. &:focus {
  456. color: var(--sub) !important;
  457. }
  458. code {
  459. &:hover,
  460. &:focus {
  461. color: var(--sub) !important;
  462. }
  463. }
  464. }
  465. }
  466. .public-preview {
  467. background: var(--public-preview);
  468. border: 1px solid var(--public-preview-border);
  469. color: var(--public-preview-text);
  470. &::after {
  471. border-color: var(--bg) var(--bg) var(--public-preview-after) var(--public-preview-after);
  472. background: var(--public-preview-after);
  473. }
  474. .gutter {
  475. color: var(--public-preview-gutter);
  476. }
  477. }
  478. .annotation {
  479. box-sizing: border-box;
  480. margin: rem(1.6) 0;
  481. padding: rem(1) rem(1) rem(1) rem(2);
  482. position: relative;
  483. @media(max-width: 510px) {
  484. padding: rem(.8) rem(.8) rem(.8) rem(1);
  485. }
  486. p:first-of-type {
  487. margin-top: 0;
  488. }
  489. }
  490. .warning,
  491. .note,
  492. .tip,
  493. .important,
  494. .private-preview,
  495. .public-preview {
  496. box-sizing: border-box;
  497. margin: rem(1.6) 0;
  498. padding: rem(1.6) rem(1.6) rem(1.6) rem(10.4);
  499. position: relative;
  500. border-radius: rem(1.2);
  501. @media(max-width: 510px) {
  502. padding: rem(1) rem(1) rem(1) rem(6);
  503. }
  504. p:first-of-type {
  505. margin-top: 0;
  506. }
  507. &::after {
  508. content: "";
  509. position: absolute;
  510. top: -1px;
  511. right: -1px;
  512. border-width: 0 rem(1.6) rem(1.6) 0;
  513. border-style: solid;
  514. }
  515. .gutter {
  516. position: absolute;
  517. left: rem(1.6);
  518. top: rem(1.8);
  519. line-height: 23px;
  520. font-size: rem(1.2);
  521. font-weight: bold;
  522. text-transform: uppercase;
  523. @media(max-width: 510px) {
  524. top: rem(1.2);
  525. }
  526. }
  527. }
  528. .warning {
  529. @media(max-width: 510px) {
  530. padding-left: rem(9);
  531. }
  532. }
  533. .cta {
  534. background: $purple-gradient-v2;
  535. border-radius: 4px;
  536. color: #fff;
  537. display: inline-block;
  538. font-weight: 500;
  539. margin: rem(3.2) 0;
  540. padding: rem(2) rem(6.4);
  541. opacity: 1;
  542. transition: opacity 350ms ease;
  543. &.full_width {
  544. display: block;
  545. width: 100%;
  546. text-align: center;
  547. }
  548. &.secondary {
  549. background: $faded-purple-v2;
  550. color: $dark-purple-v2;
  551. &:hover {
  552. color: $dark-purple-v2;
  553. }
  554. }
  555. &:hover {
  556. opacity: 0.9;
  557. color: #fff;
  558. border-bottom: none;
  559. }
  560. }
  561. .release-date {
  562. font-style: italic;
  563. }
  564. .release-date+ul,
  565. .release-date+ol {
  566. margin-top: rem(1.6);
  567. padding-left: rem(3.2);
  568. }
  569. .symbol {
  570. color: $purple;
  571. }
  572. .breadcrumb {
  573. font-size: rem(1.4);
  574. letter-spacing: 0.03em;
  575. text-transform: uppercase;
  576. color: var(--sub);
  577. margin-bottom: var(--nano);
  578. a {
  579. color: var(--sub) !important;
  580. margin: 0 rem(0.8);
  581. &:hover {
  582. color: $black-v2;
  583. opacity: 1;
  584. }
  585. &:first-of-type {
  586. margin-left: 0;
  587. }
  588. }
  589. }
  590. }
  591. #helpful {
  592. border-top: 1px solid $grey;
  593. margin-top: rem(4.8);
  594. max-width: 40%;
  595. padding-top: rem(0.8);
  596. text-align: center;
  597. table {
  598. table-layout: fixed;
  599. width: 100%;
  600. }
  601. tr {
  602. border-style: hidden;
  603. }
  604. .helpful-vote {
  605. border: 3px solid $purple;
  606. color: $purple;
  607. display: inline-block;
  608. font-weight: bold;
  609. padding: rem(1.1) 0;
  610. width: 100%;
  611. }
  612. #got-feedback {
  613. display: none;
  614. }
  615. }
  616. // Navigation tabs (tab+tabs.html)
  617. .code-tabs {
  618. margin: rem(1) 0;
  619. .nav-tabs {
  620. list-style: none;
  621. padding: 0;
  622. border-bottom: 1px solid #9c86e0;
  623. display: flex;
  624. overflow-x: auto;
  625. @media(max-width: 850px) {}
  626. li {
  627. display: inline-block;
  628. margin: 0 rem(0.1);
  629. padding: 0;
  630. position: relative;
  631. bottom: -1px;
  632. background: var(--gray-lightest);
  633. a {
  634. color: var(--body);
  635. display: block;
  636. padding: rem(0.8) rem(1.6);
  637. font-size: rem(1.4);
  638. text-decoration: none;
  639. font-weight: 500;
  640. @media(max-width: 850px) {
  641. padding: rem(0.8) rem(1.6);
  642. }
  643. @media(max-width: 380px) {
  644. padding: rem(0.8) rem(0.8);
  645. }
  646. &:hover {
  647. color: $purple;
  648. border-bottom: none;
  649. }
  650. }
  651. &.active {
  652. background: var(--bg);
  653. border-radius: 2px 2px 0 0;
  654. border: 1px solid #9c86e0;
  655. border-bottom-color: var(--bg);
  656. a {
  657. color: var(--highlight);
  658. }
  659. }
  660. }
  661. }
  662. .tab-pane {
  663. display: none;
  664. padding: rem(1.6) 0;
  665. &.active {
  666. display: block;
  667. }
  668. }
  669. #subscribe_dialog {
  670. display: none;
  671. z-index: 10;
  672. position: absolute;
  673. top: 4px;
  674. right: 4px;
  675. background-color: $purple-v2;
  676. padding: 6px;
  677. border-radius: $border-radius;
  678. box-shadow: 0 1px 1px #00000011, 0 2px 2px #00000011,
  679. 0 4px 4px #00000011, 0 8px 8px #00000011, 0 16px 16px #00000011;
  680. form {
  681. display: flex;
  682. input[type="email"] {
  683. font-size: rem(0.8);
  684. padding: 7px 5px 6px 5px;
  685. border-radius: $border-radius;
  686. border: none;
  687. margin-right: 4px;
  688. }
  689. input[type="submit"] {
  690. line-height: 0.5;
  691. background-color: $white-v2;
  692. padding: 7px 18px 6px 18px;
  693. margin-top: 1px;
  694. }
  695. }
  696. .disclaimer {
  697. width: 100%;
  698. color: #fff;
  699. padding: 4px 8px;
  700. font-size: 12px;
  701. border-bottom-left-radius: $border-radius;
  702. border-bottom-right-radius: $border-radius;
  703. }
  704. }
  705. .subscribe_dialog_active {
  706. position: relative;
  707. #subscribe_dialog {
  708. display: block;
  709. }
  710. }
  711. .level-of-support {
  712. display: inline-block;
  713. width: 17px;
  714. height: 17px;
  715. position: relative;
  716. top: 5px;
  717. &.level-production {
  718. color: $success;
  719. }
  720. &.level-alpha,
  721. &.level-beta {
  722. color: $progress;
  723. }
  724. &.level-in-progress {
  725. color: $warning;
  726. }
  727. &.level-researching,
  728. &.level-not-supported {
  729. color: $danger;
  730. }
  731. }
  732. }
  733. .table-scrollable {
  734. box-shadow: inset 0 -4px 3px -3px $medium-grey-v2;
  735. margin: rem(1) 0 rem(3);
  736. overflow: auto;
  737. .table-container {
  738. overflow: visible;
  739. }
  740. table {
  741. width: 100%;
  742. }
  743. thead th {
  744. background: var(--bg);
  745. position: sticky;
  746. top: 0;
  747. &:after {
  748. border-bottom: 1px var(--highlight) solid;
  749. content: "";
  750. bottom: -1px;
  751. left: 0;
  752. right: 0;
  753. position: absolute;
  754. }
  755. }
  756. &+* {
  757. margin-top: rem(3) !important;
  758. }
  759. }
  760. .level-of-support {
  761. display: inline-block;
  762. width: 17px;
  763. height: 17px;
  764. position: relative;
  765. top: 5px;
  766. &.level-production {
  767. color: $success;
  768. }
  769. &.level-alpha,
  770. &.level-beta {
  771. color: $progress;
  772. }
  773. &.level-in-progress {
  774. color: $warning;
  775. }
  776. &.level-researching,
  777. &.level-not-supported {
  778. color: $danger;
  779. }
  780. }
  781. .copy_button {
  782. display: none;
  783. position: absolute;
  784. font-size: rem(1.2);
  785. font-weight: 300;
  786. border: none;
  787. background-color: $grey-light;
  788. color: var(--black);
  789. height: 26px;
  790. padding: 0 12px;
  791. cursor: pointer;
  792. border-radius: $border-radius;
  793. white-space: nowrap;
  794. top: 10px;
  795. right: 10px;
  796. line-height: 2;
  797. font-family: 'Inter', sans-serif;
  798. &.success {
  799. opacity: 0.8;
  800. background: #70f2a3;
  801. }
  802. }
  803. #subscribe_dialog {
  804. display: none;
  805. z-index: 10;
  806. position: absolute;
  807. top: 4px;
  808. right: 4px;
  809. padding: 6px;
  810. @include card;
  811. form {
  812. display: flex;
  813. input[type="email"] {
  814. font-size: rem(1.4);
  815. padding: rem(.5);
  816. border-radius: $border-radius;
  817. border: none;
  818. margin-right: rem(.8);
  819. background: var(--bg);
  820. color: var(--important);
  821. border: 1px solid var(--divider-light);
  822. box-shadow: var(--shadow-default);
  823. }
  824. input[type="submit"] {
  825. line-height: 0.5;
  826. }
  827. }
  828. .disclaimer {
  829. width: 100%;
  830. color: var(--important);
  831. margin-top: var(--nano);
  832. padding: rem(.4) rem(.8);
  833. font-size: var(--xsm);
  834. border-bottom-left-radius: $border-radius;
  835. border-bottom-right-radius: $border-radius;
  836. }
  837. }
  838. .subscribe_dialog_active {
  839. position: relative;
  840. #subscribe_dialog {
  841. display: block;
  842. }
  843. }
  844. div.json_widget {
  845. display: flex;
  846. flex-direction: column;
  847. justify-content: center;
  848. position: relative;
  849. .input_container {
  850. display: inline-flex;
  851. flex-direction: row;
  852. margin: 16px;
  853. .input_container-text {
  854. display: inline-flex;
  855. flex-direction: column;
  856. flex-grow: 3;
  857. input {
  858. width: 100%;
  859. border: 1px solid #E0DEE3;
  860. border-radius: 8px;
  861. margin: 8px 0;
  862. padding: 8px;
  863. background-color: #F7F7F8;
  864. box-shadow: none;
  865. font-size: 16px;
  866. }
  867. .light & input {
  868. background-color: #F7F7F8;
  869. }
  870. .dark & input {
  871. background-color: #000000;
  872. }
  873. input::placeholder {
  874. color: #BCB9C0;
  875. }
  876. }
  877. .input_container-radio {
  878. display: inline-flex;
  879. flex-direction: column;
  880. flex-grow: 1;
  881. justify-content: center;
  882. margin: 0 16px 12px;
  883. padding: 16px;
  884. border: 1px solid #E0DEE3;
  885. border-radius: 8px;
  886. legend {
  887. padding: 0 4px;
  888. }
  889. }
  890. }
  891. .json {
  892. width: 100%;
  893. margin-top: 16px;
  894. textarea {
  895. height: 400px;
  896. width: 100%;
  897. resize: none;
  898. border: 1px solid #E0DEE3;
  899. border-radius: 8px;
  900. // margin: 16px;
  901. padding: 8px;
  902. }
  903. textarea::placeholder {
  904. opacity: 0.1;
  905. font-size: 4vw;
  906. text-align: center;
  907. line-height: 350px;
  908. }
  909. .error {
  910. opacity: 1;
  911. border-color: #d33902;
  912. border-style: solid;
  913. border-width: thin;
  914. border-radius: 8px;
  915. p {
  916. background-color: rgba(229, 6, 68, 0.1);
  917. font-weight: 500;
  918. padding: 8px;
  919. }
  920. .light & p {
  921. color: #803737;
  922. }
  923. .dark & p {
  924. color: #fe1d5e;
  925. }
  926. }
  927. .error-hidden {
  928. display: none;
  929. }
  930. }
  931. .sql_output {
  932. margin: 16px;
  933. }
  934. .log_output {
  935. border: 1px solid #ccc;
  936. border-radius: 4px;
  937. padding: 10px;
  938. max-height: 150px;
  939. overflow-y: auto;
  940. margin-top: 10px;
  941. }
  942. .input_container-text select.text-input {
  943. appearance: none;
  944. background-color: #F7F7F8;
  945. border: 1px solid #E0DEE3;
  946. border-radius: 8px;
  947. padding: 8px;
  948. font-size: 16px;
  949. color: #BCB9C0;
  950. cursor: pointer;
  951. }
  952. .input_container-text select.text-input:focus {
  953. outline: none;
  954. border-color: #aca9b8;
  955. }
  956. .light & select.text-input {
  957. background-color: #F7F7F8;
  958. }
  959. .dark & select.text-input {
  960. background-color: #000000;
  961. }
  962. }
  963. .notify_button {
  964. font-size: rem(1);
  965. padding: rem(0.4) rem(0.8);
  966. &.success {
  967. width: rem(8);
  968. }
  969. }
  970. /* Unclear why we are suppressing the copy button in tables
  971. but ... at least, allow for cases where we want to enable copy button in tables.
  972. */
  973. td:not(.copyableCode) .copy_button {
  974. display: none !important;
  975. }
  976. td span.copyableCode pre:hover .copy_button {
  977. display: inline-block !important;
  978. }
  979. pre {
  980. position: relative;
  981. &:hover {
  982. .copy_button {
  983. display: inline-block;
  984. }
  985. }
  986. }
  987. body.dark .content {
  988. .note,
  989. .important {
  990. a {
  991. color: var(--link);
  992. }
  993. &::after {
  994. border-color: --var(--note-border);
  995. background: var(--note);
  996. }
  997. }
  998. .tip {
  999. a {
  1000. color: var(--link);
  1001. }
  1002. &::after {
  1003. border-color: --var(--tip-border);
  1004. background: var(--tip);
  1005. }
  1006. }
  1007. .annotation {
  1008. a {
  1009. color: var(--link);
  1010. }
  1011. }
  1012. .warning,
  1013. .private-preview {
  1014. .gutter {
  1015. color: #ff8504;
  1016. }
  1017. }
  1018. pre code {
  1019. color: var(--sub);
  1020. }
  1021. }
  1022. .back-to-top {
  1023. @media(max-width: 850px) {
  1024. margin: var(--medium) 0;
  1025. }
  1026. }
  1027. body.dark {
  1028. .code-tabs .nav-tabs {
  1029. li {
  1030. background: var(--bg-sub);
  1031. &.active {
  1032. background: var(--bg);
  1033. }
  1034. }
  1035. }
  1036. }
  1037. .caption {
  1038. font-size: rem(1.2);
  1039. font-weight: 300;
  1040. padding: var(--nano);
  1041. font-style: italic;
  1042. }
  1043. td.copyableCode{
  1044. .chroma {
  1045. background-color: var(--code-block);
  1046. }
  1047. }
  1048. span.copyableCode{
  1049. .chroma {
  1050. background-color: var(--code-block);
  1051. }
  1052. }
  1053. div.footnotes {
  1054. font-size: var(--sm);
  1055. hr {
  1056. width: 100%;
  1057. }
  1058. li::marker {
  1059. font-variant-numeric: normal;
  1060. content: "[" counter(list-item) "] ";
  1061. }
  1062. }
  1063. sup {
  1064. a {
  1065. color: var(--link);
  1066. }
  1067. }
  1068. // Remove the bottom border from the last row of a nested table
  1069. table table tr:last-child {
  1070. border-bottom: none;
  1071. }