knowledge_base.scss 22 KB

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