Browse Source

Setting the iphone example back up.

pull/249/head
connors 11 years ago
parent
commit
3831cf4f06
  1. 2
      components.html
  2. 172
      docs-assets/css/docs.css
  3. BIN
      docs-assets/img/iphone.png
  4. 176
      lib/sass/docs.scss

2
components.html

@ -18,7 +18,7 @@ base_url: "../"
<!-- Components -->
<div class="column-group">
<div class="column units-2 lg-units-6">
<div class="column units-2 lg-units-7">
<div class="section-header">
<h2 class="section-title">Components</h2>
<p class="section-description">Design patterns that serve as basic building blocks.</p>

172
docs-assets/css/docs.css

@ -140,6 +140,120 @@ h1, h2, h3, h4, h5, h6 {
word-wrap: normal;
}
.notice-banner {
height: 0;
margin: 0;
padding: 0;
color: #333;
font-size: 16px;
text-align: center;
background-color: #fff9c4;
opacity: 0;
-moz-animation: shownotice 1s infinite;
}
.iphone {
display: none;
}
hr {
height: 0;
margin: 10px 0 30px;
border: solid #ddd;
border-width: 1px 0 0;
clear: both;
}
.column-group {
*zoom: 1;
}
.column-group:before,
.column-group:after {
display: table;
line-height: 0;
content: "";
}
.column-group:after {
clear: both;
}
.clear {
display: block;
width: 0;
height: 0;
overflow: hidden;
visibility: hidden;
clear: both;
}
@media screen and (min-width: 768px) {
.iphone {
display: block;
position: fixed;
top: 50px;
left: 50%;
float: right;
width: 395px;
height: 813px;
margin-left: 140px;
font-family: "Helvetica Neue", sans-serif;
background-image: url("../img/iphone.png");
background-size: 100%;
background-repeat: no-repeat;
}
.iphone .iphone-content {
position: absolute;
top: 118px;
left: 37px;
width: 320px;
height: 568px;
overflow: hidden;
background-color: #efeff4;
}
.iphone .content,
.iphone [class*="bar"] {
position: absolute;
}
.iphone .content {
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.component,
.component-example-fullbleed,
.highlight {
margin-left: 0;
margin-right: 0;
}
.component {
padding-left: 0;
padding-right: 0;
opacity: .5;
-webkit-transition: opacity 0.2s ease-in-out;
transition: opacity 0.2s ease-in-out;
}
.component.active {
opacity: 1;
}
.component-example {
display: none;
}
.highlight pre {
border-left: 1px solid #ddd;
border-right: 1px solid #ddd;
border-radius: 3px;
}
}
.container {
margin-left: auto;
margin-right: auto;
@ -287,16 +401,6 @@ h1, h2, h3, h4, h5, h6 {
.lg-offset-11 {
margin-left: 91.666%;
}
.iphone {
display: block;
position: relative;
top: 50px;
float: right;
width: 375px;
height: 806px;
font-family: "Helvetica Neue", sans-serif;
}
}
@media screen and (min-width: 1200px) {
.container {
@ -313,54 +417,6 @@ h1, h2, h3, h4, h5, h6 {
margin-right: -30px;
}
}
.notice-banner {
height: 0;
margin: 0;
padding: 0;
color: #333;
font-size: 16px;
text-align: center;
background-color: #fff9c4;
opacity: 0;
-moz-animation: shownotice 1s infinite;
}
.iphone {
display: none;
}
hr {
height: 0;
margin: 10px 0 30px;
border: solid #ddd;
border-width: 1px 0 0;
clear: both;
}
.column-group {
*zoom: 1;
}
.column-group:before,
.column-group:after {
display: table;
line-height: 0;
content: "";
}
.column-group:after {
clear: both;
}
.clear {
display: block;
width: 0;
height: 0;
overflow: hidden;
visibility: hidden;
clear: both;
}
@-webkit-keyframes fadeintext {
0% {
opacity: 0;

BIN
docs-assets/img/iphone.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 KiB

After

Width:  |  Height:  |  Size: 94 KiB

176
lib/sass/docs.scss

@ -137,6 +137,121 @@ h1, h2, h3, h4, h5, h6 {
word-wrap: normal;
}
// Misc
// --------------------------------------------------
.notice-banner {
height: 0;
margin: 0;
padding: 0;
color: #333;
font-size: 16px;
text-align: center;
background-color: #fff9c4;
opacity: 0;
-moz-animation: shownotice 1s infinite;
}
.iphone {
display: none;
}
hr {
height: 0;
margin: 10px 0 30px;
border: solid #ddd;
border-width: 1px 0 0;
clear: both;
}
.column-group {
*zoom: 1;
}
.column-group:before,
.column-group:after {
display: table;
line-height: 0;
content: "";
}
.column-group:after {
clear: both;
}
// You can also use a <br class="clear">
.clear {
display: block;
width: 0;
height: 0;
overflow: hidden;
visibility: hidden;
clear: both;
}
// Docs media queries
// --------------------------------------------------
// Tablet to desktop
// --------------------------------------------------
@media screen and (min-width: 768px) {
.iphone {
display: block;
position: fixed;
top: 50px;
left: 50%;
float: right;
width: 395px;
height: 813px;
margin-left: 140px;
font-family: "Helvetica Neue", sans-serif;
background-image: url("../img/iphone.png");
background-size: 100%;
background-repeat: no-repeat;
}
.iphone .iphone-content {
position: absolute;
top: 118px;
left: 37px;
width: 320px;
height: 568px;
overflow: hidden;
background-color: #efeff4;
}
.iphone .content,
.iphone [class*="bar"] {
position: absolute;
}
.iphone .content {
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.component,
.component-example-fullbleed,
.highlight {
margin-left: 0;
margin-right: 0;
}
.component {
padding-left: 0;
padding-right: 0;
opacity: .5;
@include transition(opacity .2s ease-in-out);
&.active {
opacity: 1;
}
}
.component-example {
display: none;
}
.highlight pre {
border-left: 1px solid #ddd;
border-right: 1px solid #ddd;
border-radius: 3px;
}
}
// The Chassis grid
// --------------------------------------------------
@ -213,17 +328,6 @@ h1, h2, h3, h4, h5, h6 {
.lg-offset-9 { margin-left: 75%; }
.lg-offset-10 { margin-left: 83.333%; }
.lg-offset-11 { margin-left: 91.666%; }
.iphone {
display: block;
position: fixed;
top: 50px;
float: right;
width: 375px;
height: 806px;
font-family: "Helvetica Neue", sans-serif;
}
}
@ -246,56 +350,6 @@ h1, h2, h3, h4, h5, h6 {
}
// Misc
// --------------------------------------------------
.notice-banner {
height: 0;
margin: 0;
padding: 0;
color: #333;
font-size: 16px;
text-align: center;
background-color: #fff9c4;
opacity: 0;
-moz-animation: shownotice 1s infinite;
}
.iphone {
display: none;
}
hr {
height: 0;
margin: 10px 0 30px;
border: solid #ddd;
border-width: 1px 0 0;
clear: both;
}
.column-group {
*zoom: 1;
}
.column-group:before,
.column-group:after {
display: table;
line-height: 0;
content: "";
}
.column-group:after {
clear: both;
}
// You can also use a <br class="clear">
.clear {
display: block;
width: 0;
height: 0;
overflow: hidden;
visibility: hidden;
clear: both;
}
// Animations
// --------------------------------------------------

Loading…
Cancel
Save