From bcc5f635ba99602f3645c86c4515b73199c603a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Wed, 3 Sep 2014 19:13:45 +0200 Subject: [PATCH] Description column in programs/view is now stretched --- www/css/styles.css | 37 +++++++++++++++++++++++++++ www/protected/views/programs/view.php | 2 +- 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/www/css/styles.css b/www/css/styles.css index 855646d..e3ded54 100644 --- a/www/css/styles.css +++ b/www/css/styles.css @@ -560,6 +560,43 @@ ul.nav li.dropdown-append:hover > ul.dropdown-menu { /* programs/view -------------------------------------------------- */ +.progview_container { + width: 100%; +} + +.progview_container > .row { + display:table; + border-spacing:0; + margin-left: 0; + + width: 100%; + + margin-right: auto; + margin-left: auto; +} + +.progview_container > .row > [class*="span"] { + display:table-cell; + + float: none; + vertical-align: top; + + padding-left: 15px; + padding-right: 15px; +} + +.progview_container > .row > .span3 { + width: 270px; +} + +.progview_container > .row > .span6 { + width: auto; +} + +.progview_container > .row > .span3 .progview_image { + width: 232px; +} + .progview_image { border-radius: 6px; margin-bottom: 15px; diff --git a/www/protected/views/programs/view.php b/www/protected/views/programs/view.php index 66405c3..86648b3 100644 --- a/www/protected/views/programs/view.php +++ b/www/protected/views/programs/view.php @@ -19,7 +19,7 @@ if (!$model->visible && Yii::app()->user->name != 'admin') { } ?> -
+
enabled) echo TbHtml::alert(TbHtml::ALERT_COLOR_WARNING, TbHtml::b('Warning!') . ' This programm is for normal users disabled'); ?> visible) echo TbHtml::alert(TbHtml::ALERT_COLOR_WARNING, TbHtml::b('Warning!') . ' This programm is for normal users invisible'); ?>