Commit a7b7a2dd authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'ui-changes' into 'master'

UI changes

Set of UI fixes for side nav

See merge request !1352
parents b01c5d99 aa54482a
...@@ -207,26 +207,6 @@ li.note { ...@@ -207,26 +207,6 @@ li.note {
} }
} }
.no-ssh-key-message {
padding: 10px 0;
background: #C67;
margin: 0;
color: #FFF;
margin-top: -1px;
text-align: center;
a {
color: #fff;
text-decoration: underline;
}
.links-xs {
text-align: center;
font-size: 16px;
padding: 5px;
}
}
.warning_message { .warning_message {
border-left: 4px solid #ed9; border-left: 4px solid #ed9;
color: #b90; color: #b90;
...@@ -355,3 +335,9 @@ table { ...@@ -355,3 +335,9 @@ table {
.task-status { .task-status {
margin-left: 10px; margin-left: 10px;
} }
#nprogress .spinner {
top: auto !important;
bottom: 20px !important;
left: 20px !important;
}
...@@ -46,4 +46,4 @@ $deleted: #f77; ...@@ -46,4 +46,4 @@ $deleted: #f77;
/** /**
* NProgress customize * NProgress customize
*/ */
$nprogress-color: #3498db; $nprogress-color: #c0392b;
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
*/ */
header { header {
&.navbar-gitlab { &.navbar-gitlab {
z-index: 100;
margin-bottom: 0; margin-bottom: 0;
min-height: 40px; min-height: 40px;
border: none; border: none;
...@@ -82,8 +83,6 @@ header { ...@@ -82,8 +83,6 @@ header {
} }
} }
z-index: 10;
.container { .container {
width: 100% !important; width: 100% !important;
padding-left: 0px; padding-left: 0px;
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
} }
.sidebar-wrapper { .sidebar-wrapper {
z-index: 99;
overflow-y: auto; overflow-y: auto;
background: #F5F5F5; background: #F5F5F5;
} }
......
...@@ -5,8 +5,5 @@ ...@@ -5,8 +5,5 @@
= render "layouts/broadcast" = render "layouts/broadcast"
= render "layouts/head_panel", title: project_title(@project) = render "layouts/head_panel", title: project_title(@project)
= render "layouts/init_auto_complete" = render "layouts/init_auto_complete"
- if can?(current_user, :download_code, @project)
= render 'shared/no_ssh'
- @project_settings_nav = true - @project_settings_nav = true
= render 'layouts/page', sidebar: 'layouts/nav/project' = render 'layouts/page', sidebar: 'layouts/nav/project'
...@@ -5,6 +5,4 @@ ...@@ -5,6 +5,4 @@
= render "layouts/broadcast" = render "layouts/broadcast"
= render "layouts/head_panel", title: project_title(@project) = render "layouts/head_panel", title: project_title(@project)
= render "layouts/init_auto_complete" = render "layouts/init_auto_complete"
- if can?(current_user, :download_code, @project)
= render 'shared/no_ssh'
= render 'layouts/page', sidebar: 'layouts/nav/project' = render 'layouts/page', sidebar: 'layouts/nav/project'
- if current_user && can?(current_user, :download_code, @project)
= render 'shared/no_ssh'
= render "home_panel" = render "home_panel"
- readme = @repository.readme - readme = @repository.readme
......
- if cookies[:hide_no_ssh_message].blank? && current_user.require_ssh_key? && !current_user.hide_no_ssh_key - if cookies[:hide_no_ssh_message].blank? && current_user.require_ssh_key? && !current_user.hide_no_ssh_key
.no-ssh-key-message .no-ssh-key-message.alert.alert-warning.hidden-xs
.container You won't be able to pull or push project code via SSH until you #{link_to 'add an SSH key', new_profile_key_path} to your profile
You won't be able to pull or push project code via SSH until you #{link_to 'add an SSH key', new_profile_key_path} to your profile
.pull-right.hidden-xs .pull-right
= link_to "Don't show again", profile_path(user: {hide_no_ssh_key: true}), method: :put, class: 'hide-no-ssh-message', remote: true = link_to "Don't show again", profile_path(user: {hide_no_ssh_key: true}), method: :put
| |
= link_to 'Remind later', '#', class: 'hide-no-ssh-message' = link_to 'Remind later', '#', class: 'hide-no-ssh-message'
.links-xs.visible-xs
= link_to "Add key", new_profile_key_path
|
= link_to "Don't show again", profile_path(user: {hide_no_ssh_key: true}), method: :put, class: 'hide-no-ssh-message', remote: true
|
= link_to 'Later', '#', class: 'hide-no-ssh-message'
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