Update theme

This commit is contained in:
Bjørn Erik Pedersen 2022-12-17 13:25:31 +01:00
parent 26e682a3aa
commit 7f8979c50c
No known key found for this signature in database
GPG Key ID: 330E6E2BD4859D8F
8 changed files with 9 additions and 18 deletions

View File

@ -54,7 +54,7 @@ pre {
} }
@media (--breakpoint-large) { @media (--breakpoint-large) {
.full-width, pre.expand:hover .full-width
{ {
/*width: 100vw; /*width: 100vw;
position: relative; position: relative;

View File

@ -1,7 +1,6 @@
require('typeface-muli'); require('typeface-muli');
import styles from './css/main.css'; import styles from './css/main.css';
import './js/clipboardjs.js'; import './js/clipboardjs.js';
import './js/codeblocks.js';
import './js/docsearch.js'; import './js/docsearch.js';
import './js/lazysizes.js'; import './js/lazysizes.js';
import './js/menutoggle.js'; import './js/menutoggle.js';

View File

@ -1,10 +0,0 @@
let article = document.getElementById('prose')
if (article) {
let codeBlocks = article.getElementsByTagName('code')
for (let [key, codeBlock] of Object.entries(codeBlocks)){
var widthDif = codeBlock.scrollWidth - codeBlock.clientWidth
if (widthDif > 0)
codeBlock.parentNode.classList.add('expand')
}
}

View File

@ -4809,7 +4809,7 @@ pre {
content: "Copied" content: "Copied"
} }
@media screen and (min-width: 60em) { @media screen and (min-width: 60em) {
.full-width, pre.expand:hover .full-width
{ {
/*width: 100vw; /*width: 100vw;
position: relative; position: relative;

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
# github.com/gohugoio/gohugoioTheme v0.0.0-20221206093948-1408550ab675 # github.com/gohugoio/gohugoioTheme v0.0.0-20221217122332-1c1752ad8f14

2
go.mod
View File

@ -2,4 +2,4 @@ module github.com/gohugoio/hugoDocs
go 1.16 go 1.16
require github.com/gohugoio/gohugoioTheme v0.0.0-20221206093948-1408550ab675 // indirect require github.com/gohugoio/gohugoioTheme v0.0.0-20221217122332-1c1752ad8f14 // indirect

2
go.sum
View File

@ -47,3 +47,5 @@ github.com/gohugoio/gohugoioTheme v0.0.0-20221124154621-1451a01f406b h1:TRrIisSY
github.com/gohugoio/gohugoioTheme v0.0.0-20221124154621-1451a01f406b/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs= github.com/gohugoio/gohugoioTheme v0.0.0-20221124154621-1451a01f406b/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
github.com/gohugoio/gohugoioTheme v0.0.0-20221206093948-1408550ab675 h1:wjpYa1cTELeceWndBDV7IG2vRxRWICBBO79HObOfTtk= github.com/gohugoio/gohugoioTheme v0.0.0-20221206093948-1408550ab675 h1:wjpYa1cTELeceWndBDV7IG2vRxRWICBBO79HObOfTtk=
github.com/gohugoio/gohugoioTheme v0.0.0-20221206093948-1408550ab675/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs= github.com/gohugoio/gohugoioTheme v0.0.0-20221206093948-1408550ab675/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
github.com/gohugoio/gohugoioTheme v0.0.0-20221217122332-1c1752ad8f14 h1:K6tPFpi7W0zb89QIf+lNdgdTXfDFemU6NKk46MlX9lQ=
github.com/gohugoio/gohugoioTheme v0.0.0-20221217122332-1c1752ad8f14/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=