adjust font style
This commit is contained in:
parent
126f8ecec3
commit
ba6f27a99b
|
@ -6,7 +6,7 @@
|
||||||
*
|
*
|
||||||
* https://codeberg.org/adele.work/ergol-http
|
* https://codeberg.org/adele.work/ergol-http
|
||||||
*
|
*
|
||||||
* Version 0.4
|
* Version 0.4.1
|
||||||
*
|
*
|
||||||
* ## Copyright 2021 Adële
|
* ## Copyright 2021 Adële
|
||||||
*
|
*
|
||||||
|
@ -326,13 +326,13 @@ function gmi2html($capsule, $body, $lang, $urlgem, $favicon)
|
||||||
$lev2++;
|
$lev2++;
|
||||||
$lev3=0;
|
$lev3=0;
|
||||||
$levid = $lev1.'-'.$lev2;
|
$levid = $lev1.'-'.$lev2;
|
||||||
$lines[] = '<h1 id="'.$levid.'">'.trim(htmlentities(substr($line,2))).'</h1>';
|
$lines[] = '<h2 id="'.$levid.'">'.trim(htmlentities(substr($line,2))).'</h2>';
|
||||||
$tocs[] = '<li class="l2"><a href="#'.$levid.'">'.trim(htmlentities(substr($line,2))).'</a></li>';
|
$tocs[] = '<li class="l2"><a href="#'.$levid.'">'.trim(htmlentities(substr($line,2))).'</a></li>';
|
||||||
break;
|
break;
|
||||||
case "###":
|
case "###":
|
||||||
$lev3++;
|
$lev3++;
|
||||||
$levid = $lev1.'-'.$lev2.'-'.$lev3;
|
$levid = $lev1.'-'.$lev2.'-'.$lev3;
|
||||||
$lines[] = '<h1 id="'.$levid.'">'.trim(htmlentities(substr($line,3))).'</h1>';
|
$lines[] = '<h3 id="'.$levid.'">'.trim(htmlentities(substr($line,3))).'</h3>';
|
||||||
$tocs[] = '<li class="l3"><a href="#'.$levid.'">'.trim(htmlentities(substr($line,3))).'</a></li>';
|
$tocs[] = '<li class="l3"><a href="#'.$levid.'">'.trim(htmlentities(substr($line,3))).'</a></li>';
|
||||||
break;
|
break;
|
||||||
case ">":
|
case ">":
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 80px 0;
|
padding: 80px 0;
|
||||||
|
font-family: Serif;
|
||||||
}
|
}
|
||||||
div.main {
|
div.main {
|
||||||
margin: 0px auto;
|
margin: 0px auto;
|
||||||
|
@ -19,6 +20,7 @@ li {
|
||||||
}
|
}
|
||||||
p {
|
p {
|
||||||
margin: 8px 0;
|
margin: 8px 0;
|
||||||
|
font-family: Sans-Serif;
|
||||||
}
|
}
|
||||||
blockquote {
|
blockquote {
|
||||||
background: #ffc;
|
background: #ffc;
|
||||||
|
@ -33,6 +35,7 @@ div.toc {
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
box-shadow: 5px 5px 10px 2px rgba(0, 0, 0, .1);;
|
box-shadow: 5px 5px 10px 2px rgba(0, 0, 0, .1);;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
font-family: Sans-Serif;
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 728px) {
|
@media screen and (max-width: 728px) {
|
||||||
div.toc {
|
div.toc {
|
||||||
|
|
Loading…
Reference in New Issue