mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-23 02:53:29 +00:00
Made progress bar static
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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%);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user