forked from gohugoio/gohugoioTheme2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates #1
- Loading branch information
Showing
48 changed files
with
6,544 additions
and
596 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* mulish-200 - latin */ | ||
@font-face { | ||
font-family: 'Mulish'; | ||
font-style: normal; | ||
font-weight: 200; | ||
src: local(''), | ||
url('../fonts/mulish-v10-latin-200.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ | ||
url('../fonts/mulish-v10-latin-200.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ | ||
} | ||
/* mulish-regular - latin */ | ||
@font-face { | ||
font-family: 'Mulish'; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: local(''), | ||
url('../fonts/mulish-v10-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ | ||
url('../fonts/mulish-v10-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ | ||
} | ||
/* mulish-800 - latin */ | ||
@font-face { | ||
font-family: 'Mulish'; | ||
font-style: normal; | ||
font-weight: 800; | ||
src: local(''), | ||
url('../fonts/mulish-v10-latin-800.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ | ||
url('../fonts/mulish-v10-latin-800.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ | ||
} | ||
/* mulish-italic - latin */ | ||
@font-face { | ||
font-family: 'Mulish'; | ||
font-style: italic; | ||
font-weight: 400; | ||
src: local(''), | ||
url('../fonts/mulish-v10-latin-italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ | ||
url('../fonts/mulish-v10-latin-italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ | ||
} | ||
/* mulish-800italic - latin */ | ||
@font-face { | ||
font-family: 'Mulish'; | ||
font-style: italic; | ||
font-weight: 800; | ||
src: local(''), | ||
url('../fonts/mulish-v10-latin-800italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ | ||
url('../fonts/mulish-v10-latin-800italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
} | ||
|
||
.prose table th { | ||
@apply font-semibold; | ||
@apply font-extrabold; | ||
} | ||
|
||
.prose table td, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
export function bridgeTurboAndAlpine(Alpine) { | ||
document.addEventListener('turbo:render', () => { | ||
if (document.documentElement.hasAttribute('data-turbo-preview')) { | ||
return; | ||
} | ||
document.addEventListener("turbo:render", () => { | ||
if (document.documentElement.hasAttribute("data-turbo-preview")) { | ||
return; | ||
} | ||
|
||
// Restart Alpine. | ||
Alpine.start(); | ||
}); | ||
// Restart Alpine. | ||
Alpine.start(); | ||
}); | ||
|
||
// Cleanup Alpine state on navigation. | ||
document.addEventListener('turbo:before-cache', () => { | ||
Alpine.stopObservingMutations(); | ||
// Cleanup Alpine state on navigation. | ||
document.addEventListener("turbo:before-cache", () => { | ||
Alpine.stopObservingMutations(); | ||
|
||
document.body.querySelectorAll('[x-data]').forEach((el) => { | ||
if (el.hasAttribute('data-turbo-permanent')) { | ||
el._x_ignore = true; | ||
} else { | ||
Alpine.destroyTree(el); | ||
document.body.querySelectorAll("[x-data]").forEach((el) => { | ||
if (el.hasAttribute("data-turbo-permanent")) { | ||
el._x_ignore = true; | ||
} else { | ||
Alpine.destroyTree(el); | ||
|
||
// Turbo leaks DOM elements via their data-turbo-permanent handling. | ||
// That needs to be fixed upstream, but until then. | ||
let clone = el.cloneNode(true); | ||
el.replaceWith(clone); | ||
} | ||
}); | ||
}); | ||
// Turbo leaks DOM elements via their data-turbo-permanent handling. | ||
// That needs to be fixed upstream, but until then. | ||
let clone = el.cloneNode(true); | ||
el.replaceWith(clone); | ||
} | ||
}); | ||
}); | ||
} |
Oops, something went wrong.