Skip to content
This repository has been archived by the owner on May 15, 2022. It is now read-only.

Commit

Permalink
navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
aozora committed May 27, 2013
1 parent 17ce090 commit 52ebc7e
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 11 deletions.
Binary file added docs/assets/img/bkg-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/bkg-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
var hogan = require('hogan.js')
, fs = require('fs')
, prod = process.argv[2] == 'production'
, title = 'Bootstrap'
, title = 'Bootplus'

var layout, pages

Expand Down
3 changes: 3 additions & 0 deletions less/bootplus/bootplus.less
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,6 @@

// BootPlus specs
@import "wells.less";
@import "dropdowns.less";

@import "navbar.less";
6 changes: 3 additions & 3 deletions less/bootplus/buttons.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
text-align: center;
vertical-align: middle;
cursor: pointer;
.buttonBackground(@btnBackground, @btnBackgroundHighlight, @grayDark, 0 1px 1px rgba(255,255,255,.75));
.buttonBackground(@btnBackground, @btnBackgroundHighlight, @grayDark, none);
border: 1px solid @btnBorder;
*border: 0; // Remove the border to prevent IE7's black border on input:focus
// border-bottom-color: darken(@btnBorder, 10%);
Expand All @@ -34,7 +34,7 @@
// background-position: 0 -15px;
.box-shadow(0 1px 1px rgba(0,0,0,.1));
color: @grayDarker;
border-color: darken(@color, 0.6%);
border-color: darken(@btnBorder, 0.6%);

// transition is only when going to hover/focus, otherwise the background
// behind the gradient (there for IE<=9 fallback) gets mismatched
Expand All @@ -50,7 +50,7 @@
&.active,
&:active {
// background-image: none;
border-color: darken(@color, 0.6%);
border-color: darken(@btnBorder, 0.6%);
#gradient > .vertical(#fff,#f8f8f8);
outline: 0;
.box-shadow(0 1px 2px rgba(0, 0, 0, 0.1) inset);
Expand Down
11 changes: 11 additions & 0 deletions less/bootplus/dropdowns.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//
// Dropdown menus
// --------------------------------------------------
.dropdown-menu {
.border-radius(@borderRadiusSmall);
.box-shadow(0 2px 40px rgba(0,0,0,.4));




}
42 changes: 42 additions & 0 deletions less/bootplus/navbar.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
//
// Navbars (Redux)
// --------------------------------------------------


// COMMON STYLES
// -------------


// Inner for background effects
// Gradient is applied to its own element because overflow visible is not honored by IE when filter is present
.navbar-inner {
border: 0;
.border-radius(0);
.box-shadow(none);
}



// NAVIGATION
// ----------

// Links
.navbar .nav > li > a {
border-bottom: 2px solid transparent;
color: #737373;
font-size: 14px;
line-height: 1.4;
margin: 0 18px;
max-width: 180px;
min-width: 20px;
overflow: hidden;
padding: 13px 0 10px 0;
text-overflow: ellipsis;
vertical-align: top;
white-space: nowrap;
text-shadow: none;
}

//// hover
//border-color: #427fed;
//color: #262626;
14 changes: 7 additions & 7 deletions less/bootplus/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@grayDark: #444;
@gray: #555;
@grayLight: #999;
@grayLighter: #eee;
@grayLighter: #f5f5f5;
@white: #fff;
@whiteSmoke: #E5E5E5;

Expand Down Expand Up @@ -181,17 +181,17 @@
@navbarCollapseWidth: 979px;
@navbarCollapseDesktopWidth: @navbarCollapseWidth + 1;

@navbarHeight: 40px;
@navbarHeight: 44px;
@navbarBackgroundHighlight: #ffffff;
@navbarBackground: darken(@navbarBackgroundHighlight, 5%);
@navbarBackground: @grayLighter; //darken(@navbarBackgroundHighlight, 5%);
@navbarBorder: darken(@navbarBackground, 12%);

@navbarText: @grayLight;
@navbarLinkColor: @grayLight;
@navbarLinkColorHover: @white;
@navbarText: #737373;
@navbarLinkColor: #737373;
@navbarLinkColorHover: #262626;
@navbarLinkColorActive: @white;
@navbarLinkBackgroundHover: transparent;
@navbarLinkBackgroundActive: darken(@navbarBackground, 5%);
@navbarLinkBackgroundActive: transparent;

@navbarBrandColor: @navbarLinkColor;

Expand Down

0 comments on commit 52ebc7e

Please sign in to comment.