diff --git a/prosopopee/themes/exposure/static/css/style.css b/prosopopee/themes/exposure/static/css/style.css index 9a5549c..8ca8e0b 100644 --- a/prosopopee/themes/exposure/static/css/style.css +++ b/prosopopee/themes/exposure/static/css/style.css @@ -553,13 +553,17 @@ nav ul ul ul li { /* END: navmenu */ /* START: polaroid-group */ +.polaroid-line { + width: 70vw; + margin: auto; +} + a.polaroid { display: block; padding: 10px 10px 25px 10px; border: 2px solid #BFBFBF; - /*background-color: white;*/ + background-color: white; z-index: 2; - font-size: 0.7em; /* Shadows around the box */ -webkit-box-shadow: 5px 5px 6px rgba(149,150,151,0.3); -moz-box-shadow: 5px 5px 6px rgba(149,150,151,0.3); @@ -571,23 +575,32 @@ a.polaroid { -ms-transition: width 1s, height 1s, -ms-transform 1s; -webkit-transition: width 1s, height 1s, -webkit-transform 1s; -o-transition: width 1s, height 1s,-o-transform 1s; - + text-align: center; } /* Remove rotation and make it visible (z-index) */ a.polaroid:hover, a.polaroid:focus, a.polaroid:active { - z-index: 100; - -webkit-transform: rotate(0deg); - -moz-transform: rotate(0deg); - -ms-transform: rotate(0deg); - transform: rotate(0deg); + z-index: 100 !important; + border-color: #BFBFBF; + -webkit-box-shadow: 5px 5px 6px rgba(149,150,151,0.3); /* Same as above */ + -moz-box-shadow: 5px 5px 6px rgba(149,150,151,0.3); + box-shadow: 5px 5px 6px rgba(149,150,151,0.3); + /* The "!important" keywords is needed to override higher preference of generated inline styling! */ + -webkit-transform: rotate(0deg) !important; /* Removes rotation through a transition */ + -moz-transform: rotate(0deg) !important; + -ms-transform: rotate(0deg) !important; + transform: rotate(0deg) !important; } a.polaroid img { border: none; display: block; + min-width: 10vw; + max-width: 100%; + max-height: 100%; + margin: auto; /* Centers wth display: block */ } /* END: polaroid-group */ diff --git a/prosopopee/themes/exposure/templates/sections/polariod-group.html b/prosopopee/themes/exposure/templates/sections/polaroid-group.html similarity index 72% rename from prosopopee/themes/exposure/templates/sections/polariod-group.html rename to prosopopee/themes/exposure/templates/sections/polaroid-group.html index c319b87..5ce2e37 100644 --- a/prosopopee/themes/exposure/templates/sections/polariod-group.html +++ b/prosopopee/themes/exposure/templates/sections/polaroid-group.html @@ -2,27 +2,35 @@