Commit 0392669cbc7686f54677362457cfc4e62a527414
1 parent
010a770b
Exists in
spb-stable
and in
3 other branches
Fix some css after bootstrap 3
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
11 changed files
with
31 additions
and
16 deletions
Show diff stats
app/assets/stylesheets/gitlab_bootstrap/common.scss
@@ -20,6 +20,7 @@ | @@ -20,6 +20,7 @@ | ||
20 | .append-right-10 { margin-right:10px } | 20 | .append-right-10 { margin-right:10px } |
21 | .append-right-20 { margin-right:20px } | 21 | .append-right-20 { margin-right:20px } |
22 | .append-bottom-10 { margin-bottom:10px } | 22 | .append-bottom-10 { margin-bottom:10px } |
23 | +.append-bottom-15 { margin-bottom:15px } | ||
23 | .append-bottom-20 { margin-bottom:20px } | 24 | .append-bottom-20 { margin-bottom:20px } |
24 | .inline { display: inline-block } | 25 | .inline { display: inline-block } |
25 | 26 | ||
@@ -129,3 +130,9 @@ pre.well-pre { | @@ -129,3 +130,9 @@ pre.well-pre { | ||
129 | .gl-hide { | 130 | .gl-hide { |
130 | display: none; | 131 | display: none; |
131 | } | 132 | } |
133 | + | ||
134 | +.breadcrumb > li + li:before { | ||
135 | + content: "/"; | ||
136 | + padding: 0; | ||
137 | + color: #666; | ||
138 | +} |
app/assets/stylesheets/gitlab_bootstrap/files.scss
app/assets/stylesheets/gitlab_bootstrap/mixins.scss
app/assets/stylesheets/gitlab_bootstrap/typography.scss
@@ -2,11 +2,6 @@ | @@ -2,11 +2,6 @@ | ||
2 | * Headers | 2 | * Headers |
3 | * | 3 | * |
4 | */ | 4 | */ |
5 | -h1, h2, h3, h4, h5, h6 { | ||
6 | - font-weight: 500; | ||
7 | - line-height: 1.1; | ||
8 | -} | ||
9 | - | ||
10 | h1.page-title { | 5 | h1.page-title { |
11 | @include page-title; | 6 | @include page-title; |
12 | font-size: 28px; | 7 | font-size: 28px; |
@@ -99,6 +94,7 @@ a:focus { | @@ -99,6 +94,7 @@ a:focus { | ||
99 | background: #f5f5f5; | 94 | background: #f5f5f5; |
100 | } | 95 | } |
101 | ul { | 96 | ul { |
97 | + padding: 0; | ||
102 | margin: 0 0 9px 25px !important; | 98 | margin: 0 0 9px 25px !important; |
103 | } | 99 | } |
104 | } | 100 | } |
app/assets/stylesheets/sections/header.scss
@@ -103,7 +103,6 @@ header { | @@ -103,7 +103,6 @@ header { | ||
103 | } | 103 | } |
104 | 104 | ||
105 | .search-input { | 105 | .search-input { |
106 | - width: 300px; | ||
107 | background-image: url("icon-search.png"); | 106 | background-image: url("icon-search.png"); |
108 | background-repeat: no-repeat; | 107 | background-repeat: no-repeat; |
109 | background-position: 10px; | 108 | background-position: 10px; |
@@ -115,9 +114,6 @@ header { | @@ -115,9 +114,6 @@ header { | ||
115 | border: 1px solid #c6c6c6; | 114 | border: 1px solid #c6c6c6; |
116 | box-shadow: none; | 115 | box-shadow: none; |
117 | @include transition(all 0.15s ease-in 0s); | 116 | @include transition(all 0.15s ease-in 0s); |
118 | - &:focus { | ||
119 | - width: 400px; | ||
120 | - } | ||
121 | } | 117 | } |
122 | } | 118 | } |
123 | 119 | ||
@@ -201,3 +197,18 @@ header { | @@ -201,3 +197,18 @@ header { | ||
201 | } | 197 | } |
202 | } | 198 | } |
203 | 199 | ||
200 | +.search .search-input { | ||
201 | + width: 300px; | ||
202 | + &:focus { | ||
203 | + width: 400px; | ||
204 | + } | ||
205 | +} | ||
206 | + | ||
207 | +@media (max-width: 1200px) { | ||
208 | + .search .search-input { | ||
209 | + width: 200px; | ||
210 | + &:focus { | ||
211 | + width: 300px; | ||
212 | + } | ||
213 | + } | ||
214 | +} |
app/assets/stylesheets/sections/tree.scss
app/assets/stylesheets/selects.scss
@@ -3,6 +3,7 @@ | @@ -3,6 +3,7 @@ | ||
3 | min-width: 100px; | 3 | min-width: 100px; |
4 | 4 | ||
5 | .chosen-single { | 5 | .chosen-single { |
6 | + height: 26px; | ||
6 | background: #EEE !important; | 7 | background: #EEE !important; |
7 | border: 1px solid #DDD !important; | 8 | border: 1px solid #DDD !important; |
8 | @include box-shadow(none !important); | 9 | @include box-shadow(none !important); |
app/views/projects/blob/_blob.html.haml
@@ -4,7 +4,6 @@ | @@ -4,7 +4,6 @@ | ||
4 | = link_to project_tree_path(@project, @ref) do | 4 | = link_to project_tree_path(@project, @ref) do |
5 | = @project.path | 5 | = @project.path |
6 | - tree_breadcrumbs(@tree, 6) do |title, path| | 6 | - tree_breadcrumbs(@tree, 6) do |title, path| |
7 | - \/ | ||
8 | %li | 7 | %li |
9 | - if path | 8 | - if path |
10 | - if path.end_with?(@path) | 9 | - if path.end_with?(@path) |
app/views/projects/commits/_head.html.haml
1 | -%ul.nav.nav-tabs | 1 | +%ul.nav.nav-tabs.append-bottom-15 |
2 | %li= render partial: 'shared/ref_switcher', locals: {destination: 'commits'} | 2 | %li= render partial: 'shared/ref_switcher', locals: {destination: 'commits'} |
3 | 3 | ||
4 | = nav_link(controller: [:commit, :commits]) do | 4 | = nav_link(controller: [:commit, :commits]) do |
app/views/projects/issues/_head.html.haml
app/views/projects/tree/_tree.html.haml
@@ -4,14 +4,12 @@ | @@ -4,14 +4,12 @@ | ||
4 | = link_to project_tree_path(@project, @ref) do | 4 | = link_to project_tree_path(@project, @ref) do |
5 | = @project.path | 5 | = @project.path |
6 | - tree_breadcrumbs(tree, 6) do |title, path| | 6 | - tree_breadcrumbs(tree, 6) do |title, path| |
7 | - \/ | ||
8 | %li | 7 | %li |
9 | - if path | 8 | - if path |
10 | = link_to truncate(title, length: 40), project_tree_path(@project, path) | 9 | = link_to truncate(title, length: 40), project_tree_path(@project, path) |
11 | - else | 10 | - else |
12 | = link_to title, '#' | 11 | = link_to title, '#' |
13 | - if @repository.branch_names.include?(@ref) | 12 | - if @repository.branch_names.include?(@ref) |
14 | - \/ | ||
15 | %li | 13 | %li |
16 | = link_to project_new_tree_path(@project, @id), title: 'New file', id: 'new-file-link' do | 14 | = link_to project_new_tree_path(@project, @id), title: 'New file', id: 'new-file-link' do |
17 | %small | 15 | %small |