_typo.scss 1.4 KB
Newer Older
C
codecalm 已提交
1 2
@import 'typo/hr';

C
chomik 已提交
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
.lead {
  line-height: 1.4;
}

a {
  text-decoration-skip-ink: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
C
chomik 已提交
23

C
chomik 已提交
24 25 26 27 28 29 30 31 32 33 34
  a {
    color: inherit;
  }
}

strong,
b {
  font-weight: 600;
}

blockquote {
C
chomik 已提交
35
  padding-left: 1rem;
C
chomik 已提交
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
  color: $text-muted;
  border-left: 2px solid $border-color;

  p {
    margin-bottom: 1rem;
  }

  cite {
    display: block;
    text-align: right;

    &::before {
      content: "— ";
    }
  }
}

code {
  padding: 3px;
  background: rgba(0, 0, 0, .025);
  border: 1px solid rgba(#000, .05);
  border-radius: $border-radius;

  pre & {
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
  }
}



pre {
  padding: 1rem;
  overflow: auto;
  font-size: 85%;
  hyphens: none;
  line-height: 1.45;
  color: $gray-800;
  tab-size: 3;
  background-color: #f8fafc;
  border-radius: $border-radius;
C
codecalm 已提交
79
  -webkit-font-smoothing: auto;
C
chomik 已提交
80 81 82 83 84 85 86 87 88 89 90 91 92 93
}

img {
  max-width: 100%;
}

/**
Divider
 */
.divider {
  display: flex;
  flex: 0;
  align-items: center;
  width: 100%;
C
codecalm 已提交
94
  margin: 1.5rem auto;
C
chomik 已提交
95 96 97
  font-size: $h6-font-size;
  color: $text-muted;
  letter-spacing: .5px;
C
codecalm 已提交
98
  font-weight: 400;
C
chomik 已提交
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122

  &::before,
  &::after {
    flex-grow: 1;
    content: "";
    border-top: 1px solid $border-color;
  }

  &::before {
    margin-right: 1rem;
  }

  &::after {
    margin-left: 1rem;
  }
}

/**
Selection
 */
::selection {
  color: #fff;
  background-color: lighten($primary, 8%);
}