BigW Consortium Gitlab

Commit c516ed4e by Phil Hughes

updates to spacing & alignment

combine logo & wordmark mobile improvements
parent 6fb7fb5c
...@@ -98,6 +98,12 @@ header { ...@@ -98,6 +98,12 @@ header {
font-size: 14px; font-size: 14px;
} }
.fa-chevron-down {
position: relative;
top: -3px;
font-size: 10px;
}
svg { svg {
position: relative; position: relative;
top: 2px; top: 2px;
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
header.navbar-gitlab-new { header.navbar-gitlab-new {
color: $gray-normal; color: $gray-normal;
background-color: $purple-900; background-color: $purple-900;
border-bottom: 0;
.header-content { .header-content {
padding-left: 0; padding-left: 0;
...@@ -15,19 +16,37 @@ header.navbar-gitlab-new { ...@@ -15,19 +16,37 @@ header.navbar-gitlab-new {
} }
.title { .title {
padding-top: 14px; display: block;
padding-right: 9px; height: 100%;
padding-right: 0;
color: currentColor; color: currentColor;
@media (min-width: $screen-sm-min) { > a {
padding-right: $gl-padding; display: flex;
} align-items: center;
height: 100%;
padding-top: 3px;
padding-left: 9px;
padding-right: 9px;
margin-left: -9px;
border-bottom: 3px solid transparent;
@media (min-width: $screen-sm-min) {
padding-right: $gl-padding;
padding-left: $gl-padding;
margin-left: -16px;
}
svg {
margin-top: -3px;
margin-right: 10px;
}
a {
&:hover, &:hover,
&:focus { &:focus {
color: currentColor; color: currentColor;
text-decoration: none; text-decoration: none;
border-bottom-color: $white-light;
} }
} }
} }
...@@ -52,6 +71,20 @@ header.navbar-gitlab-new { ...@@ -52,6 +71,20 @@ header.navbar-gitlab-new {
.navbar-collapse { .navbar-collapse {
padding-left: 0; padding-left: 0;
color: $white-light; color: $white-light;
@media (max-width: $screen-xs-max) {
margin-left: -$gl-padding;
margin-right: -10px;
}
.nav {
> li:not(.hidden-xs) a {
@media (max-width: $screen-xs-max) {
margin-left: 0;
min-width: 100%;
}
}
}
} }
.container-fluid { .container-fluid {
...@@ -76,6 +109,12 @@ header.navbar-gitlab-new { ...@@ -76,6 +109,12 @@ header.navbar-gitlab-new {
@media (max-width: $screen-xs-max) { @media (max-width: $screen-xs-max) {
padding-right: 10px; padding-right: 10px;
} }
li {
.badge {
box-shadow: none;
}
}
} }
.nav > li > a { .nav > li > a {
...@@ -90,6 +129,12 @@ header.navbar-gitlab-new { ...@@ -90,6 +129,12 @@ header.navbar-gitlab-new {
> svg { > svg {
fill: $white-light; fill: $white-light;
} }
&.header-user-dropdown-toggle {
.header-user-avatar {
border: 0;
}
}
} }
} }
} }
...@@ -127,11 +172,14 @@ header.navbar-gitlab-new { ...@@ -127,11 +172,14 @@ header.navbar-gitlab-new {
} }
.dropdown-chevron { .dropdown-chevron {
position: relative;
top: -1px;
font-size: 10px; font-size: 10px;
} }
} }
.header-user .dropdown-menu-nav { .header-user .dropdown-menu-nav,
.header-new .dropdown-menu-nav {
margin-top: 4px; margin-top: 4px;
} }
...@@ -140,7 +188,8 @@ header.navbar-gitlab-new { ...@@ -140,7 +188,8 @@ header.navbar-gitlab-new {
border-color: $purple-800; border-color: $purple-800;
&:hover { &:hover {
border-color: rgba($white-light, .5); border-color: rgba($white-light, .6);
box-shadow: none;
} }
} }
...@@ -158,7 +207,7 @@ header.navbar-gitlab-new { ...@@ -158,7 +207,7 @@ header.navbar-gitlab-new {
} }
.search-input::placeholder { .search-input::placeholder {
color: $white-light; color: rgba($white-light, .6);
} }
.location-badge { .location-badge {
...@@ -166,9 +215,19 @@ header.navbar-gitlab-new { ...@@ -166,9 +215,19 @@ header.navbar-gitlab-new {
background-color: $purple-900; background-color: $purple-900;
} }
.search-input-wrap {
.search-icon {
color: rgba($white-light, .6);
}
}
&.search-active { &.search-active {
.search-input-wrap { .search-input-wrap {
i { .search-icon {
color: rgba($white-light, .6);
}
.clear-icon {
color: $white-light; color: $white-light;
} }
} }
......
...@@ -2,14 +2,12 @@ ...@@ -2,14 +2,12 @@
%a.sr-only.gl-accessibility{ href: "#content-body", tabindex: "1" } Skip to content %a.sr-only.gl-accessibility{ href: "#content-body", tabindex: "1" } Skip to content
.container-fluid .container-fluid
.header-content .header-content
.header-logo
= link_to root_path, class: 'home', title: 'Dashboard', id: 'logo' do
= brand_header_logo
.title-container .title-container
%h1.title %h1.title
= link_to root_path, title: 'Dashboard' do = link_to root_path, title: 'Dashboard' do
GitLab = brand_header_logo
%span.hidden-xs
GitLab
- if current_user - if current_user
= render "layouts/nav/new_dashboard" = render "layouts/nav/new_dashboard"
...@@ -58,7 +56,7 @@ ...@@ -58,7 +56,7 @@
%li.header-user.dropdown %li.header-user.dropdown
= link_to current_user, class: "header-user-dropdown-toggle", data: { toggle: "dropdown" } do = link_to current_user, class: "header-user-dropdown-toggle", data: { toggle: "dropdown" } do
= image_tag avatar_icon(current_user, 26), width: 26, height: 26, class: "header-user-avatar" = image_tag avatar_icon(current_user, 26), width: 26, height: 26, class: "header-user-avatar"
= icon('caret-down') = icon('chevron-down')
.dropdown-menu-nav.dropdown-menu-align-right .dropdown-menu-nav.dropdown-menu-align-right
%ul %ul
%li.current-user %li.current-user
......
%li.header-new.dropdown %li.header-new.dropdown
= link_to new_project_path, class: "header-new-dropdown-toggle has-tooltip", title: "New...", ref: 'tooltip', aria: { label: "New..." }, data: { toggle: 'dropdown', placement: 'bottom', container: 'body' } do = link_to new_project_path, class: "header-new-dropdown-toggle has-tooltip", title: "New...", ref: 'tooltip', aria: { label: "New..." }, data: { toggle: 'dropdown', placement: 'bottom', container: 'body' } do
= icon('plus fw') - if show_new_nav?
= icon('caret-down') = icon('plus')
= icon('chevron-down')
- else
= icon('plus fw')
= icon('caret-down')
.dropdown-menu-nav.dropdown-menu-align-right .dropdown-menu-nav.dropdown-menu-align-right
%ul %ul
- if @group - if @group
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment