Summary Files Commits Branches @commit @diff @stats
path: root / docs / css / spectre.css
diff options
context:
space:
mode:
Commitfb064a959d20e9b40c05d112014ea02cce5caef4 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-03-01 09:50:27 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-03-01 09:50:27 +0800
Filesf48a8385c831c148206b68a994a62b24eeb792ac /docs/css/spectre.css
Spectre-Dark-Gruvbox-fb064a959d20e9b40c05d112014ea02cce5caef4.tar
Spectre-Dark-Gruvbox-fb064a959d20e9b40c05d112014ea02cce5caef4.tar.gz
Spectre-Dark-Gruvbox-fb064a959d20e9b40c05d112014ea02cce5caef4.zip
Parentfee8c85cbd9f49f509e5e0035bdde91bb478b40e (diff)
CHG: Split Codes and improve docs codes
1 files changed, 43 insertions, 31 deletions
-rw-r--r--docs/css/spectre.css74
diff --git a/docs/css/spectre.css b/docs/css/spectre.css
index 40d5351..0fad1b2 100644
--- a/docs/css/spectre.css
+++ b/docs/css/spectre.css
@@ -533,37 +533,6 @@ abbr[title] {
cursor: help;
text-decoration: none;
}
-code {
- background: #f8f8f8;
- border-radius: .2rem;
- color: #666;
- display: inline-block;
- line-height: 1;
- padding: .3rem;
- vertical-align: baseline;
-}
-pre {
- background: #f9f9f9;
- line-height: 2rem;
- margin-bottom: 1em;
- margin-top: 1em;
- overflow: auto;
- padding: 2rem 2.5rem;
- position: relative;
-}
-pre > code {
- background: transparent;
- line-height: 2rem;
- padding: 0;
-}
-pre > code::before {
- color: #c5c5c5;
- content: attr(data-lang);
- font-size: 1.2rem;
- position: absolute;
- right: 1rem;
- top: .2rem;
-}
:lang(zh),
:lang(ja),
:lang(ko),
@@ -1154,6 +1123,49 @@ textarea.form-input {
background: #e85600;
color: #fff;
}
+code {
+ background: #f8f8f8;
+ border-radius: .2rem;
+ color: #e06870;
+ display: inline-block;
+ line-height: 1;
+ padding: .3rem;
+ vertical-align: baseline;
+}
+.code {
+ border-radius: .2rem;
+ color: #666;
+ line-height: 2rem;
+ position: relative;
+}
+.code::before {
+ color: #c5c5c5;
+ content: attr(data-lang);
+ font-size: 1.2rem;
+ position: absolute;
+ right: 1rem;
+ top: .2rem;
+}
+.code code {
+ color: inherit;
+ display: block;
+ line-height: inherit;
+ overflow-x: auto;
+ padding: 2rem;
+ width: 100%;
+}
+.code .com {
+ color: #c5c5c5;
+}
+.code .tag {
+ color: #5764c6;
+}
+.code .atn {
+ color: #666;
+}
+.code .atv {
+ color: #e06870;
+}
.img-responsive {
display: block;
height: auto;