Files
gitbook/theme/stylesheets/book/progress.less
T
2014-04-04 14:10:56 -07:00

88 lines
1.8 KiB
Plaintext

/* Chrome, Safari, Opera */
@-webkit-keyframes animate-loading
{
from {width: 0%;}
to {}
}
/* Standard syntax */
@keyframes animate-loading
{
from {width: 0%;}
to {}
}
.book .book-body {
@chapter-size: 16px;
@bar-background: #eee;
.book-progress {
height: 30px;
width: 100%;
position: relative;
background: #fff;
margin-bottom: 20px;
.bar {
height: 8px;
position: absolute;
right: 20px;
left: 20px;
top: 11px;
background: @bar-background;
border-radius: 5px;
overflow: hidden;
.inner {
height: 100%;
width: 0%;
background: @brand-success;
-webkit-animation: animate-loading 1s; /* Chrome, Safari, Opera */
animation: animate-loading 1s;
.in-inner {
height: 100%;
width: 50%;
}
}
}
.chapters {
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: @brand-success;
box-shadow: none;
}
@media (max-width: 800px) {
display: none;
&.new-chapter {
display: block;
}
}
}
}
}
}