Skip to content

Commit daf8238

Browse files
committed
Removed the border of code snippets.
1 parent 0ac2675 commit daf8238

4 files changed

Lines changed: 2 additions & 14 deletions

File tree

assets/css/_colors/dark-syntax.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,13 @@
7777

7878
/*----- My styles ------*/
7979

80-
--code-highlighter-rouge: #272822;
8180
--highlight-bg-color: #272822;
8281
--highlighter-rouge-color: #de6b18;
8382

8483
--highlight-lineno-color: #6c6c6d;
8584
--highlight-lineno-border-color: #3c4042;
8685

8786
.highlight {
88-
@include highlight-box-shadow(none);
8987
.gp { color: #818c96; }
9088
}
9189
pre { color: #818c96 } /* override Bootstrap */

assets/css/_colors/light-syntax.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
7272

7373
/*--- custom light colors ---*/
74-
--code-highlighter-rouge: #e9ecef;
7574
--highlight-bg-color: #f7f7f7;
7675
--highlighter-rouge-color: #353a3d;
7776
--highlight-lineno-color: #c2c6cc;

assets/css/_colors/light-typography.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
--text-muted-color: gray;
3232

33-
--tb-odd-bg: #f8f9fa;
33+
--tb-odd-bg: #fbfcfd;
3434

3535
--tb-even-border-color: rgba(210, 215, 217, 0.75);
3636

assets/css/syntax.scss

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@
1212
@import "_colors/dark-syntax";
1313

1414

15-
@mixin highlight-box-shadow($val) {
16-
-moz-box-shadow: $val;
17-
-webkit-box-shadow: $val;
18-
box-shadow: $val;
19-
}
20-
2115
html:not([mode]), html[mode=light] {
2216
@include light-syntax;
2317
}
@@ -56,12 +50,10 @@ html[mode=dark] {
5650
.highlight {
5751
@extend %code-snippet-radius;
5852
background: var(--highlight-bg-color);
59-
6053
@at-root figure#{&} {
6154
background: var(--highlight-bg-color);
6255
}
6356
overflow: auto;
64-
@include highlight-box-shadow(inset 0 0 2px #c2c6cc);
6557
.lineno {
6658
margin: .8rem 0rem;
6759
padding: 0 .5rem;
@@ -105,9 +97,8 @@ code {
10597
hyphens: none;
10698
&.highlighter-rouge {
10799
padding: 2px 4px;
108-
margin: 0 .3rem;
100+
margin: 0 .15rem;
109101
border-radius: 4px;
110-
border: 1px solid var(--code-highlighter-rouge);
111102
}
112103
@at-root a>&.highlighter-rouge {
113104
padding-bottom: 0; // show link's underlinke

0 commit comments

Comments
 (0)