Skip to content

Commit

Permalink
Fix circle theme
Browse files Browse the repository at this point in the history
  • Loading branch information
zackbloom committed Oct 11, 2013
1 parent eb7e2bd commit 5c150a5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 25 deletions.
13 changes: 7 additions & 6 deletions templates/pace-theme-center-circle.tmpl.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,12 @@
.pace .pace-progress {
position: fixed;
z-index: 2000;
}

.pace .pace-progress:after {
content: attr(data-progress-text);
display: block;
position: absolute;
left: 0;
top: 0;
height: 6rem;
width: 6rem;
width: 6rem !important;
line-height: 6rem;
font-size: 2rem;
border-radius: 50%;
Expand All @@ -62,6 +58,11 @@
transform-style: preserve-3d;
}

.pace .pace-progress:after {
content: attr(data-progress-text);
display: block;
}

@-webkit-keyframes pace-3d-spinner {
from {
-webkit-transform: rotateY(0deg);
Expand Down Expand Up @@ -105,4 +106,4 @@
to {
transform: rotateY(360deg);
}
}
}
15 changes: 2 additions & 13 deletions tests/demo.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
<head>
<style>
.pace-progress {
position: absolute;
top: 0;
left: 0;
height: 3px;
background-color: #FFC01F;
}
.pace-inactive {
display: none;
}
</style>
<link rel="stylesheet" href="../themes/pace-theme-center-circle.css" />

<script>
paceOptions = {
elements: false,
restartOnRequestAfter: false
};
</script>
<script src="pace.js"></script>
<script src="../pace.js"></script>
<script>
function load(time){
var x = new XMLHttpRequest()
Expand Down
19 changes: 13 additions & 6 deletions themes/pace-theme-center-circle.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@
.pace {
-webkit-pointer-events: none;
pointer-events: none;

-webkit-user-select: none;
-moz-user-select: none;
user-select: none;

-webkit-perspective: 12rem;
-moz-perspective: 12rem;
-ms-perspective: 12rem;
-o-perspective: 12rem;
perspective: 12rem;

z-index: 2000;
position: fixed;
height: 6rem;
Expand All @@ -25,16 +31,12 @@
.pace .pace-progress {
position: fixed;
z-index: 2000;
}

.pace .pace-progress:after {
content: attr(data-progress-text);
display: block;
position: absolute;
left: 0;
top: 0;
height: 6rem;
width: 6rem;
width: 6rem !important;
line-height: 6rem;
font-size: 2rem;
border-radius: 50%;
Expand All @@ -57,6 +59,11 @@
transform-style: preserve-3d;
}

.pace .pace-progress:after {
content: attr(data-progress-text);
display: block;
}

@-webkit-keyframes pace-3d-spinner {
from {
-webkit-transform: rotateY(0deg);
Expand Down Expand Up @@ -100,4 +107,4 @@
to {
transform: rotateY(360deg);
}
}
}

0 comments on commit 5c150a5

Please sign in to comment.