From 3c4f4e43f61e656b7f0c9ffa70670e0b69830e91 Mon Sep 17 00:00:00 2001 From: jeena Date: Wed, 17 Jul 2013 17:02:48 +0200 Subject: [PATCH 1/2] fixed height of cite --- public/style/main.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/public/style/main.css b/public/style/main.css index 2564099..379db8e 100644 --- a/public/style/main.css +++ b/public/style/main.css @@ -153,6 +153,7 @@ footer #social { color: white; font-size: 1em; padding: 0.5em; + margin: 0; } .box h2 a { @@ -160,6 +161,10 @@ footer #social { color: white; } +.box img { + vertical-align: middle; +} + .box.cite { background: #216f85; color: white; @@ -168,4 +173,6 @@ footer #social { font-style: italic; font-weight: bold; font-size: 1.9em; + height: 281px; + vertical-align: middle; } \ No newline at end of file From 1a35247fb73286ae444cb877d16cf4e7acb47ed0 Mon Sep 17 00:00:00 2001 From: jeena Date: Wed, 17 Jul 2013 17:34:33 +0200 Subject: [PATCH 2/2] fixed col2 css --- application/view/Page/post.phtml | 5 ++-- public/style/main.css | 40 +++++++++++++++++++++++++++++++- 2 files changed, 42 insertions(+), 3 deletions(-) diff --git a/application/view/Page/post.phtml b/application/view/Page/post.phtml index 9ba937d..60c19cd 100644 --- a/application/view/Page/post.phtml +++ b/application/view/Page/post.phtml @@ -1,8 +1,9 @@ header_image): ?> - -

title ?>

+title): ?> +

title ?>

+ subtitle): ?>

subtitle ?>

diff --git a/public/style/main.css b/public/style/main.css index 379db8e..f7d5966 100644 --- a/public/style/main.css +++ b/public/style/main.css @@ -146,6 +146,8 @@ footer #social { -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box; /* Opera/IE 8+ */ vertical-align: middle; + padding-bottom: 0.1em; + margin-bottom: 0.1em; } .box h2 { @@ -159,6 +161,7 @@ footer #social { .box h2 a { text-decoration: none; color: white; + display: block; } .box img { @@ -173,6 +176,41 @@ footer #social { font-style: italic; font-weight: bold; font-size: 1.9em; - height: 281px; + min-height: 281px; vertical-align: middle; +} + +.col2 { + border-top: 1em solid #993533; +} + +.col2 .text { + width: 33%; + vertical-align: top; + float: left; + -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ + -moz-box-sizing: border-box; /* Firefox, other Gecko */ + box-sizing: border-box; /* Opera/IE 8+ */ +} + +.col2 .image { + width: 66%; + vertical-align: top; + float: right; + -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ + -moz-box-sizing: border-box; /* Firefox, other Gecko */ + box-sizing: border-box; /* Opera/IE 8+ */ +} + +.col2.right .text { + float: right; +} + +.col2.right .image { + float: right; +} + +.col2 .image p:first-child { + margin-top: 0; + padding-top: 0; } \ No newline at end of file