separate css into new file

http2 now enabled on the server, so multiple http requests
are a bit more efficient for modern browsers

this will save a bit of bandwidth, at the expense of causing
additional delay on high latency connections:

someone on 500ms latency and using http1.1 basically has to
wait an extra half-second for the site to load

(however, that's only the first time, assuming their browser
caches the css file)
hslick-master
Leah Rowe 2022-12-29 10:07:09 +00:00
parent 22d7a2e4e8
commit 8f8eed4760
3 changed files with 115 additions and 112 deletions

View File

@ -1,3 +1,4 @@
TITLE="-T Libreboot"
DOMAIN="https://libreboot.org/"
BLOGDIR="news/" # leave as empty string if you want the blog to be the homepage
CSS="--css /global.css"

114
site/global.css Normal file
View File

@ -0,0 +1,114 @@
/*
* This CSS is released under Creative Commons Zero 1.0 Universal license:
* https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt
*/
.specs
{
float: right;
}
:not(p)
{
max-width: 85em;
margin: 0 auto;
}
html
{
background: #280b22;
color: #eee;
font-family: sans-serif;
line-height: 1.4;
text-shadow: 1px 1px #000;
}
code,pre, #TOC, a:hover
{
background: #4e324e;
}
a
{
color: #fcc;
}
img,video,iframe,pre
{
max-width: 100%;
overflow: auto;
}
.title>*, header ul>li, .nav ul>li,
#footer ul>li, .h:hover>*
{
display: inline;
margin: 0.7%;
text-align :center;
}
.title>*, span.date
{
display: block;
}
html, ul, #TOC
{
padding: 1em;
}
.date, .author, .h a
{
display: none;
}
@media (min-width:60em)
{
.title-logo{display:none}
div.title,h1.title {
background:url("/favicon.ico") no-repeat;
background-size:auto 99%;
min-height:2em
}
div.title {background-position:right}
h1.title {padding:0 4em}
#TOC
{
float: left;
margin: 1em;
min-width: 25%;
}
}
.f, .f *
{
position: fixed;
max-width: 100%;
max-height: 100%;
top: 50%;
left: 50%;
}
.f *
{
transform: translate(-50%, -50%);
}
.f
{
display: none;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
}
*:focus + .f
{
display: block;
}
img
{
cursor: pointer;
}

View File

@ -25,118 +25,6 @@ $if(keywords)$
<meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$">
$endif$
<title>$if(title-prefix)$$title-prefix$ $endif$$pagetitle$</title>
<style type="text/css">
.specs
{
float: right;
}
:not(p)
{
max-width: 85em;
margin: 0 auto;
}
html
{
background: #280b22;
color: #eee;
font-family: sans-serif;
line-height: 1.4;
text-shadow: 1px 1px #000;
}
code,pre, #TOC, a:hover
{
background: #4e324e;
}
a
{
color: #fcc;
}
img,video,iframe,pre
{
max-width: 100%;
overflow: auto;
}
.title>*, header ul>li, .nav ul>li,
#footer ul>li, .h:hover>*
{
display: inline;
margin: 0.7%;
text-align :center;
}
.title>*, span.date
{
display: block;
}
html, ul, #TOC
{
padding: 1em;
}
.date, .author, .h a
{
display: none;
}
@media (min-width:60em)
{
.title-logo{display:none}
div.title,h1.title {
background:url("/favicon.ico") no-repeat;
background-size:auto 99%;
min-height:2em
}
div.title {background-position:right}
h1.title {padding:0 4em}
#TOC
{
float: left;
margin: 1em;
min-width: 25%;
}
}
.f, .f *
{
position: fixed;
max-width: 100%;
max-height: 100%;
top: 50%;
left: 50%;
}
.f *
{
transform: translate(-50%, -50%);
}
.f
{
display: none;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
}
*:focus + .f
{
display: block;
}
img
{
cursor: pointer;
}
</style>
$if(quotes)$
<style type="text/css">q { quotes: "“" "”" "" ""; }</style>
$endif$