From faacb7853478704a37655361c23abffdfd47db6f Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 3 Feb 2016 02:01:33 +0100 Subject: Tried to align form input vertically with other elements for top nav Signed-off-by: Dmitriy Zaporozhets --- app/assets/stylesheets/framework/nav.scss | 8 +++----- app/views/dashboard/_projects_head.html.haml | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/framework/nav.scss b/app/assets/stylesheets/framework/nav.scss index 6410656847f..252f84a6b48 100644 --- a/app/assets/stylesheets/framework/nav.scss +++ b/app/assets/stylesheets/framework/nav.scss @@ -84,11 +84,13 @@ > .btn { display: inline-block; margin-left: 10px; - margin-top: -3px; } input { + height: 34px; display: inline-block; + position: relative; + top: 1px; /* Medium devices (desktops, 992px and up) */ @media (min-width: $screen-md-min) { width: 200px; } @@ -105,10 +107,6 @@ } } - .dropdown-toggle.btn { - margin-top: -3px; - } - /* Hide on extra small devices (phones) */ @media (max-width: $screen-xs-max) { display: none; diff --git a/app/views/dashboard/_projects_head.html.haml b/app/views/dashboard/_projects_head.html.haml index b6301f2238f..726f669b1d2 100644 --- a/app/views/dashboard/_projects_head.html.haml +++ b/app/views/dashboard/_projects_head.html.haml @@ -8,7 +8,7 @@ = nav_link(page: starred_dashboard_projects_path) do = link_to starred_dashboard_projects_path, title: 'Starred Projects', data: {placement: 'right'} do Starred Projects - = nav_link(page: [explore_root_path, trending_explore_projects_path, starred_explore_projects_path, explore_projects_path], html_options: { class: 'hidden-xs' }) do + = nav_link(page: [explore_root_path, trending_explore_projects_path, starred_explore_projects_path, explore_projects_path]) do = link_to explore_root_path, title: 'Explore', data: {placement: 'right'} do Explore Projects -- cgit v1.2.1