From 3edfbb42a11c5493d9fdfa19e2dd9073aff25b39 Mon Sep 17 00:00:00 2001 From: Andreas N Date: Sun, 18 Jan 2015 00:16:06 +0100 Subject: [PATCH] add design stuff for header display --- app/assets/stylesheets/scss/user.scss | 14 +++++++++++++- app/views/user/show.html.haml | 2 ++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/scss/user.scss b/app/assets/stylesheets/scss/user.scss index 55101e25..23829370 100644 --- a/app/assets/stylesheets/scss/user.scss +++ b/app/assets/stylesheets/scss/user.scss @@ -53,7 +53,7 @@ position: absolute; z-index: 0; width: 100%; - height: 40vh; + height: 300px; background-color: darken($navbar-inverse-bg, 10%); background-size: cover; } @@ -124,4 +124,16 @@ .user--banned { text-decoration: line-through !important; +} + +.profile--panel-push-50 { + display: block; + height: 50px; + width: 100%; +} + +.profile--panel-push-200 { + display: block; + height: 180px; + width: 100%; } \ No newline at end of file diff --git a/app/views/user/show.html.haml b/app/views/user/show.html.haml index 087ecc93..446f4548 100644 --- a/app/views/user/show.html.haml +++ b/app/views/user/show.html.haml @@ -1,9 +1,11 @@ .profile--header .container.j2-page .col-md-3.col-xs-12.col-sm-4 + .profile--panel-push-50.hidden-xs = render 'user/profile_info' .hidden-xs= render 'shared/links' .col-md-9.col-xs-12.col-sm-8 + .profile--panel-push-200.hidden-xs = render 'shared/questionbox' #answers - @answers.each do |a|