2011-06-29 18:40:52 -04:00
|
|
|
/* Patterns.less
|
2011-06-28 17:24:02 -04:00
|
|
|
* Repeatable UI elements outside the base styles provided from the scaffolding
|
2011-06-29 18:40:52 -04:00
|
|
|
* ---------------------------------------------------------------------------- */
|
2011-05-03 21:09:25 -04:00
|
|
|
|
2011-08-17 01:58:01 -04:00
|
|
|
|
|
|
|
// TOPBAR
|
2011-06-29 18:40:52 -04:00
|
|
|
// ------
|
2011-05-03 21:09:25 -04:00
|
|
|
|
|
|
|
// Topbar for Branding and Nav
|
2011-08-21 23:30:58 -04:00
|
|
|
.topbar {
|
2011-05-03 21:09:25 -04:00
|
|
|
height: 40px;
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2011-07-05 17:24:53 -04:00
|
|
|
z-index: 10000;
|
2011-05-03 21:09:25 -04:00
|
|
|
overflow: visible;
|
2011-08-21 15:19:01 -04:00
|
|
|
|
2011-05-03 21:09:25 -04:00
|
|
|
// Links get text shadow
|
|
|
|
a {
|
2011-06-27 19:47:12 -04:00
|
|
|
color: @grayLight;
|
2011-05-03 21:09:25 -04:00
|
|
|
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
|
|
|
}
|
2011-08-17 01:58:01 -04:00
|
|
|
|
2011-08-20 01:28:22 -04:00
|
|
|
// Hover and active states
|
2011-09-12 22:00:44 -04:00
|
|
|
.brand a:hover,
|
2011-09-07 00:54:00 -04:00
|
|
|
ul .active > a {
|
2011-05-03 21:09:25 -04:00
|
|
|
background-color: #333;
|
2011-08-20 01:28:22 -04:00
|
|
|
background-color: rgba(255,255,255,.05);
|
2011-05-03 21:09:25 -04:00
|
|
|
color: @white;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2011-08-17 01:58:01 -04:00
|
|
|
|
2011-09-17 20:21:43 -04:00
|
|
|
// Website or project name
|
2011-09-11 23:00:45 -04:00
|
|
|
.brand {
|
|
|
|
float: left;
|
|
|
|
display: block;
|
|
|
|
padding: 8px 20px 12px;
|
|
|
|
margin-left: -20px; // negative indent to left-align the text down the page
|
|
|
|
color: @white;
|
|
|
|
font-size: 20px;
|
|
|
|
font-weight: 200;
|
|
|
|
line-height: 1;
|
2011-05-03 21:09:25 -04:00
|
|
|
}
|
2011-08-17 01:58:01 -04:00
|
|
|
|
2011-09-03 02:01:38 -04:00
|
|
|
// Plain text in topbar
|
|
|
|
p {
|
|
|
|
margin: 0;
|
|
|
|
line-height: 40px;
|
2011-09-03 02:09:59 -04:00
|
|
|
a:hover {
|
|
|
|
background-color: transparent;
|
2011-09-12 22:00:44 -04:00
|
|
|
color: @white;
|
2011-09-03 02:09:59 -04:00
|
|
|
}
|
2011-09-03 02:01:38 -04:00
|
|
|
}
|
|
|
|
|
2011-05-03 21:09:25 -04:00
|
|
|
// Search Form
|
|
|
|
form {
|
|
|
|
float: left;
|
2011-06-29 18:51:27 -04:00
|
|
|
margin: 5px 0 0 0;
|
2011-05-03 21:09:25 -04:00
|
|
|
position: relative;
|
2011-07-02 02:21:11 -04:00
|
|
|
.opacity(100);
|
2011-08-30 00:24:00 -04:00
|
|
|
}
|
2011-09-08 12:43:37 -04:00
|
|
|
// Todo: remove from v2.0 when ready, added for legacy
|
|
|
|
form.pull-right {
|
|
|
|
float: right;
|
|
|
|
}
|
2011-08-30 00:24:00 -04:00
|
|
|
input {
|
|
|
|
background-color: #444;
|
|
|
|
background-color: rgba(255,255,255,.3);
|
|
|
|
#font > .sans-serif(13px, normal, 1);
|
|
|
|
padding: 4px 9px;
|
2011-09-13 01:19:28 -04:00
|
|
|
color: @white;
|
2011-08-30 00:24:00 -04:00
|
|
|
color: rgba(255,255,255,.75);
|
|
|
|
border: 1px solid #111;
|
|
|
|
.border-radius(4px);
|
|
|
|
@shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0px rgba(255,255,255,.25);
|
|
|
|
.box-shadow(@shadow);
|
|
|
|
.transition(none);
|
2011-08-17 01:58:01 -04:00
|
|
|
|
2011-08-30 00:24:00 -04:00
|
|
|
// Placeholder text gets special styles; can't be bundled together though for some reason
|
|
|
|
&:-moz-placeholder {
|
|
|
|
color: @grayLighter;
|
|
|
|
}
|
|
|
|
&::-webkit-input-placeholder {
|
|
|
|
color: @grayLighter;
|
|
|
|
}
|
|
|
|
// Hover states
|
|
|
|
&:hover {
|
|
|
|
background-color: @grayLight;
|
|
|
|
background-color: rgba(255,255,255,.5);
|
2011-09-13 01:19:28 -04:00
|
|
|
color: @white;
|
2011-08-30 00:24:00 -04:00
|
|
|
}
|
|
|
|
// Focus states (we use .focused since IE8 and down doesn't support :focus)
|
|
|
|
&:focus,
|
|
|
|
&.focused {
|
2011-09-16 01:27:41 -04:00
|
|
|
outline: 0;
|
2011-09-13 01:19:28 -04:00
|
|
|
background-color: @white;
|
2011-08-30 00:24:00 -04:00
|
|
|
color: @grayDark;
|
2011-09-13 01:19:28 -04:00
|
|
|
text-shadow: 0 1px 0 @white;
|
2011-08-30 00:24:00 -04:00
|
|
|
border: 0;
|
|
|
|
padding: 5px 10px;
|
|
|
|
.box-shadow(0 0 3px rgba(0,0,0,.15));
|
2011-05-03 21:09:25 -04:00
|
|
|
}
|
|
|
|
}
|
2011-08-26 23:38:23 -04:00
|
|
|
}
|
2011-08-17 01:58:01 -04:00
|
|
|
|
2011-09-02 03:28:54 -04:00
|
|
|
// gradient is applied to it's own element because overflow visible is not honored by ie when filter is present
|
2011-09-17 20:21:43 -04:00
|
|
|
.topbar-inner {
|
2011-09-02 03:28:54 -04:00
|
|
|
background-color: #222;
|
|
|
|
#gradient > .vertical(#333, #222);
|
|
|
|
@shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1);
|
|
|
|
.box-shadow(@shadow);
|
|
|
|
}
|
|
|
|
|
2011-08-26 23:38:23 -04:00
|
|
|
|
|
|
|
// NAVIGATION
|
|
|
|
// ----------
|
2011-08-27 02:18:39 -04:00
|
|
|
|
|
|
|
// Topbar Nav
|
2011-08-26 23:38:23 -04:00
|
|
|
// ul.nav for all topbar based navigation to avoid inheritance issues and over-specificity
|
|
|
|
.nav {
|
|
|
|
display: block;
|
|
|
|
float: left;
|
|
|
|
margin: 0 10px 0 0;
|
|
|
|
position: relative;
|
|
|
|
left: 0;
|
2011-09-02 03:28:54 -04:00
|
|
|
> li {
|
2011-05-03 21:09:25 -04:00
|
|
|
display: block;
|
|
|
|
float: left;
|
2011-08-30 00:24:00 -04:00
|
|
|
}
|
|
|
|
a {
|
|
|
|
display: block;
|
|
|
|
float: none;
|
|
|
|
padding: 10px 10px 11px;
|
|
|
|
line-height: 19px;
|
|
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
2011-09-13 01:19:28 -04:00
|
|
|
color: @white;
|
2011-08-26 23:38:23 -04:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
2011-09-07 00:54:00 -04:00
|
|
|
.active > a {
|
2011-08-30 00:24:00 -04:00
|
|
|
background-color: #222;
|
|
|
|
background-color: rgba(0,0,0,.5);
|
|
|
|
}
|
2011-08-17 01:58:01 -04:00
|
|
|
|
2011-08-27 02:18:39 -04:00
|
|
|
// Secondary (floated right) nav in topbar
|
|
|
|
&.secondary-nav {
|
|
|
|
float: right;
|
|
|
|
margin-left: 10px;
|
|
|
|
margin-right: 0;
|
2011-08-30 00:24:00 -04:00
|
|
|
.dropdown-menu {
|
2011-08-27 02:18:39 -04:00
|
|
|
right: 0;
|
2011-09-11 23:38:45 -04:00
|
|
|
border: 0;
|
2011-08-27 02:18:39 -04:00
|
|
|
}
|
|
|
|
}
|
2011-08-26 23:38:23 -04:00
|
|
|
// Dropdowns within the .nav
|
2011-08-27 02:18:39 -04:00
|
|
|
.dropdown-toggle:hover,
|
|
|
|
.dropdown.open .dropdown-toggle {
|
2011-08-31 13:55:53 -04:00
|
|
|
background: #444;
|
|
|
|
background: rgba(255,255,255,.05);
|
2011-08-27 02:18:39 -04:00
|
|
|
}
|
|
|
|
.dropdown-menu {
|
|
|
|
background-color: #333;
|
|
|
|
.dropdown-toggle {
|
2011-09-13 01:19:28 -04:00
|
|
|
color: @white;
|
2011-08-27 02:18:39 -04:00
|
|
|
&.open {
|
2011-08-31 13:55:53 -04:00
|
|
|
background: #444;
|
|
|
|
background: rgba(255,255,255,.05);
|
2011-05-03 21:09:25 -04:00
|
|
|
}
|
2011-08-27 02:18:39 -04:00
|
|
|
}
|
|
|
|
li a {
|
|
|
|
color: #999;
|
|
|
|
text-shadow: 0 1px 0 rgba(0,0,0,.5);
|
2011-05-03 21:09:25 -04:00
|
|
|
&:hover {
|
2011-08-27 02:18:39 -04:00
|
|
|
#gradient > .vertical(#292929,#191919);
|
2011-09-13 01:19:28 -04:00
|
|
|
color: @white;
|
2011-05-03 21:09:25 -04:00
|
|
|
}
|
2011-08-27 02:18:39 -04:00
|
|
|
}
|
2011-09-07 00:54:00 -04:00
|
|
|
.active a {
|
2011-09-13 01:19:28 -04:00
|
|
|
color: @white;
|
2011-09-07 00:54:00 -04:00
|
|
|
}
|
2011-08-27 02:18:39 -04:00
|
|
|
.divider {
|
|
|
|
background-color: #222;
|
|
|
|
border-color: #444;
|
2011-05-03 21:09:25 -04:00
|
|
|
}
|
|
|
|
}
|
2011-08-26 23:38:23 -04:00
|
|
|
}
|
2011-08-17 01:58:01 -04:00
|
|
|
|
2011-09-02 03:50:05 -04:00
|
|
|
.topbar ul .dropdown-menu li a {
|
|
|
|
padding: 4px 15px;
|
|
|
|
}
|
|
|
|
|
2011-08-26 23:38:23 -04:00
|
|
|
// Dropdown Menus
|
|
|
|
// Use the .menu class on any <li> element within the topbar or ul.tabs and you'll get some superfancy dropdowns
|
|
|
|
.dropdown {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
// The link that is clicked to toggle the dropdown
|
|
|
|
.dropdown-toggle:after {
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
display: inline-block;
|
|
|
|
content: "↓";
|
|
|
|
text-indent: -99999px;
|
|
|
|
vertical-align: top;
|
|
|
|
margin-top: 8px;
|
2011-09-29 04:43:14 -04:00
|
|
|
margin-left: 6px;
|
2011-08-26 23:38:23 -04:00
|
|
|
border-left: 4px solid transparent;
|
|
|
|
border-right: 4px solid transparent;
|
2011-09-13 01:19:28 -04:00
|
|
|
border-top: 4px solid @white;
|
2011-09-29 04:43:14 -04:00
|
|
|
.opacity(30);
|
|
|
|
}
|
|
|
|
.dropdown:hover .dropdown-toggle:after {
|
|
|
|
.opacity(100);
|
2011-08-26 23:38:23 -04:00
|
|
|
}
|
|
|
|
// The dropdown menu (ul)
|
|
|
|
.dropdown-menu {
|
2011-09-13 01:19:28 -04:00
|
|
|
background-color: @white;
|
2011-08-26 23:38:23 -04:00
|
|
|
float: left;
|
|
|
|
display: none; // None by default, but block on "open" of the menu
|
|
|
|
position: absolute;
|
|
|
|
top: 40px;
|
2011-09-09 02:08:38 -04:00
|
|
|
z-index: 900;
|
2011-08-26 23:38:23 -04:00
|
|
|
min-width: 160px;
|
|
|
|
max-width: 220px;
|
|
|
|
_width: 160px;
|
|
|
|
margin-left: 0; // override default ul styles
|
|
|
|
margin-right: 0;
|
|
|
|
padding: 6px 0;
|
|
|
|
zoom: 1; // do we need this?
|
|
|
|
border-color: #999;
|
|
|
|
border-color: rgba(0,0,0,.2);
|
|
|
|
border-style: solid;
|
|
|
|
border-width: 0 1px 1px;
|
|
|
|
.border-radius(0 0 6px 6px);
|
|
|
|
.box-shadow(0 2px 4px rgba(0,0,0,.2));
|
|
|
|
.background-clip(padding-box);
|
|
|
|
|
|
|
|
// Unfloat any li's to make them stack
|
|
|
|
li {
|
|
|
|
float: none;
|
2011-05-03 21:09:25 -04:00
|
|
|
display: block;
|
2011-08-26 23:38:23 -04:00
|
|
|
background-color: none;
|
2011-08-30 00:24:00 -04:00
|
|
|
}
|
2011-09-02 03:42:22 -04:00
|
|
|
// Dividers (basically an hr) within the dropdown
|
|
|
|
.divider {
|
|
|
|
height: 1px;
|
|
|
|
margin: 5px 0;
|
|
|
|
overflow: hidden;
|
|
|
|
background-color: #eee;
|
2011-09-13 01:19:28 -04:00
|
|
|
border-bottom: 1px solid @white;
|
2011-09-02 03:42:22 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.topbar .dropdown-menu, .dropdown-menu {
|
2011-08-30 00:24:00 -04:00
|
|
|
// Links within the dropdown menu
|
|
|
|
a {
|
|
|
|
display: block;
|
|
|
|
padding: 4px 15px;
|
|
|
|
clear: both;
|
|
|
|
font-weight: normal;
|
|
|
|
line-height: 18px;
|
|
|
|
color: @gray;
|
2011-09-13 01:19:28 -04:00
|
|
|
text-shadow: 0 1px 0 @white;
|
2011-08-30 00:24:00 -04:00
|
|
|
// Hover state
|
|
|
|
&:hover {
|
|
|
|
#gradient > .vertical(#eeeeee, #dddddd);
|
|
|
|
color: @grayDark;
|
|
|
|
text-decoration: none;
|
|
|
|
@shadow: inset 0 1px 0 rgba(0,0,0,.025), inset 0 -1px rgba(0,0,0,.025);
|
|
|
|
.box-shadow(@shadow);
|
2011-05-03 21:09:25 -04:00
|
|
|
}
|
2011-08-26 23:38:23 -04:00
|
|
|
}
|
|
|
|
}
|
2011-09-02 03:42:22 -04:00
|
|
|
|
2011-08-26 23:38:23 -04:00
|
|
|
// Open state for the dropdown
|
|
|
|
.dropdown.open {
|
|
|
|
.dropdown-toggle {
|
2011-09-13 01:19:28 -04:00
|
|
|
color: @white;
|
2011-08-31 13:55:53 -04:00
|
|
|
background: #ccc;
|
|
|
|
background: rgba(0,0,0,.3);
|
2011-08-26 23:38:23 -04:00
|
|
|
}
|
|
|
|
.dropdown-menu {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-08-27 02:18:39 -04:00
|
|
|
|
2011-08-26 23:38:23 -04:00
|
|
|
// Tabs and Pills
|
|
|
|
.tabs,
|
|
|
|
.pills {
|
|
|
|
margin: 0 0 20px;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
|
|
|
.clearfix();
|
|
|
|
> li {
|
|
|
|
float: left;
|
|
|
|
> a {
|
2011-05-03 21:09:25 -04:00
|
|
|
display: block;
|
|
|
|
}
|
2011-08-26 23:38:23 -04:00
|
|
|
}
|
|
|
|
}
|
2011-08-17 01:58:01 -04:00
|
|
|
|
2011-08-26 23:38:23 -04:00
|
|
|
// Basic Tabs
|
|
|
|
.tabs {
|
2011-09-03 02:01:38 -04:00
|
|
|
float: left;
|
2011-08-26 23:38:23 -04:00
|
|
|
width: 100%;
|
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
|
> li {
|
|
|
|
position: relative; // For the dropdowns mostly
|
2011-08-31 02:03:01 -04:00
|
|
|
top: 1px;
|
2011-08-26 23:38:23 -04:00
|
|
|
> a {
|
|
|
|
padding: 0 15px;
|
2011-09-16 13:14:35 -04:00
|
|
|
margin-right: 2px;
|
|
|
|
line-height: @baseline * 2;
|
|
|
|
border: 1px solid transparent;
|
2011-08-26 23:38:23 -04:00
|
|
|
.border-radius(4px 4px 0 0);
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
2011-09-16 13:14:35 -04:00
|
|
|
background-color: #eee;
|
|
|
|
border-color: #eee #eee #ddd;
|
2011-05-03 21:09:25 -04:00
|
|
|
}
|
|
|
|
}
|
2011-08-26 23:38:23 -04:00
|
|
|
&.active > a {
|
2011-09-16 13:14:35 -04:00
|
|
|
color: @gray;
|
2011-09-13 01:19:28 -04:00
|
|
|
background-color: @white;
|
2011-08-26 23:38:23 -04:00
|
|
|
border: 1px solid #ddd;
|
2011-09-16 13:14:35 -04:00
|
|
|
border-bottom-color: transparent;
|
2011-08-26 23:38:23 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.dropdown-menu {
|
|
|
|
top: 35px;
|
|
|
|
border-width: 1px;
|
|
|
|
.border-radius(0 6px 6px 6px);
|
|
|
|
}
|
|
|
|
.dropdown-toggle:after {
|
|
|
|
border-top-color: #999;
|
|
|
|
margin-top: 15px;
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
2011-09-07 00:54:00 -04:00
|
|
|
.open.dropdown .dropdown-toggle {
|
|
|
|
border-color: #999;
|
|
|
|
}
|
2011-08-26 23:38:23 -04:00
|
|
|
.dropdown.open .dropdown-toggle:after {
|
|
|
|
border-top-color: #555;
|
|
|
|
}
|
|
|
|
}
|
2011-09-13 17:47:18 -04:00
|
|
|
.tab-content {
|
|
|
|
clear: both;
|
|
|
|
}
|
2011-08-26 23:38:23 -04:00
|
|
|
|
|
|
|
// Basic pill nav
|
|
|
|
.pills {
|
2011-08-30 00:24:00 -04:00
|
|
|
a {
|
2011-09-28 22:06:10 -04:00
|
|
|
margin: 5px 3px 5px 0;
|
2011-08-30 00:24:00 -04:00
|
|
|
padding: 0 15px;
|
2011-09-13 01:19:28 -04:00
|
|
|
text-shadow: 0 1px 1px @white;
|
2011-08-30 00:24:00 -04:00
|
|
|
line-height: 30px;
|
|
|
|
.border-radius(15px);
|
|
|
|
&:hover {
|
|
|
|
background: @linkColorHover;
|
2011-09-13 01:19:28 -04:00
|
|
|
color: @white;
|
2011-08-30 00:24:00 -04:00
|
|
|
text-decoration: none;
|
2011-08-26 23:38:23 -04:00
|
|
|
text-shadow: 0 1px 1px rgba(0,0,0,.25);
|
2011-05-03 21:09:25 -04:00
|
|
|
}
|
|
|
|
}
|
2011-08-30 00:24:00 -04:00
|
|
|
.active a {
|
|
|
|
background: @linkColor;
|
2011-09-13 01:19:28 -04:00
|
|
|
color: @white;
|
2011-08-30 00:24:00 -04:00
|
|
|
text-shadow: 0 1px 1px rgba(0,0,0,.25);
|
|
|
|
}
|
2011-05-03 21:09:25 -04:00
|
|
|
}
|
|
|
|
|
2011-09-08 23:21:03 -04:00
|
|
|
.tab-content > *,
|
|
|
|
.pill-content > * {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-content > .active,
|
|
|
|
.pill-content > .active {
|
2011-09-28 22:06:10 -04:00
|
|
|
display: block;
|
2011-09-08 23:21:03 -04:00
|
|
|
}
|
|
|
|
|
2011-08-17 01:58:01 -04:00
|
|
|
|
2011-09-08 12:43:37 -04:00
|
|
|
// BREADCRUMBS
|
|
|
|
// -----------
|
|
|
|
|
|
|
|
.breadcrumb {
|
|
|
|
margin: 0 0 @baseline;
|
|
|
|
padding: 7px 14px;
|
|
|
|
#gradient > .vertical(#ffffff, #f5f5f5);
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
.border-radius(3px);
|
2011-09-13 01:19:28 -04:00
|
|
|
.box-shadow(inset 0 1px 0 @white);
|
2011-09-08 12:43:37 -04:00
|
|
|
li {
|
|
|
|
display: inline;
|
2011-09-13 01:19:28 -04:00
|
|
|
text-shadow: 0 1px 0 @white;
|
2011-09-08 12:43:37 -04:00
|
|
|
}
|
|
|
|
.divider {
|
|
|
|
padding: 0 5px;
|
|
|
|
color: @grayLight;
|
|
|
|
}
|
|
|
|
.active a {
|
|
|
|
color: @grayDark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-08-20 21:58:12 -04:00
|
|
|
// PAGE HEADERS
|
|
|
|
// ------------
|
|
|
|
|
|
|
|
.hero-unit {
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
margin-bottom: 30px;
|
|
|
|
padding: 60px;
|
|
|
|
.border-radius(6px);
|
|
|
|
h1 {
|
|
|
|
margin-bottom: 0;
|
|
|
|
font-size: 60px;
|
|
|
|
line-height: 1;
|
|
|
|
letter-spacing: -1px;
|
|
|
|
}
|
|
|
|
p {
|
|
|
|
font-size: 18px;
|
|
|
|
font-weight: 200;
|
|
|
|
line-height: @baseline * 1.5;
|
|
|
|
}
|
|
|
|
}
|
2011-08-22 15:50:30 -04:00
|
|
|
footer {
|
|
|
|
margin-top: @baseline - 1;
|
|
|
|
padding-top: @baseline - 1;
|
|
|
|
border-top: 1px solid #eee;
|
|
|
|
}
|
2011-08-20 21:58:12 -04:00
|
|
|
|
2011-08-30 00:24:00 -04:00
|
|
|
|
2011-08-17 01:58:01 -04:00
|
|
|
// PAGE HEADERS
|
2011-06-29 18:40:52 -04:00
|
|
|
// ------------
|
2011-05-03 21:09:25 -04:00
|
|
|
|
2011-08-21 23:03:12 -04:00
|
|
|
.page-header {
|
2011-05-03 21:09:25 -04:00
|
|
|
margin-bottom: @baseline - 1;
|
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
|
.box-shadow(0 1px 0 rgba(255,255,255,.5));
|
|
|
|
h1 {
|
2011-06-28 18:11:41 -04:00
|
|
|
margin-bottom: (@baseline / 2) - 1px;
|
2011-05-03 21:09:25 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-08-30 00:24:00 -04:00
|
|
|
|
2011-08-25 16:31:46 -04:00
|
|
|
// BUTTON STYLES
|
|
|
|
// -------------
|
2011-05-03 21:09:25 -04:00
|
|
|
|
2011-09-12 23:07:26 -04:00
|
|
|
// Shared colors for buttons and alerts
|
|
|
|
.btn,
|
|
|
|
.alert-message {
|
|
|
|
// Set text color
|
|
|
|
&.danger,
|
|
|
|
&.danger:hover,
|
|
|
|
&.error,
|
|
|
|
&.error:hover,
|
|
|
|
&.success,
|
|
|
|
&.success:hover,
|
|
|
|
&.info,
|
|
|
|
&.info:hover {
|
|
|
|
color: @white
|
|
|
|
}
|
|
|
|
// Danger and error appear as red
|
|
|
|
&.danger,
|
|
|
|
&.error {
|
|
|
|
.gradientBar(#ee5f5b, #c43c35);
|
|
|
|
}
|
|
|
|
// Success appears as green
|
|
|
|
&.success {
|
|
|
|
.gradientBar(#62c462, #57a957);
|
|
|
|
}
|
|
|
|
// Info appears as a neutral blue
|
|
|
|
&.info {
|
|
|
|
.gradientBar(#5bc0de, #339bb9);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-08-25 16:31:46 -04:00
|
|
|
// Base .btn styles
|
|
|
|
.btn {
|
|
|
|
// Button Base
|
|
|
|
cursor: pointer;
|
|
|
|
display: inline-block;
|
2011-09-02 15:46:47 -04:00
|
|
|
#gradient > .vertical-three-colors(#ffffff, #ffffff, 25%, darken(#ffffff, 10%)); // Don't use .gradientbar() here since it does a three-color gradient
|
2011-08-25 16:31:46 -04:00
|
|
|
padding: 5px 14px 6px;
|
|
|
|
text-shadow: 0 1px 1px rgba(255,255,255,.75);
|
|
|
|
color: #333;
|
2011-09-09 03:02:47 -04:00
|
|
|
font-size: @basefont;
|
2011-08-25 16:31:46 -04:00
|
|
|
line-height: normal;
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
border-bottom-color: #bbb;
|
|
|
|
.border-radius(4px);
|
|
|
|
@shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
|
|
|
|
.box-shadow(@shadow);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-position: 0 -15px;
|
|
|
|
color: #333;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2011-09-09 03:02:47 -04:00
|
|
|
// Focus state for keyboard and accessibility
|
|
|
|
&:focus {
|
|
|
|
outline: 1px dotted #666;
|
|
|
|
}
|
|
|
|
|
2011-08-25 16:52:04 -04:00
|
|
|
// Primary Button Type
|
|
|
|
&.primary {
|
2011-09-13 01:19:28 -04:00
|
|
|
color: @white;
|
2011-08-25 16:52:04 -04:00
|
|
|
.gradientBar(@blue, @blueDark)
|
|
|
|
}
|
|
|
|
|
2011-08-25 16:31:46 -04:00
|
|
|
// Transitions
|
|
|
|
.transition(.1s linear all);
|
|
|
|
|
|
|
|
// Active and Disabled states
|
2011-09-02 03:56:03 -04:00
|
|
|
&:active {
|
|
|
|
@shadow: inset 0 2px 4px rgba(0,0,0,.25), 0 1px 2px rgba(0,0,0,.05);
|
|
|
|
.box-shadow(@shadow);
|
|
|
|
}
|
2011-08-25 16:31:46 -04:00
|
|
|
&.disabled {
|
|
|
|
cursor: default;
|
|
|
|
background-image: none;
|
2011-09-02 15:19:43 -04:00
|
|
|
.reset-filter();
|
2011-08-25 16:31:46 -04:00
|
|
|
.opacity(65);
|
2011-09-02 03:02:44 -04:00
|
|
|
.box-shadow(none);
|
2011-08-25 16:31:46 -04:00
|
|
|
}
|
2011-09-02 15:19:43 -04:00
|
|
|
&[disabled] {
|
2011-08-25 16:31:46 -04:00
|
|
|
// disabled pseudo can't be included with .disabled
|
|
|
|
// def because IE8 and below will drop it ;_;
|
|
|
|
cursor: default;
|
|
|
|
background-image: none;
|
2011-09-02 15:19:43 -04:00
|
|
|
.reset-filter();
|
2011-08-25 16:31:46 -04:00
|
|
|
.opacity(65);
|
2011-09-02 03:28:54 -04:00
|
|
|
.box-shadow(none);
|
2011-08-25 16:31:46 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Button Sizes
|
|
|
|
&.large {
|
2011-09-09 03:02:47 -04:00
|
|
|
font-size: @basefont + 2px;
|
2011-08-25 16:31:46 -04:00
|
|
|
line-height: normal;
|
|
|
|
padding: 9px 14px 9px;
|
|
|
|
.border-radius(6px);
|
|
|
|
}
|
|
|
|
&.small {
|
|
|
|
padding: 7px 9px 7px;
|
2011-09-09 03:02:47 -04:00
|
|
|
font-size: @basefont - 2px;
|
2011-08-25 16:31:46 -04:00
|
|
|
}
|
|
|
|
}
|
2011-09-02 15:35:41 -04:00
|
|
|
// Super jank hack for removing border-radius from IE9 so we can keep filter gradients on alerts and buttons
|
|
|
|
:root .alert-message,
|
|
|
|
:root .btn {
|
|
|
|
border-radius: 0 \0;
|
2011-08-25 16:31:46 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Help Firefox not be a jerk about adding extra padding to buttons
|
|
|
|
button.btn,
|
|
|
|
input[type=submit].btn {
|
|
|
|
&::-moz-focus-inner {
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
|
|
|
}
|
2011-08-25 05:00:07 -04:00
|
|
|
}
|
|
|
|
|
2011-08-25 16:31:46 -04:00
|
|
|
|
2011-09-09 02:01:28 -04:00
|
|
|
// CLOSE ICONS
|
|
|
|
// -----------
|
|
|
|
.close {
|
|
|
|
float: right;
|
|
|
|
color: @black;
|
|
|
|
font-size: 20px;
|
|
|
|
font-weight: bold;
|
|
|
|
line-height: @baseline * .75;
|
|
|
|
text-shadow: 0 1px 0 rgba(255,255,255,1);
|
|
|
|
.opacity(20);
|
|
|
|
&:hover {
|
|
|
|
color: @black;
|
|
|
|
text-decoration: none;
|
|
|
|
.opacity(40);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-08-17 01:58:01 -04:00
|
|
|
// ERROR STYLES
|
2011-06-29 18:40:52 -04:00
|
|
|
// ------------
|
2011-05-03 21:09:25 -04:00
|
|
|
|
2011-08-25 05:00:07 -04:00
|
|
|
// Base alert styles
|
2011-08-21 23:03:12 -04:00
|
|
|
.alert-message {
|
2011-09-09 02:01:28 -04:00
|
|
|
position: relative;
|
|
|
|
padding: 7px 15px;
|
2011-05-03 21:09:25 -04:00
|
|
|
margin-bottom: @baseline;
|
2011-08-25 05:00:07 -04:00
|
|
|
color: @grayDark;
|
2011-09-09 02:01:28 -04:00
|
|
|
.gradientBar(#fceec1, #eedc94); // warning by default
|
2011-08-25 05:00:07 -04:00
|
|
|
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
|
|
|
border-width: 1px;
|
|
|
|
border-style: solid;
|
2011-06-28 18:11:41 -04:00
|
|
|
.border-radius(4px);
|
2011-08-25 05:00:07 -04:00
|
|
|
.box-shadow(inset 0 1px 0 rgba(255,255,255,.25));
|
2011-08-25 16:31:46 -04:00
|
|
|
|
2011-09-16 13:51:44 -04:00
|
|
|
// Adjust close icon
|
|
|
|
.close {
|
|
|
|
*margin-top: 3px; /* IE7 spacing */
|
|
|
|
}
|
|
|
|
|
2011-08-25 05:00:07 -04:00
|
|
|
// Remove extra margin from content
|
|
|
|
h5 {
|
|
|
|
line-height: @baseline;
|
|
|
|
}
|
2011-05-03 21:09:25 -04:00
|
|
|
p {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2011-08-25 05:00:07 -04:00
|
|
|
div {
|
|
|
|
margin-top: 5px;
|
|
|
|
margin-bottom: 2px;
|
|
|
|
line-height: 28px;
|
2011-05-03 21:09:25 -04:00
|
|
|
}
|
2011-08-25 05:00:07 -04:00
|
|
|
.btn {
|
2011-08-25 16:31:46 -04:00
|
|
|
// Provide actions with buttons
|
2011-08-25 05:00:07 -04:00
|
|
|
.box-shadow(0 1px 0 rgba(255,255,255,.25));
|
2011-05-03 21:09:25 -04:00
|
|
|
}
|
|
|
|
|
2011-08-26 01:41:45 -04:00
|
|
|
&.block-message {
|
2011-08-25 16:31:46 -04:00
|
|
|
background-image: none;
|
|
|
|
background-color: lighten(#fceec1, 5%);
|
2011-09-02 15:31:14 -04:00
|
|
|
.reset-filter();
|
2011-08-25 16:31:46 -04:00
|
|
|
padding: 14px;
|
|
|
|
border-color: #fceec1;
|
|
|
|
.box-shadow(none);
|
2011-09-03 02:28:01 -04:00
|
|
|
ul, p {
|
2011-08-25 16:31:46 -04:00
|
|
|
margin-right: 30px;
|
|
|
|
}
|
2011-09-03 02:28:01 -04:00
|
|
|
ul {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
li {
|
|
|
|
color: @grayDark;
|
|
|
|
}
|
2011-08-25 16:31:46 -04:00
|
|
|
.alert-actions {
|
|
|
|
margin-top: 5px;
|
|
|
|
}
|
|
|
|
&.error,
|
|
|
|
&.success,
|
|
|
|
&.info {
|
|
|
|
color: @grayDark;
|
|
|
|
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
|
|
|
}
|
|
|
|
&.error {
|
|
|
|
background-color: lighten(#f56a66, 25%);
|
|
|
|
border-color: lighten(#f56a66, 20%);
|
|
|
|
}
|
|
|
|
&.success {
|
|
|
|
background-color: lighten(#62c462, 30%);
|
|
|
|
border-color: lighten(#62c462, 25%);
|
|
|
|
}
|
|
|
|
&.info {
|
|
|
|
background-color: lighten(#6bd0ee, 25%);
|
|
|
|
border-color: lighten(#6bd0ee, 20%);
|
|
|
|
}
|
2011-05-03 21:09:25 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-08-17 01:58:01 -04:00
|
|
|
// PAGINATION
|
|
|
|
// ----------
|
2011-05-03 21:09:25 -04:00
|
|
|
|
2011-08-21 23:03:12 -04:00
|
|
|
.pagination {
|
2011-05-03 21:09:25 -04:00
|
|
|
height: @baseline * 2;
|
|
|
|
margin: @baseline 0;
|
|
|
|
ul {
|
|
|
|
float: left;
|
|
|
|
margin: 0;
|
2011-08-21 23:03:12 -04:00
|
|
|
border: 1px solid #ddd;
|
2011-05-03 21:09:25 -04:00
|
|
|
border: 1px solid rgba(0,0,0,.15);
|
|
|
|
.border-radius(3px);
|
2011-08-22 03:36:35 -04:00
|
|
|
.box-shadow(0 1px 2px rgba(0,0,0,.05));
|
2011-08-30 00:24:00 -04:00
|
|
|
}
|
|
|
|
li {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
a {
|
|
|
|
float: left;
|
|
|
|
padding: 0 14px;
|
|
|
|
line-height: (@baseline * 2) - 2;
|
|
|
|
border-right: 1px solid;
|
|
|
|
border-right-color: #ddd;
|
|
|
|
border-right-color: rgba(0,0,0,.15);
|
|
|
|
*border-right-color: #ddd; /* IE6-7 */
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
a:hover,
|
|
|
|
.active a {
|
|
|
|
background-color: lighten(@blue, 45%);
|
|
|
|
}
|
|
|
|
.disabled a,
|
|
|
|
.disabled a:hover {
|
|
|
|
background-color: transparent;
|
|
|
|
color: @grayLight;
|
|
|
|
}
|
|
|
|
.next a {
|
|
|
|
border: 0;
|
2011-05-03 21:09:25 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-08-17 01:58:01 -04:00
|
|
|
// WELLS
|
2011-06-29 18:40:52 -04:00
|
|
|
// -----
|
2011-05-03 21:09:25 -04:00
|
|
|
|
2011-08-20 21:58:12 -04:00
|
|
|
.well {
|
|
|
|
background-color: #f5f5f5;
|
2011-05-03 21:09:25 -04:00
|
|
|
margin-bottom: 20px;
|
|
|
|
padding: 19px;
|
|
|
|
min-height: 20px;
|
2011-08-20 21:58:12 -04:00
|
|
|
border: 1px solid #eee;
|
|
|
|
border: 1px solid rgba(0,0,0,.05);
|
2011-05-03 21:09:25 -04:00
|
|
|
.border-radius(4px);
|
2011-08-20 23:27:06 -04:00
|
|
|
.box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
|
2011-09-12 00:12:55 -04:00
|
|
|
blockquote {
|
|
|
|
border-color: #ddd;
|
|
|
|
border-color: rgba(0,0,0,.15);
|
|
|
|
}
|
2011-05-03 21:09:25 -04:00
|
|
|
}
|
2011-06-27 20:15:26 -04:00
|
|
|
|
|
|
|
|
2011-08-17 01:58:01 -04:00
|
|
|
// MODALS
|
2011-06-29 18:40:52 -04:00
|
|
|
// ------
|
2011-06-27 20:15:26 -04:00
|
|
|
|
2011-08-21 23:03:12 -04:00
|
|
|
.modal-backdrop {
|
2011-09-13 01:19:28 -04:00
|
|
|
background-color: @black;
|
2011-06-27 20:15:26 -04:00
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
2011-09-12 16:31:58 -04:00
|
|
|
z-index: 10000;
|
2011-09-12 22:00:44 -04:00
|
|
|
// Fade for backdrop
|
|
|
|
&.fade { opacity: 0; }
|
2011-06-27 20:15:26 -04:00
|
|
|
}
|
2011-08-28 20:50:14 -04:00
|
|
|
|
2011-08-28 20:45:57 -04:00
|
|
|
.modal-backdrop, .modal-backdrop.fade.in {
|
2011-09-10 21:26:37 -04:00
|
|
|
.opacity(80);
|
2011-08-28 20:45:57 -04:00
|
|
|
}
|
|
|
|
|
2011-08-21 23:03:12 -04:00
|
|
|
.modal {
|
2011-06-27 20:15:26 -04:00
|
|
|
position: fixed;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
2011-09-12 16:32:46 -04:00
|
|
|
z-index: 11000;
|
2011-06-28 14:56:49 -04:00
|
|
|
width: 560px;
|
2011-08-28 20:50:14 -04:00
|
|
|
margin: -250px 0 0 -250px;
|
2011-06-27 20:15:26 -04:00
|
|
|
background-color: @white;
|
2011-08-21 23:12:18 -04:00
|
|
|
border: 1px solid #999;
|
2011-06-28 13:45:27 -04:00
|
|
|
border: 1px solid rgba(0,0,0,.3);
|
2011-08-22 01:13:35 -04:00
|
|
|
*border: 1px solid #999; /* IE6-7 */
|
2011-06-28 13:47:26 -04:00
|
|
|
.border-radius(6px);
|
2011-06-28 14:56:49 -04:00
|
|
|
.box-shadow(0 3px 7px rgba(0,0,0,0.3));
|
2011-08-21 23:12:18 -04:00
|
|
|
.background-clip(padding-box);
|
2011-09-10 21:13:37 -04:00
|
|
|
.close { margin-top: 7px; }
|
2011-09-10 22:01:16 -04:00
|
|
|
&.fade {
|
|
|
|
.transition(e('opacity .3s linear, top .3s ease-out'));
|
|
|
|
top: -25%;
|
|
|
|
}
|
|
|
|
&.fade.in { top: 50%; }
|
2011-08-30 00:24:00 -04:00
|
|
|
}
|
|
|
|
.modal-header {
|
|
|
|
border-bottom: 1px solid #eee;
|
2011-09-09 02:01:28 -04:00
|
|
|
padding: 5px 15px;
|
2011-08-30 00:24:00 -04:00
|
|
|
}
|
|
|
|
.modal-body {
|
2011-09-09 02:01:28 -04:00
|
|
|
padding: 15px;
|
2011-08-30 00:24:00 -04:00
|
|
|
}
|
|
|
|
.modal-footer {
|
|
|
|
background-color: #f5f5f5;
|
2011-09-09 02:01:28 -04:00
|
|
|
padding: 14px 15px 15px;
|
2011-08-30 00:24:00 -04:00
|
|
|
border-top: 1px solid #ddd;
|
|
|
|
.border-radius(0 0 6px 6px);
|
2011-09-13 01:19:28 -04:00
|
|
|
.box-shadow(inset 0 1px 0 @white);
|
2011-08-30 00:24:00 -04:00
|
|
|
.clearfix();
|
|
|
|
margin-bottom: 0;
|
|
|
|
.btn {
|
2011-09-12 01:02:26 -04:00
|
|
|
float: right;
|
2011-09-09 19:00:59 -04:00
|
|
|
margin-left: 5px;
|
2011-06-28 14:56:49 -04:00
|
|
|
}
|
2011-06-27 20:15:26 -04:00
|
|
|
}
|
2011-07-02 00:30:12 -04:00
|
|
|
|
2011-07-02 02:10:39 -04:00
|
|
|
|
2011-08-17 01:58:01 -04:00
|
|
|
// POPOVER ARROWS
|
2011-07-02 02:10:39 -04:00
|
|
|
// --------------
|
|
|
|
|
|
|
|
#popoverArrow {
|
|
|
|
.above(@arrowWidth: 5px) {
|
|
|
|
bottom: 0;
|
|
|
|
left: 50%;
|
|
|
|
margin-left: -@arrowWidth;
|
|
|
|
border-left: @arrowWidth solid transparent;
|
|
|
|
border-right: @arrowWidth solid transparent;
|
2011-09-13 01:19:28 -04:00
|
|
|
border-top: @arrowWidth solid @black;
|
2011-07-02 02:10:39 -04:00
|
|
|
}
|
|
|
|
.left(@arrowWidth: 5px) {
|
|
|
|
top: 50%;
|
|
|
|
right: 0;
|
|
|
|
margin-top: -@arrowWidth;
|
|
|
|
border-top: @arrowWidth solid transparent;
|
|
|
|
border-bottom: @arrowWidth solid transparent;
|
2011-09-13 01:19:28 -04:00
|
|
|
border-left: @arrowWidth solid @black;
|
2011-07-02 02:10:39 -04:00
|
|
|
}
|
|
|
|
.below(@arrowWidth: 5px) {
|
|
|
|
top: 0;
|
|
|
|
left: 50%;
|
|
|
|
margin-left: -@arrowWidth;
|
|
|
|
border-left: @arrowWidth solid transparent;
|
|
|
|
border-right: @arrowWidth solid transparent;
|
2011-09-13 01:19:28 -04:00
|
|
|
border-bottom: @arrowWidth solid @black;
|
2011-07-02 02:10:39 -04:00
|
|
|
}
|
|
|
|
.right(@arrowWidth: 5px) {
|
|
|
|
top: 50%;
|
|
|
|
left: 0;
|
|
|
|
margin-top: -@arrowWidth;
|
|
|
|
border-top: @arrowWidth solid transparent;
|
|
|
|
border-bottom: @arrowWidth solid transparent;
|
2011-09-13 01:19:28 -04:00
|
|
|
border-right: @arrowWidth solid @black;
|
2011-07-02 02:10:39 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-08-17 01:58:01 -04:00
|
|
|
// TWIPSY
|
2011-07-02 00:30:12 -04:00
|
|
|
// ------
|
|
|
|
|
2011-08-21 23:03:12 -04:00
|
|
|
.twipsy {
|
2011-07-02 00:30:12 -04:00
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
visibility: visible;
|
|
|
|
padding: 5px;
|
2011-07-02 01:19:15 -04:00
|
|
|
font-size: 11px;
|
2011-07-05 17:24:53 -04:00
|
|
|
z-index: 1000;
|
2011-07-02 00:30:12 -04:00
|
|
|
.opacity(80);
|
2011-09-10 17:52:45 -04:00
|
|
|
&.fade.in {
|
|
|
|
.opacity(80);
|
|
|
|
}
|
2011-07-02 02:10:39 -04:00
|
|
|
&.above .twipsy-arrow { #popoverArrow > .above(); }
|
|
|
|
&.left .twipsy-arrow { #popoverArrow > .left(); }
|
|
|
|
&.below .twipsy-arrow { #popoverArrow > .below(); }
|
|
|
|
&.right .twipsy-arrow { #popoverArrow > .right(); }
|
2011-08-30 00:24:00 -04:00
|
|
|
}
|
|
|
|
.twipsy-inner {
|
|
|
|
padding: 3px 8px;
|
2011-09-13 01:19:28 -04:00
|
|
|
background-color: @black;
|
2011-08-30 00:24:00 -04:00
|
|
|
color: white;
|
|
|
|
text-align: center;
|
|
|
|
max-width: 200px;
|
|
|
|
text-decoration: none;
|
|
|
|
.border-radius(4px);
|
|
|
|
}
|
|
|
|
.twipsy-arrow {
|
|
|
|
position: absolute;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
2011-07-02 02:10:39 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-08-17 01:58:01 -04:00
|
|
|
// POPOVERS
|
2011-07-02 02:10:39 -04:00
|
|
|
// --------
|
|
|
|
|
|
|
|
.popover {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2011-07-05 17:24:53 -04:00
|
|
|
z-index: 1000;
|
2011-07-02 02:10:39 -04:00
|
|
|
padding: 5px;
|
2011-07-28 20:50:38 -04:00
|
|
|
display: none;
|
|
|
|
&.above .arrow { #popoverArrow > .above(); }
|
|
|
|
&.right .arrow { #popoverArrow > .right(); }
|
|
|
|
&.below .arrow { #popoverArrow > .below(); }
|
|
|
|
&.left .arrow { #popoverArrow > .left(); }
|
2011-07-02 02:10:39 -04:00
|
|
|
.arrow {
|
|
|
|
position: absolute;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
}
|
2011-07-28 20:50:38 -04:00
|
|
|
.inner {
|
2011-09-16 13:51:44 -04:00
|
|
|
background-color: @black;
|
|
|
|
background-color: rgba(0,0,0,.8);
|
2011-07-28 20:50:38 -04:00
|
|
|
padding: 3px;
|
|
|
|
overflow: hidden;
|
|
|
|
width: 280px;
|
|
|
|
.border-radius(6px);
|
|
|
|
.box-shadow(0 3px 7px rgba(0,0,0,0.3));
|
|
|
|
}
|
2011-07-02 02:10:39 -04:00
|
|
|
.title {
|
2011-08-21 23:17:10 -04:00
|
|
|
background-color: #f5f5f5;
|
2011-07-02 02:10:39 -04:00
|
|
|
padding: 9px 15px;
|
|
|
|
line-height: 1;
|
2011-07-28 20:50:38 -04:00
|
|
|
.border-radius(3px 3px 0 0);
|
|
|
|
border-bottom:1px solid #eee;
|
2011-07-02 02:10:39 -04:00
|
|
|
}
|
|
|
|
.content {
|
|
|
|
background-color: @white;
|
|
|
|
padding: 14px;
|
2011-07-28 20:50:38 -04:00
|
|
|
.border-radius(0 0 3px 3px);
|
2011-08-21 23:12:18 -04:00
|
|
|
.background-clip(padding-box);
|
2011-07-02 02:10:39 -04:00
|
|
|
p, ul, ol {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
2011-08-22 03:36:35 -04:00
|
|
|
}
|
2011-08-27 16:03:06 -04:00
|
|
|
|
|
|
|
|
2011-09-10 18:29:38 -04:00
|
|
|
// PATTERN ANIMATIONS
|
2011-08-27 16:03:06 -04:00
|
|
|
// ------------------
|
|
|
|
|
2011-08-27 21:03:01 -04:00
|
|
|
.fade {
|
2011-08-27 16:03:06 -04:00
|
|
|
.transition(opacity .15s linear);
|
|
|
|
opacity: 0;
|
2011-08-27 21:03:01 -04:00
|
|
|
&.in {
|
2011-08-27 16:03:06 -04:00
|
|
|
opacity: 1;
|
|
|
|
}
|
2011-09-10 18:29:38 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// LABELS
|
|
|
|
// ------
|
|
|
|
|
|
|
|
.label {
|
|
|
|
padding: 1px 3px 2px;
|
|
|
|
background-color: @grayLight;
|
|
|
|
font-size: @basefont * .75;
|
|
|
|
font-weight: bold;
|
|
|
|
color: @white;
|
|
|
|
text-transform: uppercase;
|
|
|
|
.border-radius(3px);
|
|
|
|
&.important { background-color: #c43c35; }
|
|
|
|
&.warning { background-color: @orange; }
|
|
|
|
&.success { background-color: @green; }
|
|
|
|
&.notice { background-color: lighten(@blue, 25%); }
|
2011-09-11 01:31:43 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// MEDIA GRIDS
|
|
|
|
// -----------
|
|
|
|
|
|
|
|
.media-grid {
|
|
|
|
margin-left: -20px;
|
2011-09-11 01:47:38 -04:00
|
|
|
margin-bottom: 0;
|
|
|
|
.clearfix();
|
2011-09-11 01:31:43 -04:00
|
|
|
li {
|
|
|
|
display: inline;
|
|
|
|
}
|
2011-09-11 01:50:59 -04:00
|
|
|
a {
|
2011-09-11 01:31:43 -04:00
|
|
|
float: left;
|
|
|
|
padding: 4px;
|
|
|
|
margin: 0 0 20px 20px;
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
.border-radius(4px);
|
|
|
|
.box-shadow(0 1px 1px rgba(0,0,0,.075));
|
2011-09-11 01:50:59 -04:00
|
|
|
img {
|
|
|
|
display: block;
|
|
|
|
}
|
2011-09-11 01:31:43 -04:00
|
|
|
&:hover {
|
|
|
|
border-color: @linkColor;
|
|
|
|
.box-shadow(0 1px 4px rgba(0,105,214,.25));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|