_typography.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. // Body Base
  2. body {
  3. font-family: $font-family-default;
  4. letter-spacing: -0.03rem;
  5. font-weight: 400;
  6. }
  7. // Headings
  8. h1, h2, h3, h4, h5, h6 {
  9. font-family: $font-family-header;
  10. font-weight: 400;
  11. text-rendering: optimizeLegibility;
  12. line-height: 150%;
  13. letter-spacing: -0px;
  14. }
  15. h1 {
  16. text-align: center;
  17. letter-spacing: -3px;
  18. }
  19. h2 {
  20. letter-spacing: -2px;
  21. }
  22. h3 {
  23. letter-spacing: -1px;
  24. }
  25. // Blockquote
  26. blockquote {
  27. border-left: 10px solid $rule-color;
  28. p {
  29. font-size: 1.1rem;
  30. color: #999;
  31. }
  32. cite {
  33. display: block;
  34. text-align: right;
  35. color: #666;
  36. font-size: 1.2rem;
  37. }
  38. }
  39. // NOTES!!!!
  40. blockquote {
  41. position: relative;
  42. }
  43. blockquote blockquote {
  44. position: static;
  45. }
  46. blockquote > blockquote > blockquote {
  47. margin: 0;
  48. p {
  49. padding: 15px;
  50. display: block;
  51. font-size: 1rem;
  52. margin-top: 0rem;
  53. margin-bottom: 0rem;
  54. color: #666;
  55. &:first-child {
  56. &:before {
  57. position: absolute;
  58. top: 2px;
  59. color: $white;
  60. font-family: FontAwesome;
  61. content: '';
  62. left: 10px;
  63. }
  64. &:after {
  65. position: absolute;
  66. top: 2px;
  67. color: $white;
  68. left: 2rem;
  69. font-weight: bold;
  70. content: 'Info';
  71. }
  72. }
  73. }
  74. > p {
  75. // Yellow
  76. margin-left: -71px;
  77. border-top: 30px solid #F0B37E;
  78. background: #FFF2DB;
  79. }
  80. > blockquote > p {
  81. // Red
  82. margin-left: -94px;
  83. border-top: 30px solid rgba(#D9534F, 0.8);
  84. background: #FAE2E2;
  85. &:first-child:after {
  86. content: 'Warning';
  87. }
  88. }
  89. > blockquote > blockquote > p {
  90. // Blue
  91. margin-left: -118px;
  92. border-top: 30px solid #6AB0DE;
  93. background: #E7F2FA;
  94. &:first-child:after {
  95. content: 'Note';
  96. }
  97. }
  98. > blockquote > blockquote > blockquote > p {
  99. // Green
  100. margin-left: -142px;
  101. border-top: 30px solid rgba(#5CB85C, 0.8);
  102. background: #E6F9E6;
  103. &:first-child:after {
  104. content: 'Tip';
  105. }
  106. }
  107. }
  108. // Inline and Code
  109. code,
  110. kbd,
  111. pre,
  112. samp {
  113. font-family: $font-family-mono;
  114. }
  115. code {
  116. background: $code-bg;
  117. color: darken($code-text,10%);
  118. padding: .2rem .4rem;
  119. border-radius: 3px;
  120. }
  121. pre {
  122. padding: 1rem;
  123. margin: 2rem 0;
  124. background: $pre-bg;
  125. border: 1px solid $core-border-color;
  126. border-radius: 2px;
  127. line-height: 1.15;
  128. font-size: 1rem;
  129. code {
  130. color: $pre-text;
  131. background: inherit;
  132. font-size: 1rem;
  133. }
  134. }
  135. // Extras
  136. hr {
  137. border-bottom: 4px solid $rule-color;
  138. }
  139. // Page Title
  140. .page-title {
  141. margin-top: -25px;
  142. padding: 25px;
  143. float: left;
  144. clear: both;
  145. background: $core-accent;
  146. color: $white;
  147. }
  148. // Anchor links
  149. #body {
  150. a.anchor-link { color: #ccc; }
  151. a.anchor-link:hover { color: $core-accent; }
  152. }
  153. // Scrollbar
  154. .scrollbar-inner > .scroll-element .scroll-element_track { background-color: rgba($white, 0.3); }
  155. .scrollbar-inner > .scroll-element .scroll-bar { background-color: lighten(#A1C4E5, 5%); }
  156. .scrollbar-inner > .scroll-element:hover .scroll-bar { background-color: #ccc; }
  157. .scrollbar-inner > .scroll-element.scroll-draggable .scroll-bar { background-color: #ccc; }