From: Radek Czajka Date: Thu, 31 Oct 2013 10:40:44 +0000 (+0100) Subject: Stale css changes. X-Git-Url: https://git.mdrn.pl/prawokultury.git/commitdiff_plain/b2b5fe2fe17de8b00bc8f213172b3928f2f412b5?ds=sidebyside Stale css changes. --- diff --git a/prawokultury/static/css/base.css b/prawokultury/static/css/base.css index 9950fae..156fdda 100644 --- a/prawokultury/static/css/base.css +++ b/prawokultury/static/css/base.css @@ -1,6 +1,6 @@ @import url(http://fonts.googleapis.com/css?family=Lato:400,700,400italic); body { - font-family: 'Lato', sans-serif; + font-family: "Lato", sans-serif; font-size: .625em; background-color: #edece7; background-image: url("/static/img/bg.png"); @@ -20,7 +20,7 @@ img { border: 0; } h1 { - margin: 0 0 .5em 0; + margin: 0 0 0.5em 0; color: #01519a; font-size: 2em; } @@ -29,7 +29,7 @@ h2 { color: #01519a; } .warning { - border: 1px solid #ddd; + border: 1px solid #dddddd; padding: 1em; background: #ffd; font-size: 1.3em; } @@ -40,18 +40,23 @@ h2 { .normal { font-size: 1.3em; } +.entry-wrapped .gallery { + clear: both; } .entry-wrapped .gallery-item { float: left; width: 300px; text-align: center; margin-top: 2em; } + .entry-wrapped .gallery-item p { + min-height: 1.25em; } .entry-wrapped .gallery-image { height: 240px; width: 300px; display: table-cell; vertical-align: middle; } .entry-wrapped .gallery-image img { - margin: 0; } + margin: 0 auto; + display: block; } .questions li { margin-bottom: 1em; } diff --git a/prawokultury/static/css/base.scss b/prawokultury/static/css/base.scss index f0dd6cb..294c369 100644 --- a/prawokultury/static/css/base.scss +++ b/prawokultury/static/css/base.scss @@ -49,9 +49,10 @@ h2 { font-size: 1.3em; } .entry-wrapped { -.gallery-item{float:left; width:300px;text-align:center;margin-top:2em;} +.gallery{clear:both;} +.gallery-item{float:left; width:300px;text-align:center;margin-top:2em; p{min-height: 1.25em}} .gallery-image{height:240px; width:300px; display: table-cell; vertical-align:middle;} -.gallery-image img{margin: 0;} +.gallery-image img{margin: 0 auto;display:block;} }