From 67dcc8db83aa06a70315011a841409bb6e5900dc Mon Sep 17 00:00:00 2001 From: tauriedavis Date: Mon, 3 Oct 2016 16:22:41 -0700 Subject: [PATCH 1/3] update profile view --- app/assets/stylesheets/pages/profile.scss | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/pages/profile.scss b/app/assets/stylesheets/pages/profile.scss index 0fcdaf94a21..020ef5339d2 100644 --- a/app/assets/stylesheets/pages/profile.scss +++ b/app/assets/stylesheets/pages/profile.scss @@ -94,7 +94,7 @@ .profile-user-bio { // Limits the width of the user bio for readability. max-width: 600px; - margin: 15px auto 0; + margin: 10px auto 0; padding: 0 16px; } @@ -220,13 +220,9 @@ margin: 0 auto; .avatar-holder { width: 90px; - display: inline-block; + margin: 0 auto 10px; } .user-info { - display: inline-block; - text-align: left; - vertical-align: middle; - margin-left: 15px; .handle { color: $gl-gray-light; } From d1c1b41ffe0888bd7c88a26a59c4b1fa98709fd5 Mon Sep 17 00:00:00 2001 From: tauriedavis Date: Tue, 4 Oct 2016 16:42:47 -0700 Subject: [PATCH 2/3] add spaces and fix handle styles --- app/assets/stylesheets/pages/profile.scss | 12 ++++++++---- app/views/users/show.html.haml | 4 ++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/pages/profile.scss b/app/assets/stylesheets/pages/profile.scss index 020ef5339d2..efb90772214 100644 --- a/app/assets/stylesheets/pages/profile.scss +++ b/app/assets/stylesheets/pages/profile.scss @@ -213,25 +213,29 @@ } .user-profile { + .cover-controls a { margin-left: 5px; } + .profile-header { margin: 0 auto; + .avatar-holder { width: 90px; margin: 0 auto 10px; } + .user-info { - .handle { - color: $gl-gray-light; - } + .member-date { margin-bottom: 4px; } } } + @media (max-width: $screen-xs-max) { + .cover-block { padding-top: 20px; } @@ -255,7 +259,7 @@ } .user-profile-nav { - margin-top: 15px; + margin-top: 10px; } table.u2f-registrations { diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml index 60fc0c0daf6..520f2ab7e04 100644 --- a/app/views/users/show.html.haml +++ b/app/views/users/show.html.haml @@ -40,10 +40,10 @@ .user-info .cover-title = @user.name - %span.handle - @#{@user.username} .cover-desc.member-date + %span.middle-dot-divider + @#{@user.username} %span.middle-dot-divider Member since #{@user.created_at.to_s(:medium)} From 1845c33d711ca50bd7ef8d85b8aae5c0f016611c Mon Sep 17 00:00:00 2001 From: tauriedavis Date: Thu, 6 Oct 2016 10:20:44 -0700 Subject: [PATCH 3/3] spacing tweaks --- app/assets/stylesheets/pages/profile.scss | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/app/assets/stylesheets/pages/profile.scss b/app/assets/stylesheets/pages/profile.scss index efb90772214..c7eac5cf4b9 100644 --- a/app/assets/stylesheets/pages/profile.scss +++ b/app/assets/stylesheets/pages/profile.scss @@ -94,7 +94,7 @@ .profile-user-bio { // Limits the width of the user bio for readability. max-width: 600px; - margin: 10px auto 0; + margin: 10px auto; padding: 0 16px; } @@ -225,13 +225,6 @@ width: 90px; margin: 0 auto 10px; } - - .user-info { - - .member-date { - margin-bottom: 4px; - } - } } @media (max-width: $screen-xs-max) { @@ -258,10 +251,6 @@ } } -.user-profile-nav { - margin-top: 10px; -} - table.u2f-registrations { th:not(:last-child), td:not(:last-child) { border-right: solid 1px transparent;