Skip to content

Commit c4e45e1

Browse files
committed
Regression testing on live site and fixes the bug for landing page and mobile UI
1 parent 63be8f8 commit c4e45e1

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

src/css/doc.css

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ ul ul ul {
416416
}
417417

418418
.doc .imageblock img {
419-
display: block;
419+
display: inline-block;
420420
}
421421

422422
.doc .imageblock .title {
@@ -442,15 +442,15 @@ ul ul ul {
442442
width: auto;
443443
}
444444

445-
.doc .abstract blockquote {
445+
.doc blockquote {
446446
font-size: 0.9375rem;
447447
margin: 1rem 0 1.5625rem 0;
448448
font-weight: var(--weight-light);
449449
border-left: 2px solid var(--color-brand-gray5);
450450
padding-left: 1.125rem;
451451
}
452452

453-
.doc .abstract blockquote * {
453+
.doc blockquote * {
454454
font-weight: inherit;
455455
}
456456
/* .doc .abstract blockquote::before {
@@ -1085,4 +1085,17 @@ table.tableblock pre code.language-bash.hljs {
10851085
.doc h6 > a.anchor {
10861086
font-size: 18px;
10871087
}
1088+
1089+
.card-row .column .content .imageblock {
1090+
text-align: center;
1091+
}
1092+
1093+
.doc.landing-page-doc .media-left {
1094+
padding-left: 0;
1095+
text-align: center;
1096+
}
1097+
1098+
main {
1099+
padding-bottom: 2rem;
1100+
}
10881101
}

src/js/01-nav.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,14 @@
143143
function concealEvent (e) {
144144
e.stopPropagation()
145145
}
146-
147146
// scroll left menu to current active page
148-
149-
var currentPageMenu = document.querySelector('.is-current-page')
150-
var topPositon = currentPageMenu.offsetTop
151-
var leftMenu = document.querySelector('.left-sidebar-menu .nav-menu')
152147
setTimeout(function () {
153-
leftMenu.scrollTop = topPositon
148+
if (document.querySelector('.is-current-page')) {
149+
var currentPageMenu = document.querySelector('.is-current-page')
150+
var topPositon = currentPageMenu.offsetTop
151+
var leftMenu = document.querySelector('.left-sidebar-menu .nav-menu')
152+
leftMenu.scrollTop = topPositon
153+
}
154154
}, 200)
155155

156156
// clearTimeout(scrollCurrentPageMenu, 20000)

0 commit comments

Comments
 (0)