From b505dd05aa469499daa3a5537329afa74613c03f Mon Sep 17 00:00:00 2001 From: connors Date: Fri, 21 Feb 2014 17:51:35 -0800 Subject: [PATCH] updating the homepage. --- docs/assets/css/docs.css | 36 ++++++++++++++++++++---------------- docs/index.html | 11 +---------- sass/docs.scss | 27 +++++++++++++++------------ sass/mixins.scss | 3 ++- 4 files changed, 38 insertions(+), 39 deletions(-) diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css index e0e995b..57cdd22 100644 --- a/docs/assets/css/docs.css +++ b/docs/assets/css/docs.css @@ -26,7 +26,7 @@ body { .docs-header { min-height: 700px; height: 100vh; - background-image: linear-gradient(45deg, #0a1855 0%, #f11651 100%); + background-image: linear-gradient(45deg, #0a1855 0%, #da0024 100%); } .docs-header:before { position: fixed; @@ -35,8 +35,8 @@ body { right: 0; left: 0; background-image: url(../img/pattern.png); - background-size: 50%; - opacity: .5; + background-size: 30%; + opacity: .035; content: ''; } @@ -76,11 +76,16 @@ body { .docs-header-content { padding: 50px 10px; + -webkit-animation-name: fadeintext; + -moz-animation-name: fadeintext; + animation-name: fadeintext; + -webkit-animation-duration: 3s; + -moz-animation-duration: 3s; + animation-duration: 3s; } .docs-header-content .btn { display: block; - padding: 15px 30px 16px; - margin: 0 10px 10px; + padding: 15px 60px 16px; font-size: 18px; color: rgba(255, 255, 255, 0.7); border-color: rgba(255, 255, 255, 0.7); @@ -492,6 +497,7 @@ hr { position: relative; top: 50%; -webkit-transform: translateY(-50%); + -ms-transform: translateY(-50%); transform: translateY(-50%); } @@ -503,10 +509,6 @@ hr { .docs-header-content .btn { display: inline-block; - margin: 0; - } - .docs-header-content .btn-primary { - margin-left: 10px; } .docs-title { @@ -1746,14 +1748,16 @@ hr { padding: 0; } -@-webkit-keyframes fadeOverlay { - from { - -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0), -320px 0 0 rgba(0, 0, 0, 0); - box-shadow: 0 0 10px rgba(0, 0, 0, 0), -320px 0 0 rgba(0, 0, 0, 0); +@-webkit-keyframes fadeintext { + 0% { + opacity: 0; } - to { - -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.3), -320px 0 0 rgba(0, 0, 0, 0.1); - box-shadow: 0 0 10px rgba(0, 0, 0, 0.3), -320px 0 0 rgba(0, 0, 0, 0.1); + 50% { + opacity: 0; + } + + 100% { + opacity: 1; } } diff --git a/docs/index.html b/docs/index.html index 7e637a6..9098e06 100644 --- a/docs/index.html +++ b/docs/index.html @@ -4,17 +4,8 @@ title: Ratchet ---
- -
-

Build mobile apps with simple HTML, CSS, and JS components.

- View the docs +

Build mobile apps with simple HTML, CSS, and JS components.

Download Ratchet
diff --git a/sass/docs.scss b/sass/docs.scss index 4d5aade..4b17d07 100644 --- a/sass/docs.scss +++ b/sass/docs.scss @@ -26,7 +26,7 @@ body { .docs-header { min-height: 700px; height: 100vh; - background-image: linear-gradient(45deg, #0a1855 0%,#f11651 100%); + background-image: linear-gradient(45deg, #0a1855 0%,#da0024 100%); &:before { position: fixed; @@ -73,11 +73,12 @@ body { } .docs-header-content { padding: 50px 10px; + @include animation-name(fadeintext); + @include animation-duration(3s); .btn { display: block; - padding: 15px 30px 16px; - margin: 0 10px 10px; + padding: 15px 60px 16px; font-size: 18px; color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.7); @@ -528,8 +529,7 @@ hr { .docs-header-content { position: relative; top: 50%; - -webkit-transform: translateY(-50%); - transform: translateY(-50%); + @include transform(translateY(-50%)); } .docs-subtitle { margin-bottom: 30px; @@ -539,10 +539,6 @@ hr { .docs-header-content { .btn { display: inline-block; - margin: 0; - } - .btn-primary { - margin-left: 10px; } } .docs-title { @@ -807,7 +803,14 @@ hr { } // Animations -@-webkit-keyframes fadeOverlay { - from { @include box-shadow(0 0 10px rgba(0,0,0,0), -320px 0 0 rgba(0,0,0,0)); } - to { @include box-shadow(0 0 10px rgba(0,0,0,.3), -320px 0 0 rgba(0,0,0,.1)); } +@-webkit-keyframes fadeintext { + 0% { + opacity: 0; + } + 50% { + opacity: 0; + } + 100% { + opacity: 1; + } } diff --git a/sass/mixins.scss b/sass/mixins.scss index c48bbc8..0bcdb42 100644 --- a/sass/mixins.scss +++ b/sass/mixins.scss @@ -25,9 +25,10 @@ } + // Transforms // -------------------------------------------------- -@mixin transform($transform) { +@mixin transform($transform...) { -webkit-transform: $transform; -ms-transform: $transform; transform: $transform;