Skip to content

Commit 6c72cbb

Browse files
authored
Merge pull request #76 from couchbase/aw-bug-fix-3
Resolve banner issue
2 parents 6f0d7c5 + 3a658ac commit 6c72cbb

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

src/css/doc.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,13 +577,13 @@ ul ul ul {
577577
padding-right: var(--base-small-space);
578578
padding-top: var(--base-large-space);
579579
padding-bottom: var(--base-large-space);
580-
white-space: pre-wrap;
580+
/* white-space: pre-wrap; */
581581
/* NOTE enable these styles if side-to-side scrolling is preferred */
582-
/*
582+
583583
overflow-wrap: normal;
584584
word-wrap: normal;
585585
overflow-x: auto;
586-
*/
586+
587587
background: #0074e00e;
588588
border: 1px solid var(--color-brand-gray8);
589589
border-radius: 3px;

src/css/highlight.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ Other CSS rules for styling code blocks:
1313
*/
1414
.hljs-comment,
1515
.hljs-meta {
16-
color: #708090;
16+
/* color: #708090; */
17+
color: var(--color-brand-gray1);
1718
}
1819

1920
.hljs-keyword,
@@ -46,7 +47,8 @@ Other CSS rules for styling code blocks:
4647

4748
.hljs-built_in,
4849
.hljs-function .hljs-title {
49-
color: #e6db74;
50+
/* color: #e6db74; */
51+
color: var(--color-brand-orange);
5052
}
5153

5254
.hljs-regexp {

src/css/main.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ main p {
6565
color: var(--color-brand-blue-secondary);
6666
}
6767

68+
/* .article-banner span {
69+
font-size: var(--font-small);
70+
margin: 0.5rem 1rem 0 0;
71+
color: var(--color-brand-gray4);
72+
} */
73+
6874
.article-banner svg {
6975
margin-right: 10px;
7076
margin-bottom: 10px;

src/js/06-page-rating.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,9 @@
7676
},
7777
}
7878

79+
if (window.location.hash) {
80+
var hash = window.location.hash
81+
$('html, body').animate({ 'scrollTop': $(hash).offset().top }, 'slow')
82+
}
7983
/*eslint-env jquery*/
8084
})(jQuery)

0 commit comments

Comments
 (0)