aboutsummaryrefslogtreecommitdiffstats
path: root/site/static/styles/scss/bootstrap/_thumbnails.scss
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@iot.bzh>2016-11-11 13:14:53 +0100
committerStephane Desneux <stephane.desneux@iot.bzh>2016-11-11 13:15:01 +0100
commit80d9194c56e4cecc3a00acd71033ca7ff35064cf (patch)
treee412cd48bd6a1017ea0ac6abd1b62b984b6ebb06 /site/static/styles/scss/bootstrap/_thumbnails.scss
parent777f9afc5f5a3d8ff90a8046314635404dcdcd99 (diff)
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 <stephane.desneux@iot.bzh>
Diffstat (limited to 'site/static/styles/scss/bootstrap/_thumbnails.scss')
-rw-r--r--site/static/styles/scss/bootstrap/_thumbnails.scss38
1 files changed, 38 insertions, 0 deletions
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;
+}