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