Commit 68865002 authored by Jacob Thornton's avatar Jacob Thornton

Merge branch '1.3-wip' of github.com:twitter/bootstrap into 1.3-wip

parents 26551177 3755ee15
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Designed and built with all the love in the world @twitter by @mdo and @fat. * Designed and built with all the love in the world @twitter by @mdo and @fat.
* Date: Sat Sep 10 21:06:02 PDT 2011 * Date: Sat Sep 10 22:27:15 PDT 2011
*/ */
/* Reset.less /* Reset.less
* Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc). * Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
...@@ -2235,3 +2235,30 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner { ...@@ -2235,3 +2235,30 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner {
.label.notice { .label.notice {
background-color: #62cffc; background-color: #62cffc;
} }
.media-grid {
margin-left: -20px;
}
.media-grid li {
display: inline;
}
.media-grid .thumbnail {
float: left;
padding: 4px;
margin: 0 0 20px 20px;
border: 1px solid #ddd;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075);
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075);
}
.media-grid .thumbnail:hover {
border-color: #0069d6;
-webkit-box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25);
-moz-box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25);
box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25);
}
.media-grid img {
display: block;
}
...@@ -305,3 +305,6 @@ button.btn::-moz-focus-inner,input[type=submit].btn::-moz-focus-inner{padding:0; ...@@ -305,3 +305,6 @@ button.btn::-moz-focus-inner,input[type=submit].btn::-moz-focus-inner{padding:0;
.label.warning{background-color:#f89406;} .label.warning{background-color:#f89406;}
.label.success{background-color:#46a546;} .label.success{background-color:#46a546;}
.label.notice{background-color:#62cffc;} .label.notice{background-color:#62cffc;}
.media-grid{margin-left:-20px;}.media-grid li{display:inline;}
.media-grid .thumbnail{float:left;padding:4px;margin:0 0 20px 20px;border:1px solid #ddd;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0, 0, 0, 0.075);-moz-box-shadow:0 1px 1px rgba(0, 0, 0, 0.075);box-shadow:0 1px 1px rgba(0, 0, 0, 0.075);}.media-grid .thumbnail:hover{border-color:#0069d6;-webkit-box-shadow:0 1px 4px rgba(0, 105, 214, 0.25);-moz-box-shadow:0 1px 4px rgba(0, 105, 214, 0.25);box-shadow:0 1px 4px rgba(0, 105, 214, 0.25);}
.media-grid img{display:block;}
...@@ -42,11 +42,12 @@ ...@@ -42,11 +42,12 @@
<div class="container"> <div class="container">
<h3><a href="#">Bootstrap</a></h3> <h3><a href="#">Bootstrap</a></h3>
<ul class="nav"> <ul class="nav">
<li class="active"><a href="#masthead">Overview</a></li> <li class="active"><a href="#overview">Overview</a></li>
<li><a href="#about">About</a></li> <li><a href="#about">About</a></li>
<li><a href="#grid-system">Grid</a></li> <li><a href="#grid-system">Grid</a></li>
<li><a href="#layouts">Layouts</a></li> <li><a href="#layouts">Layouts</a></li>
<li><a href="#typography">Typography</a></li> <li><a href="#typography">Type</a></li>
<li><a href="#media">Media</a></li>
<li><a href="#tables">Tables</a></li> <li><a href="#tables">Tables</a></li>
<li><a href="#forms">Forms</a></li> <li><a href="#forms">Forms</a></li>
<li><a href="#navigation">Navigation</a></li> <li><a href="#navigation">Navigation</a></li>
...@@ -61,7 +62,7 @@ ...@@ -61,7 +62,7 @@
<!-- Masthead (blueprinty thing) <!-- Masthead (blueprinty thing)
================================================== --> ================================================== -->
<header class="jumbotron masthead"> <header class="jumbotron masthead" id="overview">
<div class="inner"> <div class="inner">
<div class="container"> <div class="container">
<h1>Bootstrap, from Twitter</h1> <h1>Bootstrap, from Twitter</h1>
...@@ -698,6 +699,52 @@ ...@@ -698,6 +699,52 @@
<!-- Media
================================================== -->
<section id="media">
<div class="page-header">
<h1>Media <small>Displaying images and videos</small></h1>
</div>
<!-- Table structure -->
<div class="row">
<div class="span4">
<h2>Media grid</h2>
<p>Display thumbnails of varying sizes on pages with a low HTML footprint and minimal styles.</p>
</div>
<div class="span12">
<ul class="media-grid">
<li>
<a class="thumbnail" href="#">
<img src="http://placehold.it/210x150" alt="">
</a>
</li>
<li>
<a class="thumbnail" href="#">
<img src="http://placehold.it/210x150" alt="">
</a>
</li>
<li>
<a class="thumbnail" href="#">
<img src="http://placehold.it/210x150" alt="">
</a>
</li>
<li>
<a class="thumbnail" href="#">
<img src="http://placehold.it/210x150" alt="">
</a>
</li>
<li>
<a class="thumbnail" href="#">
<img src="http://placehold.it/210x150" alt="">
</a>
</li>
</ul>
</div>
</div><!-- /row -->
</section>
<!-- Tables <!-- Tables
================================================== --> ================================================== -->
<section id="tables"> <section id="tables">
......
...@@ -928,4 +928,30 @@ input[type=submit].btn { ...@@ -928,4 +928,30 @@ input[type=submit].btn {
&.warning { background-color: @orange; } &.warning { background-color: @orange; }
&.success { background-color: @green; } &.success { background-color: @green; }
&.notice { background-color: lighten(@blue, 25%); } &.notice { background-color: lighten(@blue, 25%); }
} }
\ No newline at end of file
// MEDIA GRIDS
// -----------
.media-grid {
margin-left: -20px;
li {
display: inline;
}
.thumbnail {
float: left;
padding: 4px;
margin: 0 0 20px 20px;
border: 1px solid #ddd;
.border-radius(4px);
.box-shadow(0 1px 1px rgba(0,0,0,.075));
&:hover {
border-color: @linkColor;
.box-shadow(0 1px 4px rgba(0,105,214,.25));
}
}
img {
display: block;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment