From 1217e012063249ecf45b96a404418de657c97274 Mon Sep 17 00:00:00 2001 From: Tunghsiao Liu Date: Sun, 20 Dec 2015 19:10:59 +0800 Subject: [PATCH] feat(styles): add position offset for `pre` and `table` --- _app/assets/themes/curtana/_less/common.less | 10 ++++++---- _app/assets/themes/curtana/_less/variables.less | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/_app/assets/themes/curtana/_less/common.less b/_app/assets/themes/curtana/_less/common.less index e50977251..2eba37e85 100644 --- a/_app/assets/themes/curtana/_less/common.less +++ b/_app/assets/themes/curtana/_less/common.less @@ -336,8 +336,9 @@ body:hover .latest { } pre { - padding: 1em; - margin: 0 0 1.8rem; + padding: @space-xs; + .margin-offset(-@space-xs, -@space-xs); + margin-bottom: 1.8rem; overflow-x: auto; font-size: 80%; line-height: (@line-height * 1.2); @@ -400,11 +401,12 @@ body:hover .latest { border-spacing: 0; font-size: 90%; width: 100%; - margin: 0 0 1.8rem; + .margin-offset(-@space-xs, -@space-xs); + margin-bottom: 1.8rem; th, td { - padding: .6em; + padding: .6em @space-xs; } th { diff --git a/_app/assets/themes/curtana/_less/variables.less b/_app/assets/themes/curtana/_less/variables.less index 619c2b7fd..65bd0cec6 100644 --- a/_app/assets/themes/curtana/_less/variables.less +++ b/_app/assets/themes/curtana/_less/variables.less @@ -23,7 +23,7 @@ @space-lg: 22vw; @space-md: 8vw; @space-sm: 4vw; -@space-xs: .8em; +@space-xs: 1vw; @space-default: @space-md; @border-lg: 4px;