diff options
| author | Fabien Pinckaers <fp@tinyerp.com> | 2014-03-29 21:24:46 +0100 |
|---|---|---|
| committer | Fabien Pinckaers <fp@tinyerp.com> | 2014-03-29 21:24:46 +0100 |
| commit | 1c3835c83c9f8aeba2d2b89e71a09f3c860bd1c1 (patch) | |
| tree | 987981ee370b96991875b44a05411ec83919c4e9 /addons/website/data/bootstrap/thumbnails.less | |
| parent | 2478af1b16526c94e1c477127a9d7139522bb3ed (diff) | |
[IMP] bootstrap less sources
bzr revid: fp@tinyerp.com-20140329202446-tz8b2rvenc6s3ds5
Diffstat (limited to 'addons/website/data/bootstrap/thumbnails.less')
| -rw-r--r-- | addons/website/data/bootstrap/thumbnails.less | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/addons/website/data/bootstrap/thumbnails.less b/addons/website/data/bootstrap/thumbnails.less new file mode 100644 index 00000000000..c428920bc67 --- /dev/null +++ b/addons/website/data/bootstrap/thumbnails.less @@ -0,0 +1,36 @@ +// +// Thumbnails +// -------------------------------------------------- + + +// Mixin and adjust the regular image class +.thumbnail { + display: block; + padding: @thumbnail-padding; + margin-bottom: @line-height-computed; + line-height: @line-height-base; + background-color: @thumbnail-bg; + border: 1px solid @thumbnail-border; + border-radius: @thumbnail-border-radius; + .transition(all .2s ease-in-out); + + > img, + a > img { + &:extend(.img-responsive); + margin-left: auto; + margin-right: auto; + } + + // Add a hover state for linked versions only + a&:hover, + a&:focus, + a&.active { + border-color: @link-color; + } + + // Image captions + .caption { + padding: @thumbnail-caption-padding; + color: @thumbnail-caption-color; + } +} |
