Skip to content

Commit 18bdc6b

Browse files
author
rakeshAlgo
committed
add scrollbar on codeblock for bash section
1 parent 8023c84 commit 18bdc6b

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/css/clipboard.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ a.copy-code-button:hover {
121121
}
122122

123123
.doc .listingblock pre .fade-shadow {
124-
content: "";
125124
display: inline-block;
126125
background:
127126
transparent
@@ -136,27 +135,28 @@ a.copy-code-button:hover {
136135
width: 65px;
137136
height: 80%;
138137
position: absolute;
139-
right: 2px;
138+
right: 1px;
140139
top: 0;
141140
}
142141

143-
@media screen and (-webkit-min-device-pixel-ratio: 0) {
144142
/* Safari and Chrome */
143+
@media screen and (-webkit-min-device-pixel-ratio: 0) {
145144
.doc .listingblock pre .fade-shadow {
146145
height: calc(100% - 8px);
147146
}
148147
}
149148

150-
code.language-console.hljs.shell {
149+
code.language-console.hljs.shell,
150+
pre code.language-bash.hljs{
151151
white-space: nowrap;
152152
overflow-x: auto;
153153
}
154154

155-
code.language-console.hljs.shell::-webkit-scrollbar {
155+
code::-webkit-scrollbar {
156156
width: 0.25rem;
157157
height: 5px;
158158
}
159159

160-
code.language-console.hljs.shell::-webkit-scrollbar-thumb {
160+
code::-webkit-scrollbar-thumb {
161161
background-color: var(--color-border);
162162
}

src/css/doc.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
}
149149

150150
.ulist {
151-
padding-left: var(--base-extra-small-space);
151+
padding-left: var(--base-space);
152152
}
153153

154154
.doc hr {
@@ -571,7 +571,8 @@
571571
572572
*/
573573

574-
table.tableblock code.language-console.hljs.shell {
574+
table.tableblock code.language-console.hljs.shell,
575+
table.tableblock pre code.language-bash.hljs {
575576
white-space: normal;
576577
}
577578

0 commit comments

Comments
 (0)