knowledge_base.scss 21 KB

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