Browse Source

patching holes

pull/253/head
connors 11 years ago
parent
commit
1851beaa0f
  1. 34
      docs/assets/css/docs.css
  2. 2
      docs/assets/js/docs.js
  3. 27
      docs/components.html
  4. 31
      sass/docs.scss

34
docs/assets/css/docs.css

@ -23,24 +23,30 @@ body {
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
} }
.docs-header { .docs-header,
.docs-sub-header {
position: relative; position: relative;
height: 100vh;
min-height: 620px;
background-image: linear-gradient(45deg, #0a1855 0%, #da0024 100%); background-image: linear-gradient(45deg, #0a1855 0%, #da0024 100%);
} }
.docs-header:before { .docs-header:before,
position: fixed; .docs-sub-header:before {
position: absolute;
top: 0; top: 0;
bottom: 0; bottom: 0;
right: 0; right: 0;
left: 0; left: 0;
background-image: url(../img/pattern.png); background-image: url(../img/pattern.png);
background-size: 30%; background-size: 30%;
background-position: center center;
opacity: .035; opacity: .035;
content: ''; content: '';
} }
.docs-header {
height: 100vh;
min-height: 620px;
}
.docs-title { .docs-title {
position: absolute; position: absolute;
top: 20px; top: 20px;
@ -132,6 +138,16 @@ body {
line-height: 34px; line-height: 34px;
} }
.docs-masthead {
position: relative;
}
.docs-masthead .docs-title {
left: 0;
}
.docs-masthead .docs-nav {
right: 0;
}
.carbonad { .carbonad {
position: absolute !important; position: absolute !important;
bottom: 90px !important; bottom: 90px !important;
@ -186,9 +202,9 @@ body {
} }
.docs-sub-content { .docs-sub-content {
padding-top: 50px; padding-top: 100px;
padding-bottom: 100px;
color: #fff; color: #fff;
text-align: center;
} }
.docs-sub-content .page-title, .docs-sub-content .page-title,
.docs-sub-content .page-description { .docs-sub-content .page-description {
@ -204,9 +220,6 @@ body {
font-size: 24px; font-size: 24px;
opacity: .7; opacity: .7;
} }
.docs-sub-content.with-padding {
padding-bottom: 80px;
}
.docs-section { .docs-section {
padding-top: 80px; padding-top: 80px;
@ -353,6 +366,7 @@ body {
} }
.platform-toggle { .platform-toggle {
display: none;
padding-top: 15px; padding-top: 15px;
padding-bottom: 90px; padding-bottom: 90px;
} }

2
docs/assets/js/docs.js

@ -151,10 +151,8 @@ $(function() {
if(currentTop >= toggleTop) { if(currentTop >= toggleTop) {
platformToggle.addClass('fixed'); platformToggle.addClass('fixed');
$('.docs-components').css('padding-top', toggleHeight);
} else if (currentTop <= $('.docs-header').outerHeight()) { } else if (currentTop <= $('.docs-header').outerHeight()) {
platformToggle.removeClass('fixed'); platformToggle.removeClass('fixed');
$('.docs-components').css('padding-top', 0);
} }
} }

27
docs/components.html

@ -3,22 +3,23 @@ layout: default
title: Components &middot; Ratchet title: Components &middot; Ratchet
--- ---
<div class="docs-header"> <div class="docs-sub-header">
<div class="container column-group"> <div class="container">
<div class="column units-2"> <div class="column-group">
<header class="docs-nav"> <div class="column units-2">
<h1 class="docs-title">Ratchet</h1> <header class="docs-masthead">
<a data-ignore="push" class="icon icon-bars" href="/components"></a> <h1 class="docs-title">Ratchet</h1>
<a data-ignore="push" class="version" href="/">Home</a> <a class="docs-nav icon icon-bars" href="/components" data-ignore="push"></a>
</header> </header>
<div class="docs-sub-content">
<h2 class="page-title">Components</h2>
<p class="page-description">Design patterns that serve as basic building blocks</p>
</div>
</div>
</div> </div>
</div> </div>
<div class="docs-sub-content">
<h2 class="page-title">Components</h2>
<p class="page-description">Design patterns that serve as basic building blocks</p>
</div>
<div class="platform-toggle"> <div class="platform-toggle">
<div class="segmented-control"> <div class="segmented-control">
<a class="platform-switch control-item active" data-platform=""> <a class="platform-switch control-item active" data-platform="">

31
sass/docs.scss

@ -22,25 +22,28 @@ body {
// Jumbotron // Jumbotron
// -------------------------------------------------- // --------------------------------------------------
.docs-header,
.docs-header { .docs-sub-header {
position: relative; position: relative;
height: 100vh;
min-height: 620px;
background-image: linear-gradient(45deg, #0a1855 0%,#da0024 100%); background-image: linear-gradient(45deg, #0a1855 0%,#da0024 100%);
&:before { &:before {
position: fixed; position: absolute;
top: 0; top: 0;
bottom: 0; bottom: 0;
right: 0; right: 0;
left: 0; left: 0;
background-image: url(../img/pattern.png); background-image: url(../img/pattern.png);
background-size: 30%; background-size: 30%;
background-position: center center;
opacity: .035; opacity: .035;
content: ''; content: '';
} }
} }
.docs-header {
height: 100vh;
min-height: 620px;
}
.docs-title { .docs-title {
position: absolute; position: absolute;
top: 20px; top: 20px;
@ -123,6 +126,16 @@ body {
color: #fff; color: #fff;
line-height: 34px; line-height: 34px;
} }
.docs-masthead {
position: relative;
.docs-title {
left: 0;
}
.docs-nav {
right: 0;
}
}
// Ads // Ads
.carbonad { .carbonad {
@ -172,9 +185,9 @@ body {
// -------------------------------------------------- // --------------------------------------------------
.docs-sub-content { .docs-sub-content {
padding-top: 50px; padding-top: 100px;
padding-bottom: 100px;
color: #fff; color: #fff;
text-align: center;
.page-title, .page-title,
.page-description { .page-description {
@ -190,9 +203,6 @@ body {
font-size: 24px; font-size: 24px;
opacity: .7; opacity: .7;
} }
&.with-padding {
padding-bottom: 80px;
}
} }
@ -359,6 +369,7 @@ body {
// -------------------------------------------------- // --------------------------------------------------
.platform-toggle { .platform-toggle {
display: none;
padding-top: 15px; padding-top: 15px;
padding-bottom: 90px; padding-bottom: 90px;

Loading…
Cancel
Save