diff options
| author | Zlatan Vasović <[email protected]> | 2013-11-01 22:09:01 +0100 |
|---|---|---|
| committer | Zlatan Vasović <[email protected]> | 2013-11-01 22:09:01 +0100 |
| commit | 3dc0ed35d1f07da48f2adbe585a6fd7dcf268c49 (patch) | |
| tree | 18638d738f74fe19205ace39552383cfda9fe176 | |
| parent | 99ffa2827874560dabfe532963b59f1e95b7a46a (diff) | |
| download | bootstrap-3dc0ed35d1f07da48f2adbe585a6fd7dcf268c49.tar.xz bootstrap-3dc0ed35d1f07da48f2adbe585a6fd7dcf268c49.zip | |
Use nesting for thumbnail styles
| -rw-r--r-- | less/thumbnails.less | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/less/thumbnails.less b/less/thumbnails.less index a09aa9b83..bc4178bbf 100644 --- a/less/thumbnails.less +++ b/less/thumbnails.less @@ -14,18 +14,17 @@ margin-left: auto; margin-right: auto; } -} - -// Add a hover state for linked versions only -a.thumbnail:hover, -a.thumbnail:focus, -a.thumbnail.active { - border-color: @link-color; -} + // Add a hover state for linked versions only + a&:hover, + a&:focus, + a&.active { + border-color: @link-color; + } -// Image captions -.thumbnail .caption { - padding: @thumbnail-caption-padding; - color: @thumbnail-caption-color; + // Image captions + .caption { + padding: @thumbnail-caption-padding; + color: @thumbnail-caption-color; + } } |
