Merge commit '41bc6f702aa54200530efbf4267e5c823df3028d'

This commit is contained in:
Bjørn Erik Pedersen
2022-12-20 11:04:41 +01:00
71 changed files with 292 additions and 256 deletions

View File

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

View File

@@ -1,7 +1,6 @@
require('typeface-muli');
import styles from './css/main.css';
import './js/clipboardjs.js';
import './js/codeblocks.js';
import './js/docsearch.js';
import './js/lazysizes.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"
}
@media screen and (min-width: 60em) {
.full-width, pre.expand:hover
.full-width
{
/*width: 100vw;
position: relative;

File diff suppressed because one or more lines are too long