Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Privacy
Imprint
Contact
Login methods
Sign in
Toggle navigation
Menu
Open sidebar
projects.thm.de
GitLab
Commits
6e559be6
Commit
6e559be6
authored
Feb 24, 2015
by
Dmitriy Zaporozhets
Browse files
Refactor header logo and setup expectation on it size
parent
1faf3676
Changes
7
Hide whitespace changes
Inline
Side-by-side
app/assets/images/logo-black.png
View replaced file @
1faf3676
View file @
6e559be6
2.55 KB
|
W:
|
H:
3.81 KB
|
W:
|
H:
2-up
Swipe
Onion skin
app/assets/images/logo-white.png
View replaced file @
1faf3676
View file @
6e559be6
7.16 KB
|
W:
|
H:
7.52 KB
|
W:
|
H:
2-up
Swipe
Onion skin
app/assets/stylesheets/sections/header.scss
View file @
6e559be6
...
...
@@ -100,18 +100,14 @@ header {
a
{
float
:
left
;
padding
:
0px
;
margin
:
0
6px
;
h1
{
margin
:
0
;
background
:
image-url
(
'logo-black.png'
)
no-repeat
center
center
;
background-size
:
32px
;
float
:
left
;
height
:
46px
;
width
:
40px
;
@include
header-font
;
text-indent
:
-9999px
;
padding
:
5px
0
;
height
:
46px
;
width
:
52px
;
text-align
:
center
;
img
{
width
:
36px
;
height
:
36px
;
}
}
&
:hover
{
...
...
app/assets/stylesheets/themes/dark-theme.scss
View file @
6e559be6
...
...
@@ -12,12 +12,6 @@
&
:hover
{
background-color
:
$color-darker
;
}
h1
{
background
:
image-url
(
'logo-white.png'
)
no-repeat
center
center
;
background-size
:
32px
;
color
:
#FFF
;
}
}
.app_logo
{
...
...
app/helpers/appearances_helper.rb
View file @
6e559be6
...
...
@@ -14,4 +14,12 @@ def brand_image
def
brand_text
nil
end
def
brand_header_logo
if
theme_type
==
'light_theme'
image_tag
'logo-black.png'
else
image_tag
'logo-white.png'
end
end
end
app/views/layouts/_head_panel.html.haml
View file @
6e559be6
...
...
@@ -3,7 +3,7 @@
.container
%div
.app_logo
=
link_to
root_path
,
class:
"home has_bottom_tooltip"
,
title:
"Dashboard"
do
%h1
GITLAB
=
brand_header_logo
%h1
.title
=
title
%button
.navbar-toggle
{
"data-target"
=>
".navbar-collapse"
,
"data-toggle"
=>
"collapse"
,
type:
"button"
}
...
...
app/views/layouts/_public_head_panel.html.haml
View file @
6e559be6
...
...
@@ -2,10 +2,8 @@
.navbar-inner
.container
%div
.app_logo
%span
.separator
=
link_to
explore_root_path
,
class:
"home"
do
%h1
GITLAB
%span
.separator
=
brand_header_logo
%h1
.title
=
title
%button
.navbar-toggle
{
"data-target"
=>
".navbar-collapse"
,
"data-toggle"
=>
"collapse"
,
type:
"button"
}
...
...
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