_fonts.scss 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. $font-family-text: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
  2. "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
  3. sans-serif;
  4. $font-family-display: 'Lekton', sans-serif;
  5. $font-family-special: 'Special Elite', cursive;
  6. $font-weight-light: 300;
  7. $font-weight-regular: 400;
  8. $font-weight-bold: 600;
  9. $font-size-x-small: 0.625rem;
  10. $font-size-small: 0.75rem;
  11. $font-size-regular: 0.875rem;
  12. $font-size-large: 1rem;
  13. $font-size-x-large: 1.25rem;
  14. $font-size-xx-large: 1.5rem;
  15. $font-size-xxx-large: 2rem;
  16. $font-size-xxxx-large: 2.125rem;
  17. $letter-spacing-normal: 0.1px;
  18. $letter-spacing-enhanced: 0.5px;
  19. @mixin button() {
  20. font-size: 0.875rem;
  21. line-height: 2.25rem;
  22. font-weight: 500;
  23. letter-spacing: $letter-spacing-normal;
  24. text-decoration: none;
  25. text-transform: uppercase;
  26. font-family: $font-family-text;
  27. }
  28. @mixin display() {
  29. font-family: $font-family-display;
  30. font-size: $font-size-regular;
  31. font-weight: $font-weight-bold;
  32. letter-spacing: $letter-spacing-enhanced;
  33. }
  34. @mixin error() {
  35. font-family: $font-family-text;
  36. color: $red;
  37. line-height: $font-size-x-large;
  38. font-style: italic;
  39. }
  40. @mixin cursive($size: $font-size-regular) {
  41. font-family: $font-family-text;
  42. color: $grey-600;
  43. font-style: italic;
  44. font-size: $size;
  45. }
  46. @mixin link($color: $black, $bgColor: $yellow, $activeColor: $black) {
  47. color: $color;
  48. background:
  49. linear-gradient(
  50. to bottom, $bgColor 0%,
  51. $bgColor 100%
  52. );
  53. background-position: 0 100%;
  54. background-repeat: repeat-x;
  55. background-size: 2px 2px;
  56. text-decoration: none;
  57. transition: background-size .2s, color .2s;
  58. text-decoration: none;
  59. font-family: $font-family-display;
  60. font-size: $font-size-regular;
  61. letter-spacing: 0.075em;
  62. &:hover {
  63. background-size: 2px 50px;
  64. color: $activeColor;
  65. }
  66. #{if(&, '&.active', '.link--active')} {
  67. background-size: 2px 50px;
  68. color: $activeColor;
  69. }
  70. }