knowledge_base.scss 22 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427
  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:
  798. 0 0 0 1px hsl(210, 5%, 92%),
  799. 0 2px hsl(210, 5%, 92%);
  800. border-radius: 2px;
  801. }
  802. thead tr:first-child {
  803. th {
  804. &:first-child {
  805. border-top-left-radius: 2px;
  806. }
  807. &:last-child {
  808. border-top-right-radius: 2px;
  809. }
  810. }
  811. }
  812. tbody tr:last-child {
  813. td {
  814. &:first-child {
  815. border-bottom-left-radius: 2px;
  816. }
  817. &:last-child {
  818. border-bottom-right-radius: 2px;
  819. }
  820. }
  821. }
  822. td,
  823. th {
  824. padding: 6px 10px;
  825. border: 1px solid hsl(210, 5%, 92%);
  826. }
  827. th {
  828. background: hsl(210, 5%, 96%);
  829. }
  830. td {
  831. text-align: '.' center;
  832. }
  833. table col {
  834. width: auto;
  835. }
  836. blockquote {
  837. padding: 8px 12px;
  838. border-left: 5px solid #eee;
  839. }
  840. code {
  841. border: none;
  842. background: hsl(0, 0%, 97%);
  843. white-space: pre-wrap;
  844. }
  845. pre {
  846. padding: 12px 15px;
  847. font-size: 13px;
  848. line-height: 1.45;
  849. background: hsl(0, 0%, 97%);
  850. white-space: pre-wrap;
  851. border-radius: 3px;
  852. border: none;
  853. overflow: auto;
  854. }
  855. hr {
  856. margin-top: 13px;
  857. margin-bottom: 13px;
  858. border: none;
  859. border-top: 1px solid hsl(210, 14%, 91%);
  860. }
  861. }
  862. .article-tags {
  863. margin-top: 1rem;
  864. }
  865. .article-accessories {
  866. padding: 2rem 0 2rem 4rem;
  867. margin: 2rem 0;
  868. list-style: none;
  869. border-top: 1px solid $border;
  870. position: relative;
  871. @include phone {
  872. padding-left: 2.8rem;
  873. }
  874. .icon {
  875. position: absolute;
  876. left: 1.2rem;
  877. top: 2rem;
  878. width: 2rem;
  879. height: 2rem;
  880. fill: hsl(208, 13%, 81%);
  881. @include phone {
  882. left: 0.5rem;
  883. }
  884. }
  885. &-title {
  886. text-transform: uppercase;
  887. font-size: 0.8em;
  888. font-weight: bold;
  889. color: $light-color;
  890. padding: 0 0.8rem 0.2rem;
  891. }
  892. &:not(:last-child) {
  893. padding-bottom: 0;
  894. margin-bottom: 0;
  895. }
  896. }
  897. .tags-content {
  898. display: flex;
  899. flex-wrap: wrap;
  900. padding: 0.2rem 0.6rem 0;
  901. .tag {
  902. margin: 0.2rem;
  903. }
  904. }
  905. .tag {
  906. font-size: 0.8em;
  907. display: inline-block;
  908. color: white;
  909. border-radius: 999px;
  910. padding: 2px 12px 1px;
  911. text-decoration: none;
  912. }
  913. .attachment {
  914. text-decoration: none;
  915. border-bottom: 1px solid $border;
  916. display: block;
  917. padding: 0.5rem 0.8rem;
  918. font-size: 0.8em;
  919. &:hover {
  920. background: $light-bg;
  921. }
  922. &:last-child {
  923. border-bottom: none;
  924. }
  925. &-size {
  926. color: $subtle-color;
  927. font-size: 0.9em;
  928. }
  929. }
  930. .feedback {
  931. @extend %box;
  932. &-buttons {
  933. margin-top: 10px;
  934. }
  935. }
  936. .footer {
  937. margin-top: auto;
  938. border-top: 1px solid $dark-border;
  939. background: $light-bg;
  940. color: hsl(210, 8%, 50%);
  941. font-size: 12px;
  942. &-menu {
  943. padding: 10px;
  944. display: flex;
  945. align-items: center;
  946. justify-content: space-between;
  947. }
  948. .menu {
  949. justify-content: center;
  950. flex-grow: 1;
  951. }
  952. }
  953. .dropdown-picker {
  954. display: flex;
  955. position: relative;
  956. }
  957. .feed-picker {
  958. > a {
  959. position: relative;
  960. top: 2px;
  961. margin-right: 1em;
  962. }
  963. svg {
  964. height: 25px;
  965. fill: currentColor;
  966. }
  967. }
  968. .not-published-note {
  969. margin: 0.1em 0 0;
  970. font-size: 0.65em;
  971. color: hsl(0, 0, 50%);
  972. }
  973. .btn {
  974. display: inline-block;
  975. padding: 10px 24px 9px;
  976. border: 1px solid hsla(0, 0%, 0%, 0.1);
  977. color: inherit;
  978. outline: none !important;
  979. border-radius: 4px;
  980. text-align: center;
  981. white-space: nowrap;
  982. vertical-align: middle;
  983. @extend %clickable;
  984. &--onDark {
  985. border-color: hsla(0, 0%, 100%, 0.3);
  986. color: white;
  987. }
  988. &--action {
  989. text-transform: uppercase;
  990. font-size: 0.9em;
  991. letter-spacing: 0.07em;
  992. height: 2.75em;
  993. padding: 0 11px !important;
  994. display: inline-flex;
  995. align-items: center;
  996. .icon {
  997. @include bidi-style(margin, 0 5px 0 -2px, margin, 0 -2px 0 5px);
  998. fill: currentColor;
  999. &:only-child {
  1000. margin: 0;
  1001. }
  1002. &:last-child {
  1003. @include bidi-style(margin, 0 -2px 0 7px, margin, 0 7px 0 -2px);
  1004. }
  1005. }
  1006. &.btn--slim {
  1007. padding-left: 7px !important;
  1008. padding-right: 7px !important;
  1009. .btn-label {
  1010. @include bidi-style(margin-left, 0, margin-right, 0);
  1011. }
  1012. }
  1013. }
  1014. &--split--first {
  1015. @include bidi-style(border-radius, 3px 0 0 3px, border-radius, 0 3px 3px 0);
  1016. }
  1017. &--split,
  1018. &--split--last {
  1019. border-radius: 0;
  1020. @include bidi-style(border-left-width, 0, border-right-width, 1px);
  1021. @include ltr(margin-left, 0 !important);
  1022. @include rtl(margin-right, 0 !important);
  1023. }
  1024. &--split--last {
  1025. @include bidi-style(border-radius, 0 3px 3px 0, border-radius, 3px 0 0 3px);
  1026. }
  1027. }
  1028. .btn[data-toggle='dropdown'] {
  1029. text-decoration: none;
  1030. }
  1031. .dropdown {
  1032. &-menu {
  1033. display: none;
  1034. position: absolute;
  1035. z-index: 1;
  1036. top: 100%;
  1037. left: 0;
  1038. margin: 12px 0 0;
  1039. padding: 0;
  1040. list-style: none;
  1041. font-size: 14px;
  1042. border-radius: 3px;
  1043. box-shadow:
  1044. 0 50px 100px hsla(200, 30%, 30%, 0.1),
  1045. 0 15px 35px hsla(200, 30%, 30%, 0.15),
  1046. 0 5px 15px hsla(0, 0%, 0%, 0.1);
  1047. background: white;
  1048. padding: 10px;
  1049. &.is-open {
  1050. display: block;
  1051. }
  1052. &::before {
  1053. content: '';
  1054. position: absolute;
  1055. top: -6px;
  1056. left: 30px;
  1057. width: 20px;
  1058. height: 20px;
  1059. -webkit-transform: rotate(45deg);
  1060. transform: rotate(45deg);
  1061. border-radius: 3px 0 20px;
  1062. background: white;
  1063. }
  1064. &-right {
  1065. left: auto;
  1066. right: 0;
  1067. &::before {
  1068. left: auto;
  1069. right: 30px;
  1070. }
  1071. }
  1072. &-up {
  1073. top: auto;
  1074. bottom: 100%;
  1075. margin-top: 0;
  1076. margin-bottom: 12px !important;
  1077. &::before {
  1078. top: auto;
  1079. bottom: -6px;
  1080. border-radius: 20px 0 3px;
  1081. }
  1082. }
  1083. li {
  1084. &:last-child a {
  1085. margin-bottom: 0;
  1086. }
  1087. &.is-selected {
  1088. a {
  1089. font-weight: bold;
  1090. }
  1091. .icon {
  1092. display: block;
  1093. }
  1094. }
  1095. &.is-disabled {
  1096. cursor: default;
  1097. a {
  1098. color: hsl(0, 0%, 72%);
  1099. &:hover,
  1100. &:focus {
  1101. background: none;
  1102. }
  1103. }
  1104. }
  1105. }
  1106. a {
  1107. color: black;
  1108. display: flex;
  1109. align-items: center;
  1110. padding: 8px 12px;
  1111. white-space: nowrap;
  1112. text-decoration: none;
  1113. border-radius: 3px;
  1114. &:hover,
  1115. &:focus {
  1116. background: hsl(200, 5%, 95%);
  1117. }
  1118. }
  1119. .icon {
  1120. display: none;
  1121. @include bidi-style(margin-right, 7px, margin-left, 0);
  1122. vertical-align: middle;
  1123. }
  1124. }
  1125. }
  1126. .kb-item--empty {
  1127. opacity: 0.5;
  1128. }
  1129. .language-banner {
  1130. background: hsl(234, 10%, 19%);
  1131. color: hsl(234, 5%, 80%);
  1132. display: flex;
  1133. &-text {
  1134. font-size: 14px;
  1135. line-height: 22px;
  1136. margin: 7px;
  1137. }
  1138. .button {
  1139. margin-left: 5px;
  1140. }
  1141. .icon-mood-supergood {
  1142. fill: currentColor;
  1143. width: 22px;
  1144. height: 22px;
  1145. @include ltr(margin, 8px 2px 0 10px);
  1146. @include rtl(margin, 8px 10px 0 2px);
  1147. vertical-align: middle;
  1148. }
  1149. .spacer {
  1150. margin: auto;
  1151. }
  1152. .close {
  1153. padding: 7px 5px 0;
  1154. fill: currentColor;
  1155. width: 34px;
  1156. @extend %clickable;
  1157. }
  1158. }
  1159. .videoWrapper {
  1160. position: relative;
  1161. padding-bottom: 56.25%; /* 16:9 */
  1162. padding-top: 25px;
  1163. height: 0;
  1164. }
  1165. .videoWrapper iframe {
  1166. position: absolute;
  1167. top: 0;
  1168. left: 0;
  1169. width: 100%;
  1170. height: 100%;
  1171. }