Browse Source

updating the homepage.

pull/253/head
connors 11 years ago
parent
commit
b505dd05aa
  1. 36
      docs/assets/css/docs.css
  2. 9
      docs/index.html
  3. 27
      sass/docs.scss
  4. 3
      sass/mixins.scss

36
docs/assets/css/docs.css

@ -26,7 +26,7 @@ body {
.docs-header { .docs-header {
min-height: 700px; min-height: 700px;
height: 100vh; height: 100vh;
background-image: linear-gradient(45deg, #0a1855 0%, #f11651 100%); background-image: linear-gradient(45deg, #0a1855 0%, #da0024 100%);
} }
.docs-header:before { .docs-header:before {
position: fixed; position: fixed;
@ -35,8 +35,8 @@ body {
right: 0; right: 0;
left: 0; left: 0;
background-image: url(../img/pattern.png); background-image: url(../img/pattern.png);
background-size: 50%; background-size: 30%;
opacity: .5; opacity: .035;
content: ''; content: '';
} }
@ -76,11 +76,16 @@ body {
.docs-header-content { .docs-header-content {
padding: 50px 10px; 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 { .docs-header-content .btn {
display: block; display: block;
padding: 15px 30px 16px; padding: 15px 60px 16px;
margin: 0 10px 10px;
font-size: 18px; font-size: 18px;
color: rgba(255, 255, 255, 0.7); color: rgba(255, 255, 255, 0.7);
border-color: rgba(255, 255, 255, 0.7); border-color: rgba(255, 255, 255, 0.7);
@ -492,6 +497,7 @@ hr {
position: relative; position: relative;
top: 50%; top: 50%;
-webkit-transform: translateY(-50%); -webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%); transform: translateY(-50%);
} }
@ -503,10 +509,6 @@ hr {
.docs-header-content .btn { .docs-header-content .btn {
display: inline-block; display: inline-block;
margin: 0;
}
.docs-header-content .btn-primary {
margin-left: 10px;
} }
.docs-title { .docs-title {
@ -1746,14 +1748,16 @@ hr {
padding: 0; padding: 0;
} }
@-webkit-keyframes fadeOverlay { @-webkit-keyframes fadeintext {
from { 0% {
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0), -320px 0 0 rgba(0, 0, 0, 0); opacity: 0;
box-shadow: 0 0 10px rgba(0, 0, 0, 0), -320px 0 0 rgba(0, 0, 0, 0);
} }
to { 50% {
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.3), -320px 0 0 rgba(0, 0, 0, 0.1); opacity: 0;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3), -320px 0 0 rgba(0, 0, 0, 0.1); }
100% {
opacity: 1;
} }
} }

9
docs/index.html

@ -4,17 +4,8 @@ title: Ratchet
--- ---
<div class="docs-header"> <div class="docs-header">
<!-- <div class="container column-group">
<div class="column units-2">
<header class="docs-nav">
<h1 class="docs-title">Ratchet</h1>
</header>
</div>
</div> -->
<div class="docs-header-content"> <div class="docs-header-content">
<p class="docs-subtitle">Build mobile apps with simple HTML, CSS, and JS components.</p> <p class="docs-subtitle">Build mobile apps with simple HTML, CSS, and JS components.</p>
<a data-ignore="push" href="/components" class="btn btn-outlined">View the docs</a>
<a data-ignore="push" href="http://maker.github.com/ratchet/ratchet.zip" class="btn btn-primary" onClick="_gaq.push(['_trackEvent', 'Downloads', 'V2.0']);">Download Ratchet</a> <a data-ignore="push" href="http://maker.github.com/ratchet/ratchet.zip" class="btn btn-primary" onClick="_gaq.push(['_trackEvent', 'Downloads', 'V2.0']);">Download Ratchet</a>
</div> </div>
</div> </div>

27
sass/docs.scss

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

3
sass/mixins.scss

@ -25,9 +25,10 @@
} }
// Transforms // Transforms
// -------------------------------------------------- // --------------------------------------------------
@mixin transform($transform) { @mixin transform($transform...) {
-webkit-transform: $transform; -webkit-transform: $transform;
-ms-transform: $transform; -ms-transform: $transform;
transform: $transform; transform: $transform;

Loading…
Cancel
Save