Skip to content

Commit e5ee9b4

Browse files
committed
stylesheet: remove background and border from code spans
The new style makes the code spans lighter and more integrated into the text and also makes the code spans more readable and less intrusive. A synopsis class is added for the code spans that are synopsis. Signed-off-by: Jean-Noël Avila <[email protected]>
1 parent 4915e52 commit e5ee9b4

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

assets/sass/application.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $baseurl: "{{ .Site.BaseURL }}{{ if (and (ne .Site.BaseURL "/") (ne .Site.BaseUR
3232

3333
code {
3434
display: inline;
35-
padding: 0 5px;
35+
padding: 0 0;
3636
}
3737

3838
pre {

assets/sass/man-pages.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,13 @@
5151
word-wrap: break-word; /* Internet Explorer 5.5+ */
5252
white-space: pre;
5353
white-space: pre-wrap; /* css-3 */
54-
background-color: #e8e7dd;
5554

5655
em {
5756
font-weight: bold;
5857
font-style: normal;
5958
}
6059

6160
code {
62-
background-color: #e8e7dd;
6361
margin-bottom: 0;
6462
border: none;
6563
padding-left: 0;

assets/sass/typography.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,13 @@ code {
260260
line-height: $fixed-width-line-height;
261261
font-variant-ligatures: none;
262262
color: var(--orange);
263-
background-color: var(--main-bg);
264-
border: solid 1px var(--pre-border);
263+
}
264+
265+
p {
266+
.synopsis {
267+
@include border-radius(3px);
268+
border: solid 1px var(--pre-border);
269+
}
265270
}
266271

267272
// Quotes

0 commit comments

Comments
 (0)