Skip to content

Commit b9ad785

Browse files
committed
animation cleanup
1 parent 9043d2e commit b9ad785

File tree

1 file changed

+16
-40
lines changed

1 file changed

+16
-40
lines changed

site/_css/graphql.less

Lines changed: 16 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
@import "variables.less";
22

33
* {
4-
-webkit-box-sizing: border-box;
5-
-moz-box-sizing: border-box;
64
box-sizing: border-box;
75
border: none;
86
margin: 0;
@@ -140,6 +138,7 @@ footer {
140138
padding-top: 2em;
141139
padding-bottom: 2em;
142140
-webkit-font-smoothing: antialiased;
141+
-moz-osx-font-smoothing: grayscale;
143142

144143
.copyright {
145144
text-align: center;
@@ -210,6 +209,7 @@ body.index {
210209
margin-top: -50px;
211210
padding-top: 50px;
212211
-webkit-font-smoothing: antialiased;
212+
-moz-osx-font-smoothing: grayscale;
213213

214214
header {
215215
background: none;
@@ -261,6 +261,7 @@ body.index {
261261

262262
.prism {
263263
-webkit-font-smoothing: auto;
264+
-moz-osx-font-smoothing: auto;
264265
color: white;
265266
background: transparent;
266267
box-shadow: none;
@@ -272,31 +273,14 @@ body.index {
272273
margin-right: -20px;
273274
}
274275

275-
.marketing-col:nth-child(1) {
276-
-webkit-animation: fade 1.1s ease-in-out;
277-
-moz-animation: fade 1.1s ease-in-out;
278-
animation: fade 1.1s ease-in-out;
279-
-webkit-animation-fill-mode: both;
280-
-moz-animation-fill-mode: both;
281-
animation-fill-mode: both;
282-
}
283-
284-
.marketing-col:nth-child(2) {
285-
-webkit-animation: fade 1.1s 0.8s ease-in-out;
286-
-moz-animation: fade 1.1s 0.8s ease-in-out;
287-
animation: fade 1.1s 0.8s ease-in-out;
288-
-webkit-animation-fill-mode: both;
289-
-moz-animation-fill-mode: both;
290-
animation-fill-mode: both;
291-
}
276+
.fadein-cols(3);
292277

293-
.marketing-col:nth-child(3) {
294-
-webkit-animation: fade 1.1s 1.6s ease-in-out;
295-
-moz-animation: fade 1.1s 1.6s ease-in-out;
296-
animation: fade 1.1s 1.6s ease-in-out;
297-
-webkit-animation-fill-mode: both;
298-
-moz-animation-fill-mode: both;
299-
animation-fill-mode: both;
278+
.fadein-cols(@n) when (@n > 0) {
279+
.fadein-cols(@n - 1);
280+
.marketing-col:nth-child(@{n}) {
281+
animation: fade 1.1s 0.8s * (@n - 1) ease-in-out;
282+
animation-fill-mode: both;
283+
}
300284
}
301285

302286
@keyframes fade {
@@ -524,7 +508,6 @@ section.black content {
524508
}
525509

526510
.button {
527-
background: -webkit-linear-gradient( #9a9a9a, #646464);
528511
background: linear-gradient( #9a9a9a, #646464);
529512
border-radius: 4px;
530513
padding: 8px 16px;
@@ -552,7 +535,6 @@ section.black content {
552535
}
553536

554537
.button.blue {
555-
background: -webkit-linear-gradient( #77a3d2, #4783c2);
556538
background: linear-gradient( #77a3d2, #4783c2);
557539
}
558540

@@ -649,23 +631,17 @@ p + .apiIndex {
649631

650632
.apiIndex pre {
651633
.code-font();
652-
text-shadow: 0 1px white;
653634
direction: ltr;
654-
text-align: left;
655-
white-space: pre;
656-
word-spacing: normal;
657-
word-break: normal;
658-
659-
-moz-tab-size: 2;
660-
-o-tab-size: 2;
661-
tab-size: 2;
662-
663635
-webkit-hyphens: none;
664636
-moz-hyphens: none;
665637
-ms-hyphens: none;
666638
hyphens: none;
667-
668-
white-space: pre-wrap;
639+
tab-size: 2;
640+
text-align: left;
641+
text-shadow: 0 1px white;
642+
white-space: pre;
643+
word-break: normal;
644+
word-spacing: normal;
669645
}
670646

671647
.apiIndex li {

0 commit comments

Comments
 (0)