From 17c4b9a1bf55ad550d63bbef5097602886bb26cf Mon Sep 17 00:00:00 2001 From: devin Date: Tue, 21 Aug 2012 16:32:55 +0800 Subject: [PATCH] gallery update --- .../app/assets/stylesheets/gallery.css | 43 +++++++++++++------ 1 file changed, 31 insertions(+), 12 deletions(-) diff --git a/vendor/built_in_modules/gallery/app/assets/stylesheets/gallery.css b/vendor/built_in_modules/gallery/app/assets/stylesheets/gallery.css index 88e106b9d..eb0aed1c4 100755 --- a/vendor/built_in_modules/gallery/app/assets/stylesheets/gallery.css +++ b/vendor/built_in_modules/gallery/app/assets/stylesheets/gallery.css @@ -43,10 +43,17 @@ .rgalbum, .rgphoto { float: left; margin: 0 10px 24px 0; } .rgalbum { padding: 16px; - margin: 0; - border-right: solid 1px #ccc; - border-bottom: solid 1px #ccc; + margin: 0 8px 8px 0; + border: solid 1px #ccc; height: 180px; + border-radius: 4px; + + transition: all 0.3s ease; + -webkit-transition: all 0.3s ease; + -moz-transition: all 0.3s ease; +} +.rgalbum:hover { + box-shadow: 0 0 6px rgba(0,0,0,0.2); } .rgalbum img { transition: all, 0.5s ease; @@ -55,15 +62,26 @@ -ms-transition: all, 0.5s ease; } .rgphoto { } -.rgphoto img, .rgphoto_edit img { - display: block; +.rgphoto a { + display: block; + padding: 4px; + border: solid 1px #ddd; + background-color: #fff; + border-radius: 4px; + transition: all, 0.3s ease; + -webkit-transition: all, 0.3s ease; + -moz-transition: all, 0.3s ease; +} +.rgphoto a:hover { + border-color: #999; + box-shadow: 0 3px 6px rgba(0,0,0,0.2); +} +.rgphoto img, .rgphoto_edit img { + display: block; + border-radius: 3px; transition: all, 0.3s ease; -webkit-transition: all, 0.3s ease; -moz-transition: all, 0.3s ease; - -ms-transition: all, 0.3s ease; - } -.rgphoto a:hover img { - border-color: #666; } .rgalbum .albumname { font-size: 15px; @@ -543,13 +561,14 @@ } #orbit_gallery .form-actions { background-color: whiteSmoke; } -.o_album .rgbody { - margin: 10px 8px; -} .o_gallery .tagnames { display: inline-block; } .o_gallery .label-tags { display: inline-block; margin: 0 6px 6px 0; +} + +.o_gallery .rgbody, .o_album .rgbody { + padding: 10px 8px; } \ No newline at end of file