Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.

Commit

Permalink
slim header style. opt in with body.moz-slim-header
Browse files Browse the repository at this point in the history
  • Loading branch information
potch committed Jan 24, 2011
1 parent ceff6c7 commit 59e9b6d
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 5 deletions.
66 changes: 61 additions & 5 deletions headerfooter.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
visibility: hidden;
}

body {
background: #fff url(../global/background.png) 0 -700px repeat-x;
padding-top: 10px;
}

/*----------------------------------
Header
----------------------------------*/
Expand Down Expand Up @@ -179,6 +174,8 @@ body {
-webkit-transition: none;
}

.moz-header-slim #nav-main ul li.current a,
.moz-header-slim #nav-main ul li.current a,
#nav-main ul li a:hover,
#nav-main ul li a:active {
color: #fff;
Expand Down Expand Up @@ -310,6 +307,63 @@ body {
display: none;
}

/* slim header */

.moz-header-slim #header {
height: 40px;
-moz-box-shadow: 0 3px rgba(0,0,0,0.1), inset 0 -2px rgba(0,0,0,0.1);
-webkit-box-shadow: 0 3px rgba(0,0,0,0.1), inset 0 -2px rgba(0,0,0,0.1);
box-shadow: 0 3px rgba(0,0,0,0.1), inset 0 -2px rgba(0,0,0,0.1);
}

.moz-header-slim #header h1 a,
.moz-header-slim #header h1 a:link,
.moz-header-slim #header h1 a:visited {
height: 40px;
width: 95px;
background: url(../global/wordmark-slim.png) 15px 4px no-repeat;
}

.moz-header-slim #header h1 a:hover,
.moz-header-slim #header h1 a:active {
background: -moz-radial-gradient(center 45deg, ellipse closest-side, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%),
url(../global/wordmark-slim.png) 15px 4px no-repeat;
}

.moz-header-slim #nav-main ul li.current a,
.moz-header-slim #nav-main ul li.current span,
.moz-header-slim #nav-main ul li a,
.moz-header-slim #nav-main ul li span {

This comment has been minimized.

Copy link
@pcraciunoiu

pcraciunoiu Jan 25, 2011

Contributor

I think this is the stuff causing the weirdness on current items. They're also not centered.

Current: http://grab.by/8yYT

VS normal: http://grab.by/8yYW

padding: 10px 15px 0 15px;
height: 30px;
font-size: 12px;
}

.moz-header-slim #nav-main li:hover ul,
.moz-header-slim #nav-main li.sfhover ul {
margin-top: 40px;
}

.moz-header-slim #nav-main ul li.current {
border-bottom: 0;
-moz-box-shadow: none;
}


.moz-header-slim #header a.mozilla {
font-size: 16px;
height: 40px;
line-height: 35px;
margin-right: 15px;
text-align: right;
width: auto;
padding-top: 0;
}

/* end slim header */

/* minimal header */

#minimal-header a.mozilla {
-moz-box-shadow: 0 3px rgba(0,0,0,0.1), inset 0 -2px rgba(0,0,0,0.1);
-webkit-box-shadow: 0 3px rgba(0,0,0,0.1), inset 0 -2px rgba(0,0,0,0.1);
Expand Down Expand Up @@ -338,6 +392,8 @@ body {
color: #fff;
}

/* end minimal header */


/*----------------------------------
Footer
Expand Down
Binary file added wordmark-slim.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit 59e9b6d

@potch
Copy link
Contributor Author

@potch potch commented on 59e9b6d Jan 25, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I promise that wordmark image actually has content :)

Please sign in to comment.