From 80d9194c56e4cecc3a00acd71033ca7ff35064cf Mon Sep 17 00:00:00 2001 From: Stephane Desneux Date: Fri, 11 Nov 2016 13:14:53 +0100 Subject: webdocs-agl: upgrade bootstrap to 3.3.7 Using the bootstrap-sass version available at: https://github.com/twbs/bootstrap-sass/archive/v3.3.7.tar.gz Change-Id: I04dbedda13f6ab6987d4b61afd10bbd60dfb70e6 Signed-off-by: Stephane Desneux --- site/static/styles/scss/bootstrap/_thumbnails.scss | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 site/static/styles/scss/bootstrap/_thumbnails.scss (limited to 'site/static/styles/scss/bootstrap/_thumbnails.scss') diff --git a/site/static/styles/scss/bootstrap/_thumbnails.scss b/site/static/styles/scss/bootstrap/_thumbnails.scss new file mode 100644 index 0000000..da0e1e7 --- /dev/null +++ b/site/static/styles/scss/bootstrap/_thumbnails.scss @@ -0,0 +1,38 @@ +// +// 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; + @include transition(border .2s ease-in-out); + + > img, + a > img { + @include img-responsive; + margin-left: auto; + margin-right: auto; + } + + // [converter] extracted a&:hover, a&:focus, a&.active to a.thumbnail:hover, a.thumbnail:focus, a.thumbnail.active + + // Image captions + .caption { + padding: $thumbnail-caption-padding; + color: $thumbnail-caption-color; + } +} + +// Add a hover state for linked versions only +a.thumbnail:hover, +a.thumbnail:focus, +a.thumbnail.active { + border-color: $link-color; +} -- cgit 1.2.3-korg