adding readme and small cleanup

This commit is contained in:
Dave Gamache 2014-12-01 12:59:46 -08:00
parent 4785e60a39
commit c8a28fcda2
4 changed files with 238 additions and 24 deletions

52
README.md Normal file
View File

@ -0,0 +1,52 @@
# [Skeleton](http://getskeleton.com)
Skeleton is a simple, responsive boilerplate to kickstart any responsive project.
Check out <http://getskeleton.com> for documentation and details.
## Getting started
There are a couple ways to download Skeleton:
- [Download the tarball from Github]().
- Clone the repo: `git clone https://github.com/twbs/bootstrap.git`.
### What's in the download?
The download includes Skeleton's CSS, Normalize CSS as a reset, a sample favicon, and an index.html as a starting point.
```
skeleton/
├── index.html
├── css/
│ ├── normalize.min.css
│ ├── skeleton.css
│ └── skeleton.min.css
└── images/
└── favicon.ico
```
### Why it's awesome
Skeleton is lightweight and simple. It styles only raw HTML elements (with a few exceptions) and provides a responsive grid. Nothing more.
- Minified, it's less than a kb
- It's a starting point, not a UI framework
- No compiling or installing...just vanilla CSS
## Browser support
- Chrome
- Firefox 5+
- Opera
- Safari 6+
- IE 8+
## Acknowledgement
Skeleton was created by [Dave Gamache](https://twitter.com/dhg).
## License
All parts of Skeleton are free to use and abuse under the [open-source MIT license](http://opensource.org/licenses/mit-license.php).

View File

@ -259,23 +259,64 @@
<form> <form>
<div class="row"> <div class="row">
<div class="six columns"> <div class="six columns">
<label for="exampleTextInput">Your email</label> <label for="exampleEmailInput">Your email</label>
<input class="u-full-width" type="email" placeholder="test@mailbox.com" id="exampleTextInput"> <input class="u-full-width" type="email" placeholder="test@mailbox.com" id="exampleEmailInput">
</div> </div>
<div class="six columns"> <div class="six columns">
<label for="exampleTextInput">Recipient's Email</label> <label for="exampleRecipientInput">Reason for contacting</label>
<input class="u-full-width" type="email" placeholder="secr3tPa55w0rd" id="exampleTextInput"> <select class="u-full-width">
<option value="Option 1">Questions</option>
<option value="Option 2">Admiration</option>
<option value="Option 3">Can I get your number?</option>
</select>
</div> </div>
<label>Message</label> </div>
<textarea class="u-full-width" placeholder="Hi Dave &hellip;"></textarea> <label for="exampleMessage">Message</label>
<textarea class="u-full-width" placeholder="Hi Dave &hellip;" id="exampleMessage"></textarea>
<label class="example-send-yourself-copy"> <label class="example-send-yourself-copy">
<input type="checkbox"> <input type="checkbox">
<span class="label-body">Send a copy to yourself</span> <span class="label-body">Send a copy to yourself</span>
</label> </label>
<input type="submit" value="Submit"> <input class="button-primary" type="submit" value="Submit">
</div>
</form> </form>
</div> </div>
<!-- CODE EXAMPLE ———————————————————————————————————————— -->
<pre class="code-example">
<code class="code-example-body prettyprint"><!-- The above form looks like this -->
<form>
<div class="row">
<div class="six columns">
<label for="exampleEmailInput">Your email</label>
<input class="u-full-width" type="email" placeholder="test@mailbox.com" id="exampleEmailInput">
</div>
<div class="six columns">
<label for="exampleRecipientInput">Reason for contacting</label>
<select class="u-full-width">
<option value="Option 1">Questions</option>
<option value="Option 2">Admiration</option>
<option value="Option 3">Can I get your number?</option>
</select>
</div>
</div>
<label for="exampleMessage">Message</label>
<textarea class="u-full-width" placeholder="Hi Dave &hellip;" id="exampleMessage"></textarea>
<label class="example-send-yourself-copy">
<input type="checkbox">
<span class="label-body">Send a copy to yourself</span>
</label>
<input class="button-primary" type="submit" value="Submit">
</form>
<!-- Always wrap checkbox and radio inputs in a label and use a <span class="label-body"> inside of it -->
<!-- Note: The class .u-full-width is just a utility class shorthand for width: 100% -->
</code>
</pre>
<!-- ————————————————————————————————————————————————————— -->
</div> </div>
<!-- Lists --> <!-- Lists -->
@ -309,6 +350,28 @@
</ol> </ol>
</div> </div>
</div> </div>
<!-- CODE EXAMPLE ———————————————————————————————————————— -->
<pre class="code-example">
<code class="code-example-body prettyprint"><ul>
<li>Item 1</li>
<li>
Item 2
<ul>
<li>Item 2.1</li>
<li>Item 2.2</li>
</ul>
</li>
<li>Item 3</li>
</ul>
<!-- Easily substitute any <ul> or an <ol> to get number lists or sublists. Skeleton doesn't support lists nested deeper than 2 levels -->
</code>
</pre>
<!-- ————————————————————————————————————————————————————— -->
</div> </div>
<!-- Code --> <!-- Code -->
@ -316,14 +379,30 @@
<h6 class="docs-header">Code</h6> <h6 class="docs-header">Code</h6>
<p>Code styling was kept super basic  basically just wrap something in a <code>&lt;code&gt;</code> tag and it will look just like that code tag just did. For blocks of code, wrap a <code>&lt;code&gt;</code> tag with a <code>&lt;pre&gt;</code> tag.</p> <p>Code styling was kept super basic  basically just wrap something in a <code>&lt;code&gt;</code> tag and it will look just like that code tag just did. For blocks of code, wrap a <code>&lt;code&gt;</code> tag with a <code>&lt;pre&gt;</code> tag.</p>
<div class="docs-example"> <div class="docs-example">
<pre><code>.some-class {<br>&nbsp;&nbsp;background-color: red<br>}</code></pre> <pre><code>.some-class {
background-color: red;
}</code></pre>
</div> </div>
<!-- CODE EXAMPLE ———————————————————————————————————————— -->
<pre class="code-example">
<code class="code-example-body prettyprint"><pre><code>.some-class {
background-color: red;
}</code></pre>
<!-- Remember every whitespace and break will be preserved in a <pre>, including indentation in your code -->
</code>
</pre>
<!-- ————————————————————————————————————————————————————— -->
</div> </div>
<!-- Tables --> <!-- Tables -->
<div class="row docs-section"> <div class="row docs-section">
<h6 class="docs-header">Tables</h6> <h6 class="docs-header">Tables</h6>
<p>Only most basic styling for tabular data. Remember to always use a proper table structure  check the code example if you're not sure about it.</p> <p>Only super basic styling for tabular data. Using properly formed table markup with <code>&lt;thead&gt;</code> and <code>&lt;tbody&gt;</code> is important here.</p>
<div class="docs-example"> <div class="docs-example">
<table class="u-full-width"> <table class="u-full-width">
<thead> <thead>
@ -350,6 +429,39 @@
</tbody> </tbody>
</table> </table>
</div> </div>
<!-- CODE EXAMPLE ———————————————————————————————————————— -->
<pre class="code-example">
<code class="code-example-body prettyprint"><table class="u-full-width">
<thead>
<tr>
<th>Name</th>
<th>Age</th>
<th>Sex</th>
<th>Location</th>
</tr>
</thead>
<tbody>
<tr>
<td>Dave Gamache</td>
<td>26</td>
<td>Male</td>
<td>San Francisco</td>
</tr>
<tr>
<td>Dwayne Johnson</td>
<td>42</td>
<td>Male</td>
<td>Hayward</td>
</tr>
</tbody>
</table>
</code>
</pre>
<!-- ————————————————————————————————————————————————————— -->
</div> </div>
<!-- Queries --> <!-- Queries -->
@ -371,6 +483,51 @@
</ul> </ul>
</div> </div>
</div> </div>
<!-- CODE EXAMPLE ———————————————————————————————————————— -->
<pre class="code-example">
<code class="code-example-body prettyprint">/* Mobile first queries */
/* Larger than mobile */
@media (min-width: 400px) {}
/* Larger than phablet */
@media (min-width: 550px) {}
/* Larger than tablet */
@media (min-width: 750px) {}
/* Larger than desktop */
@media (min-width: 1000px) {}
/* Larger than Desktop HD */
@media (min-width: 1200px) {}
/* Desktop first queries */
/* Smaller than Desktop HD */
@media (max-width: 1199px) {}
/* Smaller than desktop */
@media (max-width: 999px) {}
/* Smaller than tablet */
@media (max-width: 749px) {}
/* Smaller than phablet */
@media (max-width: 549px) {}
/* Smaller than mobile */
@media (max-width: 399px) {}
/* Note: Values are 1px less on desktop first queries so there's no overriding in case you use both types of queries */
</code>
</pre>
<!-- ————————————————————————————————————————————————————— -->
</div> </div>
<!-- Examples --> <!-- Examples -->
@ -382,6 +539,7 @@
<div class="row docs-section"> <div class="row docs-section">
<h6 class="docs-header">License &amp; Log</h6> <h6 class="docs-header">License &amp; Log</h6>
<p>All parts of Skeleton are free to use and abuse under the <a href="http://opensource.org/licenses/mit-license.php">open-source MIT license</a>. More importantly, if you're into coding head over to the <a href="https://github.com/dhg/Skeleton">Github page</a> and contribute or fork this bad boy.</p> <p>All parts of Skeleton are free to use and abuse under the <a href="http://opensource.org/licenses/mit-license.php">open-source MIT license</a>. More importantly, if you're into coding head over to the <a href="https://github.com/dhg/Skeleton">Github page</a> and contribute or fork this bad boy.</p>
<p>Skeleton's version history is available <a href="#">on Github</a>.</p>
</div> </div>
<div class="code-toggler"> <div class="code-toggler">

View File

@ -53,6 +53,8 @@
} }
.code-example-body { .code-example-body {
white-space: pre; white-space: pre;
/*overflow: auto;*/
word-wrap: break-word
} }
.code-snippets-visible .code-example { .code-snippets-visible .code-example {
display: block; display: block;

View File

@ -185,7 +185,8 @@ select {
height: 36px; height: 36px;
padding: 0 10px; padding: 0 10px;
border-radius: 4px; border-radius: 4px;
box-shadow: none; } box-shadow: none;
background: #fff; }
textarea { textarea {
min-height: 65px; min-height: 65px;
padding-top: 6px; padding-top: 6px;
@ -249,7 +250,7 @@ code {
pre > code { pre > code {
display: block; display: block;
padding: 1rem 1.5rem; padding: 1rem 1.5rem;
white-space: normal; } white-space: pre; }
/* Tables /* Tables
@ -324,20 +325,21 @@ on small devices, paste the mobile query code up in the buttons secion and style
there. there.
*/ */
/* Larger than Desktop HD */
@media (min-width: 1200px) {}
/* Larger than desktop */ /* Larger than mobile */
@media (min-width: 1000px) {} @media (min-width: 400px) {}
/* Larger than tablet */
@media (min-width: 750px) {}
/* Larger than phablet */ /* Larger than phablet */
@media (min-width: 550px) {} @media (min-width: 550px) {}
/* Larger than mobile */ /* Larger than tablet */
@media (min-width: 400px) {} @media (min-width: 750px) {}
/* Larger than desktop */
@media (min-width: 1000px) {}
/* Larger than Desktop HD */
@media (min-width: 1200px) {}
/* Smaller than Desktop HD */ /* Smaller than Desktop HD */
@media (max-width: 1199px) {} @media (max-width: 1199px) {}