Skip to content

Commit a078b5e

Browse files
committed
Add barber pole to docs
1 parent 3c3bad7 commit a078b5e

4 files changed

Lines changed: 74 additions & 4 deletions

File tree

.hsdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
title: "Pace"
22
source: "pace.coffee"
33
examples: "**/*.md"
4-
assets: "{templates/*,pace-theme-*.css,docs/themes/*,docs/lib/*}"
4+
assets: "{templates/*,pace-theme-*.css,docs/themes/*,docs/lib/*,docs/resources/barber-pole-orange.css}"

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
<script src="https://rawgithub.com/HubSpot/pace/v0.4.0/pace.min.js"></script>
2-
<link type="text/css" href="https://rawgithub.com/HubSpot/pace/v0.4.0/themes/pace-theme-barber-shop.css"></link>
3-
41
pace
52
====
63

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
.pace {
2+
-webkit-pointer-events: none;
3+
pointer-events: none;
4+
-webkit-user-select: none;
5+
-moz-user-select: none;
6+
user-select: none;
7+
}
8+
9+
.pace-inactive {
10+
display: none;
11+
}
12+
13+
.pace .pace-progress {
14+
background-color: #f1c329;
15+
position: fixed;
16+
z-index: 100;
17+
top: 0;
18+
left: 0;
19+
height: 42px;
20+
overflow: hidden;
21+
pointer-events: none;
22+
opacity: 0.5;
23+
}
24+
25+
.pace .pace-progress-inner {
26+
position: absolute;
27+
top: 0;
28+
left: 0;
29+
right: -32px;
30+
bottom: 0;
31+
32+
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.2)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.2)), color-stop(0.75, rgba(255, 255, 255, 0.2)), color-stop(0.75, transparent), to(transparent));
33+
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);
34+
background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);
35+
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);
36+
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);
37+
-webkit-background-size: 32px 32px;
38+
-moz-background-size: 32px 32px;
39+
-o-background-size: 32px 32px;
40+
background-size: 32px 32px;
41+
42+
-webkit-animation: pace-stripe-animation 500ms linear infinite;
43+
-moz-animation: pace-stripe-animation 500ms linear infinite;
44+
-ms-animation: pace-stripe-animation 500ms linear infinite;
45+
-o-animation: pace-stripe-animation 500ms linear infinite;
46+
animation: pace-stripe-animation 500ms linear infinite;
47+
}
48+
49+
@-webkit-keyframes pace-stripe-animation {
50+
0% { -webkit-transform: none; transform: none; }
51+
100% { -webkit-transform: translate(-32px, 0); transform: translate(-32px, 0); }
52+
}
53+
@-moz-keyframes pace-stripe-animation {
54+
0% { -moz-transform: none; transform: none; }
55+
100% { -moz-transform: translate(-32px, 0); transform: translate(-32px, 0); }
56+
}
57+
@-o-keyframes pace-stripe-animation {
58+
0% { -o-transform: none; transform: none; }
59+
100% { -o-transform: translate(-32px, 0); transform: translate(-32px, 0); }
60+
}
61+
@-ms-keyframes pace-stripe-animation {
62+
0% { -ms-transform: none; transform: none; }
63+
100% { -ms-transform: translate(-32px, 0); transform: translate(-32px, 0); }
64+
}
65+
@keyframes pace-stripe-animation {
66+
0% { transform: none; transform: none; }
67+
100% { transform: translate(-32px, 0); transform: translate(-32px, 0); }
68+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
extends index
2+
3+
append early-head
4+
<script src="/pace/pace.js"></script>
5+
<link rel="stylesheet" href="/pace/docs/resources/barber-pole-orange.css"></link>

0 commit comments

Comments
 (0)