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. 48
      docs/examples.html
  6. 109
      docs/getting-started.html
  7. 237
      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-status-bar-style" content="black">
<!-- Roboto -->
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:400,500,700">
<!-- Google Web Fonts -->
<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="/assets/css/docs.min.css">
@ -32,8 +32,4 @@
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);
})();
// Remove once I add back in the docs.js
// $(function() {
// $(window).on('load', function () { new FingerBlast('.body'); });
// });
</script>

202
docs/assets/css/docs.css

@ -16,13 +16,43 @@ body {
body {
position: relative !important;
font: 14px/1.5 "adelle-sans",sans-serif;
font: 300 14px/1.5 "Open Sans", sans-serif;
color: #333;
background-color: #fff;
-webkit-font-smoothing: antialiased;
-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-sub-header {
position: relative;
@ -62,7 +92,8 @@ body {
}
.docs-header .carbonad {
left: 50% !important;
margin-left: -165px !important;
width: 300px !important;
margin-left: -150px !important;
margin-bottom: 60px !important;
}
@ -76,11 +107,6 @@ body {
transform: translateY(-50%) !important;
}
}
@media screen and (min-width: 1200px) {
.docs-sub-header .carbonad {
right: 30px !important;
}
}
.docs-masthead {
position: relative;
padding-top: 15px;
@ -99,11 +125,6 @@ body {
-ms-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 {
color: #fff;
@ -132,11 +153,6 @@ body {
padding: 20px 15px;
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-component-group {
@ -276,7 +292,7 @@ body {
}
.docs-header-content .btn {
display: block;
padding: 15px 90px 16px;
padding: 15px 75px 16px;
font-size: 18px;
margin-bottom: 0;
color: #0a1855;
@ -299,7 +315,6 @@ body {
max-width: 750px;
margin: 0 auto 20px;
font-size: 28px;
font-weight: 100;
color: #fff;
line-height: 38px;
}
@ -346,7 +361,7 @@ body {
height: auto !important;
margin-left: 145px !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 {
@ -368,7 +383,7 @@ body {
@media screen and (min-width: 768px) {
.carbonad {
width: 330px !important;
width: 360px !important;
border-right: 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;
@ -389,12 +404,6 @@ body {
margin-bottom: 0;
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 {
font-size: 40px;
margin-bottom: 5px;
@ -412,83 +421,16 @@ body {
}
}
.docs-section {
padding-top: 80px;
padding-bottom: 80px;
}
.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;
padding-top: 50px;
padding-bottom: 50px;
border-bottom: 1px solid #ddd;
}
.step-description {
font-size: 14px;
.docs-section:last-child {
border-bottom: 0;
}
@media screen and (min-width: 768px) {
.step-title {
font-size: 24px;
}
.step-title code {
font-size: 18px;
}
.step-description {
font-size: 18px;
}
.docs-module {
margin-top: 35px;
}
@ -503,10 +445,6 @@ body {
margin-bottom: 0;
}
.docs-module-title {
font-weight: 300;
}
.version {
margin-top: 10px;
margin-bottom: 0;
@ -617,21 +555,13 @@ body {
}
.docs-examples {
margin-top: 50px;
margin-bottom: 50px;
}
.docs-example-group {
margin-top: 30px;
}
.docs-example-group .example-wrap {
display: inline-block;
margin-right: 10px;
}
.docs-example-group .example-wrap:last-child {
margin-right: 10px;
.example-wrap {
margin-bottom: 30px;
}
.docs-example-group .example-wrap .example {
.example-wrap .example {
display: block;
overflow: hidden;
padding: 3px;
@ -639,29 +569,15 @@ body {
border: 1px solid #dddddd;
border-radius: 3px;
}
.docs-example-group .example-wrap h5 {
.example-wrap .example-title {
margin-top: 10px;
font-weight: 300;
}
.docs-example-group .example-wrap img {
.example-wrap img {
display: block;
width: 100%;
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 {
padding: 2px 4px;
font-size: 90%;
@ -683,14 +599,12 @@ code {
.component-title {
margin-bottom: 10px;
font-size: 24px;
font-weight: 300;
line-height: 34px;
}
.component-description {
margin-bottom: 15px;
font-size: 16px;
font-weight: 300;
}
.component-example {
@ -749,7 +663,6 @@ code {
color: #fff;
text-align: center;
font-size: 24px;
font-weight: 300;
text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
@ -907,7 +820,6 @@ code {
color: #fff;
text-align: center;
font-size: 24px;
font-weight: 300;
text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
}
@ -1037,16 +949,6 @@ hr {
max-width: 940px;
}
.column {
padding-left: 20px;
padding-right: 20px;
}
.column .column-group {
margin-left: -20px;
margin-right: -20px;
}
.units-1 {
width: 50%;
}
@ -1151,16 +1053,6 @@ hr {
.container {
max-width: 1170px;
}
.column {
padding-left: 30px;
padding-right: 30px;
}
.column .column-group {
margin-left: -30px;
margin-right: -30px;
}
}
.platform-ios {
@-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="docs-sub-content">
<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>
@ -35,7 +35,7 @@ title: Components &middot; Ratchet
</div>
</div>
<div class="column units-2 lg-units-7">
<div class="column units-2 lg-units-7 docs-content">
<!-- Bars -->
<article class="component active" id="bars">
<h3 class="component-title">Title bar</h3>

48
docs/examples.html

@ -20,30 +20,38 @@ title: Examples &middot; Ratchet
<div class="container">
<div class="column-group">
<div class="column units-2 lg-units-8 docs-examples">
<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">
<div class="example-wrap">
<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">
</a>
<h5>Movie finder</h5>
</div>
<div class="example-wrap">
<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">
</a>
<h5>iOS mail app</h5>
<div class="column units-2 lg-units-8 docs-examples docs-content">
<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">
<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">
</a>
<h4 class="example-title">Movie finder</h4>
</div>
</div>
<div class="example-wrap">
<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">
</a>
<h5>Android notes app</h5>
<div class="column units-2 lg-units-4">
<div class="example-wrap">
<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">
</a>
<h4 class="example-title">iOS mail app</h4>
</div>
</div>
<div class="column units-2 lg-units-4">
<div class="example-wrap">
<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">
</a>
<h4 class="example-title">Android notes app</h4>
</div>
</div> <!-- .column-group -->
</div>
</div>
<div class="column units-2 lg-units-4">
{% include download-module.html %}
</div>

109
docs/getting-started.html

@ -20,46 +20,41 @@ title: Getting started &middot; Ratchet
<div class="container">
<div class="column-group">
<div class="column units-2 lg-units-8">
<ol class="docs-steps">
<li class="step">
<h3 class="step-title">1. Create your pages</h3>
<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>
<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>
<h2 id="pageLayout" class="section-heading">Basic template</h2>
<p class="section-lead">Use this basic template to get your app started.</p>
<div class="column units-2 lg-units-8 docs-content">
<div class="docs-section">
<h2>Quick start</h2>
<p class="lead">Quickly get up and running with a Ratchet prototype.</p>
<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>
<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>
<h3>2. Everything else goes in <code>.content</code></h3>
<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 %}
<!DOCTYPE html>
<html>
@ -79,7 +74,6 @@ title: Getting started &middot; Ratchet
<!-- Include the compiled Ratchet JS -->
<script src="ratchet.js"></script>
</head>
<body>
@ -120,21 +114,26 @@ title: Getting started &middot; Ratchet
</body>
</html>
{% 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>
<ol>
<li>
<p>Read and subscribe to <a href="http://blog.getbootstrap.com/">The Official Bootstrap Blog</a> (which includes Ratchet releases and news).</p>
</li>
<li>
<p>For help using Ratchet, ask on <a href="http://stackoverflow.com/questions/tagged/ratchet-2">StackOverflow using the tag <code>ratchet-2</code></a>.</p>
</li>
<li>
<p>Start a discussion on the <a href="https://groups.google.com/forum/#!forum/goratchet">Ratchet Google group</a>.</p>
</li>
</ol>
<p>You can also follow <a href="https://twitter.com/goratchet">@goratchet</a> on Twitter for the latest news.</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>
<li>
<p>Read and subscribe to <a href="http://blog.getbootstrap.com/">The Official Bootstrap Blog</a> (which includes Ratchet releases and news).</p>
</li>
<li>
<p>For help using Ratchet, ask on <a href="http://stackoverflow.com/questions/tagged/ratchet-2">StackOverflow using the tag <code>ratchet-2</code></a>.</p>
</li>
<li>
<p>Start a discussion on the <a href="https://groups.google.com/forum/#!forum/goratchet">Ratchet Google group</a>.</p>
</li>
</ol>
<p>You can also follow <a href="https://twitter.com/goratchet">@goratchet</a> on Twitter for the latest news.</p>
</div>
</div>
<div class="column units-2 lg-units-4">

237
sass/docs.scss

@ -14,13 +14,49 @@ body {
}
body {
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;
background-color: #fff;
-webkit-font-smoothing: antialiased; // Fix for webkit rendering
-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
// --------------------------------------------------
@ -60,7 +96,8 @@ body {
// Ads on the homepage
.carbonad {
left: 50% !important;
margin-left: -165px !important;
width: 300px !important;
margin-left: -150px !important;
margin-bottom: 60px !important;
}
}
@ -74,12 +111,6 @@ body {
@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
.docs-masthead {
@ -96,13 +127,6 @@ body {
font-weight: 300;
z-index: 20;
@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-trigger {
@ -133,13 +157,6 @@ body {
display: block;
padding: 20px 15px;
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,
@ -280,7 +297,7 @@ body {
.btn {
display: block;
padding: 15px 90px 16px;
padding: 15px 75px 16px;
font-size: 18px;
margin-bottom: 0;
color: #0a1855;
@ -301,7 +318,6 @@ body {
max-width: 750px;
margin: 0 auto 20px;
font-size: 28px;
font-weight: 100;
color: #fff;
line-height: 38px;
}
@ -347,7 +363,7 @@ body {
height: auto !important;
margin-left: 145px !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 {
padding-top: 0 !important;
@ -366,7 +382,7 @@ body {
// Desktop styles for ads
@media screen and (min-width: 768px) {
.carbonad {
width: 330px !important;
width: 360px !important;
border-right: 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;
@ -391,13 +407,6 @@ body {
margin-top: 0;
margin-bottom: 0;
font-weight: 300;
// Use a thinner weight on retina
@media
(-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
font-weight: 100;
}
}
.page-title {
font-size: 40px;
@ -422,83 +431,18 @@ body {
// Content sections
// --------------------------------------------------
// Wrap each section of the docs
.docs-section {
padding-top: 80px;
padding-bottom: 80px;
}
.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;
padding-top: 50px;
padding-bottom: 50px;
border-bottom: 1px solid #ddd;
}
.step-description {
font-size: 14px;
.docs-section:last-child {
border-bottom: 0;
}
// Desktop steps styles
// Docs modules
@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 {
margin-top: 35px;
}
@ -515,9 +459,6 @@ body {
margin-bottom: 0;
}
}
.docs-module-title {
font-weight: 300;
}
.version {
margin-top: 10px;
margin-bottom: 0;
@ -640,53 +581,27 @@ body {
// Example devices
// --------------------------------------------------
.docs-examples {
margin-top: 50px;
margin-bottom: 50px;
}
.docs-example-group {
margin-top: 30px;
.example-wrap {
display: inline-block;
margin-right: 10px;
&:last-child {
margin-right: 10px;
}
.example {
display: block;
overflow: hidden;
padding: 3px;
width: 100%;
border: $border-default;
border-radius: 3px;
}
h5 {
margin-top: 10px;
font-weight: 300;
}
img {
display: block;
width: 100%;
height: auto;
}
}
}
@media screen and (min-width: 768px) {
// Examples
.docs-example-group .example-wrap {
display: inline-block;
.example-wrap {
margin-bottom: 30px;
.example {
width: 180px;
}
.example {
display: block;
overflow: hidden;
padding: 3px;
width: 100%;
border: $border-default;
border-radius: 3px;
}
}
@media screen and (min-width: 1200px) {
.docs-example-group .example-wrap .example {
width: 220px;
.example-title {
margin-top: 10px;
}
img {
display: block;
width: 100%;
height: auto;
}
}
@ -714,13 +629,11 @@ code {
.component-title {
margin-bottom: 10px;
font-size: 24px;
font-weight: 300;
line-height: 34px;
}
.component-description {
margin-bottom: 15px;
font-size: 16px;
font-weight: 300;
}
.component-example {
font-family: $font-family-default;
@ -773,7 +686,6 @@ code {
color: #fff;
text-align: center;
font-size: 24px;
font-weight: 300;
text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.component-example-fullbleed,
@ -942,7 +854,6 @@ code {
color: #fff;
text-align: center;
font-size: 24px;
font-weight: 300;
text-shadow: 0 0 10px rgba(0,0,0,.5);
}
}
@ -1074,15 +985,6 @@ hr {
padding: 0;
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
.units-1 { width: 50%; }
@ -1124,15 +1026,6 @@ hr {
.container {
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