summaryrefslogtreecommitdiffstats
path: root/theme/stylesheets
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-06-06 19:33:41 +0200
committerSamy Pessé <samypesse@gmail.com>2014-06-06 19:33:41 +0200
commitf7a442d297d3914b9e2bfea7709fd38e41a40e2a (patch)
tree0ba866250f880cb69629a35258034811ce0b0614 /theme/stylesheets
parentcfebdc6f6b0967266a0aa8b5a82d5d5761cba916 (diff)
downloadgitbook-f7a442d297d3914b9e2bfea7709fd38e41a40e2a.zip
gitbook-f7a442d297d3914b9e2bfea7709fd38e41a40e2a.tar.gz
gitbook-f7a442d297d3914b9e2bfea7709fd38e41a40e2a.tar.bz2
Improve font sizes and spacing on content
Diffstat (limited to 'theme/stylesheets')
-rwxr-xr-xtheme/stylesheets/website/body.less3
-rw-r--r--theme/stylesheets/website/variables.less10
2 files changed, 9 insertions, 4 deletions
diff --git a/theme/stylesheets/website/body.less b/theme/stylesheets/website/body.less
index 9c0340f..63cf8f1 100755
--- a/theme/stylesheets/website/body.less
+++ b/theme/stylesheets/website/body.less
@@ -37,7 +37,8 @@
background: @page-background;
border-radius: 2px;
- line-height: 1.5em;
+ line-height: @content-line-height;
+ font-size: @default-font-size;
}
.btn-group {
diff --git a/theme/stylesheets/website/variables.less b/theme/stylesheets/website/variables.less
index ba96451..a4c75f6 100644
--- a/theme/stylesheets/website/variables.less
+++ b/theme/stylesheets/website/variables.less
@@ -43,6 +43,9 @@
@page-color: black;
@page-background: @body-background;
+// Content
+@content-line-height: 1.6em;
+
// Progress Bar
@chapter-display: none;
@chapter-size: 16px;
@@ -86,11 +89,12 @@
@FontPath: '@{staticPath}/fonts';
@fa-font-path: "@{FontPath}/fontawesome";
-@s-font-size: 1.2rem;
-@m-font-size: 1.4rem;
-@l-font-size: 1.6rem;
+@s-font-size: 1.2rem;
+@m-font-size: 1.4rem;
+@l-font-size: 1.6rem;
@xl-font-size: 2.2rem;
@xxl-font-size: 4.0rem;
+@default-font-size: @l-font-size;
/*
,--------.,--.