Advertisement
Btwonu

base

Dec 31st, 2021
1,115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.92 KB | None | 0 0
  1. /* ------------------------------------------------------------ *\
  2.     Base
  3. \* ------------------------------------------------------------ */
  4. html {
  5.     @include fluid-type($font-size-base, 1.5);
  6. }
  7. body {
  8.     min-width: 320px;
  9.     background: #F5F0E6;
  10.     font-family: $ff-sans-serif;
  11.     font-weight: $font-weight-base;
  12.     font-size: 2.4rem;
  13.     line-height: $line-height-base;
  14.     color: $c-green;
  15.  
  16.     @include breakpoint-down(tablet) {
  17.         font-size: 16px;
  18.     }
  19. }
  20.  
  21. a {
  22.     color: inherit;
  23.     text-decoration: underline;
  24.  
  25.     &:hover {
  26.         color: $c-orange;
  27.     }
  28. }
  29.  
  30.  
  31. .h1,
  32. h1,
  33. .h2,
  34. h2,
  35. .h3,
  36. h3,
  37. .h4,
  38. h4,
  39. .h5,
  40. h5,
  41. .h6,
  42. h6 {
  43.     font-family: $ff-sans-serif2;
  44.     font-weight: 500;
  45.     margin-bottom: calc(#{$line-height-base}em / 2);
  46.     line-height: 1.2;
  47. }
  48.  
  49. .h1,
  50. h1 {
  51.     font-size: 7.6rem;
  52.     letter-spacing: .140em;
  53.     margin-bottom: 20px;
  54.  
  55.     @include breakpoint-down(tablet) {
  56.         font-size: 36px;
  57.     }
  58. }
  59.  
  60. .h2,
  61. h2 {
  62.     font-size: 7.6rem;
  63.     letter-spacing: .140em;
  64.     margin-bottom: 20px;
  65.  
  66.     @include breakpoint-down(tablet) {
  67.         font-size: 36px;
  68.     }
  69. }
  70.  
  71. .h3,
  72. h3 {
  73.     font-size: 5rem;
  74.     letter-spacing: .120em;
  75.  
  76.     @include breakpoint-down(tablet) {
  77.         font-size: 30px;
  78.     }
  79. }
  80.  
  81. .h4,
  82. h4 {
  83.     font-size: 3.6rem;
  84.  
  85.     @include breakpoint-down(tablet) {
  86.         font-size: 28px;
  87.     }
  88. }
  89.  
  90. .h5,
  91. h5 {
  92.     font-size: 2.8rem;
  93.  
  94.     @include breakpoint-down(tablet) {
  95.         font-size: 22px;
  96.     }
  97. }
  98.  
  99. .h6,
  100. h6 {
  101.     font-size: 2.2rem;
  102.  
  103.     @include breakpoint-down(tablet) {
  104.         font-size: 18px;
  105.     }
  106. }
  107.  
  108.  
  109. p,
  110. ul,
  111. ol,
  112. dl,
  113. hr,
  114. table,
  115. blockquote {
  116.     margin-bottom: #{$line-height-base}em;
  117. }
  118.  
  119. h1[class],
  120. h2[class],
  121. h3[class],
  122. h4[class],
  123. h5[class],
  124. h6[class],
  125. h1:last-child,
  126. h2:last-child,
  127. h3:last-child,
  128. h4:last-child,
  129. h5:last-child,
  130. h6:last-child,
  131. p:last-child,
  132. ul:last-child,
  133. ol:last-child,
  134. dl:last-child,
  135. table:last-child,
  136. blockquote:last-child {
  137.     margin-bottom: 0;
  138. }
  139.  
  140. a,
  141. button,
  142. input[type="submit"],
  143. input[type="button"] {
  144.     @include transitionsBase;
  145. }
  146.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement