# HG changeset patch # User rougeronj # Date 1436352517 -7200 # Node ID 4a79d51d0b50e70b22f6da84931076b269e26400 # Parent a8231241f50d6dd7b5b1a7434734bd625a86c33e add media queries to adapt the galleries and the gallery items looks diff -r a8231241f50d -r 4a79d51d0b50 client/app/app.css --- a/client/app/app.css Fri Jun 19 12:45:04 2015 +0200 +++ b/client/app/app.css Wed Jul 08 12:48:37 2015 +0200 @@ -4,10 +4,15 @@ .ammico-content { max-width: 1170px; - min-width: 970px; } -@media(max-width:991px){ +@media (min-width: 768px) and (max-width:991px){ + .navbar-form.search{ + width: 200px; + } + .navbar-form.search input{ + width: 100%; + } .navbar > .container{ width: 100%; } diff -r a8231241f50d -r 4a79d51d0b50 client/app/books/book.css --- a/client/app/books/book.css Fri Jun 19 12:45:04 2015 +0200 +++ b/client/app/books/book.css Wed Jul 08 12:48:37 2015 +0200 @@ -4,7 +4,7 @@ .gallery .item { position:relative; - height: 200px; + height: 130px; width: 18%; padding: 0; margin: 1%; @@ -12,8 +12,32 @@ overflow: hidden; } +.gallery .item.no-img p { + font-size: 22px; + position: relative; + top: 50%; + transform: translateY(-50%); +} + +@media (min-width:768px) and (max-width:991px){ + .gallery .item{ + height: 170px; + } + .gallery .item.no-img p { + font-size: 28px; + } +} +@media (min-width:992px){ + .gallery .item{ + height: 200px; + } + .gallery .item.no-img p { + font-size: 32px; + } +} + .gallery .item.no-img { - background-color: #dddddd; + background-color: #f4f4f4; border: 1px solid #cdcdcd; } @@ -26,12 +50,10 @@ background-color: rgba(255, 255, 255, 0.7); bottom: 0; margin: 0; -} +} -.gallery .item.no-img p { - font-size: 38px; - height: 173px; - padding-top: 25px; +.gallery .item.no-img p{ + background: none; } .gallery .item img { @@ -62,6 +84,11 @@ cursor: pointer; } + +.gallery .item.no-img .gallery-buttons{ + background: none; +} + .subtitle { border-top: 1px solid #000; border-bottom: 1px dotted #000; diff -r a8231241f50d -r 4a79d51d0b50 client/app/index.html --- a/client/app/index.html Fri Jun 19 12:45:04 2015 +0200 +++ b/client/app/index.html Wed Jul 08 12:48:37 2015 +0200 @@ -31,7 +31,6 @@