Skip to content

Commit 2ccc477

Browse files
committed
restyled banner area
1 parent eb46944 commit 2ccc477

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

web/script.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function parseMd() {
1313
aDiv.after(nodes);
1414
removeOrigToc();
1515
insertLinks();
16-
addImgParentClass();
16+
unindentBanner();
1717
d3.selectAll("code").each(function() {
1818
hljs.highlightBlock(this);
1919
});
@@ -35,10 +35,12 @@ function insertLinks() {
3535
$(this).html('<a href="#' + aId + '" name="' + aId + '">#</a>' + text);
3636
});
3737
}
38-
function addImgParentClass() {
39-
let monty_img = $("img").first();
40-
monty_img.parent().addClass("img_parent");
41-
monty_img.before("<br>");
38+
39+
function unindentBanner() {
40+
let montyImg = $("img").first();
41+
montyImg.parent().addClass("banner");
42+
let downloadPraragrapth = $("p").first();
43+
downloadPraragrapth.addClass("banner");
4244
}
4345

4446
function addToc() {

web/style.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,15 +226,19 @@ p,
226226
ul {
227227
padding-left: 2rem;
228228
}
229-
.img_parent {
229+
.banner {
230230
padding: 0;
231231
}
232232

233+
#toc {
234+
margin-top: 0;
235+
}
236+
233237
@media only screen and (max-device-width: 1024px) {
234238
h1 {
235239
font-size: 3rem;
236240
}
237-
.img_parent,
241+
.banner,
238242
h1,
239243
img {
240244
max-width: calc(100vw - 2em);

0 commit comments

Comments
 (0)