Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
valencia
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
9
Issues
9
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
Gruppo Web
valencia
Commits
ff4d419a
Commit
ff4d419a
authored
May 03, 2014
by
Mattia Migliorini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Style secondary navbar. Add sitename on primary navbar
parent
28bbc76d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
3 deletions
+71
-3
css/style.css
css/style.css
+1
-1
sass/style.scss
sass/style.scss
+54
-0
tpl/page.tpl.php
tpl/page.tpl.php
+16
-2
No files found.
css/style.css
View file @
ff4d419a
@import
url(http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,400italic)
;
.logo
{
position
:
absolute
;
top
:
0
;
left
:
0
;
z-index
:
10
}
body
.toolbar
.logo
{
top
:
30px
}
@import
url(http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,400italic)
;
.logo
{
position
:
absolute
;
top
:
0
;
left
:
0
;
z-index
:
10
}
body
.toolbar
.logo
{
top
:
30px
}
header
.banner
{
margin-bottom
:
0
}
header
.banner.inverse
{
background
:
#f7f7f7
;
margin-bottom
:
20px
;
margin-top
:
-3px
}
header
.banner.inverse
.nav-primary
ul
{
border-color
:
#fff
}
header
.banner.inverse
.nav-primary
ul
li
,
header
.banner.inverse
.nav-primary
ul
li
:last-child
{
border-color
:
#eaeaea
}
header
.banner.inverse
.nav-primary
ul
li
a
:link
,
header
.banner.inverse
.nav-primary
ul
li
a
:visited
{
border-color
:
#fff
;
color
:
#978e83
}
header
.banner.inverse
.nav-primary
ul
li
a
:hover
{
background
:
#eaeaea
;
color
:
#454545
}
header
.banner.inverse
.nav-primary
a
.active
,
header
.banner.inverse
.nav-primary
a
:active
{
border-color
:
#eaeaea
;
background
:
#eaeaea
}
header
.banner
.site-name
{
float
:
right
}
header
.banner
.site-name
.logo-ubuntuit
{
font-size
:
36px
;
line-height
:
48px
;
margin-bottom
:
0
;
position
:
relative
;
text-transform
:
lowercase
;
margin
:
0
;
display
:
inline-block
;
margin-left
:
20px
}
sass/style.scss
View file @
ff4d419a
...
...
@@ -11,3 +11,57 @@
top
:
30px
;
}
}
header
.banner
{
margin-bottom
:
0
;
&
.inverse
{
background
:
$light_grey
;
margin-bottom
:
20px
;
margin-top
:
-3px
;
// Ugly fix for gap between navbar
.nav-primary
{
ul
{
border-color
:lighten
(
$
light_grey
,
10
%
)
;
li
{
&
,
&
:last-child
{
border-color
:darken
(
$
light_grey
,
5
%
)
;
}
a
{
&
:link
,
&
:visited
{
border-color
:lighten
(
$
light_grey
,
7
%
)
;
color
:darken
(
$
warm_grey
,
10
%
)
;
}
&
:hover
{
background
:darken
(
$
light_grey
,
5
%
)
;
color
:lighten
(
$
cool_grey
,
7
%
)
;
}
}
}
}
a
{
&
.active
,
&
:active
{
border-color
:darken
(
$
light_grey
,
5
%
)
;
background
:darken
(
$
light_grey
,
5
%
)
;
}
}
}
}
.site-name
{
float
:right
;
.logo-ubuntuit
{
font-size
:
36px
;
line-height
:
48px
;
margin-bottom
:
0
;
position
:relative
;
text-transform
:lowercase
;
margin
:
0
;
display
:inline-block
;
margin-left
:
20px
;
}
}
}
\ No newline at end of file
tpl/page.tpl.php
View file @
ff4d419a
...
...
@@ -76,7 +76,7 @@
*/
?>
<?php
if
(
$logo
)
:
?>
<?php
if
(
!
$logo
)
:
?>
<div
class=
"logo"
>
<a
class=
"logo-ubuntu"
href=
"
<?php
print
$front_page
;
?>
"
title=
"
<?php
print
t
(
'Home'
);
?>
"
rel=
"home"
id=
"logo"
>
<img
src=
"
<?php
print
$logo
;
?>
"
width=
"134"
height=
"96"
alt=
"
<?php
print
t
(
'Home'
);
?>
"
>
...
...
@@ -84,10 +84,24 @@
</div>
<?php
endif
;
?>
<header
class=
"banner global"
role=
"banner"
>
<nav
class=
"nav-primary
nav-right
"
role=
"navigation"
>
<nav
class=
"nav-primary"
role=
"navigation"
>
<ul>
<li><a
href=
"#"
>
Something
</a></li>
</ul>
<?php
if
(
$site_name
)
:
?>
<div
class=
"site-name"
>
<a
class=
"logo-ubuntuit"
href=
"
<?php
print
$front_page
;
?>
"
>
<span>
<?php
print
$site_name
;
?>
</span>
</a>
</div>
<?php
endif
;
?>
</nav>
</header>
<header
class=
"banner global inverse"
role=
"banner"
>
<nav
class=
"nav-primary"
role=
"navigation"
>
<ul>
<li><a
href=
"#"
>
Somewhere
</a></li>
</ul>
</nav>
</header>
...
...
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