mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
Update to use locally hosted Monserrat font
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<link rel="stylesheet" href="/css/style.min.css">
|
||||
<script src="https://use.typekit.net/bmc1jgv.js"></script>
|
||||
<script>try{Typekit.load({ async: false });}catch(e){}</script>
|
||||
<link rel="stylesheet" href="{{ "css/style.min.css" | relURL}}">
|
||||
<!-- <script src="https://use.typekit.net/bmc1jgv.js"></script>
|
||||
<script>try{Typekit.load({ async: false });}catch(e){}</script> -->
|
||||
{{if .Site.Params.usefontawesome}}
|
||||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
|
||||
{{end}}
|
||||
|
||||
@@ -17,7 +17,7 @@ $('.top-menu-item-link.has-children').on('click', function(evt) {
|
||||
} else {
|
||||
$(this).addClass('open');
|
||||
}
|
||||
console.log(siblingLinks);
|
||||
// console.log(siblingLinks);
|
||||
});
|
||||
|
||||
//toggle off-canvas navigation for M- screens
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
}
|
||||
})();
|
||||
|
||||
//quasi scroll spy to work with Hugo's native TOC
|
||||
$(document).ready(function() {
|
||||
// Cache selectors
|
||||
var lastId,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//removes toc if not enough headings
|
||||
(function() {
|
||||
let tocLinks = document.querySelectorAll('#TableOfContents > ul a');
|
||||
let toc = document.getElementById('toc');
|
||||
let tocLinks = document.querySelectorAll('#TableOfContents > ul a'),
|
||||
toc = document.getElementById('toc');
|
||||
if (toc && (tocLinks.length < 2)) {
|
||||
toc.remove();
|
||||
} else if (tocLinks.length > 1) {
|
||||
@@ -12,7 +12,6 @@
|
||||
function toggleToc(evt) {
|
||||
evt.preventDefault();
|
||||
evt.stopPropagation();
|
||||
console.log("hello");
|
||||
document.getElementById('toc').classList.toggle('toc-open');
|
||||
document.getElementById('toc-toggle').classList.toggle('toc-open');
|
||||
}
|
||||
|
||||
@@ -40,7 +40,8 @@ $base-line-height-content: 1.6;
|
||||
$base-font-bold-color: $base-font-color;
|
||||
$systemfonts: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbols";
|
||||
// Font Families
|
||||
$base-font-family: 'museo-sans','muli',$helvetica;
|
||||
// $base-font-family: 'museo-sans','muli',$helvetica;
|
||||
$base-font-family: 'montserrat','muli',$helvetica;
|
||||
$heading-font-family: $base-font-family;
|
||||
$code-font-family:'robotomono',courier,monospace;
|
||||
|
||||
@@ -51,10 +52,9 @@ $heading-font-weight: 500;
|
||||
$code-font-base-weight: 400;
|
||||
$code-font-bold-weight: 500;
|
||||
|
||||
|
||||
//Anchors (in body copy)
|
||||
$default-anchor-color:$base-font-color;
|
||||
$default-anchor-underline-color:$hugo-pink;
|
||||
$default-anchor-underline-color:$hugo-blue;
|
||||
$default-anchor-weight: $base-font-weight;
|
||||
$active-color: $default-anchor-color;
|
||||
//Buttons
|
||||
@@ -64,7 +64,6 @@ $button-border-radius: 3px;
|
||||
//Codeblocks
|
||||
// $code-font-family:'courierprime',courier,monospace;
|
||||
|
||||
|
||||
$code-tooltip-bg-color: $hugo-blue;
|
||||
$code-block-base-font-color: $hugo-black;
|
||||
$code-editor-header-base-bg-color: $input-example-color;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// @include fonts('muli', $weights: 100 300 400 600 700 800, $italic: true);
|
||||
@include fonts('robotomono', $weights: 200 300 400 500 700, $italic: false);
|
||||
@include fonts('montserrat', $weights: 300 500 700, $italic: true);
|
||||
@include fonts('robotomono', $weights: 400 500 , $italic: true);
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
|
||||
@@ -189,7 +189,7 @@ aside#toc + a#toc-toggle {
|
||||
right: 20px;
|
||||
background-color: $toc-bg-color;
|
||||
color: $hugo-white;
|
||||
background-color: $hugo-pink;
|
||||
background-color: $default-anchor-underline-color;
|
||||
@include size(40px);
|
||||
z-index: 99;
|
||||
line-height: 50px;
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Executable → Regular
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Executable → Regular
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Executable → Regular
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Executable → Regular
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Executable → Regular
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Executable → Regular
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Vendored
+4
-4
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user