diff options
| author | Chris Rebert <[email protected]> | 2013-11-05 16:20:53 -0800 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2013-11-05 16:20:53 -0800 |
| commit | b6a083e77fac4979cf901893fef7bd36fce19fd8 (patch) | |
| tree | 6e6dcf37a45e13a0c08d65dc0e613c3e120077ce | |
| parent | 13b96677bacf3de360a762d11ad0e0007f0710da (diff) | |
| parent | 3dc0ed35d1f07da48f2adbe585a6fd7dcf268c49 (diff) | |
| download | bootstrap-b6a083e77fac4979cf901893fef7bd36fce19fd8.tar.xz bootstrap-b6a083e77fac4979cf901893fef7bd36fce19fd8.zip | |
Merge pull request #11327 from ZDroid/nestnail
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; + } } |
