knowledge_base.scss 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440
  1. @import url('./svg-dimensions.css');
  2. @import url('./font.css');
  3. $highlight-color: hsl(205, 90%, 60%);
  4. $color: hsl(207, 7%, 29%);
  5. $light-color: hsl(206, 8%, 50%);
  6. $dark-color: hsl(207, 7%, 19%);
  7. $subtle-color: hsl(207, 14%, 67%);
  8. $dropshadow: 0 2px 10px hsla(0, 0%, 0%, 0.13);
  9. $light-bg: hsl(209, 26%, 98%);
  10. $dark-bg: hsl(209, 22%, 96%);
  11. $border: hsl(209, 13%, 95%);
  12. $dark-border: hsl(210, 14%, 91%);
  13. @mixin desktop {
  14. @media screen and (min-width: 1260px) {
  15. @content;
  16. }
  17. }
  18. @mixin small-desktop {
  19. @media screen and (max-width: 1260px) {
  20. @content;
  21. }
  22. }
  23. @mixin tablet {
  24. @media screen and (min-width: 768px) {
  25. @content;
  26. }
  27. }
  28. @mixin phone {
  29. @media screen and (max-width: 920px) {
  30. @content;
  31. }
  32. }
  33. @mixin small-phone {
  34. @media screen and (max-width: 576px) {
  35. @content;
  36. }
  37. }
  38. /* sets LTR and RTL within the same style call */
  39. @mixin bidi-style($prop, $value, $inverse-prop, $default-value) {
  40. #{$prop}: $value;
  41. html[dir='rtl'] & {
  42. #{$inverse-prop}: $value;
  43. #{$prop}: $default-value;
  44. }
  45. }
  46. /* adds a property only in RTL */
  47. @mixin rtl($prop, $value) {
  48. html[dir='rtl'] & {
  49. #{$prop}: $value;
  50. }
  51. }
  52. /* adds a property only in LTR */
  53. @mixin ltr($prop, $value) {
  54. html[dir='ltr'] & {
  55. #{$prop}: $value;
  56. }
  57. }
  58. %clickable {
  59. cursor: pointer;
  60. user-select: none;
  61. touch-action: manipulation;
  62. }
  63. %box {
  64. margin: 10px;
  65. border-radius: 2px;
  66. background: white;
  67. color: $color;
  68. box-shadow: $dropshadow;
  69. @include phone {
  70. margin: 5px;
  71. }
  72. }
  73. * {
  74. box-sizing: border-box;
  75. outline: none;
  76. }
  77. html {
  78. font-family: 'Fira Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  79. font-size: 16px;
  80. line-height: 1.5;
  81. color: $light-color;
  82. @include phone {
  83. font-size: 17px;
  84. }
  85. }
  86. body {
  87. margin: 0;
  88. overflow-y: scroll;
  89. display: flex;
  90. flex-direction: column;
  91. }
  92. h1 {
  93. font-size: 2.5em;
  94. line-height: 1.12;
  95. margin: 0.8em 0 0.6em;
  96. font-weight: normal;
  97. overflow-wrap: break-word;
  98. word-wrap: break-word;
  99. word-break: break-word;
  100. &:first-child {
  101. margin-top: 0;
  102. }
  103. @include phone {
  104. font-size: 28px;
  105. margin: 1em 0 0.8em;
  106. }
  107. }
  108. h2 {
  109. font-size: 1.8em;
  110. font-weight: 500;
  111. line-height: 1.1;
  112. margin: 1em 0 0.4em;
  113. @include phone {
  114. font-size: 24px;
  115. margin: 1.2em 0 0.5em;
  116. }
  117. }
  118. h3 {
  119. font-size: 1.4em;
  120. font-weight: 500;
  121. line-height: 1.2;
  122. margin: 1.33em 0 0.55em;
  123. letter-spacing: 0.015em;
  124. @include phone {
  125. font-size: 19px;
  126. line-height: 1.3;
  127. margin: 1.2em 0 0.75em;
  128. }
  129. }
  130. h4 {
  131. font-size: 1em;
  132. font-weight: bold;
  133. line-height: 1.25;
  134. margin: 1.33em 0 0.5em;
  135. letter-spacing: 0.015em;
  136. }
  137. p,
  138. ul,
  139. ol {
  140. margin: 0 0 1em;
  141. &:last-child {
  142. margin-bottom: 0;
  143. }
  144. }
  145. strong,
  146. b {
  147. font-weight: 500;
  148. }
  149. .topbar {
  150. font-size: 0.875em;
  151. display: flex;
  152. align-items: center;
  153. background: hsl(200, 87%, 45%);
  154. color: #fff;
  155. height: 45px;
  156. padding: 0 17px;
  157. box-shadow: 0 -1px hsla(0, 0%, 0%, 0.1) inset;
  158. &[data-color='yellow'] {
  159. color: hsl(45, 98%, 17%);
  160. background: hsl(45, 98%, 63%);
  161. }
  162. &[data-color='green'] {
  163. color: white;
  164. background: hsl(145, 52%, 45%);
  165. }
  166. &[data-color='red'] {
  167. color: white;
  168. background: hsl(19, 90%, 51%);
  169. }
  170. &[data-color='grey'] {
  171. color: hsl(45, 98%, 17%);
  172. background: hsl(0, 0%, 80%);
  173. }
  174. &-tag {
  175. font-weight: bold;
  176. @include bidi-style(margin-right, 17px, margin-left, 0);
  177. text-transform: uppercase;
  178. letter-spacing: 0.05em;
  179. }
  180. &-hint {
  181. font-size: 13px;
  182. }
  183. &-flex {
  184. margin: auto;
  185. }
  186. &-btn {
  187. display: flex;
  188. align-items: center;
  189. text-decoration: none;
  190. color: inherit;
  191. text-transform: uppercase;
  192. font-size: 12px;
  193. letter-spacing: 0.05em;
  194. border-radius: 4px;
  195. height: 30px;
  196. padding: 0 11px;
  197. border: 1px solid hsla(0, 0%, 0%, 0.1);
  198. & + & {
  199. margin-left: 10px;
  200. }
  201. }
  202. }
  203. .wrapper {
  204. display: flex;
  205. flex-direction: column;
  206. min-height: 100vh;
  207. }
  208. .header {
  209. background: $light-bg;
  210. border-bottom: 1px solid $dark-border;
  211. position: relative;
  212. padding: 0.3em 0 0.9em;
  213. flex-shrink: 0;
  214. .container {
  215. display: flex;
  216. align-items: center;
  217. justify-content: space-between;
  218. column-gap: 1em;
  219. @include phone {
  220. flex-direction: column;
  221. }
  222. }
  223. .menu {
  224. justify-content: flex-end;
  225. @include phone {
  226. justify-content: center;
  227. }
  228. }
  229. }
  230. .logo {
  231. margin: 0;
  232. display: flex;
  233. align-items: center;
  234. font-size: inherit;
  235. a {
  236. text-decoration: none;
  237. display: block;
  238. color: inherit;
  239. }
  240. img {
  241. height: 2em;
  242. width: auto;
  243. vertical-align: middle;
  244. }
  245. }
  246. .menu {
  247. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  248. display: flex;
  249. align-items: center;
  250. flex-wrap: wrap;
  251. font-size: 14px;
  252. &-item {
  253. padding: 0.5em 1em;
  254. white-space: nowrap;
  255. text-decoration: none;
  256. color: inherit;
  257. line-height: 2em;
  258. }
  259. .icon {
  260. fill: currentColor;
  261. vertical-align: text-top;
  262. }
  263. }
  264. .search {
  265. width: 100%;
  266. margin: 0.9em 0 0.6em;
  267. &-field {
  268. position: relative;
  269. font-size: 17px;
  270. input[type='search'] {
  271. appearance: none;
  272. width: 100%;
  273. font-size: inherit;
  274. font-family: inherit;
  275. background: white;
  276. border: 1px solid $border;
  277. border-radius: 999px;
  278. @include ltr(padding, 0.75em 1.1em 0.75em 2.8em);
  279. @include rtl(padding, 0.75em 2.8em 0.75em 1.1em);
  280. outline: none;
  281. font-weight: 300;
  282. &::placeholder {
  283. color: $subtle-color;
  284. text-overflow: ellipsis;
  285. }
  286. }
  287. .icon {
  288. position: absolute;
  289. @include bidi-style(left, 1.1em, right, inherit);
  290. top: 50%;
  291. margin-top: -0.54em;
  292. fill: $dark-color;
  293. width: 1.08em;
  294. height: 1.08em;
  295. }
  296. }
  297. &-results {
  298. list-style: none;
  299. padding: 0.5em 0 0;
  300. padding-right: 0;
  301. padding-left: 0;
  302. .section {
  303. margin-bottom: 2px;
  304. }
  305. }
  306. &-message {
  307. display: block;
  308. margin: 2em 2em 1em;
  309. text-align: center;
  310. color: $subtle-color;
  311. }
  312. }
  313. .result {
  314. margin: 0 0.25em;
  315. a {
  316. color: inherit;
  317. text-decoration: none;
  318. display: block;
  319. border: 1px solid transparent;
  320. border-radius: 3px;
  321. padding: 0.8em;
  322. @include bidi-style(padding-left, 2.75em, padding-right, 0.8em);
  323. position: relative;
  324. &:hover {
  325. border-color: hsl(209, 13%, 93%);
  326. background: $dark-bg;
  327. }
  328. }
  329. &-icon {
  330. position: absolute;
  331. @include bidi-style(left, 0.6em, right, 0);
  332. top: 0.6em;
  333. color: hsl(210, 22%, 84%);
  334. .icon {
  335. width: 1.5em;
  336. height: 1.5em;
  337. fill: currentColor;
  338. vertical-align: top;
  339. }
  340. [data-font] {
  341. font-size: 1.5em;
  342. line-height: 1em;
  343. }
  344. }
  345. &-title {
  346. font-size: inherit;
  347. font-weight: 500;
  348. color: hsl(206, 8%, 38%);
  349. margin: 0 0 0.25em;
  350. }
  351. &-category {
  352. color: $subtle-color;
  353. display: inline-block;
  354. &::after {
  355. content: ' — ';
  356. }
  357. }
  358. &-category,
  359. &-preview {
  360. font-size: 14px;
  361. }
  362. &-preview {
  363. color: hsl(207, 12%, 50%);
  364. }
  365. }
  366. .container {
  367. margin: 0 auto;
  368. width: 100%;
  369. max-width: 900px;
  370. @include phone {
  371. padding-left: 1em;
  372. padding-right: 1em;
  373. }
  374. }
  375. .main {
  376. display: flex;
  377. flex-direction: column;
  378. justify-content: flex-start;
  379. margin: 30px 0 40px;
  380. .header + & {
  381. margin-top: 0;
  382. }
  383. .container {
  384. flex: 1 1 auto;
  385. display: flex;
  386. flex-direction: column;
  387. ul,
  388. ol {
  389. @include bidi-style(padding-left, 0, padding-right, 0);
  390. @include phone {
  391. @include bidi-style(padding-left, 0, padding-right, 0);
  392. }
  393. }
  394. .article-content {
  395. ul,
  396. ol {
  397. @include bidi-style(padding-left, 1.5em, padding-right, 0);
  398. }
  399. }
  400. }
  401. }
  402. .main--categories {
  403. h1 {
  404. color: $dark-color;
  405. .icon-hashtag {
  406. fill: hsl(208, 13%, 81%);
  407. width: 0.7em;
  408. height: 0.7em;
  409. }
  410. }
  411. }
  412. .main--error {
  413. text-align: center;
  414. .container {
  415. margin: auto;
  416. flex: none;
  417. align-items: center;
  418. }
  419. .box {
  420. display: table;
  421. margin: 0 auto;
  422. }
  423. .icon {
  424. width: 120px;
  425. height: 118px;
  426. fill: hsl(41, 100%, 49%);
  427. + h1 {
  428. margin-top: 0.66em;
  429. }
  430. }
  431. ul {
  432. display: table;
  433. margin: 0 auto;
  434. text-align: left;
  435. }
  436. }
  437. .breadcrumbs {
  438. margin: 0;
  439. padding: 0;
  440. list-style: none;
  441. font-size: 13px;
  442. .container {
  443. padding-top: 11px;
  444. padding-bottom: 11px;
  445. display: flex;
  446. border-bottom: 1px solid $border;
  447. }
  448. }
  449. .breadcrumb {
  450. position: relative;
  451. @include ltr(padding, 6px 20px 6px 11px);
  452. @include rtl(padding, 6px 11px 6px 20px);
  453. color: inherit;
  454. text-decoration: none;
  455. white-space: nowrap;
  456. overflow: hidden;
  457. line-height: 20px;
  458. text-overflow: ellipsis;
  459. @include phone {
  460. .icon-knowledge-base + span {
  461. display: none;
  462. }
  463. }
  464. &:first-child {
  465. padding-left: 2px;
  466. }
  467. &[href]:hover {
  468. color: $dark-color;
  469. }
  470. &:last-child {
  471. &::before,
  472. &::after {
  473. display: none;
  474. }
  475. }
  476. &::after,
  477. &::before {
  478. content: '';
  479. position: absolute;
  480. width: 1px;
  481. height: 40%;
  482. background: $color;
  483. opacity: 0.2;
  484. @include ltr(right, 0);
  485. @include rtl(left, 0);
  486. top: 0;
  487. transform-origin: bottom;
  488. @include ltr(transform, translateY(13%) rotate(-37deg));
  489. @include rtl(transform, translateY(13%) rotate(37deg));
  490. }
  491. &::after {
  492. top: 50%;
  493. transform-origin: top;
  494. @include ltr(transform, translateY(-13%) rotate(37deg));
  495. @include rtl(transform, translateY(-13%) rotate(-37deg));
  496. }
  497. .icon {
  498. fill: currentColor;
  499. object-fit: contain;
  500. margin-top: -1px;
  501. width: 16px;
  502. height: 16px;
  503. &-hashtag {
  504. width: 14px;
  505. height: 14px;
  506. }
  507. &-knowledge-base {
  508. width: 20px;
  509. height: 20px;
  510. }
  511. }
  512. .icon,
  513. [data-font] {
  514. @include bidi-style(margin-right, 3px, margin-left, 0);
  515. vertical-align: middle;
  516. opacity: 0.75;
  517. }
  518. [data-font] {
  519. display: inline-block;
  520. margin-top: -3px;
  521. text-align: center;
  522. }
  523. }
  524. .sections-empty {
  525. flex: 1;
  526. display: flex;
  527. flex-direction: column;
  528. justify-content: center;
  529. align-items: center;
  530. text-align: center;
  531. padding: 1em;
  532. margin-top: 2.05em;
  533. color: $subtle-color;
  534. border: 1px dashed $dark-border;
  535. border-radius: 3px;
  536. }
  537. .sections {
  538. margin: 0;
  539. padding: 0;
  540. list-style: none;
  541. &:first-child {
  542. margin-top: 30px;
  543. }
  544. & + hr {
  545. border: none;
  546. border-top: 1px solid hsl(219, 13%, 95%);
  547. margin: 28px 0 13px;
  548. }
  549. }
  550. %box-link {
  551. display: block;
  552. text-decoration: none;
  553. }
  554. .box {
  555. @extend %box;
  556. padding: 20px;
  557. }
  558. .sections--list {
  559. padding: 0 !important;
  560. &:first-child {
  561. margin-top: 20px;
  562. }
  563. a {
  564. @extend %box-link;
  565. }
  566. .section-inner {
  567. @extend %box;
  568. margin: 15px 0;
  569. padding: 10px 15px;
  570. display: flex;
  571. span {
  572. display: block;
  573. }
  574. }
  575. .not-published-note {
  576. @include bidi-style(margin-left, 0.5em, margin-right, 0);
  577. margin-top: 0.5em;
  578. }
  579. }
  580. .sections--grid {
  581. display: flex;
  582. flex-wrap: wrap;
  583. margin: -10px;
  584. @include phone {
  585. margin: -5px;
  586. }
  587. .section {
  588. width: 33.33%;
  589. @include phone {
  590. width: 50%;
  591. }
  592. @include desktop {
  593. width: 25%;
  594. }
  595. @include small-phone {
  596. width: 100%;
  597. }
  598. a {
  599. padding-bottom: 78%;
  600. position: relative;
  601. line-height: 1.3;
  602. @extend %box-link;
  603. @include small-phone {
  604. padding: 0;
  605. }
  606. }
  607. &--subsection {
  608. display: none;
  609. }
  610. &-inner {
  611. @extend %box;
  612. position: absolute;
  613. padding: 10px;
  614. left: 0;
  615. top: 0;
  616. right: 0;
  617. bottom: 0;
  618. display: flex;
  619. align-items: center;
  620. justify-content: center;
  621. flex-direction: column;
  622. text-align: center;
  623. @include small-phone {
  624. position: static;
  625. padding: 10px;
  626. flex-direction: row;
  627. justify-content: flex-start;
  628. text-align: initial;
  629. > span {
  630. padding-left: 1em;
  631. }
  632. }
  633. span {
  634. display: block;
  635. max-width: 100%;
  636. }
  637. @media screen and (min-width: 576px) {
  638. .title {
  639. display: -webkit-box;
  640. overflow: auto;
  641. -webkit-box-orient: vertical;
  642. -webkit-line-clamp: 3;
  643. }
  644. }
  645. }
  646. &-category,
  647. &-preview {
  648. display: none;
  649. }
  650. }
  651. }
  652. .sections--compact-text {
  653. display: grid;
  654. grid-gap: 20px;
  655. grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  656. font-size: 14px;
  657. @include phone {
  658. display: block;
  659. }
  660. .section {
  661. margin: 0;
  662. @include phone {
  663. margin-bottom: 10px;
  664. &:last-child {
  665. margin-bottom: 0;
  666. }
  667. }
  668. a {
  669. line-height: 1.5;
  670. text-decoration: none;
  671. }
  672. > a {
  673. flex: 1 1 0%;
  674. color: inherit;
  675. }
  676. &-inner {
  677. flex: 1 1 0%;
  678. margin: 0;
  679. padding: 1.1em;
  680. display: block;
  681. color: inherit;
  682. overflow: hidden;
  683. background: white;
  684. }
  685. &-title {
  686. font-size: 17px;
  687. margin: 0 0 1px;
  688. }
  689. &-category {
  690. margin-bottom: 1px;
  691. order: -1;
  692. opacity: 0.6;
  693. }
  694. &-preview {
  695. &::before {
  696. content: ' — ';
  697. color: initial;
  698. }
  699. }
  700. }
  701. }
  702. .section-category {
  703. font-size: 14px;
  704. }
  705. .section-preview {
  706. margin-bottom: 1em;
  707. overflow: hidden;
  708. text-overflow: ellipsis;
  709. }
  710. .button {
  711. @extend %box;
  712. appearance: none;
  713. font-family: inherit;
  714. font-size: 16px;
  715. border: none;
  716. background: hsl(210, 14%, 97%);
  717. margin: 0;
  718. padding: 5px 10px;
  719. min-width: 62px;
  720. position: relative;
  721. outline: none;
  722. text-decoration: none;
  723. &--small {
  724. padding: 3px 8px;
  725. font-size: 14px;
  726. }
  727. }
  728. .sections--list,
  729. .sections--compact-text {
  730. .icon,
  731. [data-font] {
  732. @include ltr(margin, 4px 9px 0 3px);
  733. @include rtl(margin, 4px 3px 0 9px);
  734. }
  735. }
  736. .section-inner {
  737. .icon,
  738. [data-font] {
  739. color: $highlight-color;
  740. fill: currentColor;
  741. line-height: inherit;
  742. flex-shrink: 0;
  743. width: 35px;
  744. .sections--grid & {
  745. @include small-phone {
  746. @include ltr(margin, 0);
  747. @include rtl(margin, 0);
  748. }
  749. }
  750. }
  751. }
  752. [data-font] {
  753. font-style: normal;
  754. text-rendering: auto;
  755. font-feature-settings: 'liga';
  756. -webkit-font-smoothing: antialiased;
  757. -moz-osx-font-smoothing: grayscale;
  758. font-size: 16px;
  759. .sections--grid .section-inner & {
  760. font-size: 42px;
  761. margin: 10px 0 20px;
  762. line-height: 1;
  763. @include phone {
  764. font-size: 35px;
  765. margin: 10px 0 13px;
  766. }
  767. }
  768. }
  769. .article {
  770. flex: 1;
  771. color: $dark-color;
  772. }
  773. .article-meta {
  774. margin-top: 30px;
  775. font-size: 0.865em;
  776. color: gray;
  777. }
  778. .article-content {
  779. display: block;
  780. overflow-wrap: anywhere;
  781. p,
  782. ol,
  783. ul {
  784. margin: 0 0 1em;
  785. }
  786. table,
  787. pre,
  788. blockquote {
  789. margin-bottom: 16px;
  790. &:first-child {
  791. margin-top: 6px;
  792. }
  793. &:last-child {
  794. margin-bottom: 6px;
  795. }
  796. }
  797. table {
  798. table-layout: auto;
  799. word-break: keep-all;
  800. border-style: hidden;
  801. border-collapse: collapse;
  802. font-variant-numeric: lining-nums tabular-nums;
  803. box-shadow:
  804. 0 0 0 1px hsl(210, 5%, 92%),
  805. 0 2px hsl(210, 5%, 92%);
  806. border-radius: 2px;
  807. }
  808. thead tr:first-child {
  809. th {
  810. &:first-child {
  811. border-top-left-radius: 2px;
  812. }
  813. &:last-child {
  814. border-top-right-radius: 2px;
  815. }
  816. }
  817. }
  818. tbody tr:last-child {
  819. td {
  820. &:first-child {
  821. border-bottom-left-radius: 2px;
  822. }
  823. &:last-child {
  824. border-bottom-right-radius: 2px;
  825. }
  826. }
  827. }
  828. td,
  829. th {
  830. padding: 6px 10px;
  831. border: 1px solid hsl(210, 5%, 92%);
  832. }
  833. th {
  834. background: hsl(210, 5%, 96%);
  835. }
  836. td {
  837. text-align: '.' center;
  838. }
  839. table col {
  840. width: auto;
  841. }
  842. blockquote {
  843. padding: 8px 12px;
  844. border-left: 5px solid #eee;
  845. }
  846. code {
  847. border: none;
  848. background: hsl(0, 0%, 97%);
  849. white-space: pre-wrap;
  850. }
  851. pre {
  852. padding: 12px 15px;
  853. font-size: 13px;
  854. line-height: 1.45;
  855. background: hsl(0, 0%, 97%);
  856. white-space: pre-wrap;
  857. border-radius: 3px;
  858. border: none;
  859. overflow: auto;
  860. }
  861. hr {
  862. margin-top: 13px;
  863. margin-bottom: 13px;
  864. border: none;
  865. border-top: 1px solid hsl(210, 14%, 91%);
  866. }
  867. }
  868. .article-tags {
  869. margin-top: 1rem;
  870. }
  871. .article-accessories {
  872. padding: 2rem 0 2rem 4rem;
  873. margin: 2rem 0;
  874. list-style: none;
  875. border-top: 1px solid $border;
  876. position: relative;
  877. @include phone {
  878. padding-left: 2.8rem;
  879. }
  880. .icon {
  881. position: absolute;
  882. left: 1.2rem;
  883. top: 2rem;
  884. width: 2rem;
  885. height: 2rem;
  886. fill: hsl(208, 13%, 81%);
  887. @include phone {
  888. left: 0.5rem;
  889. }
  890. }
  891. &-title {
  892. text-transform: uppercase;
  893. font-size: 0.8em;
  894. font-weight: bold;
  895. color: $light-color;
  896. padding: 0 0.8rem 0.2rem;
  897. }
  898. &:not(:last-child) {
  899. padding-bottom: 0;
  900. margin-bottom: 0;
  901. }
  902. }
  903. .tags-content {
  904. display: flex;
  905. flex-wrap: wrap;
  906. padding: 0.2rem 0.6rem 0;
  907. .tag {
  908. margin: 0.2rem;
  909. }
  910. }
  911. .tag {
  912. font-size: 0.8em;
  913. display: inline-block;
  914. color: white;
  915. border-radius: 999px;
  916. padding: 2px 12px 1px;
  917. text-decoration: none;
  918. }
  919. .attachment {
  920. text-decoration: none;
  921. border-bottom: 1px solid $border;
  922. display: block;
  923. padding: 0.5rem 0.8rem;
  924. font-size: 0.8em;
  925. &:hover {
  926. background: $light-bg;
  927. }
  928. &:last-child {
  929. border-bottom: none;
  930. }
  931. &-size {
  932. color: $subtle-color;
  933. font-size: 0.9em;
  934. }
  935. }
  936. .feedback {
  937. @extend %box;
  938. &-buttons {
  939. margin-top: 10px;
  940. }
  941. }
  942. .footer {
  943. margin-top: auto;
  944. border-top: 1px solid $dark-border;
  945. background: $light-bg;
  946. color: hsl(210, 8%, 50%);
  947. font-size: 12px;
  948. &-menu {
  949. padding: 1em;
  950. display: flex;
  951. align-items: center;
  952. justify-content: space-between;
  953. @include phone {
  954. flex-direction: column;
  955. }
  956. }
  957. .menu {
  958. justify-content: center;
  959. flex-grow: 1;
  960. min-height: 1em;
  961. }
  962. }
  963. .dropdown-picker {
  964. display: flex;
  965. position: relative;
  966. }
  967. .feed-picker {
  968. > a {
  969. position: relative;
  970. top: 2px;
  971. margin-right: 1em;
  972. }
  973. svg {
  974. height: 25px;
  975. fill: currentColor;
  976. }
  977. }
  978. .not-published-note {
  979. margin: 0.1em 0 0;
  980. font-size: 0.65em;
  981. color: hsl(0, 0, 50%);
  982. }
  983. .btn {
  984. display: inline-block;
  985. padding: 10px 24px 9px;
  986. border: 1px solid hsla(0, 0%, 0%, 0.1);
  987. color: inherit;
  988. outline: none !important;
  989. border-radius: 4px;
  990. text-align: center;
  991. white-space: nowrap;
  992. vertical-align: middle;
  993. @extend %clickable;
  994. &--onDark {
  995. border-color: hsla(0, 0%, 100%, 0.3);
  996. color: white;
  997. }
  998. &--action {
  999. text-transform: uppercase;
  1000. font-size: 0.9em;
  1001. letter-spacing: 0.07em;
  1002. height: 2.75em;
  1003. padding: 0 11px !important;
  1004. display: inline-flex;
  1005. align-items: center;
  1006. .icon {
  1007. @include bidi-style(margin, 0 5px 0 -2px, margin, 0 -2px 0 5px);
  1008. fill: currentColor;
  1009. &:only-child {
  1010. margin: 0;
  1011. }
  1012. &:last-child {
  1013. @include bidi-style(margin, 0 -2px 0 7px, margin, 0 7px 0 -2px);
  1014. }
  1015. }
  1016. &.btn--slim {
  1017. padding-left: 7px !important;
  1018. padding-right: 7px !important;
  1019. .btn-label {
  1020. @include bidi-style(margin-left, 0, margin-right, 0);
  1021. }
  1022. }
  1023. }
  1024. &--split--first {
  1025. @include bidi-style(border-radius, 3px 0 0 3px, border-radius, 0 3px 3px 0);
  1026. }
  1027. &--split,
  1028. &--split--last {
  1029. border-radius: 0;
  1030. @include bidi-style(border-left-width, 0, border-right-width, 1px);
  1031. @include ltr(margin-left, 0 !important);
  1032. @include rtl(margin-right, 0 !important);
  1033. }
  1034. &--split--last {
  1035. @include bidi-style(border-radius, 0 3px 3px 0, border-radius, 3px 0 0 3px);
  1036. }
  1037. }
  1038. .btn[data-toggle='dropdown'] {
  1039. text-decoration: none;
  1040. }
  1041. .dropdown {
  1042. &-menu {
  1043. display: none;
  1044. position: absolute;
  1045. z-index: 1;
  1046. top: 100%;
  1047. left: 0;
  1048. margin: 12px 0 0;
  1049. padding: 0;
  1050. list-style: none;
  1051. font-size: 14px;
  1052. border-radius: 3px;
  1053. box-shadow:
  1054. 0 50px 100px hsla(200, 30%, 30%, 0.1),
  1055. 0 15px 35px hsla(200, 30%, 30%, 0.15),
  1056. 0 5px 15px hsla(0, 0%, 0%, 0.1);
  1057. background: white;
  1058. padding: 10px;
  1059. &.is-open {
  1060. display: block;
  1061. }
  1062. &::before {
  1063. content: '';
  1064. position: absolute;
  1065. top: -6px;
  1066. left: 30px;
  1067. width: 20px;
  1068. height: 20px;
  1069. -webkit-transform: rotate(45deg);
  1070. transform: rotate(45deg);
  1071. border-radius: 3px 0 20px;
  1072. background: white;
  1073. }
  1074. &-right {
  1075. left: auto;
  1076. right: 0;
  1077. &::before {
  1078. left: auto;
  1079. right: 30px;
  1080. }
  1081. }
  1082. &-up {
  1083. top: auto;
  1084. bottom: 100%;
  1085. margin-top: 0;
  1086. margin-bottom: 12px !important;
  1087. &::before {
  1088. top: auto;
  1089. bottom: -6px;
  1090. border-radius: 20px 0 3px;
  1091. }
  1092. }
  1093. li {
  1094. &:last-child a {
  1095. margin-bottom: 0;
  1096. }
  1097. &.is-selected {
  1098. a {
  1099. font-weight: bold;
  1100. }
  1101. .icon {
  1102. display: block;
  1103. }
  1104. }
  1105. &.is-disabled {
  1106. cursor: default;
  1107. a {
  1108. color: hsl(0, 0%, 72%);
  1109. &:hover,
  1110. &:focus {
  1111. background: none;
  1112. }
  1113. }
  1114. }
  1115. }
  1116. a {
  1117. color: black;
  1118. display: flex;
  1119. align-items: center;
  1120. padding: 8px 12px;
  1121. white-space: nowrap;
  1122. text-decoration: none;
  1123. border-radius: 3px;
  1124. &:hover,
  1125. &:focus {
  1126. background: hsl(200, 5%, 95%);
  1127. }
  1128. }
  1129. .icon {
  1130. display: none;
  1131. @include bidi-style(margin-right, 7px, margin-left, 0);
  1132. vertical-align: middle;
  1133. }
  1134. }
  1135. }
  1136. .kb-item--empty {
  1137. opacity: 0.5;
  1138. }
  1139. .language-banner {
  1140. background: hsl(234, 10%, 19%);
  1141. color: hsl(234, 5%, 80%);
  1142. display: flex;
  1143. &-text {
  1144. font-size: 14px;
  1145. line-height: 22px;
  1146. margin: 7px;
  1147. }
  1148. .button {
  1149. margin-left: 5px;
  1150. }
  1151. .icon-mood-supergood {
  1152. fill: currentColor;
  1153. width: 22px;
  1154. height: 22px;
  1155. @include ltr(margin, 8px 2px 0 10px);
  1156. @include rtl(margin, 8px 10px 0 2px);
  1157. vertical-align: middle;
  1158. }
  1159. .spacer {
  1160. margin: auto;
  1161. }
  1162. .close {
  1163. padding: 7px 5px 0;
  1164. fill: currentColor;
  1165. width: 34px;
  1166. @extend %clickable;
  1167. }
  1168. }
  1169. .videoWrapper {
  1170. position: relative;
  1171. padding-bottom: 56.25%; /* 16:9 */
  1172. padding-top: 25px;
  1173. height: 0;
  1174. }
  1175. .videoWrapper iframe {
  1176. position: absolute;
  1177. top: 0;
  1178. left: 0;
  1179. width: 100%;
  1180. height: 100%;
  1181. }