Summary Files Commits Branches @commit @diff @stats
path: root / src / typography.less
diff options
context:
space:
mode:
Commit35bd419ba48fb77881256e2b9828adb4c8871a4e (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-04-07 19:24:12 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-04-07 19:24:12 +0800
Files3843a34b6b3467f99d0d6c4b8280aad27ec2eec5 /src/typography.less
Spectre-Dark-Gruvbox-35bd419ba48fb77881256e2b9828adb4c8871a4e.tar
Spectre-Dark-Gruvbox-35bd419ba48fb77881256e2b9828adb4c8871a4e.tar.gz
Spectre-Dark-Gruvbox-35bd419ba48fb77881256e2b9828adb4c8871a4e.zip
Parentd24470d5581b3c0e977cac0b4f1c5b1e6f565b36 (diff)
Parent5e74f8637756add6bfeca4129e6869e5d470c2ea (diff)
Merge branch 'master' into gh-pages
# Conflicts:
1 files changed, 28 insertions, 18 deletions
-rw-r--r--src/typography.less46
diff --git a/src/typography.less b/src/typography.less
index 0051ba0..817e973 100644
--- a/src/typography.less
+++ b/src/typography.less
@@ -50,24 +50,6 @@ blockquote {
color: lighten(@body-font-color, 50%);
}
}
-code,
-pre {
- display: block;
- margin-top: 1em;
- margin-bottom: 1em;
- border-left: .2rem solid @core-color;
- line-height: 1.8rem;
- background-color: lighten(@core-border-color, 4%);
-}
-code {
- padding: 1rem 2rem;
-}
-pre code {
- background-color: transparent;
- border-left: 0;
- margin-top: 0;
- margin-bottom: 0;
-}
ul,
ol {
margin: 0 0 1rem;
@@ -147,4 +129,32 @@ ol {
word-break: break-word;
word-wrap: break-word;
hyphens: auto;
+}
+
+// Code
+pre {
+ margin-top: 1em;
+ margin-bottom: 1em;
+ padding: 1.5rem;
+ border-left: .2rem solid @core-color;
+ line-height: 1.8rem;
+ background-color: lighten(@core-border-color, 4%);
+}
+code {
+ padding: .2rem .4rem;
+ margin: -.2rem .1em 0 .1em;
+ border-radius: .2rem;
+ background-color: @core-border-color;
+ font-size: .9em;
+ line-height: 1em;
+ vertical-align: baseline;
+ white-space: nowrap;
+
+ pre & {
+ margin-top: 0;
+ margin-bottom: 0;
+ border-left: 0;
+ background-color: transparent;
+ line-height: 1.8rem;
+ }
} \ No newline at end of file