Browse Source

Merge pull request #359 from twbs/optimize_docs_fonts

Drop Adelle Sans for Open Sans
pull/399/head
Mark Otto 11 years ago
parent
commit
b8948bbb40
  1. 8
      docs/_includes/header.html
  2. 202
      docs/assets/css/docs.css
  3. 2
      docs/assets/css/docs.min.css
  4. 4
      docs/components.html
  5. 20
      docs/examples.html
  6. 75
      docs/getting-started.html
  7. 213
      sass/docs.scss

8
docs/_includes/header.html

@ -8,8 +8,8 @@
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-status-bar-style" content="black">
<!-- Roboto --> <!-- Google Web Fonts -->
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:400,500,700"> <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:400,500,700|Open+Sans:300">
<link rel="stylesheet" href="/dist/ratchet.min.css"> <link rel="stylesheet" href="/dist/ratchet.min.css">
<link rel="stylesheet" href="/assets/css/docs.min.css"> <link rel="stylesheet" href="/assets/css/docs.min.css">
@ -32,8 +32,4 @@
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})(); })();
// Remove once I add back in the docs.js
// $(function() {
// $(window).on('load', function () { new FingerBlast('.body'); });
// });
</script> </script>

202
docs/assets/css/docs.css

@ -16,13 +16,43 @@ body {
body { body {
position: relative !important; position: relative !important;
font: 14px/1.5 "adelle-sans",sans-serif; font: 300 14px/1.5 "Open Sans", sans-serif;
color: #333; color: #333;
background-color: #fff; background-color: #fff;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
} }
.docs-content {
font-size: 14px;
}
@media screen and (min-width: 768px) {
.docs-content {
font-size: 18px;
}
}
.docs-content h1, .docs-content h2, .docs-content h3, .docs-content h4, .docs-content h5, .docs-content h6 {
font-weight: 300;
color: #222;
}
.docs-content h2 {
margin-bottom: .25em;
font-size: 2em;
}
.docs-content h3 {
margin-bottom: .5em;
font-size: 1.25em;
}
.docs-content p {
margin-bottom: 1.5em;
font-size: 1em;
color: #555;
}
.docs-content .lead {
font-size: 1.1em;
color: #777;
}
.docs-header, .docs-header,
.docs-sub-header { .docs-sub-header {
position: relative; position: relative;
@ -62,7 +92,8 @@ body {
} }
.docs-header .carbonad { .docs-header .carbonad {
left: 50% !important; left: 50% !important;
margin-left: -165px !important; width: 300px !important;
margin-left: -150px !important;
margin-bottom: 60px !important; margin-bottom: 60px !important;
} }
@ -76,11 +107,6 @@ body {
transform: translateY(-50%) !important; transform: translateY(-50%) !important;
} }
} }
@media screen and (min-width: 1200px) {
.docs-sub-header .carbonad {
right: 30px !important;
}
}
.docs-masthead { .docs-masthead {
position: relative; position: relative;
padding-top: 15px; padding-top: 15px;
@ -99,11 +125,6 @@ body {
-ms-transform: translateX(-50%); -ms-transform: translateX(-50%);
transform: translateX(-50%); transform: translateX(-50%);
} }
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.docs-title {
font-weight: 100;
}
}
.docs-nav .docs-nav-trigger { .docs-nav .docs-nav-trigger {
color: #fff; color: #fff;
@ -132,11 +153,6 @@ body {
padding: 20px 15px; padding: 20px 15px;
font-size: 22px; font-size: 22px;
} }
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.docs-nav .docs-nav-item {
font-weight: 100;
}
}
.docs-jump-menu, .docs-jump-menu,
.docs-component-group { .docs-component-group {
@ -276,7 +292,7 @@ body {
} }
.docs-header-content .btn { .docs-header-content .btn {
display: block; display: block;
padding: 15px 90px 16px; padding: 15px 75px 16px;
font-size: 18px; font-size: 18px;
margin-bottom: 0; margin-bottom: 0;
color: #0a1855; color: #0a1855;
@ -299,7 +315,6 @@ body {
max-width: 750px; max-width: 750px;
margin: 0 auto 20px; margin: 0 auto 20px;
font-size: 28px; font-size: 28px;
font-weight: 100;
color: #fff; color: #fff;
line-height: 38px; line-height: 38px;
} }
@ -346,7 +361,7 @@ body {
height: auto !important; height: auto !important;
margin-left: 145px !important; margin-left: 145px !important;
color: rgba(255, 255, 255, 0.65) !important; color: rgba(255, 255, 255, 0.65) !important;
font-family: "adelle-sans", "Helvetica Neue", Helvetica, Arial, sans-serif !important; font-family: "Open Sans", sans-serif !important;
} }
.carbonad-text { .carbonad-text {
@ -368,7 +383,7 @@ body {
@media screen and (min-width: 768px) { @media screen and (min-width: 768px) {
.carbonad { .carbonad {
width: 330px !important; width: 360px !important;
border-right: 1px solid rgba(255, 255, 255, 0.1) !important; border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
border-left: 1px solid rgba(255, 255, 255, 0.1) !important; border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
@ -389,12 +404,6 @@ body {
margin-bottom: 0; margin-bottom: 0;
font-weight: 300; font-weight: 300;
} }
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.docs-sub-content .page-title,
.docs-sub-content .page-description {
font-weight: 100;
}
}
.docs-sub-content .page-title { .docs-sub-content .page-title {
font-size: 40px; font-size: 40px;
margin-bottom: 5px; margin-bottom: 5px;
@ -412,83 +421,16 @@ body {
} }
} }
.docs-section { .docs-section {
padding-top: 80px; padding-top: 50px;
padding-bottom: 80px; padding-bottom: 50px;
} border-bottom: 1px solid #ddd;
.section-heading,
.section-lead {
margin-top: 0;
margin-bottom: 0;
}
.section-heading {
font-size: 22px;
font-weight: 300;
}
.section-lead {
font-size: 18px;
color: #777;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.section-lead {
font-weight: 100;
}
}
@media screen and (min-width: 768px) {
.section-heading {
margin-top: 50px;
margin-bottom: 10px;
font-size: 40px;
}
.section-lead {
font-size: 24px;
}
}
.docs-steps {
margin-top: 20px;
padding: 0;
list-style: none;
}
.step {
padding-top: 30px;
padding-bottom: 30px;
}
.step-title,
.step-description {
font-weight: 300;
}
.step-title {
font-size: 18px;
}
.step-title code {
font-size: 14px;
} }
.step-description { .docs-section:last-child {
font-size: 14px; border-bottom: 0;
} }
@media screen and (min-width: 768px) { @media screen and (min-width: 768px) {
.step-title {
font-size: 24px;
}
.step-title code {
font-size: 18px;
}
.step-description {
font-size: 18px;
}
.docs-module { .docs-module {
margin-top: 35px; margin-top: 35px;
} }
@ -503,10 +445,6 @@ body {
margin-bottom: 0; margin-bottom: 0;
} }
.docs-module-title {
font-weight: 300;
}
.version { .version {
margin-top: 10px; margin-top: 10px;
margin-bottom: 0; margin-bottom: 0;
@ -617,21 +555,13 @@ body {
} }
.docs-examples { .docs-examples {
margin-top: 50px;
margin-bottom: 50px;
}
.docs-example-group {
margin-top: 30px; margin-top: 30px;
} }
.docs-example-group .example-wrap {
display: inline-block; .example-wrap {
margin-right: 10px; margin-bottom: 30px;
}
.docs-example-group .example-wrap:last-child {
margin-right: 10px;
} }
.docs-example-group .example-wrap .example { .example-wrap .example {
display: block; display: block;
overflow: hidden; overflow: hidden;
padding: 3px; padding: 3px;
@ -639,29 +569,15 @@ body {
border: 1px solid #dddddd; border: 1px solid #dddddd;
border-radius: 3px; border-radius: 3px;
} }
.docs-example-group .example-wrap h5 { .example-wrap .example-title {
margin-top: 10px; margin-top: 10px;
font-weight: 300;
} }
.docs-example-group .example-wrap img { .example-wrap img {
display: block; display: block;
width: 100%; width: 100%;
height: auto; height: auto;
} }
@media screen and (min-width: 768px) {
.docs-example-group .example-wrap {
display: inline-block;
}
.docs-example-group .example-wrap .example {
width: 180px;
}
}
@media screen and (min-width: 1200px) {
.docs-example-group .example-wrap .example {
width: 220px;
}
}
code { code {
padding: 2px 4px; padding: 2px 4px;
font-size: 90%; font-size: 90%;
@ -683,14 +599,12 @@ code {
.component-title { .component-title {
margin-bottom: 10px; margin-bottom: 10px;
font-size: 24px; font-size: 24px;
font-weight: 300;
line-height: 34px; line-height: 34px;
} }
.component-description { .component-description {
margin-bottom: 15px; margin-bottom: 15px;
font-size: 16px; font-size: 16px;
font-weight: 300;
} }
.component-example { .component-example {
@ -749,7 +663,6 @@ code {
color: #fff; color: #fff;
text-align: center; text-align: center;
font-size: 24px; font-size: 24px;
font-weight: 300;
text-shadow: 0 0 10px rgba(0, 0, 0, 0.5); text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
} }
@ -907,7 +820,6 @@ code {
color: #fff; color: #fff;
text-align: center; text-align: center;
font-size: 24px; font-size: 24px;
font-weight: 300;
text-shadow: 0 0 10px rgba(0, 0, 0, 0.5); text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
} }
} }
@ -1037,16 +949,6 @@ hr {
max-width: 940px; max-width: 940px;
} }
.column {
padding-left: 20px;
padding-right: 20px;
}
.column .column-group {
margin-left: -20px;
margin-right: -20px;
}
.units-1 { .units-1 {
width: 50%; width: 50%;
} }
@ -1151,16 +1053,6 @@ hr {
.container { .container {
max-width: 1170px; max-width: 1170px;
} }
.column {
padding-left: 30px;
padding-right: 30px;
}
.column .column-group {
margin-left: -30px;
margin-right: -30px;
}
} }
.platform-ios { .platform-ios {
@-webkit-keyframes fadeOverlay { @-webkit-keyframes fadeOverlay {

2
docs/assets/css/docs.min.css vendored

File diff suppressed because one or more lines are too long

4
docs/components.html

@ -10,7 +10,7 @@ title: Components &middot; Ratchet
<div class="column units-2"> <div class="column units-2">
<div class="docs-sub-content"> <div class="docs-sub-content">
<h2 class="page-title">Components</h2> <h2 class="page-title">Components</h2>
<p class="page-description">Design patterns that serve as basic building blocks</p> <p class="page-description">Design patterns that serve as basic building blocks.</p>
</div> </div>
</div> </div>
</div> </div>
@ -35,7 +35,7 @@ title: Components &middot; Ratchet
</div> </div>
</div> </div>
<div class="column units-2 lg-units-7"> <div class="column units-2 lg-units-7 docs-content">
<!-- Bars --> <!-- Bars -->
<article class="component active" id="bars"> <article class="component active" id="bars">
<h3 class="component-title">Title bar</h3> <h3 class="component-title">Title bar</h3>

20
docs/examples.html

@ -20,30 +20,38 @@ title: Examples &middot; Ratchet
<div class="container"> <div class="container">
<div class="column-group"> <div class="column-group">
<div class="column units-2 lg-units-8 docs-examples"> <div class="column units-2 lg-units-8 docs-examples docs-content">
<p class="section-lead">Checkout out the examples on a desktop browser or visit on your mobile device to see the apps as intended.</p>
<div class="docs-example-group"> <p class="lead">Checkout out the examples on a desktop browser or visit on your mobile device see the apps as intended.</p>
<div class="column-group">
<div class="column units-2 lg-units-4">
<div class="example-wrap"> <div class="example-wrap">
<a class="example" href="/examples/app-movies" data-ignore="push"> <a class="example" href="/examples/app-movies" data-ignore="push">
<img src="/assets/img/example.png" alt="Movie finder app example" width="640" height="480"> <img src="/assets/img/example.png" alt="Movie finder app example" width="640" height="480">
</a> </a>
<h5>Movie finder</h5> <h4 class="example-title">Movie finder</h4>
</div>
</div> </div>
<div class="column units-2 lg-units-4">
<div class="example-wrap"> <div class="example-wrap">
<a class="example" href="/examples/app-ios-mail" data-ignore="push"> <a class="example" href="/examples/app-ios-mail" data-ignore="push">
<img src="/assets/img/example-ios.png" alt="iOS mail app example" width="640" height="480"> <img src="/assets/img/example-ios.png" alt="iOS mail app example" width="640" height="480">
</a> </a>
<h5>iOS mail app</h5> <h4 class="example-title">iOS mail app</h4>
</div>
</div> </div>
<div class="column units-2 lg-units-4">
<div class="example-wrap"> <div class="example-wrap">
<a class="example" href="/examples/app-android-notes" data-ignore="push"> <a class="example" href="/examples/app-android-notes" data-ignore="push">
<img src="/assets/img/example-android.png" alt="Android notes app example" width="640" height="480"> <img src="/assets/img/example-android.png" alt="Android notes app example" width="640" height="480">
</a> </a>
<h5>Android notes app</h5> <h4 class="example-title">Android notes app</h4>
</div> </div>
</div> <!-- .column-group -->
</div> </div>
</div> </div>
<div class="column units-2 lg-units-4"> <div class="column units-2 lg-units-4">
{% include download-module.html %} {% include download-module.html %}
</div> </div>

75
docs/getting-started.html

@ -20,46 +20,41 @@ title: Getting started &middot; Ratchet
<div class="container"> <div class="container">
<div class="column-group"> <div class="column-group">
<div class="column units-2 lg-units-8"> <div class="column units-2 lg-units-8 docs-content">
<ol class="docs-steps"> <div class="docs-section">
<li class="step"> <h2>Quick start</h2>
<h3 class="step-title">1. Create your pages</h3> <p class="lead">Quickly get up and running with a Ratchet prototype.</p>
<p class="step-description">Use the <a href="/components" data-ignore="push">documentation</a> as a reference for all the available components and piece together the pages of your app. Be sure to look at the <a href="#pageLayout">basic page template</a> and <a href="/examples" data-ignore="push">example applications</a>. Make sure to add <code>ratchet-theme-ios.css</code> or <code>ratchet-theme-android.css</code> to your app's <code>&lt;head&gt;</code> if you have a specific platform in mind.</p>
</li>
<li class="step">
<h3 class="step-title">2. Connect pages with push.js</h3>
<p class="step-description">Read about <a href="/components/#push" data-ignore="push">push.js</a> then start connecting your pages. Push.js allows you to create a prototype that feels like a real app when you save it to your phone. (Need to have a server running).</p>
</li>
<li class="step">
<h3 class="step-title">3. Save the prototype to your phone</h3>
<p class="step-description">There are <a href="https://groups.google.com/forum/#!topic/goratchet/IboE6SCMAyw" data-ignore="push">a few ways to do this</a>, but the simplest is to run a local server on your computer, point Safari on your iPhone to your computer, then click the <span class="icon icon-share"></span> button and "Add to Home Screen". For Android, check out <a href="https://developers.google.com/chrome/mobile/docs/installtohomescreen" data-ignore="push">this guide</a>.</p>
</li>
</ol>
<hr> <h3>1. Create your pages</h3>
<p>Use the <a href="/components" data-ignore="push">documentation</a> as a reference for all the available components and piece together the pages of your app. Be sure to look at the <a href="#pageLayout">basic page template</a> and <a href="/examples" data-ignore="push">example applications</a>. Make sure to add <code>ratchet-theme-ios.css</code> or <code>ratchet-theme-android.css</code> to your app's <code>&lt;head&gt;</code> if you have a specific platform in mind.</p>
<h3>2. Connect pages with push.js</h3>
<p>Read about <a href="/components/#push" data-ignore="push">push.js</a> then start connecting your pages. Push.js allows you to create a prototype that feels like a real app when you save it to your phone. (Need to have a server running).</p>
<h3>3. Save the prototype to your phone</h3>
<p>There are <a href="https://groups.google.com/forum/#!topic/goratchet/IboE6SCMAyw" data-ignore="push">a few ways to do this</a>, but the simplest is to run a local server on your computer, point Safari on your iPhone to your computer, then click the <span class="icon icon-share"></span> button and "Add to Home Screen". For Android, check out <a href="https://developers.google.com/chrome/mobile/docs/installtohomescreen" data-ignore="push">this guide</a>.</p>
</div>
<h2 class="section-heading">Page setup</h2>
<p class="section-lead">Three simple rules for structuring your Ratchet pages</p>
<ol class="docs-steps">
<li class="step">
<h3 class="step-title">1. Fixed bars come first</h3>
<p class="step-description">All fixed bars (<code>.bar</code>) should always be the first thing in the <code>&lt;body&gt;</code> of the page. This is really important!</p>
</li>
<li class="step">
<h3 class="step-title">2. Everything else goes in <code>.content</code></h3>
<p class="step-description">Anything that's not a <code>.bar</code> should be put in a div with the class <code>.content</code>. Put this div after the bars in the <code>&lt;body&gt;</code> tag. The <code>.content</code> div is what actually scrolls in a Ratchet prototype.</p>
</li>
<li class="step">
<h3 class="step-title">3. Don't forget your meta tags</h3>
<p class="step-description">They're included in the template.html page included in the download, but make sure they stay in the page. They are important to Ratchet working just right.</p>
</li>
</ol>
<hr> <div class="docs-section">
<h2>Page setup</h2>
<p class="lead">Three simple rules for structuring your Ratchet pages</p>
<h3>1. Fixed bars come first</h3>
<p>All fixed bars (<code>.bar</code>) should always be the first thing in the <code>&lt;body&gt;</code> of the page. This is really important!</p>
<h2 id="pageLayout" class="section-heading">Basic template</h2> <h3>2. Everything else goes in <code>.content</code></h3>
<p class="section-lead">Use this basic template to get your app started.</p> <p>Anything that's not a <code>.bar</code> should be put in a div with the class <code>.content</code>. Put this div after the bars in the <code>&lt;body&gt;</code> tag. The <code>.content</code> div is what actually scrolls in a Ratchet prototype.</p>
<h3>3. Don't forget your meta tags</h3>
<p>They're included in the template.html page included in the download, but make sure they stay in the page. They are important to Ratchet working just right.</p>
</div>
<div class="docs-section">
<h2 id="pageLayout">Basic template</h2>
<p class="lead">Use this basic template to get your app started.</p>
{% highlight html %} {% highlight html %}
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
@ -79,7 +74,6 @@ title: Getting started &middot; Ratchet
<!-- Include the compiled Ratchet JS --> <!-- Include the compiled Ratchet JS -->
<script src="ratchet.js"></script> <script src="ratchet.js"></script>
</head> </head>
<body> <body>
@ -120,9 +114,13 @@ title: Getting started &middot; Ratchet
</body> </body>
</html> </html>
{% endhighlight %} {% endhighlight %}
</div>
<h2 class="section-heading">Community</h2>
<p class="section-lead">Stay up to date on the development of Ratchet and reach out to the community with these helpful resources.</p> <div class="docs-section">
<h2>Community</h2>
<p class="lead">Stay up to date on the development of Ratchet and reach out to the community with these helpful resources.</p>
<ol> <ol>
<li> <li>
<p>Read and subscribe to <a href="http://blog.getbootstrap.com/">The Official Bootstrap Blog</a> (which includes Ratchet releases and news).</p> <p>Read and subscribe to <a href="http://blog.getbootstrap.com/">The Official Bootstrap Blog</a> (which includes Ratchet releases and news).</p>
@ -136,6 +134,7 @@ title: Getting started &middot; Ratchet
</ol> </ol>
<p>You can also follow <a href="https://twitter.com/goratchet">@goratchet</a> on Twitter for the latest news.</p> <p>You can also follow <a href="https://twitter.com/goratchet">@goratchet</a> on Twitter for the latest news.</p>
</div> </div>
</div>
<div class="column units-2 lg-units-4"> <div class="column units-2 lg-units-4">
{% include download-module.html %} {% include download-module.html %}

213
sass/docs.scss

@ -14,13 +14,49 @@ body {
} }
body { body {
position: relative !important; // Overrides the fixed positioning of body in Ratchet position: relative !important; // Overrides the fixed positioning of body in Ratchet
font: 14px/1.5 "adelle-sans",sans-serif; font: 300 14px/1.5 "Open Sans", sans-serif;
color: #333; color: #333;
background-color: #fff; background-color: #fff;
-webkit-font-smoothing: antialiased; // Fix for webkit rendering -webkit-font-smoothing: antialiased; // Fix for webkit rendering
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
} }
// Typography
//
// Gets scoped to a common class in the docs so we don't collide with any of
// Ratchet's styles.
.docs-content {
font-size: 14px;
@media screen and (min-width: 768px) {
font-size: 18px;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 300;
color: #222;
}
h2 {
margin-bottom: .25em;
font-size: 2em;
}
h3 {
margin-bottom: .5em;
font-size: 1.25em;
}
p {
margin-bottom: 1.5em;
font-size: 1em;
color: #555;
}
.lead {
font-size: 1.1em;
color: #777;
}
}
// Jumbotron // Jumbotron
// -------------------------------------------------- // --------------------------------------------------
@ -60,7 +96,8 @@ body {
// Ads on the homepage // Ads on the homepage
.carbonad { .carbonad {
left: 50% !important; left: 50% !important;
margin-left: -165px !important; width: 300px !important;
margin-left: -150px !important;
margin-bottom: 60px !important; margin-bottom: 60px !important;
} }
} }
@ -74,12 +111,6 @@ body {
@include transform(translateY(-50%) !important); @include transform(translateY(-50%) !important);
} }
} }
// Account for the extra margin for large sceens.
@media screen and (min-width: 1200px) {
.docs-sub-header .carbonad {
right: 30px !important;
}
}
// Masthead and nav // Masthead and nav
.docs-masthead { .docs-masthead {
@ -96,13 +127,6 @@ body {
font-weight: 300; font-weight: 300;
z-index: 20; z-index: 20;
@include transform(translateX(-50%)); @include transform(translateX(-50%));
// Use a thinner weight on retina
@media
(-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
font-weight: 100;
}
} }
.docs-nav { .docs-nav {
.docs-nav-trigger { .docs-nav-trigger {
@ -133,13 +157,6 @@ body {
display: block; display: block;
padding: 20px 15px; padding: 20px 15px;
font-size: 22px; font-size: 22px;
// Use a thinner weight on retina
@media
(-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
font-weight: 100;
}
} }
} }
.docs-jump-menu, .docs-jump-menu,
@ -280,7 +297,7 @@ body {
.btn { .btn {
display: block; display: block;
padding: 15px 90px 16px; padding: 15px 75px 16px;
font-size: 18px; font-size: 18px;
margin-bottom: 0; margin-bottom: 0;
color: #0a1855; color: #0a1855;
@ -301,7 +318,6 @@ body {
max-width: 750px; max-width: 750px;
margin: 0 auto 20px; margin: 0 auto 20px;
font-size: 28px; font-size: 28px;
font-weight: 100;
color: #fff; color: #fff;
line-height: 38px; line-height: 38px;
} }
@ -347,7 +363,7 @@ body {
height: auto !important; height: auto !important;
margin-left: 145px !important; margin-left: 145px !important;
color: rgba(255,255,255,.65) !important; color: rgba(255,255,255,.65) !important;
font-family: "adelle-sans", "Helvetica Neue", Helvetica, Arial, sans-serif !important; font-family: "Open Sans", sans-serif !important;
} }
.carbonad-text { .carbonad-text {
padding-top: 0 !important; padding-top: 0 !important;
@ -366,7 +382,7 @@ body {
// Desktop styles for ads // Desktop styles for ads
@media screen and (min-width: 768px) { @media screen and (min-width: 768px) {
.carbonad { .carbonad {
width: 330px !important; width: 360px !important;
border-right: 1px solid rgba(255,255,255,.1) !important; border-right: 1px solid rgba(255,255,255,.1) !important;
border-bottom: 1px solid rgba(255,255,255,.1) !important; border-bottom: 1px solid rgba(255,255,255,.1) !important;
border-left: 1px solid rgba(255,255,255,.1) !important; border-left: 1px solid rgba(255,255,255,.1) !important;
@ -391,13 +407,6 @@ body {
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
font-weight: 300; font-weight: 300;
// Use a thinner weight on retina
@media
(-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
font-weight: 100;
}
} }
.page-title { .page-title {
font-size: 40px; font-size: 40px;
@ -422,83 +431,18 @@ body {
// Content sections // Content sections
// -------------------------------------------------- // --------------------------------------------------
// Wrap each section of the docs
.docs-section { .docs-section {
padding-top: 80px; padding-top: 50px;
padding-bottom: 80px; padding-bottom: 50px;
} border-bottom: 1px solid #ddd;
.section-heading,
.section-lead {
margin-top: 0;
margin-bottom: 0;
}
.section-heading {
font-size: 22px;
font-weight: 300;
}
.section-lead {
font-size: 18px;
color: #777;
// Use a thinner weight on retina
@media
(-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
font-weight: 100;
}
}
// Desktop: Section headings
@media screen and (min-width: 768px) {
.section-heading {
margin-top: 50px;
margin-bottom: 10px;
font-size: 40px;
}
.section-lead {
font-size: 24px;
}
}
// Steps
// --------------------------------------------------
.docs-steps {
margin-top: 20px;
padding: 0;
list-style: none;
}
.step {
padding-top: 30px;
padding-bottom: 30px;
}
.step-title,
.step-description {
font-weight: 300;
}
.step-title {
font-size: 18px
}
.step-title code {
font-size: 14px;
} }
.step-description { .docs-section:last-child {
font-size: 14px; border-bottom: 0;
} }
// Desktop steps styles // Docs modules
@media screen and (min-width: 768px) { @media screen and (min-width: 768px) {
.step-title {
font-size: 24px;
}
.step-title code {
font-size: 18px;
}
.step-description {
font-size: 18px;
}
// Docs modules
.docs-module { .docs-module {
margin-top: 35px; margin-top: 35px;
} }
@ -515,9 +459,6 @@ body {
margin-bottom: 0; margin-bottom: 0;
} }
} }
.docs-module-title {
font-weight: 300;
}
.version { .version {
margin-top: 10px; margin-top: 10px;
margin-bottom: 0; margin-bottom: 0;
@ -640,21 +581,12 @@ body {
// Example devices // Example devices
// -------------------------------------------------- // --------------------------------------------------
.docs-examples { .docs-examples {
margin-top: 50px;
margin-bottom: 50px;
}
.docs-example-group {
margin-top: 30px; margin-top: 30px;
}
.example-wrap {
margin-bottom: 30px;
.example-wrap {
display: inline-block;
margin-right: 10px;
&:last-child {
margin-right: 10px;
}
.example { .example {
display: block; display: block;
overflow: hidden; overflow: hidden;
@ -663,31 +595,14 @@ body {
border: $border-default; border: $border-default;
border-radius: 3px; border-radius: 3px;
} }
h5 { .example-title {
margin-top: 10px; margin-top: 10px;
font-weight: 300;
} }
img { img {
display: block; display: block;
width: 100%; width: 100%;
height: auto; height: auto;
} }
}
}
@media screen and (min-width: 768px) {
// Examples
.docs-example-group .example-wrap {
display: inline-block;
.example {
width: 180px;
}
}
}
@media screen and (min-width: 1200px) {
.docs-example-group .example-wrap .example {
width: 220px;
}
} }
@ -714,13 +629,11 @@ code {
.component-title { .component-title {
margin-bottom: 10px; margin-bottom: 10px;
font-size: 24px; font-size: 24px;
font-weight: 300;
line-height: 34px; line-height: 34px;
} }
.component-description { .component-description {
margin-bottom: 15px; margin-bottom: 15px;
font-size: 16px; font-size: 16px;
font-weight: 300;
} }
.component-example { .component-example {
font-family: $font-family-default; font-family: $font-family-default;
@ -773,7 +686,6 @@ code {
color: #fff; color: #fff;
text-align: center; text-align: center;
font-size: 24px; font-size: 24px;
font-weight: 300;
text-shadow: 0 0 10px rgba(0, 0, 0, 0.5); text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
} }
.component-example-fullbleed, .component-example-fullbleed,
@ -942,7 +854,6 @@ code {
color: #fff; color: #fff;
text-align: center; text-align: center;
font-size: 24px; font-size: 24px;
font-weight: 300;
text-shadow: 0 0 10px rgba(0,0,0,.5); text-shadow: 0 0 10px rgba(0,0,0,.5);
} }
} }
@ -1074,15 +985,6 @@ hr {
padding: 0; padding: 0;
max-width: 940px; max-width: 940px;
} }
.column {
padding-left: 20px;
padding-right: 20px;
}
// Lines nested grids up correctly.
.column .column-group {
margin-left: -20px;
margin-right: -20px;
}
// Override the mobile grid // Override the mobile grid
.units-1 { width: 50%; } .units-1 { width: 50%; }
@ -1124,15 +1026,6 @@ hr {
.container { .container {
max-width: 1170px; max-width: 1170px;
} }
.column {
padding-left: 30px;
padding-right: 30px;
}
// Lines nested grids up correctly.
.column .column-group {
margin-left: -30px;
margin-right: -30px;
}
} }

Loading…
Cancel
Save