Summary Files Commits Branches @commit @diff @stats
path: root / src / codes.less
diff options
context:
space:
mode:
Commit78de8f1a1f423a86c05f361e87012a8ea1f1211b (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-07-01 15:33:02 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-07-01 15:33:02 +0800
Files4efd8509510b7b831dd665a6273b07ec9cc0da5e /src/codes.less
Spectre-Dark-Gruvbox-78de8f1a1f423a86c05f361e87012a8ea1f1211b.tar
Spectre-Dark-Gruvbox-78de8f1a1f423a86c05f361e87012a8ea1f1211b.tar.gz
Spectre-Dark-Gruvbox-78de8f1a1f423a86c05f361e87012a8ea1f1211b.zip
Parentef4918530c3d332abbfd4e3076ffc8f9405d4da7 (diff)
IMPORTANT: Replace all rem units to px
1 files changed, 4 insertions, 4 deletions
-rw-r--r--src/codes.less8
diff --git a/src/codes.less b/src/codes.less
index bdb73ee..e08948b 100644
--- a/src/codes.less
+++ b/src/codes.less
@@ -7,7 +7,7 @@ code {
.code {
border-radius: @border-radius;
color: @body-font-color;
- line-height: 2rem;
+ line-height: @line-height;
position: relative;
&::before {
@@ -15,8 +15,8 @@ code {
color: @gray-color;
font-size: @font-size-sm;
position: absolute;
- right: 1rem;
- top: .2rem;
+ right: @layout-spacing;
+ top: @unit-h;
}
code {
@@ -25,7 +25,7 @@ code {
display: block;
line-height: inherit;
overflow-x: auto;
- padding: 2rem;
+ padding: 20px;
width: 100%;
}
}