Made progress bar static

This commit is contained in:
Samy Pessé
2014-04-14 00:11:51 +02:00
parent 9ffa462111
commit b77debae24
4 changed files with 70 additions and 70 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+67 -67
View File
@@ -1,84 +1,84 @@
/* Chrome, Safari, Opera */
@-webkit-keyframes animate-loading {
from {width: 0%;}
to {}
from {width: 0%;}
to {}
}
/* Standard syntax */
@keyframes animate-loading {
from {width: 0%;}
to {}
from {width: 0%;}
to {}
}
.book .book-body {
.book-progress {
height: @progress-height;
width: 100%;
position: relative;
background: #fff;
margin-bottom: 20px;
z-index: 10;
.book-progress {
height: @progress-height;
width: 100%;
position: relative;
background: #fff;
margin-bottom: 20px;
z-index: 10;
.bar {
height: @bar-height;
position: @bar-position;
right: @bar-right;
left: @bar-left;
top: @bar-top;
.bar {
height: @bar-height;
position: @bar-position;
right: @bar-right;
left: @bar-left;
top: @bar-top;
background: @bar-background;
border-radius: 5px;
overflow: hidden;
background: @bar-background;
border-radius: 5px;
overflow: hidden;
.inner {
height: 100%;
width: 0%;
.inner {
height: 100%;
width: 0%;
background: @bar-progress-background;
-webkit-animation: animate-loading 1s; /* Chrome, Safari, Opera */
animation: animate-loading 1s;
background: @bar-progress-background;
-webkit-animation: animate-loading 1s; /* Chrome, Safari, Opera */
animation: animate-loading 1s;
.in-inner {
height: 100%;
width: 50%;
.in-inner {
height: 100%;
width: 50%;
}
}
}
.chapters {
display: @chapter-display;
position: absolute;
right: 20px + @chapter-size;
left: 20px;
top: 7px;
.chapter {
position: absolute;
width: @chapter-size;
height: @chapter-size;
border-radius: @chapter-size;
background: @bar-background;
box-shadow: 0px 0px 1px #bbb;
&.new-chapter {
}
&.done {
background: @bar-progress-background;
box-shadow: none;
}
@media (max-width: 800px) {
display: none;
&.new-chapter {
display: block;
}
}
}
}
}
}
.chapters {
display: @chapter-display;
position: absolute;
right: 20px + @chapter-size;
left: 20px;
top: 7px;
.chapter {
position: absolute;
width: @chapter-size;
height: @chapter-size;
border-radius: @chapter-size;
background: @bar-background;
box-shadow: 0px 0px 1px #bbb;
&.new-chapter {
}
&.done {
background: @bar-progress-background;
box-shadow: none;
}
@media (max-width: 800px) {
display: none;
&.new-chapter {
display: block;
}
}
}
}
}
}
+1 -1
View File
@@ -50,7 +50,7 @@
@bar-left: @sidebar-width;
@bar-right: 0;
@bar-top: 50px;
@bar-position: fixed;
@bar-position: static;
@bar-background: white;
@bar-progress-background: hsl(120, 60%, 50%);