Execute CSS resource as template
This commit is contained in:
parent
9192276af6
commit
a4227b559c
|
@ -1,7 +1,7 @@
|
|||
/* Fonts */
|
||||
@font-face {
|
||||
font-family: 'Miriam Libre';
|
||||
src: url('fonts/miriamlibre-bold.woff2') format('woff2'), url('fonts/miriamlibre-bold.woff') format('woff');
|
||||
src: url('{{ "fonts/miriamlibre-bold.woff2" | absURL }}') format('woff2'), url('{{ "fonts/miriamlibre-bold.woff" | absURL }}') format('woff');
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
}
|
||||
|
@ -490,7 +490,7 @@ caption {
|
|||
}
|
||||
.note.warning {
|
||||
border-left: 0;
|
||||
background-image: url(images/stripe.svg);
|
||||
background-image: url({{ "css/images/stripe.svg" | absURL }});
|
||||
background-size: 0.5rem auto;
|
||||
background-repeat: repeat-y;
|
||||
}
|
||||
|
@ -509,7 +509,7 @@ caption {
|
|||
width: 1rem;
|
||||
height: 1rem;
|
||||
margin-right: 0.25rem;
|
||||
background-image: url(images/icon-tick.svg);
|
||||
background-image: url({{ "css/images/icon-tick.svg" | absURL }});
|
||||
background-size: 100% auto;
|
||||
position: absolute;
|
||||
left: -1.25rem;
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1 @@
|
|||
{"Target":"css/styles.css","MediaType":"text/css","Data":{}}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1 @@
|
|||
{"Target":"styles.css","MediaType":"text/css","Data":{}}
|
|
@ -15,7 +15,10 @@
|
|||
<meta name="theme-color" content="#ffffff">
|
||||
|
||||
<link rel="stylesheet" href="{{ "css/prism.css" | absURL }}" media="none" onload="this.media='all';">
|
||||
<link rel="stylesheet" type="text/css" href="{{ "css/styles.css" | absURL }}">
|
||||
|
||||
{{ $templateStyles := resources.Get "css/template-styles.css" }}
|
||||
{{ $styles := $templateStyles | resources.ExecuteAsTemplate "css/styles.css" . }}
|
||||
<link rel="stylesheet" type="text/css" href="{{ $styles.Permalink }}">
|
||||
|
||||
<style id="inverter" media="none">
|
||||
html { filter: invert(100%) }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* expandable sections */
|
||||
/* Expandable sections */
|
||||
(function () {
|
||||
function toggle (button, target) {
|
||||
var expanded = button.getAttribute('aria-expanded') === 'true';
|
||||
|
@ -17,7 +17,7 @@
|
|||
})
|
||||
}());
|
||||
|
||||
/* menu button */
|
||||
/* Menu button */
|
||||
(function () {
|
||||
var button = document.getElementById('menu-button');
|
||||
if (button) {
|
||||
|
@ -29,7 +29,7 @@
|
|||
}
|
||||
}());
|
||||
|
||||
/* persist navigation scroll point */
|
||||
/* Persist navigation scroll point */
|
||||
(function () {
|
||||
window.onbeforeunload = function () {
|
||||
var patternsNav = document.getElementById('patterns-nav');
|
||||
|
|
Loading…
Reference in New Issue
Block a user