_type.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. @import "typo/hr";
  2. .lead {
  3. line-height: 1.4;
  4. }
  5. a {
  6. text-decoration-skip-ink: auto;
  7. }
  8. h1,
  9. h2,
  10. h3,
  11. h4,
  12. h5,
  13. h6,
  14. .h1,
  15. .h2,
  16. .h3,
  17. .h4,
  18. .h5,
  19. .h6 {
  20. a {
  21. color: inherit;
  22. &:hover {
  23. color: inherit;
  24. }
  25. }
  26. }
  27. h1,
  28. .h1 {
  29. font-size: var(--#{$prefix}font-size-h1);
  30. line-height: var(--#{$prefix}line-height-h1);
  31. }
  32. h2,
  33. .h2 {
  34. font-size: var(--#{$prefix}font-size-h2);
  35. line-height: var(--#{$prefix}line-height-h2);
  36. }
  37. h3,
  38. .h3 {
  39. font-size: var(--#{$prefix}font-size-h3);
  40. line-height: var(--#{$prefix}line-height-h3);
  41. }
  42. h4,
  43. .h4 {
  44. font-size: var(--#{$prefix}font-size-h4);
  45. line-height: var(--#{$prefix}line-height-h4);
  46. }
  47. h5,
  48. .h5 {
  49. font-size: var(--#{$prefix}font-size-h5);
  50. line-height: var(--#{$prefix}line-height-h5);
  51. }
  52. h6,
  53. .h6 {
  54. font-size: var(--#{$prefix}font-size-h6);
  55. line-height: var(--#{$prefix}line-height-h6);
  56. }
  57. strong,
  58. .strong,
  59. b {
  60. font-weight: $headings-font-weight;
  61. }
  62. blockquote {
  63. padding-left: 1rem;
  64. border-left: 2px var(--#{$prefix}border-style) var(--#{$prefix}border-color);
  65. p {
  66. margin-bottom: 1rem;
  67. }
  68. cite {
  69. display: block;
  70. text-align: right;
  71. &:before {
  72. content: "— ";
  73. }
  74. }
  75. }
  76. ul, ol {
  77. padding-left: 1.5rem;
  78. }
  79. hr {
  80. margin: 2rem 0;
  81. }
  82. dl {
  83. dd {
  84. &:last-child {
  85. margin-bottom: 0;
  86. }
  87. }
  88. }
  89. pre {
  90. padding: $pre-padding;
  91. background: $pre-bg;
  92. color: $pre-color;
  93. border-radius: var(--#{$prefix}border-radius);
  94. code {
  95. background: transparent;
  96. }
  97. }
  98. code {
  99. background: var(--#{$prefix}code-bg);
  100. padding: 2px 4px;
  101. border-radius: var(--#{$prefix}border-radius);
  102. }
  103. kbd,
  104. .kbd {
  105. border: $kbd-border;
  106. display: inline-block;
  107. box-sizing: border-box;
  108. max-width: 100%;
  109. font-size: $kbd-font-size;
  110. font-weight: $kbd-font-weight;
  111. line-height: 1;
  112. vertical-align: baseline;
  113. border-radius: $kbd-border-radius;
  114. }
  115. img {
  116. max-width: 100%;
  117. }
  118. .list-unstyled {
  119. margin-left: 0;
  120. }
  121. /**
  122. Selection
  123. */
  124. ::selection {
  125. background-color: rgba(var(--#{$prefix}primary-rgb), .16);
  126. }
  127. /**
  128. Links
  129. */
  130. [class^="link-"], [class*=" link-"] {
  131. &.disabled {
  132. color: $nav-link-disabled-color !important;
  133. pointer-events: none;
  134. }
  135. }
  136. /**
  137. Subheader
  138. */
  139. .subheader {
  140. @include subheader;
  141. }