| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236 |
- @import 'variables';
- $block-border-radius: 4px;
- @mixin codelike {
- display: inline-block;
- border-radius: 3px;
- font-family: 'Source Code Pro', monospace;
- background-color: $gray-100;
- border: 1px solid $gray-200;
- }
- .markdown {
- line-height: 1.8;
- color: $body-font-color;
- background: $body-background;
- font-family: 'Inter', sans-serif;
- font-weight: $body-font-weight;
- @media all and (min-width: $sm-breakpoint) {
- margin-left: 12px;
- }
- h1 {
- font-size: 1.875rem;
- line-height: 2.25rem;
- }
- h1:first-of-type {
- text-transform: capitalize;
- margin-top: 0;
- margin-bottom: 0;
- font-size: 2.8em;
- @media all and (max-width: $sm-breakpoint) {
- font-size: 2em;
- }
- }
- .symbol {
- border: 1px solid #ddd;
- border-radius: 4px;
- padding: 24px;
- margin: 24px 0 48px 0;
- background-color: #fafafa;
- > h1:first-of-type {
- text-transform: none;
- font-size: 1.875rem;
- line-height: 2.25rem;
- }
- }
- h1:not(:first-of-type) {
- margin-top: 48px;
- padding: 3px 12px;
- @include codelike;
- }
- h2 {
- margin-top: 60px;
- margin-bottom: 6px;
- font-size: 1.8em;
- font-weight: 400;
- }
- h3 {
- margin-top: 48px;
- font-size: 1.4em;
- }
- h3.member-title {
- margin-top: 6px;
- margin-left: 6px;
- padding: 2px 6px;
- @include codelike;
- }
- h4 {
- margin-top: 32px;
- }
- h1,
- h2,
- h3,
- h4,
- h5 {
- font-family: $brand-font-face;
- letter-spacing: -0.025em;
- line-height: 1.25;
- &[id]:target {
- scroll-margin-top: 60px;
- text-decoration: underline;
- }
- }
- p {
- margin: 16px 0;
- }
- b,
- optgroup,
- strong {
- font-weight: 700;
- }
- a {
- text-decoration: none;
- color: $color-link;
- &:hover,
- &:visited:hover {
- color: lighten($color-link, 10%);
- }
- &:visited {
- color: $color-visited-link;
- }
- }
- ul,
- ol:not(.breadcrumbs) {
- list-style-type: initial;
- padding-left: 40px;
- }
- ol:not(.breadcrumbs) {
- list-style-type: decimal;
- }
- li {
- margin-bottom: 6px;
- }
- li::marker {
- color: $gray-600;
- }
- code:not([data-lang]) {
- font-family: 'Source Code Pro', monospace;
- padding: 0 $padding-4;
- background: $gray-200;
- color: $gray-700;
- font-size: 0.9em;
- border-radius: $block-border-radius;
- border: 1px solid $gray-300;
- }
- a > code:not([data-lang]) {
- color: $color-link;
- }
- pre:not(.chroma) {
- padding: $padding-16;
- background: $color-code-bg;
- border-radius: $block-border-radius;
- font-size: $font-size-14;
- overflow-x: auto;
- code {
- color: $color-code-text;
- background: none;
- padding: none;
- }
- }
- blockquote {
- margin: 0;
- padding: $padding-16 $padding-16 * 2;
- position: relative;
- // font-size: 22px;
- color: $gray-700;
- border-left: 2px solid $gray-300;
- :first-child {
- margin-top: 0;
- }
- :last-child {
- margin-bottom: 0;
- }
- &::before {
- content: '“';
- position: absolute;
- font-family: Georgia, 'Times New Roman', Times, serif;
- font-size: 48px;
- top: 0px;
- left: 10px;
- color: $gray-500;
- }
- }
- table {
- width: 100%;
- th {
- text-align: left;
- }
- td,
- th {
- padding: $padding-4;
- }
- tr:nth-child(odd) td {
- background-color: $gray-100;
- }
- }
- figure {
- margin: $padding-16 0;
- display: flex;
- flex-direction: column;
- justify-content: center;
- img {
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
- border-radius: 0.5rem;
- }
- &.flat {
- img {
- box-shadow: none;
- }
- }
- figcaption p,
- figcaption h4 {
- text-align: center;
- font-size: $font-size-base;
- margin-top: $padding-4;
- margin-bottom: $padding-4;
- font-style: italic;
- }
- }
- .highlight + .highlight {
- margin-top: 16px;
- }
- }
|