summaryrefslogtreecommitdiffstats
path: root/assets/stylesheets
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-04-01 01:21:42 -0700
committerSamy Pessé <samypesse@gmail.com>2014-04-01 01:21:44 -0700
commit256d1ba35a74777b6bdd9d937809798a0cfe3c20 (patch)
tree7be827ab14a85c307afc40d6ff0a176b14116173 /assets/stylesheets
parentcc340db0faa412edec47a7d37ce591501ab454fb (diff)
downloadgitbook-256d1ba35a74777b6bdd9d937809798a0cfe3c20.zip
gitbook-256d1ba35a74777b6bdd9d937809798a0cfe3c20.tar.gz
gitbook-256d1ba35a74777b6bdd9d937809798a0cfe3c20.tar.bz2
Add progress calcul
Diffstat (limited to 'assets/stylesheets')
-rw-r--r--assets/stylesheets/book/progress.less51
-rw-r--r--assets/stylesheets/main.less1
2 files changed, 52 insertions, 0 deletions
diff --git a/assets/stylesheets/book/progress.less b/assets/stylesheets/book/progress.less
new file mode 100644
index 0000000..b43fa55
--- /dev/null
+++ b/assets/stylesheets/book/progress.less
@@ -0,0 +1,51 @@
+.book .book-body {
+ @chapter-size: 16px;
+ @bar-background: #eee;
+
+ .book-progress {
+ height: 30px;
+ width: 100%;
+ position: relative;
+ background: #fff;
+
+ .bar {
+ height: 10px;
+ position: absolute;
+ right: 20px;
+ left: 20px;
+ top: 10px;
+
+ background: @bar-background;
+ border-radius: 5px;
+ overflow: hidden;
+
+ .inner {
+ height: 100%;
+ width: 0%;
+ background: @brand-success;
+ }
+ }
+
+ .chapters {
+ position: absolute;
+ right: 50px;
+ left: 50px - @chapter-size;
+ top: 7px;
+
+ .chapter {
+ position: absolute;
+ width: @chapter-size;
+ height: @chapter-size;
+ border-radius: @chapter-size;
+
+ background: @bar-background;
+ box-shadow: 0px 0px 1px #bbb;
+
+ &.done {
+ background: @brand-success;
+ box-shadow: none;
+ }
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/assets/stylesheets/main.less b/assets/stylesheets/main.less
index 10cb052..5fea23b 100644
--- a/assets/stylesheets/main.less
+++ b/assets/stylesheets/main.less
@@ -11,6 +11,7 @@
@import "book/footer.less";
@import "book/exercise.less";
@import "book/markdown.less";
+@import "book/progress.less";
* {
-webkit-overflow-scrolling: touch;