Commit 5ab84f94 authored by Jacob Thornton's avatar Jacob Thornton

Merge branch '2.0-wip' of github.com:twitter/bootstrap into 2.0-wip

parents 8545fe97 369b9720
This diff is collapsed.
This diff is collapsed.
...@@ -8,183 +8,161 @@ ...@@ -8,183 +8,161 @@
/* Body and structure /* Body and structure
-------------------------------------------------- */ -------------------------------------------------- */
body { body {
background-color: #fff;
position: relative; position: relative;
padding-top: 90px;
background-color: #fff;
background-image: url(../img/grid-18px-masked.png);
background-repeat: repeat-x;
} }
section { section {
padding-top: 60px; padding-top: 60px;
} }
section > .row {
margin-bottom: 10px;
}
/* Tweak topbar brand link to be super sleek
-------------------------------------------------- */
body > .navbar-fixed .brand {
float: right;
font-weight: bold;
color: #000;
text-shadow: 0 1px 0 rgba(255,255,255,.1);
}
body > .navbar-fixed .brand:hover {
text-decoration: none;
}
/* Jumbotrons /* Jumbotrons
-------------------------------------------------- */ -------------------------------------------------- */
.jumbotron { .jumbotron {
min-width: 940px; position: relative;
padding-top: 40px; text-shadow: 0 1px 0 #fff;
}
.jumbotron .inner {
background: transparent url(../img/grid-18px.png) top center;
padding: 45px 0;
-webkit-box-shadow: inset 0 10px 30px rgba(0,0,0,.3);
-moz-box-shadow: inset 0 10px 30px rgba(0,0,0,.3);
/* box-shadow: inset 0 10px 30px rgba(0,0,0,.3);
*/}
.jumbotron h1,
.jumbotron p {
margin-bottom: 9px;
color: #fff;
text-align: center;
text-shadow: 0 1px 1px rgba(0,0,0,.3);
} }
.jumbotron h1 { .jumbotron h1 {
font-size: 54px; margin-right: 40%;
margin-bottom: 10px;
font-size: 90px;
letter-spacing: -1px;
line-height: 1; line-height: 1;
text-shadow: 0 1px 2px rgba(0,0,0,.5);
} }
.jumbotron p { .jumbotron p {
margin-right: 32%;
margin-bottom: 20px;
font-size: 25px;
font-weight: 300; font-weight: 300;
line-height: 36px;
} }
.jumbotron .lead { .jumbotron .btn {
font-size: 20px; font-size: 20px;
line-height: 27px; padding: 14px 24px;
margin-right: 5px;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
} }
.jumbotron p a { .jumbotron .download-info {
color: #fff; font-size: 16px;
font-weight: bold; color: #999;
}
/* Benefits list in masthead */
.benefits {
width: 250px;
position: absolute;
right: 0;
bottom: 0;
}
.benefits ul {
list-style: none;
margin: 0;
} }
.benefits li {
font-size: 16px;
font-weight: 300;
line-height: 35px;
color: #555;
}
.benefits li + li {
border-top: 1px solid #f5f5f5;
}
.benefits h4 {
color: #555;
}
.benefits span {
position: relative;
top: -2px;
padding-right: 5px;
color: #999;
}
/* Specific jumbotrons /* Specific jumbotrons
------------------------- */ ------------------------- */
/* main docs page */
.masthead {
background-color: #049cd9;
background-repeat: no-repeat;
background-image: -webkit-gradient(linear, left top, left bottom, from(#004D9F), to(#049cd9));
background-image: -webkit-linear-gradient(#004D9F, #049cd9);
background-image: -moz-linear-gradient(#004D9F, #049cd9);
background-image: -o-linear-gradient(top, #004D9F, #049cd9);
background-image: -khtml-gradient(linear, left top, left bottom, from(#004D9F), to(#049cd9));
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#004D9F', endColorstr='#049cd9', GradientType=0); /* IE8 and down */
}
/* supporting docs pages */ /* supporting docs pages */
.subhead { .subhead {
background-color: #767d80; padding-bottom: 18px;
background-repeat: no-repeat; border-bottom: 3px solid #eee;
background-image: -webkit-gradient(linear, left top, left bottom, from(#565d60), to(#767d80));
background-image: -webkit-linear-gradient(#565d60, #767d80);
background-image: -moz-linear-gradient(#565d60, #767d80);
background-image: -o-linear-gradient(top, #565d60, #767d80);
background-image: -khtml-gradient(linear, left top, left bottom, from(#565d60), to(#767d80));
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#565d60', endColorstr='#767d80', GradientType=0); /* IE8 and down */
}
.subhead .inner {
padding: 36px 0 27px;
} }
.subhead h1, .subhead h1,
.subhead p { .subhead p {
text-align: left; margin-right: 0;
} }
.subhead h1 { .subhead h1 {
font-size: 40px; font-size: 40px;
} }
.subhead p a {
/* Quick links
-------------------------------------------------- */
.quick-links {
padding: 5px 20px;
margin: 60px 0;
list-style: none;
text-align: center;
background-color: #eee;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
-moz-box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
}
.quick-links li {
display: inline;
margin: 0 5px;
line-height: 30px;
}
.quick-links .divider {
color: #999;
}
.quick-links strong {
font-weight: normal; font-weight: normal;
color: #999;
}
.quick-links .tweet-btn,
.quick-links .follow-btn {
position: relative;
top: 5px;
} }
/* Footer /* Footer
-------------------------------------------------- */ -------------------------------------------------- */
.footer { .footer {
background-color: #eee;
min-width: 940px;
padding: 30px 0; padding: 30px 0;
text-shadow: 0 1px 0 #fff;
border-top: 1px solid #e5e5e5; border-top: 1px solid #e5e5e5;
-webkit-box-shadow: inset 0 5px 15px rgba(0,0,0,.025); }
-moz-box-shadow: inset 0 5px 15px rgba(0,0,0,.025);
/* box-shadow: inset 0 5px 15px rgba(0,0,0,.025);
*/}
.footer p { .footer p {
color: #555; color: #555;
} }
/* Quickstart section for getting le code
-------------------------------------------------- */
.quickstart {
background-color: #f5f5f5;
background-repeat: repeat-x;
background-image: -khtml-gradient(linear, left top, left bottom, from(#f9f9f9), to(#f5f5f5));
background-image: -moz-linear-gradient(#f9f9f9, #f5f5f5);
background-image: -ms-linear-gradient(#f9f9f9, #f5f5f5);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f9f9f9), color-stop(100%, #f5f5f5));
background-image: -webkit-linear-gradient(#f9f9f9, #f5f5f5);
background-image: -o-linear-gradient(#f9f9f9, #f5f5f5);
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#f5f5f5', GradientType=0)";
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#f5f5f5', GradientType=0);
background-image: linear-gradient(#f9f9f9, #f5f5f5);
border-top: 1px solid #fff;
border-bottom: 1px solid #eee;
}
.quickstart .container {
margin-bottom: 0;
}
.quickstart .row {
margin: 0 -20px;
-webkit-box-shadow: 1px 0 0 #f9f9f9;
-moz-box-shadow: 1px 0 0 #f9f9f9;
box-shadow: 1px 0 0 #f9f9f9;
}
.quickstart [class*="span"] {
width: 285px;
height: 117px;
margin-left: 0;
padding: 17px 20px 26px;
border-left: 1px solid #eee;
-webkit-box-shadow: inset 1px 0 0 #f9f9f9;
-moz-box-shadow: inset 1px 0 0 #f9f9f9;
box-shadow: inset 1px 0 0 #f9f9f9;
}
.quickstart [class*="span"]:last-child {
border-right: 1px solid #eee;
width: 286px;
}
.quickstart h6,
.quickstart p {
line-height: 18px;
text-align: center;
margin-bottom: 9px;
color: #333;
}
.quickstart .current-version,
.quickstart .current-version a {
color: #999;
}
.quickstart h6 {
color: #999;
}
.quickstart textarea {
display: block;
width: 275px;
height: auto;
margin: 0 0 9px;
line-height: 21px;
white-space: nowrap;
overflow: hidden;
}
/* Special grid styles /* Special grid styles
-------------------------------------------------- */ -------------------------------------------------- */
.show-grid { .show-grid {
margin-top: 10px; margin-top: 10px;
margin-bottom: 10px; margin-bottom: 20px;
} }
.show-grid [class*="span"] { .show-grid [class*="span"] {
background: #eee; background-color: #eee;
text-align: center; text-align: center;
-webkit-border-radius: 3px; -webkit-border-radius: 3px;
-moz-border-radius: 3px; -moz-border-radius: 3px;
...@@ -228,7 +206,7 @@ section > .row { ...@@ -228,7 +206,7 @@ section > .row {
.mini-layout .mini-layout-body { .mini-layout .mini-layout-body {
background-color: #dceaf4; background-color: #dceaf4;
margin: 0 auto; margin: 0 auto;
width: 240px; width: 70%;
height: 240px; height: 240px;
} }
.mini-layout.fluid .mini-layout-sidebar, .mini-layout.fluid .mini-layout-sidebar,
...@@ -238,11 +216,11 @@ section > .row { ...@@ -238,11 +216,11 @@ section > .row {
} }
.mini-layout.fluid .mini-layout-sidebar { .mini-layout.fluid .mini-layout-sidebar {
background-color: #bbd8e9; background-color: #bbd8e9;
width: 90px; width: 20%;
height: 240px; height: 240px;
} }
.mini-layout.fluid .mini-layout-body { .mini-layout.fluid .mini-layout-body {
width: 300px; width: 60%;
margin-left: 10px; margin-left: 10px;
} }
...@@ -323,3 +301,64 @@ pre.prettyprint { ...@@ -323,3 +301,64 @@ pre.prettyprint {
.well form { .well form {
margin-bottom: 0; margin-bottom: 0;
} }
.browser-support {
max-width: 100%;
}
/* Make tables spaced out a bit more */
h2 + table {
margin-top: 5px;
}
/* Responsive Docs
-------------------------------------------------- */
@media (max-width: 480px) {
body > .navbar-fixed .nav {
display: none;
}
.large-bird {
display: none;
}
.jumbotron h1 {
font-size: 36px;
margin-right: 0;
}
.jumbotron p {
margin-right: 0;
font-size: 18px;
line-height: 24px;
}
.jumbotron .benefits {
position: relative;
width: auto;
margin: 36px 0;
}
}
@media (min-width: 768px) and (max-width: 900px) {
.footer,
.jumbotron {
min-width: 748px;
}
}
.supported-devices {
margin-bottom: 9px;
color: #777;
}
.supported-devices strong {
display: block;
font-size: 14px;
line-height: 18px;
}
.supported-devices small {
font-size: 12px;
}
This diff is collapsed.
This diff is collapsed.
...@@ -75,8 +75,8 @@ ...@@ -75,8 +75,8 @@
<body> <body>
<div class="topbar"> <div class="navbar">
<div class="fill"> <div class="navbar-inner">
<div class="container"> <div class="container">
<a class="brand" href="#">Project name</a> <a class="brand" href="#">Project name</a>
<ul class="nav"> <ul class="nav">
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
<li><a href="#about">About</a></li> <li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li> <li><a href="#contact">Contact</a></li>
</ul> </ul>
<form action="" class="pull-right"> <form action="" class="form-search navbar-form pull-right">
<input class="input-small" type="text" placeholder="Username"> <input class="input-small" type="text" placeholder="Username">
<input class="input-small" type="password" placeholder="Password"> <input class="input-small" type="password" placeholder="Password">
<button class="btn" type="submit">Sign in</button> <button class="btn" type="submit">Sign in</button>
......
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bootstrap, from Twitter</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le styles -->
<link href="../bootstrap.css" rel="stylesheet">
<style type="text/css">
body {
padding-top: 60px;
}
</style>
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
</head>
<body>
<div class="navbar">
<div class="navbar-inner">
<div class="fluid-container">
<a class="brand" href="#">Project name</a>
<ul class="nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
<p class="pull-right">Logged in as <a href="#">username</a></p>
</div>
</div>
</div>
<div class="fluid-container reverse">
<div class="fluid-sidebar-right">
<div class="well">
<h5>Sidebar</h5>
<ul>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
</ul>
<h5>Sidebar</h5>
<ul>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
</ul>
<h5>Sidebar</h5>
<ul>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
</ul>
</div>
</div>
<div class="fluid-content">
<!-- Main hero unit for a primary marketing message or call to action -->
<div class="hero-unit">
<h1>Hello, world!</h1>
<p>Vestibulum id ligula porta felis euismod semper. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
<p><a class="btn primary large">Learn more &raquo;</a></p>
</div>
<!-- Example row of columns -->
<div class="row">
<div class="span6">
<h2>Heading</h2>
<p>Etiam porta sem malesuada magna mollis euismod. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
<p><a class="btn" href="#">View details &raquo;</a></p>
</div>
<div class="span5">
<h2>Heading</h2>
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
<p><a class="btn" href="#">View details &raquo;</a></p>
</div>
<div class="span5">
<h2>Heading</h2>
<p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
<p><a class="btn" href="#">View details &raquo;</a></p>
</div>
</div>
<hr>
<!-- Example row of columns -->
<div class="row">
<div class="span6">
<h2>Heading</h2>
<p>Etiam porta sem malesuada magna mollis euismod. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
<p><a class="btn" href="#">View details &raquo;</a></p>
</div>
<div class="span5">
<h2>Heading</h2>
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
<p><a class="btn" href="#">View details &raquo;</a></p>
</div>
<div class="span5">
<h2>Heading</h2>
<p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
<p><a class="btn" href="#">View details &raquo;</a></p>
</div>
</div>
<footer>
<p>&copy; Company 2011</p>
</footer>
</div>
</div>
</body>
</html>
\ No newline at end of file
...@@ -28,9 +28,9 @@ ...@@ -28,9 +28,9 @@
<body> <body>
<div class="topbar"> <div class="navbar">
<div class="topbar-inner"> <div class="navbar-inner">
<div class="container-fluid"> <div class="fluid-container">
<a class="brand" href="#">Project name</a> <a class="brand" href="#">Project name</a>
<ul class="nav"> <ul class="nav">
<li class="active"><a href="#">Home</a></li> <li class="active"><a href="#">Home</a></li>
...@@ -42,8 +42,8 @@ ...@@ -42,8 +42,8 @@
</div> </div>
</div> </div>
<div class="container-fluid"> <div class="fluid-container">
<div class="sidebar"> <div class="fluid-sidebar-left">
<div class="well"> <div class="well">
<h5>Sidebar</h5> <h5>Sidebar</h5>
<ul> <ul>
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
</ul> </ul>
</div> </div>
</div> </div>
<div class="content"> <div class="fluid-content">
<!-- Main hero unit for a primary marketing message or call to action --> <!-- Main hero unit for a primary marketing message or call to action -->
<div class="hero-unit"> <div class="hero-unit">
<h1>Hello, world!</h1> <h1>Hello, world!</h1>
......
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
<body> <body>
<div class="topbar"> <div class="navbar">
<div class="fill"> <div class="navbar-inner">
<div class="container"> <div class="container">
<a class="brand" href="#">Project name</a> <a class="brand" href="#">Project name</a>
<ul class="nav"> <ul class="nav">
......
...@@ -23,4 +23,7 @@ ...@@ -23,4 +23,7 @@
@import "type.less"; @import "type.less";
@import "forms.less"; @import "forms.less";
@import "tables.less"; @import "tables.less";
@import "patterns.less"; @import "patterns.less";
\ No newline at end of file
// Responsive
@import "responsive.less";
\ No newline at end of file
...@@ -37,12 +37,6 @@ label { ...@@ -37,12 +37,6 @@ label {
color: @grayDark; color: @grayDark;
} }
// Checkboxs and radio buttons
input[type=checkbox],
input[type=radio] {
cursor: pointer;
}
// Inputs, Textareas, Selects // Inputs, Textareas, Selects
input, input,
textarea, textarea,
...@@ -69,11 +63,13 @@ input[type=radio] { ...@@ -69,11 +63,13 @@ input[type=radio] {
*margin-top: 0; /* IE6-7 */ *margin-top: 0; /* IE6-7 */
line-height: normal; line-height: normal;
border: none; border: none;
cursor: pointer;
} }
// Reset the file input to browser defaults // Reset the file input to browser defaults
input[type=file] { input[type=file] {
background-color: @white; background-color: @white;
background-color: initial;
padding: initial; padding: initial;
border: initial; border: initial;
line-height: initial; line-height: initial;
...@@ -323,11 +319,11 @@ textarea[readonly] { ...@@ -323,11 +319,11 @@ textarea[readonly] {
display: block; display: block;
width: auto; width: auto;
min-width: 16px; min-width: 16px;
height: 18px; height: @baseLineHeight;
padding: 4px 4px 4px 5px; padding: 4px 4px 4px 5px;
margin-right: -1px; margin-right: -1px;
font-weight: normal; font-weight: normal;
line-height: 18px; line-height: @baseLineHeight;
color: @grayLight; color: @grayLight;
text-align: center; text-align: center;
text-shadow: 0 1px 0 @white; text-shadow: 0 1px 0 @white;
......
...@@ -71,20 +71,6 @@ ...@@ -71,20 +71,6 @@
} }
} }
// Font face generator
.font-face(@fontFamily, @fileName, @style, @weight) {
@font-face {
font-family: @fontFamily;
font-style: @style;
font-weight: @weight;
src: url('@{fileName}.eot');
src: url('@{fileName}.eot?#iefix') format('embedded-opentype'),
url('@{fileName}.woff') format('woff'),
url('@{fileName}.ttf') format('truetype'),
url('@{fileName}.svg#@{fontFamily}') format('svg');
}
}
// Grid System // Grid System
.fixed-container() { .fixed-container() {
width: @siteWidth; width: @siteWidth;
...@@ -92,12 +78,13 @@ ...@@ -92,12 +78,13 @@
margin-right: auto; margin-right: auto;
.clearfix(); .clearfix();
} }
.columns(@columnSpan: 1) { .columns(@columns: 1) {
width: (@gridColumnWidth * @columnSpan) + (@gridGutterWidth * (@columnSpan - 1)); width: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1));
} }
.offset(@columnOffset: 1) { .offset(@columns: 1) {
margin-left: (@gridColumnWidth * @columnOffset) + (@gridGutterWidth * (@columnOffset - 1)) + @extraSpace; margin-left: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1)) + (@gridGutterWidth * 2);
} }
// Necessary grid styles for every column to make them appear next to each other horizontally // Necessary grid styles for every column to make them appear next to each other horizontally
.gridColumn() { .gridColumn() {
display: inline; display: inline;
......
...@@ -3,34 +3,41 @@ ...@@ -3,34 +3,41 @@
* ---------------------------------------------------------------------------- */ * ---------------------------------------------------------------------------- */
// TOPBAR // NAVBAR (FIXED AND STATIC)
// ------ // -------------------------
// Topbar for Branding and Nav // Navbar variables
.topbar { @navBarHeight: 40px;
height: 40px; @navBarBgStart: #333;
position: fixed; @navBarBgEnd: #222;
top: 0;
left: 0;
right: 0;
z-index: 10000;
overflow: visible;
// Links get text shadow // Common styles
.navbar {
height: @navBarHeight;
overflow: visible;
}
// gradient is applied to it's own element because overflow visible is not honored by ie when filter is present
.navbar-inner {
background-color: @navBarBgEnd;
#gradient > .vertical(@navBarBgStart, @navBarBgEnd);
@shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1);
.box-shadow(@shadow);
}
// Text and links
.navbar {
// Links get text-shadow
a { a {
color: @grayLight; color: @grayLight;
text-shadow: 0 -1px 0 rgba(0,0,0,.25); text-shadow: 0 -1px 0 rgba(0,0,0,.25);
} }
// Hover and active states // Hover and active states
.brand a:hover, .brand a:hover,
ul .active > a { ul .active > a {
background-color: #333; background-color: @navBarBgStart;
background-color: rgba(255,255,255,.05); background-color: rgba(255,255,255,.05);
color: @white; color: @white;
text-decoration: none; text-decoration: none;
} }
// Website or project name // Website or project name
.brand { .brand {
float: left; float: left;
...@@ -42,7 +49,6 @@ ...@@ -42,7 +49,6 @@
font-weight: 200; font-weight: 200;
line-height: 1; line-height: 1;
} }
// Plain text in topbar // Plain text in topbar
p { p {
margin: 0; margin: 0;
...@@ -52,19 +58,15 @@ ...@@ -52,19 +58,15 @@
color: @white; color: @white;
} }
} }
}
// Search Form // Navbar search
form { .navbar-search {
float: left; position: relative;
margin: 5px 0 0 0; margin-top: 6px;
position: relative; margin-bottom: 0;
.opacity(100); float: left;
} .search-query {
// Todo: remove from v2.0 when ready, added for legacy
form.pull-right {
float: right;
}
input {
background-color: #444; background-color: #444;
background-color: rgba(255,255,255,.3); background-color: rgba(255,255,255,.3);
#font > .sans-serif(13px, normal, 1); #font > .sans-serif(13px, normal, 1);
...@@ -72,8 +74,7 @@ ...@@ -72,8 +74,7 @@
color: @white; color: @white;
color: rgba(255,255,255,.75); color: rgba(255,255,255,.75);
border: 1px solid #111; border: 1px solid #111;
.border-radius(4px); @shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0px rgba(255,255,255,.15);
@shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0px rgba(255,255,255,.25);
.box-shadow(@shadow); .box-shadow(@shadow);
.transition(none); .transition(none);
...@@ -104,19 +105,32 @@ ...@@ -104,19 +105,32 @@
} }
} }
// gradient is applied to it's own element because overflow visible is not honored by ie when filter is present
.topbar-inner { // Static navbar
background-color: #222; .navbar-static {
#gradient > .vertical(#333, #222); margin-bottom: @baseLineHeight;
@shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1); }
.box-shadow(@shadow); .navbar-static .navbar-inner {
padding-left: 20px;
padding-right: 20px;
.border-radius(4px);
} }
// Fixed navbar
.navbar-fixed {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 10000;
}
// NAVIGATION // NAVIGATION
// ---------- // ----------
// Topbar Nav // Nav for navbar and topbar
// ul.nav for all topbar based navigation to avoid inheritance issues and over-specificity // ul.nav for all topbar based navigation to avoid inheritance issues and over-specificity
.nav { .nav {
display: block; display: block;
...@@ -302,14 +316,14 @@ ...@@ -302,14 +316,14 @@
} }
} }
// Basic Tabs // Tabs
.tabs { .tabs {
float: left; border-color: #ddd;
width: 100%; border-style: solid;
border-bottom: 1px solid #ddd; border-width: 0 0 1px;
> li { > li {
position: relative; // For the dropdowns mostly position: relative; // For the dropdowns mostly
top: 1px; margin-bottom: -1px;
> a { > a {
padding: 0 15px; padding: 0 15px;
margin-right: 2px; margin-right: 2px;
...@@ -322,61 +336,129 @@ ...@@ -322,61 +336,129 @@
border-color: #eee #eee #ddd; border-color: #eee #eee #ddd;
} }
} }
&.active > a { }
color: @gray; // Active state, and it's :hover to override normal :hover
background-color: @white; .active > a,
border: 1px solid #ddd; .active > a:hover {
color: @gray;
background-color: @white;
border: 1px solid #ddd;
border-bottom-color: transparent;
cursor: default;
}
}
.tabbable {
margin-bottom: @baseLineHeight;
// Tabs on top
.tabs {
margin-bottom: 0;
border-bottom: 0;
}
.tab-content {
padding: 19px;
border: 1px solid #ddd;
}
// Tabs on bottom
&.tabs-bottom .tabs > li {
margin-top: -1px;
margin-bottom: 0;
}
&.tabs-bottom .tabs > li > a {
.border-radius(0 0 4px 4px);
&:hover {
border-bottom-color: transparent; border-bottom-color: transparent;
border-top-color: #ddd;
} }
} }
&.tabs-bottom .tabs > .active > a,
&.tabs-bottom .tabs > .active > a:hover {
border-color: transparent #ddd #ddd #ddd;
}
// Tabs on left
&.tabs-left .tabs {
float: left;
}
&.tabs-left .tabs > li {
float: none;
}
// Tabs on right
&.tabs-right .tabs {
float: right;
}
&.tabs-right .tabs > li {
float: none;
}
}
// Dropdowns in tabs
.tabs {
// first one for backwards compatibility
.menu-dropdown,
.dropdown-menu { .dropdown-menu {
top: 35px; top: 35px;
border-width: 1px; border-width: 1px;
.border-radius(0 6px 6px 6px); .border-radius(0 6px 6px 6px);
} }
// first one for backwards compatibility
a.menu:after,
.dropdown-toggle:after { .dropdown-toggle:after {
border-top-color: #999; border-top-color: #999;
margin-top: 15px; margin-top: 15px;
margin-left: 5px; margin-left: 5px;
} }
// first one for backwards compatibility
li.open.menu .menu,
.open.dropdown .dropdown-toggle { .open.dropdown .dropdown-toggle {
border-color: #999; border-color: #999;
} }
// first one for backwards compatibility
li.open a.menu:after,
.dropdown.open .dropdown-toggle:after { .dropdown.open .dropdown-toggle:after {
border-top-color: #555; border-top-color: #555;
} }
} }
.tab-content {
clear: both;
}
// Basic pill nav // Pills
.pills { .pills {
a { a {
margin: 5px 3px 5px 0; margin: 5px 3px 5px 0;
padding: 0 15px; padding: 0 15px;
text-shadow: 0 1px 1px @white;
line-height: 30px; line-height: 30px;
text-shadow: 0 1px 1px @white;
.border-radius(15px); .border-radius(15px);
&:hover { &:hover {
background: @linkColorHover;
color: @white; color: @white;
text-decoration: none; text-decoration: none;
text-shadow: 0 1px 1px rgba(0,0,0,.25); text-shadow: 0 1px 1px rgba(0,0,0,.25);
background-color: @linkColorHover;
} }
} }
.active a { .active a {
background: @linkColor;
color: @white; color: @white;
text-shadow: 0 1px 1px rgba(0,0,0,.25); text-shadow: 0 1px 1px rgba(0,0,0,.25);
background-color: @linkColor;
} }
} }
.tab-content > *, // Stacked pills
.pill-content > * { .pills-vertical > li {
display: none; float: none;
} }
// Tabbable areas
.tab-content,
.pill-content {
}
.tab-content > .tab-pane,
.pill-content > .pill-pane {
display: none;
}
.tab-content > .active, .tab-content > .active,
.pill-content > .active { .pill-content > .active {
display: block; display: block;
...@@ -438,11 +520,11 @@ footer { ...@@ -438,11 +520,11 @@ footer {
// ------------ // ------------
.page-header { .page-header {
margin-bottom: @baseLineHeight - 1; margin-bottom: @baseLineHeight * 1.5;
border-bottom: 1px solid #ddd; border-bottom: 1px solid #eee;
.box-shadow(0 1px 0 rgba(255,255,255,.5)); .box-shadow(0 1px 0 rgba(255,255,255,.5));
h1 { h1 {
margin-bottom: (@baseLineHeight / 2) - 1px; margin-bottom: @baseLineHeight * .75;
} }
} }
......
/* Responsive.less
* For phone and tablet devices
* ------------------------------------------------------------- */
// UP TO LANDSCAPE PHONE
// ---------------------
@media (max-width: 480px) {
// Remove width from containers
.container {
width: auto;
padding: 0 10px;
}
// Make all columns even
[class*="span"] {
float: none;
display: block;
width: auto;
margin: 0;
}
// Resize modals
.modal {
width: auto;
margin: 0;
}
// Remove the horizontal form styles
.form-horizontal .control-group > label {
float: none;
width: auto;
padding-top: 0;
text-align: left;
}
// Move over all input controls and content
.form-horizontal .controls {
margin-left: 0;
}
// Move the options list down to align with labels
.form-horizontal .control-list {
padding-top: 0; // has to be padding because margin collaspes
}
// Move over buttons in .form-actions to align with .controls
.form-horizontal .form-actions {
padding-left: 0;
}
}
// LANDSCAPE PHONE TO SMALL DESKTOP & PORTRAIT TABLET
// --------------------------------------------------
@media (min-width: 480px) and (max-width: 768px) {
// Remove width from containers
.container {
width: auto;
padding: 0 10px;
}
// Make all columns even
[class*="span"] {
float: none;
display: block;
width: auto;
margin: 0;
}
}
// PORTRAIT TABLET TO DEFAULT DESKTOP
// ----------------------------------
@media (min-width: 768px) and (max-width: 940px) {
// Reset grid variables
@gridColumns: 16;
@gridColumnWidth: 44px;
@gridGutterWidth: 20px;
@siteWidth: 748px;
// Bring grid mixins to recalculate widths
.columns(@columnSpan: 1) {
width: (@gridColumnWidth * @columnSpan) + (@gridGutterWidth * (@columnSpan - 1));
}
.offset(@columnOffset: 1) {
margin-left: (@gridColumnWidth * @columnOffset) + (@gridGutterWidth * (@columnOffset - 1)) + @gridGutterWidth;
}
// 16cols at 30px wide with 16px gutters
.container {
width: @siteWidth;
}
// Default columns
.span1 { .columns(1); }
.span2 { .columns(2); }
.span3 { .columns(3); }
.span4 { .columns(4); }
.span5 { .columns(5); }
.span6 { .columns(6); }
.span7 { .columns(7); }
.span8 { .columns(8); }
.span9 { .columns(9); }
.span10 { .columns(10); }
.span11 { .columns(11); }
.span12 { .columns(12); }
// Offset column options
.offset1 { .offset(1); }
.offset2 { .offset(2); }
.offset3 { .offset(3); }
.offset4 { .offset(4); }
.offset5 { .offset(5); }
.offset6 { .offset(6); }
.offset7 { .offset(7); }
.offset8 { .offset(8); }
.offset9 { .offset(9); }
.offset10 { .offset(10); }
.offset11 { .offset(11); }
.offset12 { .offset(12); }
}
/*
// LARGE DESKTOP & UP
// ------------------
@media (min-width: 1210px) {
// Reset grid variables
@gridColumns: 12;
@gridColumnWidth: 70px;
@gridGutterWidth: 30px;
@siteWidth: 1170px;
// Bring grid mixins to recalculate widths
.columns(@columnSpan: 1) {
width: (@gridColumnWidth * @columnSpan) + (@gridGutterWidth * (@columnSpan - 1));
}
.offset(@columnOffset: 1) {
margin-left: (@gridColumnWidth * @columnOffset) + (@gridGutterWidth * (@columnOffset - 1)) + @gridGutterWidth;
}
.container {
width: @siteWidth;
}
[class*="span"] {
margin-left: @gridGutterWidth;
}
// Default columns
.span1 { .columns(1); }
.span2 { .columns(2); }
.span3 { .columns(3); }
.span4 { .columns(4); }
.span5 { .columns(5); }
.span6 { .columns(6); }
.span7 { .columns(7); }
.span8 { .columns(8); }
.span9 { .columns(9); }
.span10 { .columns(10); }
.span11 { .columns(11); }
.span12 { .columns(12); }
// Offset column options
.offset1 { .offset(1); }
.offset2 { .offset(2); }
.offset3 { .offset(3); }
.offset4 { .offset(4); }
.offset5 { .offset(5); }
.offset6 { .offset(6); }
.offset7 { .offset(7); }
.offset8 { .offset(8); }
.offset9 { .offset(9); }
.offset10 { .offset(10); }
.offset11 { .offset(11); }
.offset12 { .offset(12); }
}
*/
\ No newline at end of file
...@@ -24,20 +24,28 @@ body { ...@@ -24,20 +24,28 @@ body {
} }
// Fluid layouts (left aligned, with sidebar, min- & max-width content) // Fluid layouts (left aligned, with sidebar, min- & max-width content)
.container-fluid { .fluid-container {
position: relative; position: relative;
min-width: 940px; min-width: 940px;
padding-left: 20px; padding-left: 20px;
padding-right: 20px; padding-right: 20px;
.clearfix(); .clearfix();
> .sidebar { }
float: left; // Sidebars (left and right options)
width: 220px; .fluid-sidebar-left,
} .fluid-sidebar-right {
// TODO in v2: rename this and .popover .content to be more specific width: 220px;
> .content { }
margin-left: 240px; .fluid-sidebar-left { float: left; }
} .fluid-sidebar-right { float: right; }
// The main content area
.fluid-content {
margin-left: 240px;
}
// Reverse layout for sidebar on right
.fluid-container.reverse .fluid-content {
margin-left: 0;
margin-right: 240px;
} }
...@@ -76,10 +84,9 @@ a { ...@@ -76,10 +84,9 @@ a {
// GRID SYSTEM // GRID SYSTEM
// ----------- // -----------
// To customize the grid system, bring up the variables.less file and change the column count, size, and gutter there // To customize the grid system, bring up the variables.less file and change the column count, size, and gutter there
.row { .row {
margin-left: -@gridGutterWidth;
.clearfix(); .clearfix();
margin-left: -1 * @gridGutterWidth;
} }
// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7) // Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7)
...@@ -101,20 +108,6 @@ a { ...@@ -101,20 +108,6 @@ a {
.span10 { .columns(10); } .span10 { .columns(10); }
.span11 { .columns(11); } .span11 { .columns(11); }
.span12 { .columns(12); } .span12 { .columns(12); }
.span13 { .columns(13); }
.span14 { .columns(14); }
.span15 { .columns(15); }
.span16 { .columns(16); }
// For optional 24-column grid
.span17 { .columns(17); }
.span18 { .columns(18); }
.span19 { .columns(19); }
.span20 { .columns(20); }
.span21 { .columns(21); }
.span22 { .columns(22); }
.span23 { .columns(23); }
.span24 { .columns(24); }
// Offset column options // Offset column options
.offset1 { .offset(1); } .offset1 { .offset(1); }
...@@ -128,10 +121,3 @@ a { ...@@ -128,10 +121,3 @@ a {
.offset9 { .offset(9); } .offset9 { .offset(9); }
.offset10 { .offset(10); } .offset10 { .offset(10); }
.offset11 { .offset(11); } .offset11 { .offset(11); }
.offset12 { .offset(12); }
// Unique column sizes for 16-column grid
.span-one-third { width: 300px; }
.span-two-thirds { width: 620px; }
.offset-one-third { margin-left: 340px; }
.offset-two-thirds { margin-left: 660px; }
...@@ -24,12 +24,12 @@ p { ...@@ -24,12 +24,12 @@ p {
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
font-weight: bold; font-weight: bold;
color: @grayDark; color: @grayDark;
text-rendering: optimizelegibility;
small { small {
color: @grayLight; color: @grayLight;
} }
} }
h1 { h1 {
margin-bottom: @baseLineHeight;
font-size: 30px; font-size: 30px;
line-height: @baseLineHeight * 2; line-height: @baseLineHeight * 2;
small { small {
...@@ -40,11 +40,11 @@ h2 { ...@@ -40,11 +40,11 @@ h2 {
font-size: 24px; font-size: 24px;
line-height: @baseLineHeight * 2; line-height: @baseLineHeight * 2;
small { small {
font-size: 14px; font-size: 18px;
} }
} }
h3 { h3 {
line-height: @baseLineHeight * 2; line-height: @baseLineHeight * 1.5;
font-size: 18px; font-size: 18px;
small { small {
font-size: 14px; font-size: 14px;
...@@ -74,7 +74,7 @@ h6 { ...@@ -74,7 +74,7 @@ h6 {
// Unordered and Ordered lists // Unordered and Ordered lists
ul, ol { ul, ol {
margin: 0 0 @baseLineHeight 25px; margin: 0 0 @baseLineHeight / 2 25px;
} }
ul ul, ul ul,
ul ol, ul ol,
...@@ -90,7 +90,7 @@ ol { ...@@ -90,7 +90,7 @@ ol {
} }
li { li {
line-height: @baseLineHeight; line-height: @baseLineHeight;
color: @gray; color: @grayDark;
} }
ul.unstyled { ul.unstyled {
list-style: none; list-style: none;
...@@ -135,6 +135,14 @@ em { ...@@ -135,6 +135,14 @@ em {
color: @grayLight; color: @grayLight;
} }
// Abbreviations and acronyms
abbr {
font-size: 90%;
text-transform: uppercase;
border-bottom: 1px dotted #ddd;
cursor: help;
}
// Blockquotes // Blockquotes
blockquote { blockquote {
margin-bottom: @baseLineHeight; margin-bottom: @baseLineHeight;
......
...@@ -38,29 +38,12 @@ ...@@ -38,29 +38,12 @@
// ---- // ----
// Modify the grid styles in mixins.less // Modify the grid styles in mixins.less
@gridColumns: 16; @gridColumns: 12;
@gridColumnWidth: 40px; @gridColumnWidth: 60px;
@gridGutterWidth: 20px; @gridGutterWidth: 20px;
@extraSpace: (@gridGutterWidth * 2); // For our grid calculations
@siteWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1)); @siteWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
// COLOR SCHEME
// ------------
// Use this to roll your own color schemes if you like (unused by Bootstrap by default)
@baseColor: @blue; // Set a base color
@complement: spin(@baseColor, 180); // Determine a complementary color
@split1: spin(@baseColor, 158); // Split complements
@split2: spin(@baseColor, -158);
@triad1: spin(@baseColor, 135); // Triads colors
@triad2: spin(@baseColor, -135);
@tetra1: spin(@baseColor, 90); // Tetra colors
@tetra2: spin(@baseColor, -90);
@analog1: spin(@baseColor, 22); // Analogs colors
@analog2: spin(@baseColor, -22);
// THEME VARIABLES // THEME VARIABLES
// --------------- // ---------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment