From 40693f261838136499b11c728e5389815e3ee322 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 10 Sep 2011 22:31:43 -0700 Subject: [PATCH] adding media grid styles --- bootstrap-1.3.0.css | 29 +++++++++++++++++++++- bootstrap-1.3.0.min.css | 3 +++ docs/index.html | 53 ++++++++++++++++++++++++++++++++++++++--- lib/patterns.less | 28 +++++++++++++++++++++- 4 files changed, 108 insertions(+), 5 deletions(-) diff --git a/bootstrap-1.3.0.css b/bootstrap-1.3.0.css index 8948246882..8983090f6b 100644 --- a/bootstrap-1.3.0.css +++ b/bootstrap-1.3.0.css @@ -6,7 +6,7 @@ * http://www.apache.org/licenses/LICENSE-2.0 * * 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 * 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 { .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; +} diff --git a/bootstrap-1.3.0.min.css b/bootstrap-1.3.0.min.css index 01b5fc78a2..9d10e4b231 100644 --- a/bootstrap-1.3.0.min.css +++ b/bootstrap-1.3.0.min.css @@ -305,3 +305,6 @@ button.btn::-moz-focus-inner,input[type=submit].btn::-moz-focus-inner{padding:0; .label.warning{background-color:#f89406;} .label.success{background-color:#46a546;} .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;} diff --git a/docs/index.html b/docs/index.html index 5fe2229458..4764edfb52 100644 --- a/docs/index.html +++ b/docs/index.html @@ -42,11 +42,12 @@

Bootstrap