diff options
| author | Jacob Thornton <[email protected]> | 2011-12-21 14:03:18 -0800 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2011-12-21 14:03:18 -0800 |
| commit | a5a98a8a984512011dac1216b432b86c6eff96a4 (patch) | |
| tree | 15d14c92a97a0179a0501d8457edc97008a18d91 /lib | |
| parent | 80cb760fac507ce207a6174f8886417d32d4b5ed (diff) | |
| parent | 069ef6a020dc177bbf4e18a9b425af36b3395ecf (diff) | |
| download | bootstrap-a5a98a8a984512011dac1216b432b86c6eff96a4.tar.xz bootstrap-a5a98a8a984512011dac1216b432b86c6eff96a4.zip | |
Merge branch '2.0-wip' of https://github.com/twitter/bootstrap into 2.0-wip
Conflicts:
bootstrap.css
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/forms.less | 6 | ||||
| -rw-r--r-- | lib/media-grids.less | 49 |
2 files changed, 33 insertions, 22 deletions
diff --git a/lib/forms.less b/lib/forms.less index 8d4369b18..a73e6f545 100644 --- a/lib/forms.less +++ b/lib/forms.less @@ -93,10 +93,14 @@ input[type=file] { line-height: @baseLineHeight * 1.5; } +// Chrome on Linux needs background color +select { + background-color: @white; +} + // Make multiple select elements height not fixed select[multiple] { height: inherit; - background-color: @white; // Fixes Chromium bug? } // Remove shadow from image inputs diff --git a/lib/media-grids.less b/lib/media-grids.less index 7ceade651..12626df3f 100644 --- a/lib/media-grids.less +++ b/lib/media-grids.less @@ -1,26 +1,33 @@ -// MEDIA GRIDS -// ----------- +// THUMBNAILS +// ---------- -.media-grid { +.thumbnails { margin-left: -20px; margin-bottom: 0; + list-style: none; .clearfix(); - li { - display: inline; - } - a { - 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)); - img { - display: block; - } - &:hover { - border-color: @linkColor; - .box-shadow(0 1px 4px rgba(0,105,214,.25)); - } - } +} +.thumbnails > li { + float: left; + margin: 0 0 20px 20px; +} +.thumbnail { + display: block; + line-height: 1; + border: 1px solid #ddd; + .border-radius(4px); + .box-shadow(0 1px 1px rgba(0,0,0,.075)); +} +// Add a hover state for linked versions only +a.thumbnail:hover { + border-color: @linkColor; + .box-shadow(0 1px 4px rgba(0,105,214,.25)); +} +// Images and captions +.thumbnail > img { + display: block; + margin: 4px; +} +.thumbnail .caption { + padding: 9px; } |
