Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Houtan Bastani
website
Commits
c1fa75bd
Commit
c1fa75bd
authored
Oct 18, 2018
by
Houtan Bastani
Browse files
set logo as div background
parent
e75c80ca
Changes
2
Show whitespace changes
Inline
Side-by-side
_includes/masthead.html
View file @
c1fa75bd
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
<div
class=
"masthead__inner-wrap"
>
<div
class=
"masthead__inner-wrap"
>
<div
class=
"masthead__menu"
>
<div
class=
"masthead__menu"
>
<nav
id=
"site-nav"
class=
"greedy-nav"
>
<nav
id=
"site-nav"
class=
"greedy-nav"
>
<a
class=
"dynare_masthead_home_img"
href=
"{{ '/' | relative_url }}"
><img
src=
"/assets/images/logo/dlogo.svg"
alt=
"Dynare"
width=
"150px"
onmouseover=
"this.src='/assets/images/logo/dlogo_hover.svg';"
onmouseout=
"this.src='/assets/images/logo/dlogo.svg';"
/></a>
<div
class=
"dynare_masthead_image_container_load_hover"
></div>
<div
class=
"dynare_masthead_image_container"
onclick=
"location.href='{{ '/' | relative_url }}'"
></div>
<ul
class=
"visible-links"
id=
"dynare_masthead_ul"
>
<ul
class=
"visible-links"
id=
"dynare_masthead_ul"
>
{%- for link in site.data.navigation.main -%}
{%- for link in site.data.navigation.main -%}
{%- if link.url contains '://' -%}
{%- if link.url contains '://' -%}
...
...
_sass/dynare.scss
View file @
c1fa75bd
...
@@ -543,3 +543,24 @@ ul.resources {
...
@@ -543,3 +543,24 @@ ul.resources {
flex
:
100%
;
flex
:
100%
;
}
}
}
}
.dynare_masthead_image_container
{
background-image
:
url(/assets/images/logo/dlogo.svg)
;
background-repeat
:
no-repeat
;
background-size
:
150px
;
width
:
150px
;
height
:
65px
;
margin
:
auto
;
}
.dynare_masthead_image_container
:hover
{
background-image
:
url(/assets/images/logo/dlogo_hover.svg)
;
cursor
:
pointer
;
}
.dynare_masthead_image_container_load_hover
{
background-image
:
url(/assets/images/logo/dlogo_hover.svg)
;
background-size
:
150px
;
background-position
:
-9999px
-9999px
;
background-repeat
:
no-repeat
;
}
Write
Preview
Supports
Markdown
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