mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-18 16:45:11 +00:00
88 lines
1.8 KiB
Plaintext
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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |