summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-06-03 18:11:01 +0200
committerSamy Pessé <samypesse@gmail.com>2014-06-03 18:11:03 +0200
commita195b3eac25881f8bd8f8e190c7faee48aa9b5cf (patch)
treea888c13702d357319bc4e91057eab8b9d5580b72
parent77c6f0e967b46896d93cbec78353219937010994 (diff)
downloadgitbook-a195b3eac25881f8bd8f8e190c7faee48aa9b5cf.zip
gitbook-a195b3eac25881f8bd8f8e190c7faee48aa9b5cf.tar.gz
gitbook-a195b3eac25881f8bd8f8e190c7faee48aa9b5cf.tar.bz2
Improve less files organisation
-rw-r--r--Gruntfile.js4
-rwxr-xr-xtheme/stylesheets/ebook.less (renamed from theme/stylesheets/print.less)8
-rw-r--r--theme/stylesheets/ebook/highlight.less (renamed from theme/stylesheets/page/highlight.less)0
-rw-r--r--theme/stylesheets/ebook/variables.less1
-rwxr-xr-xtheme/stylesheets/mixins.less2
-rwxr-xr-xtheme/stylesheets/website.less (renamed from theme/stylesheets/main.less)24
-rwxr-xr-xtheme/stylesheets/website/body.less (renamed from theme/stylesheets/book/body.less)0
-rwxr-xr-xtheme/stylesheets/website/exercise.less (renamed from theme/stylesheets/book/exercise.less)0
-rw-r--r--theme/stylesheets/website/font-settings.less (renamed from theme/stylesheets/book/font-settings.less)0
-rw-r--r--[-rwxr-xr-x]theme/stylesheets/website/fonts.less (renamed from theme/stylesheets/fonts.less)0
-rwxr-xr-xtheme/stylesheets/website/header.less (renamed from theme/stylesheets/book/header.less)0
-rw-r--r--theme/stylesheets/website/highlight/night.less (renamed from theme/stylesheets/book/highlight/night.less)0
-rw-r--r--theme/stylesheets/website/highlight/sepia.less (renamed from theme/stylesheets/book/highlight/sepia.less)0
-rw-r--r--theme/stylesheets/website/highlight/white.less (renamed from theme/stylesheets/book/highlight/white.less)0
-rwxr-xr-xtheme/stylesheets/website/languages.less (renamed from theme/stylesheets/book/languages.less)0
-rwxr-xr-xtheme/stylesheets/website/markdown.less (renamed from theme/stylesheets/book/markdown.less)0
-rwxr-xr-xtheme/stylesheets/website/navigation.less (renamed from theme/stylesheets/book/navigation.less)0
-rwxr-xr-xtheme/stylesheets/website/progress.less (renamed from theme/stylesheets/book/progress.less)0
-rw-r--r--theme/stylesheets/website/quiz.less (renamed from theme/stylesheets/book/quiz.less)0
-rwxr-xr-xtheme/stylesheets/website/summary.less (renamed from theme/stylesheets/book/summary.less)0
-rw-r--r--[-rwxr-xr-x]theme/stylesheets/website/variables.less (renamed from theme/stylesheets/variables.less)16
21 files changed, 26 insertions, 29 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 5e8e1d3..8afa9db 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -24,8 +24,8 @@ module.exports = function (grunt) {
optimization: 2
},
files: {
- "theme/assets/style.css": "theme/stylesheets/main.less",
- "theme/assets/print.css": "theme/stylesheets/print.less"
+ "theme/assets/style.css": "theme/stylesheets/website.less",
+ "theme/assets/print.css": "theme/stylesheets/ebook.less"
}
}
},
diff --git a/theme/stylesheets/print.less b/theme/stylesheets/ebook.less
index 61df294..9f2b12b 100755
--- a/theme/stylesheets/print.less
+++ b/theme/stylesheets/ebook.less
@@ -1,12 +1,8 @@
@import "vendors/bootstrap/bootstrap.less";
-
@import "mixins.less";
-/*@import "variables.less";*/
-
-@import "page/highlight.less";
-
-@font-size-base: 13px;
+@import "ebook/variables.less";
+@import "ebook/highlight.less";
.book-chapter {
display: none;
diff --git a/theme/stylesheets/page/highlight.less b/theme/stylesheets/ebook/highlight.less
index 26078cb..26078cb 100644
--- a/theme/stylesheets/page/highlight.less
+++ b/theme/stylesheets/ebook/highlight.less
diff --git a/theme/stylesheets/ebook/variables.less b/theme/stylesheets/ebook/variables.less
new file mode 100644
index 0000000..4714151
--- /dev/null
+++ b/theme/stylesheets/ebook/variables.less
@@ -0,0 +1 @@
+@font-size-base: 13px;
diff --git a/theme/stylesheets/mixins.less b/theme/stylesheets/mixins.less
index 0216ea4..80378f8 100755
--- a/theme/stylesheets/mixins.less
+++ b/theme/stylesheets/mixins.less
@@ -4,4 +4,4 @@
&:hover, &:focus {
color: inherit;
}
-} \ No newline at end of file
+}
diff --git a/theme/stylesheets/main.less b/theme/stylesheets/website.less
index 2145d43..ffaae57 100755
--- a/theme/stylesheets/main.less
+++ b/theme/stylesheets/website.less
@@ -2,19 +2,19 @@
@import "vendors/fontawesome/font-awesome.less";
@import "mixins.less";
-@import "variables.less";
-@import "fonts.less";
-@import "book/languages.less";
-@import "book/header.less";
-@import "book/summary.less";
-@import "book/font-settings.less";
-@import "book/body.less";
-@import "book/exercise.less";
-@import "book/quiz.less";
-@import "book/markdown.less";
-@import "book/progress.less";
-@import "book/navigation.less";
+@import "website/fonts.less";
+@import "website/variables.less";
+@import "website/languages.less";
+@import "website/header.less";
+@import "website/summary.less";
+@import "website/font-settings.less";
+@import "website/body.less";
+@import "website/exercise.less";
+@import "website/quiz.less";
+@import "website/markdown.less";
+@import "website/progress.less";
+@import "website/navigation.less";
* {
-webkit-overflow-scrolling: touch;
diff --git a/theme/stylesheets/book/body.less b/theme/stylesheets/website/body.less
index 9c0340f..9c0340f 100755
--- a/theme/stylesheets/book/body.less
+++ b/theme/stylesheets/website/body.less
diff --git a/theme/stylesheets/book/exercise.less b/theme/stylesheets/website/exercise.less
index a6f8a45..a6f8a45 100755
--- a/theme/stylesheets/book/exercise.less
+++ b/theme/stylesheets/website/exercise.less
diff --git a/theme/stylesheets/book/font-settings.less b/theme/stylesheets/website/font-settings.less
index 42fe41f..42fe41f 100644
--- a/theme/stylesheets/book/font-settings.less
+++ b/theme/stylesheets/website/font-settings.less
diff --git a/theme/stylesheets/fonts.less b/theme/stylesheets/website/fonts.less
index 3dfff3f..3dfff3f 100755..100644
--- a/theme/stylesheets/fonts.less
+++ b/theme/stylesheets/website/fonts.less
diff --git a/theme/stylesheets/book/header.less b/theme/stylesheets/website/header.less
index 2acaee4..2acaee4 100755
--- a/theme/stylesheets/book/header.less
+++ b/theme/stylesheets/website/header.less
diff --git a/theme/stylesheets/book/highlight/night.less b/theme/stylesheets/website/highlight/night.less
index 8e06c2a..8e06c2a 100644
--- a/theme/stylesheets/book/highlight/night.less
+++ b/theme/stylesheets/website/highlight/night.less
diff --git a/theme/stylesheets/book/highlight/sepia.less b/theme/stylesheets/website/highlight/sepia.less
index 3d9dddb..3d9dddb 100644
--- a/theme/stylesheets/book/highlight/sepia.less
+++ b/theme/stylesheets/website/highlight/sepia.less
diff --git a/theme/stylesheets/book/highlight/white.less b/theme/stylesheets/website/highlight/white.less
index ae9d1f8..ae9d1f8 100644
--- a/theme/stylesheets/book/highlight/white.less
+++ b/theme/stylesheets/website/highlight/white.less
diff --git a/theme/stylesheets/book/languages.less b/theme/stylesheets/website/languages.less
index bde5a77..bde5a77 100755
--- a/theme/stylesheets/book/languages.less
+++ b/theme/stylesheets/website/languages.less
diff --git a/theme/stylesheets/book/markdown.less b/theme/stylesheets/website/markdown.less
index 52927a8..52927a8 100755
--- a/theme/stylesheets/book/markdown.less
+++ b/theme/stylesheets/website/markdown.less
diff --git a/theme/stylesheets/book/navigation.less b/theme/stylesheets/website/navigation.less
index 52270d1..52270d1 100755
--- a/theme/stylesheets/book/navigation.less
+++ b/theme/stylesheets/website/navigation.less
diff --git a/theme/stylesheets/book/progress.less b/theme/stylesheets/website/progress.less
index c67d7e7..c67d7e7 100755
--- a/theme/stylesheets/book/progress.less
+++ b/theme/stylesheets/website/progress.less
diff --git a/theme/stylesheets/book/quiz.less b/theme/stylesheets/website/quiz.less
index 0abdaf6..0abdaf6 100644
--- a/theme/stylesheets/book/quiz.less
+++ b/theme/stylesheets/website/quiz.less
diff --git a/theme/stylesheets/book/summary.less b/theme/stylesheets/website/summary.less
index 49c7a29..49c7a29 100755
--- a/theme/stylesheets/book/summary.less
+++ b/theme/stylesheets/website/summary.less
diff --git a/theme/stylesheets/variables.less b/theme/stylesheets/website/variables.less
index ea18125..f496f06 100755..100644
--- a/theme/stylesheets/variables.less
+++ b/theme/stylesheets/website/variables.less
@@ -38,7 +38,7 @@
@sidebar-link-completed-weight: normal;
// Page
-@page-color: black;
+@page-color: black;
@page-background: white;
// Progress Bar
@@ -84,11 +84,11 @@
@FontPath: '@{staticPath}/fonts';
@fa-font-path: "@{FontPath}/fontawesome";
-@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;
+@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;
/*
,--------.,--.
@@ -144,8 +144,8 @@
@sidebar-link-completed-weight-2: normal;
// Page
-@page-color-1: #704214;
-@page-color-2: #a4b1b1;
+@page-color-1: #704214;
+@page-color-2: #a4b1b1;
@page-background-1: #F3EACB;
@page-background-2: #1d1f21;