Skip to content

Commit a490e6b

Browse files
committed
Namespace keyframe animations with theme names
1 parent c258baa commit a490e6b

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

templates/pace-theme-barber-shop.tmpl.css

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,30 +37,30 @@
3737
-o-background-size: 32px 32px;
3838
background-size: 32px 32px;
3939

40-
-webkit-animation: pace-stripe-animation 500ms linear infinite;
41-
-moz-animation: pace-stripe-animation 500ms linear infinite;
42-
-ms-animation: pace-stripe-animation 500ms linear infinite;
43-
-o-animation: pace-stripe-animation 500ms linear infinite;
44-
animation: pace-stripe-animation 500ms linear infinite;
40+
-webkit-animation: pace-theme-barber-shop-motion 500ms linear infinite;
41+
-moz-animation: pace-theme-barber-shop-motion 500ms linear infinite;
42+
-ms-animation: pace-theme-barber-shop-motion 500ms linear infinite;
43+
-o-animation: pace-theme-barber-shop-motion 500ms linear infinite;
44+
animation: pace-theme-barber-shop-motion 500ms linear infinite;
4545
}
4646

47-
@-webkit-keyframes pace-stripe-animation {
47+
@-webkit-keyframes pace-theme-barber-shop-motion {
4848
0% { -webkit-transform: none; transform: none; }
4949
100% { -webkit-transform: translate(-32px, 0); transform: translate(-32px, 0); }
5050
}
51-
@-moz-keyframes pace-stripe-animation {
51+
@-moz-keyframes pace-theme-barber-shop-motion {
5252
0% { -moz-transform: none; transform: none; }
5353
100% { -moz-transform: translate(-32px, 0); transform: translate(-32px, 0); }
5454
}
55-
@-o-keyframes pace-stripe-animation {
55+
@-o-keyframes pace-theme-barber-shop-motion {
5656
0% { -o-transform: none; transform: none; }
5757
100% { -o-transform: translate(-32px, 0); transform: translate(-32px, 0); }
5858
}
59-
@-ms-keyframes pace-stripe-animation {
59+
@-ms-keyframes pace-theme-barber-shop-motion {
6060
0% { -ms-transform: none; transform: none; }
6161
100% { -ms-transform: translate(-32px, 0); transform: translate(-32px, 0); }
6262
}
63-
@keyframes pace-stripe-animation {
63+
@keyframes pace-theme-barber-shop-motion {
6464
0% { transform: none; transform: none; }
6565
100% { transform: translate(-32px, 0); transform: translate(-32px, 0); }
6666
}

templates/pace-theme-corner-indicator.tmpl.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
height: 80px;
4545
border-right-color: rgba(0, 0, 0, .2);
4646
border-left-color: rgba(0, 0, 0, .2);
47-
-webkit-animation: pace-rotation 3s linear infinite;
48-
animation: pace-rotation 3s linear infinite;
47+
-webkit-animation: pace-theme-corner-indicator-spin 3s linear infinite;
48+
animation: pace-theme-corner-indicator-spin 3s linear infinite;
4949
}
5050

5151
.pace .pace-activity::after {
@@ -55,15 +55,15 @@
5555
height: 40px;
5656
border-top-color: rgba(0, 0, 0, .2);
5757
border-bottom-color: rgba(0, 0, 0, .2);
58-
-webkit-animation: pace-rotation 1s linear infinite;
59-
animation: pace-rotation 1s linear infinite;
58+
-webkit-animation: pace-theme-corner-indicator-spin 1s linear infinite;
59+
animation: pace-theme-corner-indicator-spin 1s linear infinite;
6060
}
6161

62-
@-webkit-keyframes pace-rotation {
62+
@-webkit-keyframes pace-theme-corner-indicator-spin {
6363
0% { -webkit-transform: rotate(0deg); }
6464
100% { -webkit-transform: rotate(359deg); }
6565
}
66-
@keyframes pace-rotation {
66+
@keyframes pace-theme-corner-indicator-spin {
6767
0% { transform: rotate(0deg); }
6868
100% { transform: rotate(359deg); }
6969
}

templates/pace-theme-mac-osx.tmpl.css

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,30 +66,30 @@
6666
-o-background-size: 28px 100%;
6767
background-size: 28px 100%;
6868

69-
-webkit-animation: pace-stripe-animation 500ms linear infinite;
70-
-moz-animation: pace-stripe-animation 500ms linear infinite;
71-
-ms-animation: pace-stripe-animation 500ms linear infinite;
72-
-o-animation: pace-stripe-animation 500ms linear infinite;
73-
animation: pace-stripe-animation 500ms linear infinite;
69+
-webkit-animation: pace-theme-mac-osx-motion 500ms linear infinite;
70+
-moz-animation: pace-theme-mac-osx-motion 500ms linear infinite;
71+
-ms-animation: pace-theme-mac-osx-motion 500ms linear infinite;
72+
-o-animation: pace-theme-mac-osx-motion 500ms linear infinite;
73+
animation: pace-theme-mac-osx-motion 500ms linear infinite;
7474
}
7575

76-
@-webkit-keyframes pace-stripe-animation {
76+
@-webkit-keyframes pace-theme-mac-osx-motion {
7777
0% { -webkit-transform: none; transform: none; }
7878
100% { -webkit-transform: translate(-28px, 0); transform: translate(-28px, 0); }
7979
}
80-
@-moz-keyframes pace-stripe-animation {
80+
@-moz-keyframes pace-theme-mac-osx-motion {
8181
0% { -moz-transform: none; transform: none; }
8282
100% { -moz-transform: translate(-28px, 0); transform: translate(-28px, 0); }
8383
}
84-
@-o-keyframes pace-stripe-animation {
84+
@-o-keyframes pace-theme-mac-osx-motion {
8585
0% { -o-transform: none; transform: none; }
8686
100% { -o-transform: translate(-28px, 0); transform: translate(-28px, 0); }
8787
}
88-
@-ms-keyframes pace-stripe-animation {
88+
@-ms-keyframes pace-theme-mac-osx-motion {
8989
0% { -ms-transform: none; transform: none; }
9090
100% { -ms-transform: translate(-28px, 0); transform: translate(-28px, 0); }
9191
}
92-
@keyframes pace-stripe-animation {
92+
@keyframes pace-theme-mac-osx-motion {
9393
0% { transform: none; transform: none; }
9494
100% { transform: translate(-28px, 0); transform: translate(-28px, 0); }
9595
}

0 commit comments

Comments
 (0)