Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
2fa560d6
Commit
2fa560d6
authored
Aug 26, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Align header with content container
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
0276e903
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
67 additions
and
81 deletions
+67
-81
CHANGELOG
CHANGELOG
+1
-0
app/assets/stylesheets/generic/header.scss
app/assets/stylesheets/generic/header.scss
+6
-60
app/assets/stylesheets/generic/sidebar.scss
app/assets/stylesheets/generic/sidebar.scss
+43
-0
app/assets/stylesheets/themes/gitlab-theme.scss
app/assets/stylesheets/themes/gitlab-theme.scss
+11
-15
app/views/layouts/_page.html.haml
app/views/layouts/_page.html.haml
+5
-0
app/views/layouts/header/_default.html.haml
app/views/layouts/header/_default.html.haml
+1
-6
No files found.
CHANGELOG
View file @
2fa560d6
...
@@ -17,6 +17,7 @@ v 8.0.0 (unreleased)
...
@@ -17,6 +17,7 @@ v 8.0.0 (unreleased)
- Gracefully handle SMTP user input errors (e.g. incorrect email addresses) to prevent Sidekiq retries (Stan Hu)
- Gracefully handle SMTP user input errors (e.g. incorrect email addresses) to prevent Sidekiq retries (Stan Hu)
- Improve abuse reports management from admin area
- Improve abuse reports management from admin area
- Move dashboard activity to separate page
- Move dashboard activity to separate page
- Limit content width to 1200px for most of pages to improve readability on big screens
v 7.14.1 (unreleased)
v 7.14.1 (unreleased)
- Only include base URL in OmniAuth full_host parameter (Stan Hu)
- Only include base URL in OmniAuth full_host parameter (Stan Hu)
...
...
app/assets/stylesheets/generic/header.scss
View file @
2fa560d6
...
@@ -20,16 +20,16 @@ header {
...
@@ -20,16 +20,16 @@ header {
}
}
&
.navbar-gitlab
{
&
.navbar-gitlab
{
padding
:
0
20px
;
z-index
:
100
;
z-index
:
100
;
margin-bottom
:
0
;
margin-bottom
:
0
;
min-height
:
$header-height
;
min-height
:
$header-height
;
border
:
none
;
border
:
none
;
width
:
100%
;
border-bottom
:
1px
solid
#EEE
;
.container
{
.container
-fluid
{
background
:
#FFF
;
background
:
#FFF
;
width
:
100%
!
important
;
width
:
100%
!
important
;
padding
:
0
;
filter
:
none
;
filter
:
none
;
.nav
>
li
>
a
{
.nav
>
li
>
a
{
...
@@ -64,55 +64,11 @@ header {
...
@@ -64,55 +64,11 @@ header {
}
}
}
}
.header-logo
{
border-bottom
:
1px
solid
transparent
;
float
:
left
;
height
:
$header-height
;
width
:
$sidebar_width
;
overflow
:
hidden
;
transition-duration
:
.3s
;
a
{
float
:
left
;
height
:
$header-height
;
width
:
100%
;
padding
:
(
$header-height
-
36
)
/
2
8px
;
overflow
:
hidden
;
img
{
width
:
36px
;
height
:
36px
;
float
:
left
;
}
.gitlab-text-container
{
width
:
230px
;
h3
{
width
:
158px
;
float
:
left
;
margin
:
0
;
margin-left
:
14px
;
font-size
:
18px
;
line-height
:
$header-height
-
14
;
font-weight
:
normal
;
}
}
}
&
:hover
{
background-color
:
#EEE
;
}
}
.header-content
{
.header-content
{
border-bottom
:
1px
solid
#EEE
;
padding-right
:
35px
;
height
:
$header-height
;
height
:
$header-height
;
.title
{
.title
{
margin
:
0
;
margin
:
0
;
padding
:
0
15px
0
35px
;
overflow
:
hidden
;
overflow
:
hidden
;
font-size
:
18px
;
font-size
:
18px
;
line-height
:
$header-height
;
line-height
:
$header-height
;
...
@@ -168,15 +124,7 @@ header {
...
@@ -168,15 +124,7 @@ header {
}
}
@mixin
collapsed-header
{
@mixin
collapsed-header
{
.header-logo
{
margin-left
:
$sidebar_collapsed_width
;
width
:
$sidebar_collapsed_width
;
}
.header-content
{
.title
{
margin-left
:
30px
;
}
}
}
}
@media
(
max-width
:
$screen-md-max
)
{
@media
(
max-width
:
$screen-md-max
)
{
...
@@ -191,16 +139,14 @@ header {
...
@@ -191,16 +139,14 @@ header {
}
}
.header-expanded
{
.header-expanded
{
margin-left
:
$sidebar_width
;
}
}
}
}
@media
(
max-width
:
$screen-xs-max
)
{
@media
(
max-width
:
$screen-xs-max
)
{
header
.container
{
header
.container
-fluid
{
font-size
:
18px
;
font-size
:
18px
;
.title
{
}
.navbar-nav
{
.navbar-nav
{
margin
:
0px
;
margin
:
0px
;
float
:
none
!
important
;
float
:
none
!
important
;
...
...
app/assets/stylesheets/generic/sidebar.scss
View file @
2fa560d6
...
@@ -188,3 +188,46 @@
...
@@ -188,3 +188,46 @@
width
:
$sidebar_width
-
2
*
10px
;
width
:
$sidebar_width
-
2
*
10px
;
}
}
}
}
.sidebar-wrapper
{
.header-logo
{
border-bottom
:
1px
solid
transparent
;
float
:
left
;
height
:
$header-height
;
width
:
$sidebar_width
;
overflow
:
hidden
;
transition-duration
:
.3s
;
a
{
float
:
left
;
height
:
$header-height
;
width
:
100%
;
padding
:
(
$header-height
-
36
)
/
2
8px
;
overflow
:
hidden
;
img
{
width
:
36px
;
height
:
36px
;
float
:
left
;
}
.gitlab-text-container
{
width
:
230px
;
h3
{
width
:
158px
;
float
:
left
;
margin
:
0
;
margin-left
:
14px
;
font-size
:
18px
;
line-height
:
$header-height
-
14
;
font-weight
:
normal
;
}
}
}
&
:hover
{
background-color
:
#EEE
;
}
}
}
app/assets/stylesheets/themes/gitlab-theme.scss
View file @
2fa560d6
...
@@ -7,27 +7,23 @@
...
@@ -7,27 +7,23 @@
* $color-dark -
* $color-dark -
*/
*/
@mixin
gitlab-theme
(
$color-light
,
$color
,
$color-darker
,
$color-dark
)
{
@mixin
gitlab-theme
(
$color-light
,
$color
,
$color-darker
,
$color-dark
)
{
header
{
.page-with-sidebar
{
&
.navbar-gitlab
{
.header-logo
{
.header-logo
{
background-color
:
$color-darker
;
background-color
:
$color-darker
;
border-color
:
$color-darker
;
border-color
:
$color-darker
;
a
{
a
{
color
:
$color-light
;
color
:
$color-light
;
}
}
&
:hover
{
&
:hover
{
background-color
:
$color-dark
;
background-color
:
$color-dark
;
a
{
a
{
color
:
#FFF
;
color
:
#FFF
;
}
}
}
}
}
}
}
}
.page-with-sidebar
{
.collapse-nav
a
{
.collapse-nav
a
{
color
:
#FFF
;
color
:
#FFF
;
background
:
$color
;
background
:
$color
;
...
...
app/views/layouts/_page.html.haml
View file @
2fa560d6
.page-with-sidebar
{
class:
nav_sidebar_class
}
.page-with-sidebar
{
class:
nav_sidebar_class
}
=
render
"layouts/broadcast"
=
render
"layouts/broadcast"
.sidebar-wrapper.nicescroll
.sidebar-wrapper.nicescroll
.header-logo
=
link_to
root_path
,
class:
'home'
,
title:
'Dashboard'
,
id:
'js-shortcuts-home'
,
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
}
do
=
brand_header_logo
.gitlab-text-container
%h3
GitLab
-
if
defined?
(
sidebar
)
&&
sidebar
-
if
defined?
(
sidebar
)
&&
sidebar
=
render
"layouts/nav/
#{
sidebar
}
"
=
render
"layouts/nav/
#{
sidebar
}
"
-
elsif
current_user
-
elsif
current_user
...
...
app/views/layouts/header/_default.html.haml
View file @
2fa560d6
%header
.navbar.navbar-fixed-top.navbar-gitlab
{
class:
nav_header_class
}
%header
.navbar.navbar-fixed-top.navbar-gitlab
{
class:
nav_header_class
}
.container
%div
{
class:
fluid_layout
?
"container-fluid"
:
"container-fluid container-limited"
}
.header-logo
=
link_to
root_path
,
class:
'home'
,
title:
'Dashboard'
,
id:
'js-shortcuts-home'
,
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
}
do
=
brand_header_logo
.gitlab-text-container
%h3
GitLab
.header-content
.header-content
%button
.navbar-toggle
{
type:
'button'
}
%button
.navbar-toggle
{
type:
'button'
}
%span
.sr-only
Toggle navigation
%span
.sr-only
Toggle navigation
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment