Skip to content

Commit a165c52

Browse files
author
rakeshAlgo
committed
sandbox UI bug fixes
1 parent ad89872 commit a165c52

File tree

7 files changed

+37
-10
lines changed

7 files changed

+37
-10
lines changed

src/css/base.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ i {
9494
max-width: var(--width-container);
9595
padding: 0 var(--width-container-gutter);
9696
}
97+
98+
.hide,
99+
.hide-nav {
100+
display: none;
101+
}
97102
/* .container-fluid {
98103
max-width: var(--width-container-fluid);
99104
padding: 0;

src/css/clipboard.css

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,27 @@ a.copy-code-button:hover {
147147
width: 65px;
148148
height: 80%;
149149
position: absolute;
150-
right: 0;
150+
right: 2px;
151151
top: 0;
152152
}
153153

154+
@media screen and (-webkit-min-device-pixel-ratio:0) {
155+
/* Safari and Chrome */
156+
.doc .listingblock pre .fade-shadow {
157+
height: calc(100% - 8px);
158+
}
159+
160+
}
154161
code.language-console.hljs.shell {
155162
white-space: nowrap;
156163
overflow-x: auto;
157164
}
165+
166+
code.language-console.hljs.shell::-webkit-scrollbar {
167+
width: 0.25rem;
168+
height: 5px;
169+
}
170+
171+
code.language-console.hljs.shell::-webkit-scrollbar-thumb {
172+
background-color: var(--color-border);
173+
}

src/css/doc.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,8 @@
416416
font-size: 0.9375rem;
417417
margin: 1rem 0 1.5625rem 0;
418418
font-weight: var(--weight-light);
419+
border-left: 2px solid var(--color-brand-gray5);
420+
padding-left: 1.125rem;
419421
}
420422

421423
.doc .abstract blockquote * {

src/css/header.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
}
4444

4545
.navbar.navbar-new-bottom {
46-
background: var(--color-brand-blue);
46+
background: var(--color-brand-blue-secondary);
4747
display: none;
4848
}
4949

@@ -52,9 +52,9 @@
5252
}
5353

5454
.navbar-nav .nav-link {
55-
color: var(--color-brand-white);
55+
color: #ffffffbf;
5656
text-transform: uppercase;
57-
opacity: 0.8;
57+
opacity: 1;
5858
font-size: 1.125rem;
5959
line-height: 23px;
6060
font-family: "Source Sans Pro", sans-serif;
@@ -64,11 +64,13 @@
6464
font-weight: var(--weight-semibold);
6565
text-decoration: none;
6666
opacity: 1;
67+
color: #fff;
6768
}
6869

6970
.nav-link:focus,
7071
.nav-link:hover {
7172
text-decoration: none;
73+
color: #fff;
7274
}
7375

7476
.primary-action {

src/css/landing-page.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,6 @@
232232
display: none;
233233
}
234234

235-
.hide {
236-
display: none;
237-
}
238-
239235
/* .card-row.two-column-row .column:nth-child(even) {
240236
padding-left: 5%;
241237
} */

src/js/01-nav.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@
130130
return el
131131
}
132132

133+
// hide left nav on top level landing page
134+
setTimeout(function () {
135+
if (nav.innerText === '') {
136+
nav.classList.add('hide-nav')
137+
}
138+
}, 100)
133139
// has children in li
134140
// $('ul.nav-list li.nav-item ul.nav-list .nav-item').has('ul.nav-list').addClass('has-children')
135141
function concealEvent (e) {

src/js/07-copy-to-clipboard.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
copyButton.addEventListener('click', function (e) {
3030
if (e.target && e.target.matches('a.copy-code-button')) {
3131
// for console text
32-
if (codeBlock.dataset.lang == 'console') {
32+
if (codeBlock.dataset.lang === 'console') {
3333
var bashText = codeBlock.innerText
34-
// remove $ from text
34+
// remove $ from text
3535
navigator.clipboard.writeText(bashText.slice(2)).then(
3636
function () {
3737
/* Chrome doesn't seem to blur automatically,

0 commit comments

Comments
 (0)