Skip to content

Commit 01b3080

Browse files
authored
Merge pull request #56 from couchbase/ui-bug-fixes
UI issues fixes for image block paragraph and table definition list
2 parents a48cfbd + 7eeebef commit 01b3080

File tree

7 files changed

+49
-13
lines changed

7 files changed

+49
-13
lines changed

src/css/base.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ pre {
6464

6565
code {
6666
background-color: #0074e00e;
67-
font-size: var(--font-small);
6867
word-spacing: -0.125em;
6968
color: var(--color-brand-gray1);
7069
}

src/css/doc.css

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,18 @@ ul ul ul {
190190
border-top-width: 1px;
191191
}
192192

193+
.ulist li .paragraph:first-child,
194+
.olist li .paragraph:first-child,
195+
.dlist li .paragraph:first-child {
196+
margin-top: var(--base-extra-small-space);
197+
}
198+
199+
.ulist li .imageblock,
200+
.olist li .imageblock,
201+
.dlist li .imageblock {
202+
margin-bottom: var(--base-extra-small-space);
203+
}
204+
193205
/* .doc table.tableblock,
194206
.doc th.tableblock,
195207
.doc td.tableblock {
@@ -418,7 +430,7 @@ ul ul ul {
418430
}
419431

420432
.doc .imageblock img {
421-
display: block;
433+
display: inline-block;
422434
}
423435

424436
.doc .imageblock .title {
@@ -467,7 +479,7 @@ ul ul ul {
467479
margin-top: var(--base-extra-large-space);
468480
}
469481

470-
.doc .abstract blockquote * {
482+
.doc blockquote * {
471483
font-weight: inherit;
472484
}
473485
/* .doc .abstract blockquote::before {
@@ -546,6 +558,10 @@ ul ul ul {
546558
margin: 0;
547559
}
548560

561+
.hdlist table .hdlist1 + .hdlist2 p {
562+
margin-left: var(--base-space);
563+
}
564+
549565
.doc pre:not(.highlight),
550566
.doc pre.highlight code {
551567
/* background-color: #151514; */
@@ -1102,4 +1118,12 @@ table.tableblock pre code.language-bash.hljs {
11021118
.doc h6 > a.anchor {
11031119
font-size: 18px;
11041120
}
1121+
1122+
.card-row .column .content .imageblock {
1123+
text-align: center;
1124+
}
1125+
1126+
main {
1127+
padding-bottom: 2rem;
1128+
}
11051129
}

src/css/header.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
.navbar-new-top {
1+
.header-top-row {
22
background: var(--color-brand-white);
3+
padding: 0 var(--width-container-gutter);
4+
}
5+
6+
.header-top-row .container {
7+
padding-left: 0;
8+
padding-right: 0;
39
}
410

511
.navbar-brand img {
@@ -305,5 +311,6 @@
305311
display: block;
306312
position: absolute;
307313
width: 100%;
314+
left: 0;
308315
}
309316
}

src/css/landing-page.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,8 @@
370370

371371
.doc.landing-page-doc .media-left {
372372
margin-left: 0;
373+
padding-left: 0;
374+
text-align: center;
373375
}
374376

375377
.doc.landing-page-doc figure {

src/css/nav.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
scrollbar-width: thin;
88
scrollbar-color: var(--color-border) transparent;
99
height: 100%;
10-
z-index: var(--z-index-nav);
10+
z-index: 5;
1111
transition: all 0.1s;
1212
}
1313

src/css/table.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,15 @@ table.tableblock thead th {
4040
padding-bottom: var(--base-space);
4141
text-align: left;
4242
border-bottom: 2px solid var(--color-brand-blue-secondary);
43-
font-size: 1rem;
44-
line-height: 1.25rem;
43+
font-size: 1.125rem;
44+
line-height: 1.5rem;
4545
font-weight: var(--weight-semibold);
4646
}
4747

48+
/* table.tableblock tbody td:first-child strong {
49+
font-size: 1.125rem;
50+
} */
51+
4852
table.tableblock tbody tr {
4953
display: table-cell;
5054
}

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)