Browse Source

minor refinments

pull/249/head
connors 11 years ago
parent
commit
8afb8caf65
  1. 31
      docs-assets/css/docs.css
  2. 4
      docs-assets/js/docs.js
  3. 23
      lib/sass/docs.scss

31
docs-assets/css/docs.css

@ -42,8 +42,8 @@ h1, h2, h3, h4, h5, h6 {
padding-top: 50px; padding-top: 50px;
padding-bottom: 50px; padding-bottom: 50px;
text-align: center; text-align: center;
-webkit-animation-name: fadeintext; -webkit-animation-name: fadein;
animation-name: fadeintext; animation-name: fadein;
-webkit-animation-duration: 2s; -webkit-animation-duration: 2s;
animation-duration: 2s; animation-duration: 2s;
} }
@ -65,6 +65,10 @@ h1, h2, h3, h4, h5, h6 {
padding: 0; padding: 0;
list-style: none; list-style: none;
text-align: center; text-align: center;
-webkit-animation-name: fadein;
animation-name: fadein;
-webkit-animation-duration: 2s;
animation-duration: 2s;
} }
.social li { .social li {
height: 20px; height: 20px;
@ -202,6 +206,10 @@ hr {
background-image: url("../img/iphone.png"); background-image: url("../img/iphone.png");
background-size: 100%; background-size: 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
-webkit-animation-name: fadein;
animation-name: fadein;
-webkit-animation-duration: 2s;
animation-duration: 2s;
} }
.iphone .iphone-content { .iphone .iphone-content {
@ -417,24 +425,7 @@ hr {
margin-right: -30px; margin-right: -30px;
} }
} }
@-webkit-keyframes fadeintext { @-webkit-keyframes fadein {
0% {
opacity: 0;
-webkit-transform: scale(0.9);
}
50% {
opacity: 0;
-webkit-transform: scale(0.9);
}
100% {
opacity: 1;
-webkit-transform: scale(1);
}
}
@-webkit-keyframes fadeinsocial {
0% { 0% {
opacity: 0; opacity: 0;
-webkit-transform: scale(0.9); -webkit-transform: scale(0.9);

4
docs-assets/js/docs.js

@ -88,8 +88,12 @@ $(function() {
if(pageHeight - currentTop < footerHeight + contentPadding + 1400) { if(pageHeight - currentTop < footerHeight + contentPadding + 1400) {
iphone[0].className = "iphone iphone-bottom"; iphone[0].className = "iphone iphone-bottom";
iphone[0].setAttribute('style','') iphone[0].setAttribute('style','')
// } else if((iphone.initialTop - currentTop) <= iphone.dockingOffset) {
// iphone[0].className = "iphone iphone-fixed";
// iphone.css({top: iphone.dockingOffset})
} else { } else {
iphone[0].className = "iphone iphone-fixed"; iphone[0].className = "iphone iphone-fixed";
iphone.css({top: iphone.dockingOffset})
} }
// Injection of components into phone // Injection of components into phone

23
lib/sass/docs.scss

@ -41,7 +41,7 @@ h1, h2, h3, h4, h5, h6 {
padding-top: 50px; padding-top: 50px;
padding-bottom: 50px; padding-bottom: 50px;
text-align: center; text-align: center;
@include animation-name(fadeintext); @include animation-name(fadein);
@include animation-duration(2s); @include animation-duration(2s);
.docs-title { .docs-title {
@ -67,6 +67,8 @@ h1, h2, h3, h4, h5, h6 {
padding: 0; padding: 0;
list-style: none; list-style: none;
text-align: center; text-align: center;
@include animation-name(fadein);
@include animation-duration(2s);
li { li {
height: 20px; height: 20px;
@ -205,6 +207,8 @@ hr {
background-image: url("../img/iphone.png"); background-image: url("../img/iphone.png");
background-size: 100%; background-size: 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
@include animation-name(fadein);
@include animation-duration(2s);
} }
.iphone .iphone-content { .iphone .iphone-content {
position: absolute; position: absolute;
@ -353,22 +357,7 @@ hr {
// Animations // Animations
// -------------------------------------------------- // --------------------------------------------------
@-webkit-keyframes fadeintext { @-webkit-keyframes fadein {
0% {
opacity: 0;
-webkit-transform: scale(.9);
}
50% {
opacity: 0;
-webkit-transform: scale(.9);
}
100% {
opacity: 1;
-webkit-transform: scale(1);
}
}
@-webkit-keyframes fadeinsocial {
0% { 0% {
opacity: 0; opacity: 0;
-webkit-transform: scale(.9); -webkit-transform: scale(.9);

Loading…
Cancel
Save