From 7b1ec6fc3dc5909dcf0b86d66ca0c89e2d5df6c0 Mon Sep 17 00:00:00 2001 From: joshua stein Date: Sun, 16 Sep 2012 15:05:48 -0500 Subject: [PATCH] some mobile css fixes --- app/assets/stylesheets/application.css | 9 ++++++++ app/assets/stylesheets/mobile.css | 32 ++++++++++++++++++++++++-- app/views/users/show.html.erb | 8 ++++--- 3 files changed, 44 insertions(+), 5 deletions(-) diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 2248d3c..c17ca3b 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -300,6 +300,15 @@ div#footer a { } +/* other specifics */ +div#user_about { + margin-left: 12em; +} + +div#gravatar { + float: right; +} + /* stories */ ol.stories, diff --git a/app/assets/stylesheets/mobile.css b/app/assets/stylesheets/mobile.css index 6997a5b..1950e4a 100644 --- a/app/assets/stylesheets/mobile.css +++ b/app/assets/stylesheets/mobile.css @@ -44,6 +44,14 @@ margin: 0 8px; } + ol.comments { + margin-left: 10px; + } + ol.comments1 { + margin-left: 0; + padding-left: 15px; + } + div.voters { width: 31px; margin-top: 0px; @@ -70,15 +78,35 @@ font-size: 10pt; } - div.box label { + div.box label, + div.boxline label { display: block; + width: 100% !important; + } + + div.boxline textarea, + div.boxline input[type="text"] { + max-width: 98%; } div#story_box input, + div#story_box button, div#story_box textarea, div#story_box #story_tags_a, - div#story_box div.markdown_help_toggler { + div.markdown_help_toggler { margin: 0 !important; width: 100% !important; } + + div#story_box #story_tags_a { + min-width: 305px !important; + } + + div#gravatar { + float: none; + } + + div#user_about { + margin-left: 0; + } } diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 539d4d5..6b2e630 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -6,7 +6,7 @@ <% end %> -
+
&s=100"> @@ -27,7 +27,9 @@ - <%= @showing_user.karma %> (average <%= number_with_precision(@showing_user.average_karma, :precision => 2) %>) + <%= @showing_user.karma %> + (average <%= number_with_precision(@showing_user.average_karma, + :precision => 2) %>)
@@ -47,7 +49,7 @@ -
+
<%= raw @showing_user.linkified_about %>