Skip to content

Commit

Permalink
vendor prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
joernroeder committed Jun 30, 2013
1 parent cdd2b7a commit ab72092
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 57 deletions.
119 changes: 82 additions & 37 deletions app/assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,39 @@ h2 {
top: 0;
}
}
@-moz-keyframes jump {
0% {
top: 0;
}
50% {
top: -10px;
}
100% {
top: 0;
}
}
@-o-keyframes jump {
0% {
top: 0;
}
50% {
top: -10px;
}
100% {
top: 0;
}
}
@keyframes jump {
0% {
top: 0;
}
50% {
top: -10px;
}
100% {
top: 0;
}
}
@-webkit-keyframes jumpborder {
0% {
border-bottom-width: 10px;
Expand All @@ -535,39 +568,37 @@ h2 {
border-bottom-width: 10px;
}
}
@-webkit-keyframes rainbow {
@-moz-keyframes jumpborder {
0% {
color: #FF0000;
}
10% {
color: #FF8000;
border-bottom-width: 10px;
}
20% {
color: #FFFF00;
50% {
border-bottom-width: 0;
}
30% {
color: #80FF00;
100% {
border-bottom-width: 10px;
}
40% {
color: #00FF00;
}
@-o-keyframes jumpborder {
0% {
border-bottom-width: 10px;
}
50% {
color: #00FF80;
}
60% {
color: #00FFFF;
border-bottom-width: 0;
}
70% {
color: #0080FF;
100% {
border-bottom-width: 10px;
}
80% {
color: #0000FF;
}
@keyframes jumpborder {
0% {
border-bottom-width: 10px;
}
90% {
color: #8000FF;
50% {
border-bottom-width: 0;
}
100% {
color: #FF0080;
border-bottom-width: 10px;
}
}
.tooltip {
Expand Down Expand Up @@ -1092,11 +1123,11 @@ body.requesting .badge {
-o-transition: border-bottom .25s ease-in-out;
-ms-transition: border-bottom .25s ease-in-out;
transition: border-bottom .25s ease-in-out;
-webkit-animation: jumpborder 1s infinite;
-moz-animation: jumpborder 1s infinite;
-o-animation: jumpborder 1s infinite;
-ms-animation: jumpborder 1s infinite;
animation: jumpborder 1s infinite;
-webkit-animation: jumpborder 1s infinite alternate both;
-moz-animation: jumpborder 1s infinite alternate both;
-o-animation: jumpborder 1s infinite alternate both;
-ms-animation: jumpborder 1s infinite alternate both;
animation: jumpborder 1s infinite alternate both;
border-color: #d9df20;
border-style: solid;
}
Expand All @@ -1107,11 +1138,11 @@ body.requesting .badge > a {
-o-transition: top .25s ease-in-out;
-ms-transition: top .25s ease-in-out;
transition: top .25s ease-in-out;
-webkit-animation: jump 1s infinite;
-moz-animation: jump 1s infinite;
-o-animation: jump 1s infinite;
-ms-animation: jump 1s infinite;
animation: jump 1s infinite;
-webkit-animation: jump 1s infinite alternate both;
-moz-animation: jump 1s infinite alternate both;
-o-animation: jump 1s infinite alternate both;
-ms-animation: jump 1s infinite alternate both;
animation: jump 1s infinite alternate both;
}
.calendar {
width: 12.5em;
Expand Down Expand Up @@ -2683,18 +2714,32 @@ body.editor-sidebar-open #layout.editor.open-split-markdown {
background-position: 0 50%;
background-size: 100%;
}
.editor-sidebar > nav a.icon-publish {
-webkit-transition: rotate .5s ease-in-out;
-moz-transition: rotate .5s ease-in-out;
-o-transition: rotate .5s ease-in-out;
-ms-transition: rotate .5s ease-in-out;
transition: rotate .5s ease-in-out;
}
.editor-sidebar > nav a.icon-publish.publishing {
position: relative;
-webkit-transition: top .25s ease-in-out;
-moz-transition: top .25s ease-in-out;
-o-transition: top .25s ease-in-out;
-ms-transition: top .25s ease-in-out;
transition: top .25s ease-in-out;
-webkit-animation: jump 1s infinite;
-moz-animation: jump 1s infinite;
-o-animation: jump 1s infinite;
-ms-animation: jump 1s infinite;
animation: jump 1s infinite;
-webkit-animation: jumprotate 1s infinite alternate both;
-moz-animation: jumprotate 1s infinite alternate both;
-o-animation: jumprotate 1s infinite alternate both;
-ms-animation: jumprotate 1s infinite alternate both;
animation: jumprotate 1s infinite alternate both;
}
.editor-sidebar > nav a.icon-publish.publishing:not(.published) {
-webkit-transform: rotate(180deg);
-moz-transform: rotate(180deg);
-o-transform: rotate(180deg);
-ms-transform: rotate(180deg);
transform: rotate(180deg);
}
.editor-sidebar > nav a span {
display: none;
Expand Down
51 changes: 37 additions & 14 deletions dummies/less/animations.less
Original file line number Diff line number Diff line change
@@ -1,27 +1,50 @@
// @todo: copy with vendor prefixes!!!
//
@-webkit-keyframes jump {
0% {top: 0;}
50% {top: -10px;}
100% {top: 0;}
}

@-moz-keyframes jump {
0% {top: 0;}
50% {top: -10px;}
100% {top: 0;}
}

@-o-keyframes jump {
0% {top: 0;}
50% {top: -10px;}
100% {top: 0;}
}

@keyframes jump {
0% {top: 0;}
50% {top: -10px;}
100% {top: 0;}
}


// ---

@-webkit-keyframes jumpborder {
0% {border-bottom-width: 10px;}
50% {border-bottom-width: 0;}
100% {border-bottom-width: 10px;}
}

@-webkit-keyframes rainbow {
0% {color: #FF0000;}
10% {color: #FF8000;}
20% {color: #FFFF00;}
30% {color: #80FF00;}
40% {color: #00FF00;}
50% {color: #00FF80;}
60% {color: #00FFFF;}
70% {color: #0080FF;}
80% {color: #0000FF;}
90% {color: #8000FF;}
100% {color: #FF0080;}
@-moz-keyframes jumpborder {
0% {border-bottom-width: 10px;}
50% {border-bottom-width: 0;}
100% {border-bottom-width: 10px;}
}

@-o-keyframes jumpborder {
0% {border-bottom-width: 10px;}
50% {border-bottom-width: 0;}
100% {border-bottom-width: 10px;}
}

@keyframes jumpborder {
0% {border-bottom-width: 10px;}
50% {border-bottom-width: 0;}
100% {border-bottom-width: 10px;}
}
20 changes: 14 additions & 6 deletions dummies/less/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -247,14 +247,14 @@ aside {

body.requesting .badge {
.transition(~"border-bottom .25s ease-in-out");
.animation(~"jumpborder 1s infinite");
.animation(~"jumpborder 1s infinite alternate both");
border-color: @nmColor;
border-style: solid;

> a {
position: relative;
.transition(~"top .25s ease-in-out");
.animation(~"jump 1s infinite");
.animation(~"jump 1s infinite alternate both");
//background-color: red;
}
}
Expand Down Expand Up @@ -1543,10 +1543,18 @@ body.editor-sidebar-open {
background-position: 0 50%;
background-size: 100%;

&.icon-publish.publishing {
position: relative;
.transition(~"top .25s ease-in-out");
.animation(~"jump 1s infinite");
&.icon-publish {
.transition(~"rotate .5s ease-in-out");

&.publishing {
position: relative;
.transition(~"top .25s ease-in-out");
.animation(~"jumprotate 1s infinite alternate both");

&:not(.published) {
.rotate(180deg);
}
}
}

span {
Expand Down

0 comments on commit ab72092

Please sign in to comment.