main.scss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. ---
  2. # Only the main Sass file needs front matter (the dashes are enough)
  3. ---
  4. @charset "utf-8";
  5. @font-face {
  6. font-family: 'Lato';
  7. src: url("{{ '/static/fonts/LatoLatin-Italic.woff2' | relative_url }}") format('woff2'),
  8. url("{{ '/static/fonts/LatoLatin-Italic.woff' | relative_url }}") format('woff');
  9. font-weight: normal;
  10. font-style: italic;
  11. }
  12. @font-face {
  13. font-family: 'Lato';
  14. src: url("{{ '/static/fonts/LatoLatin-Black.woff2' | relative_url }}") format('woff2'),
  15. url("{{ '/static/fonts/LatoLatin-Black.woff' | relative_url }}") format('woff');
  16. font-weight: 900;
  17. font-style: normal;
  18. }
  19. @font-face {
  20. font-family: 'Lato';
  21. src: url("{{ '/static/fonts/LatoLatin-BlackItalic.woff2' | relative_url }}") format('woff2'),
  22. url("{{ '/static/fonts/LatoLatin-BlackItalic.woff' | relative_url }}") format('woff');
  23. font-weight: 900;
  24. font-style: italic;
  25. }
  26. @font-face {
  27. font-family: 'Lato';
  28. src: url("{{ '/static/fonts/LatoLatin-Light.woff2' | relative_url }}") format('woff2'),
  29. url("{{ '/static/fonts/LatoLatin-Light.woff' | relative_url }}") format('woff');
  30. font-weight: 300;
  31. font-style: normal;
  32. }
  33. @font-face {
  34. font-family: 'Lato';
  35. src: url("{{ '/static/fonts/LatoLatin-Regular.woff2' | relative_url }}") format('woff2'),
  36. url("{{ '/static/fonts/LatoLatin-Regular.woff' | relative_url }}") format('woff');
  37. font-weight: normal;
  38. font-style: normal;
  39. }
  40. // Our variables
  41. $base-font-family: 'Lato', Calibri, Arial, sans-serif;
  42. $header-font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  43. $base-font-size: 18px;
  44. $small-font-size: $base-font-size * 0.875;
  45. $base-line-height: 1.4em;
  46. $spacing-unit: 12px;
  47. // Two configured colors (see _config.yml)
  48. $primary-bg: {{ site.color.primary }};
  49. $secondary-bg: {{ site.color.secondary }};
  50. // $primary-bg overlays
  51. {% if site.color.primary-overlay == 'light' %}
  52. $primary-overlay: darken($primary-bg, 70%);
  53. $primary-overlay-special: darken($primary-bg, 40%);
  54. {% else %}
  55. $primary-overlay: #fff;
  56. $primary-overlay-special: lighten($primary-bg, 30%);
  57. {% endif %}
  58. // $secondary-bg overlays
  59. {% if site.color.secondary-overlay == 'light' %}
  60. $text: #393939;
  61. $sidenav: darken($secondary-bg, 20%);
  62. $sidenav-text: $text;
  63. $sidenav-overlay: darken($sidenav, 10%);
  64. $sidenav-active: lighten($sidenav, 10%);
  65. {% else %}
  66. $text: #fff;
  67. $sidenav: lighten($secondary-bg, 20%);
  68. $sidenav-text: $text;
  69. $sidenav-overlay: lighten($sidenav, 10%);
  70. $sidenav-active: darken($sidenav, 10%);
  71. {% endif %}
  72. $code-bg: #002b36;
  73. $header-height: 34px;
  74. $header-ptop: 10px;
  75. $header-pbot: 8px;
  76. // Width of the content area
  77. $content-width: 900px;
  78. // Table setting variables
  79. $lightergrey: #F8F8F8;
  80. $greyish: #E8E8E8;
  81. $lightgrey: #B0B0B0;
  82. $green: #2db04b;
  83. // Using media queries with like this:
  84. // @include media-query($on-palm) {
  85. // .wrapper {
  86. // padding-right: $spacing-unit / 2;
  87. // padding-left: $spacing-unit / 2;
  88. // }
  89. // }
  90. @mixin media-query($device) {
  91. @media screen and (max-width: $device) {
  92. @content;
  93. }
  94. }
  95. // Import partials from `sass_dir` (defaults to `_sass`)
  96. @import
  97. "reset",
  98. "base",
  99. "header",
  100. "search",
  101. "syntax-highlighting",
  102. "promo",
  103. "buttons",
  104. "gridBlock",
  105. "poweredby",
  106. "footer",
  107. "react_header_nav",
  108. "react_docs_nav",
  109. "tables",
  110. "blog"
  111. ;
  112. // Anchor links
  113. // http://ben.balter.com/2014/03/13/pages-anchor-links/
  114. .header-link {
  115. position: absolute;
  116. margin-left: 0.2em;
  117. opacity: 0;
  118. -webkit-transition: opacity 0.2s ease-in-out 0.1s;
  119. -moz-transition: opacity 0.2s ease-in-out 0.1s;
  120. -ms-transition: opacity 0.2s ease-in-out 0.1s;
  121. }
  122. h2:hover .header-link,
  123. h3:hover .header-link,
  124. h4:hover .header-link,
  125. h5:hover .header-link,
  126. h6:hover .header-link {
  127. opacity: 1;
  128. }