This repository was archived by the owner on Mar 9, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(style): valine dark style, header title and figure margin (#285)
- Loading branch information
Showing
10 changed files
with
63 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -212,6 +212,7 @@ | |
} | ||
|
||
figure { | ||
margin: .5rem; | ||
text-align: center; | ||
|
||
.image-caption:not(:empty) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,8 @@ | |
[theme=dark] & { | ||
@import "themes/dark/index"; | ||
} | ||
|
||
div.mermaidTooltip { | ||
z-index: 50; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,64 @@ | ||
// ========== Global ========== // | ||
// Color of the border | ||
$border-color: #f0f0f0; | ||
$border-color-dark: #363636; | ||
|
||
// ========== Code ========== // | ||
// Color of the code | ||
$code-color: #E74C3C !default; | ||
$code-color-dark: #E5BF78 !default; | ||
|
||
// Color of the code background | ||
$code-background-color: #f5f5f5 !default; | ||
$code-background-color-dark: #272C34 !default; | ||
|
||
@mixin overflow-wrap($value) { | ||
word-wrap: $value; | ||
overflow-wrap: $value; | ||
} | ||
|
||
@mixin line-break($value) { | ||
-webkit-line-break: $value; | ||
-ms-line-break: $value; | ||
line-break: $value; | ||
} | ||
|
||
@mixin tab-size($value) { | ||
-moz-tab-size: $value; | ||
-o-tab-size: $value; | ||
tab-size: $value; | ||
} | ||
|
||
.v[data-class=v] { | ||
.vcards .vcard .vcontent.expand { | ||
&::before, &::after { | ||
z-index: 50; | ||
} | ||
} | ||
|
||
.vwrap, | ||
.vwrap .vheader .vinput, | ||
.vcards .vcard .vh { | ||
.vcards .vcard .vh, | ||
.vcards .vcard .vquote, | ||
blockquote { | ||
border-color: $border-color; | ||
|
||
[theme=dark] & { | ||
border-color: $border-color-dark; | ||
} | ||
} | ||
|
||
code, pre, pre code { | ||
font-size: 90%; | ||
@include overflow-wrap(break-word); | ||
@include line-break(anywhere); | ||
@include tab-size(4); | ||
color: $code-color; | ||
background: $code-background-color; | ||
|
||
[theme=dark] & { | ||
color: $code-color-dark; | ||
background: $code-background-color-dark; | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
resources/_gen/assets/scss/css/style.template.scss_788c4a23da05f3aa3e03b28055a2e5f9.content
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
resources/_gen/assets/scss/css/style.template.scss_84a735b886b24531b6e80c5fb2060510.content
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
resources/_gen/assets/scss/css/style.template.scss_d40178ffcb058d725849178b0a7a43cc.content
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
resources/_gen/assets/scss/lib/mermaid/mermaid.scss_43d09a0fb297c4cc88d4122515a2e889.content
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
resources/_gen/assets/scss/lib/valine/valine.scss_782a264805f83ff21e4b24d4d52cfa46.content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
.v[data-class=v] .vwrap,.v[data-class=v] .vwrap .vheader .vinput,.v[data-class=v] .vcards .vcard .vh{border-color:#f0f0f0}[theme=dark] .v[data-class=v] .vwrap,[theme=dark] .v[data-class=v] .vwrap .vheader .vinput,[theme=dark] .v[data-class=v] .vcards .vcard .vh{border-color:#363636} | ||
.v[data-class=v] .vcards .vcard .vcontent.expand::before,.v[data-class=v] .vcards .vcard .vcontent.expand::after{z-index:50}.v[data-class=v] .vwrap,.v[data-class=v] .vwrap .vheader .vinput,.v[data-class=v] .vcards .vcard .vh,.v[data-class=v] .vcards .vcard .vquote,.v[data-class=v] blockquote{border-color:#f0f0f0}[theme=dark] .v[data-class=v] .vwrap,[theme=dark] .v[data-class=v] .vwrap .vheader .vinput,[theme=dark] .v[data-class=v] .vcards .vcard .vh,[theme=dark] .v[data-class=v] .vcards .vcard .vquote,[theme=dark] .v[data-class=v] blockquote{border-color:#363636}.v[data-class=v] code,.v[data-class=v] pre,.v[data-class=v] pre code{font-size:90%;word-wrap:break-word;overflow-wrap:break-word;-webkit-line-break:anywhere;-ms-line-break:anywhere;line-break:anywhere;-moz-tab-size:4;-o-tab-size:4;tab-size:4;color:#E74C3C;background:#f5f5f5}[theme=dark] .v[data-class=v] code,[theme=dark] .v[data-class=v] pre,[theme=dark] .v[data-class=v] pre code{color:#E5BF78;background:#272C34} |