Browse Source

adjusted indentation to mimic original layout

pull/23/head
s-weigand 5 years ago
committed by Sebastian Weigand
parent
commit
e73f8d4820
2 changed files with 19 additions and 6 deletions
  1. 17
      web/script.js
  2. 8
      web/style.css

17
web/script.js

@ -25,11 +25,18 @@ function removeOrigToc() {
}
function insertLinks() {
$('h2').each(function() {
aId = $(this).attr('id')
text = $(this).text()
$(this).html('<a href="#'+aId+'" name="'+aId+'">#</a>'+text)
})
$("h2").each(function() {
aId = $(this).attr("id");
text = $(this).text();
$(this).html('<a href="#' + aId + '" name="' + aId + '">#</a>' + text);
});
}
function addImgParentClass() {
$("img").each(function() {
$(this)
.parent()
.addClass("img_parent");
});
}
function addToc() {

8
web/style.css

@ -214,6 +214,12 @@ blockquote q:before,
blockquote q:after {
content: "";
}
h3,h4,p, ul{
padding-left: 2rem;
}
.img_parent{
padding: 0;
}
@media only screen
and (max-device-width : 1024px){
@ -224,7 +230,7 @@ and (max-device-width : 1024px){
h1{
font-size: 3rem;
}
p, h1, img{
.img_parent, h1, img{
max-width: calc(100vw - 2em);
min-width: calc(100vw - 2em);
}

Loading…
Cancel
Save