Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
fix(style): gist style improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-pogor committed Apr 11, 2021
1 parent da4ed46 commit 976eb12
Showing 1 changed file with 17 additions and 40 deletions.
57 changes: 17 additions & 40 deletions assets/css/_partial/_single/_code.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ pre,
.highlight table,
.highlight tr,
.highlight td {
background: $code-background-color;
background: $code-background-color !important;

[theme="dark"] & {
background: $code-background-color-dark;
background: $code-background-color-dark !important;
}
}

Expand All @@ -54,6 +54,7 @@ pre,
margin: 0;
padding: 0;
border: none !important;
white-space: nowrap;
}
}
}
Expand Down Expand Up @@ -228,7 +229,15 @@ pre,
.gist-file,
.gist-data,
.gist-meta {
border: none;
background: none;
}

.gist-file {
border-color: $global-font-secondary-color;

[theme="dark"] & {
border-color: $global-font-secondary-color-dark;
}
}

.gist-meta {
Expand All @@ -242,10 +251,14 @@ pre,
}
}

color: $global-font-color;

[theme="dark"] & {
color: $global-font-color-dark;

// imported from https://github.com/lonekorean/gist-syntax-themes/blob/master/stylesheets/one-dark.css
.highlight {
background: #141414;
background: none;
}
.blob-num,
.blob-code-inner,
Expand Down Expand Up @@ -400,39 +413,3 @@ pre,
}
}
}
.markdown-body {
background-color: $global-background-color;
color: $global-font-color;

.highlight {
background-color: $code-background-color;
color: $code-color;

[theme="dark"] & {
background-color: $code-background-color-dark;
color: $code-color-dark;
}
}
[theme="dark"] & {
background-color: $global-background-color-dark !important;
color: $global-font-color-dark !important;
}
}
.markdown-body {
background-color: $global-background-color;
color: $global-font-color;

.highlight {
background-color: $code-background-color;
color: $code-color;

[theme="dark"] & {
background-color: $code-background-color-dark;
color: $code-color-dark;
}
}
[theme="dark"] & {
background-color: $global-background-color-dark !important;
color: $global-font-color-dark !important;
}
}

0 comments on commit 976eb12

Please sign in to comment.