Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make headers more distibuishable

  • Loading branch information...
commit a7ae78d8f92ddb0c2e933f05e25e6712d6587f69 1 parent cc5f2c7
@durran durran authored
View
BIN  psds/mongoid.psd
Deleted file not rendered
View
4 source/en/layouts/mongoid.haml
@@ -4,7 +4,7 @@
%meta{name: "description", content: "A Ruby ODM for MongoDB"}
%meta{name: "keywords", content: "mongoid, mongodb, ruby, rails, odm, durran jordan" }
- = partial "en/partials/header"
+ = partial "en/partials/header", locals: { section: "mongoid" }
%body{ "data-offset" => 100, "data-target" => ".page-nav", "data-spy" => "scroll" }
@@ -13,7 +13,7 @@
#navigation
.subnav
.container
- %ul.nav.nav-pills
+ %ul.nav.nav-pills.mongoid
%li= link_to "HOME", "/en/mongoid/index.html"
%li.dropdown#docs
%a.dropdown-toggle{:"data-toggle" => "dropdown", href: "#docs"}
View
4 source/en/layouts/moped.haml
@@ -4,7 +4,7 @@
%meta{name: "description", content: "A MongoDB driver for Ruby "}
%meta{name: "keywords", content: "mongoid, moped, mongodb, ruby, rails, odm, bernerd schaefer" }
- = partial "en/partials/header"
+ = partial "en/partials/header", locals: { section: "moped" }
%body{ "data-offset" => 100, "data-target" => ".page-nav", "data-spy" => "scroll" }
@@ -13,7 +13,7 @@
#navigation
.subnav
.container
- %ul.nav.nav-pills
+ %ul.nav.nav-pills.moped
%li= link_to "HOME", "/en/moped/index.html"
%li.dropdown#docs
%a.dropdown-toggle{:"data-toggle" => "dropdown", href: "#docs"}
View
4 source/en/layouts/origin.haml
@@ -4,7 +4,7 @@
%meta{name: "description", content: "A Ruby DSL for building MongoDB queries"}
%meta{name: "keywords", content: "mongoid, origin, mongodb, ruby, rails, odm, durran jordan" }
- = partial "en/partials/header"
+ = partial "en/partials/header", locals: { section: "origin" }
%body{ "data-offset" => 100, "data-target" => ".page-nav", "data-spy" => "scroll" }
@@ -13,7 +13,7 @@
#navigation
.subnav
.container
- %ul.nav.nav-pills
+ %ul.nav.nav-pills.origin
%li= link_to "HOME", "/en/origin/index.html"
%li.dropdown#docs
%a.dropdown-toggle{:"data-toggle" => "dropdown", href: "#docs"}
View
4 source/en/partials/_navigation.haml
@@ -1,4 +1,4 @@
-#header.basic
+#header{ class: section }
.navbar.navbar-fixed-top
.navbar-inner
.container
@@ -12,3 +12,5 @@
%li.link
= link_to "/en/moped/index.html", title: "Moped" do
= image_tag "/images/moped-logo-small-#{section == "moped" ? "green" : "white"}.png"
+ .logo-text
+ #{section}
View
42 source/stylesheets/mongoid.css
@@ -8,6 +8,10 @@ a:hover {
color: #;
}
+.achtung {
+ width: 80px;
+}
+
body {
background-color: #fcfcfc;
height: 100%;
@@ -33,30 +37,25 @@ h1 {
#header {
background-repeat: no-repeat;
background-color: #000000;
- border-bottom: 5px solid #e6a486;
- height: 500px;
+ height: 60px;
left: 0px;
width: 100%;
}
-#header.basic {
- height: 60px;
-}
-
-html {
- height: 100%;
+#header.mongoid {
+ border-bottom: 5px solid #e6a486;
}
-.mongoid {
- background-image: url("/images/header-mongoid.png");
+#header.origin {
+ border-bottom: 5px solid #eeda52;
}
-.origin {
- background-image: url("/images/header-origin.png");
+#header.moped {
+ border-bottom: 5px solid #82d8b8;
}
-.moped {
- background-image: url("/images/header-mongoid.png");
+html {
+ height: 100%;
}
.link-button {
@@ -75,6 +74,17 @@ html {
padding-right: 0px;
}
+.logo-text {
+ border-left: 1px solid #333333;
+ border-right: 1px solid #333333;
+ color: #ffffff;
+ float: right;
+ font-size: 18px;
+ height: 20px;
+ padding: 20px;
+ text-transform: uppercase;
+}
+
.navbar-inner {
height: 60px;
background-color: #000000;
@@ -158,10 +168,6 @@ p.doc {
height: 40px;
}
-.achtung {
- width: 80px;
-}
-
section {
padding-top: 140px;
}

0 comments on commit a7ae78d

Please sign in to comment.
Something went wrong with that request. Please try again.