2011-11-26 06:34:55 +01:00
|
|
|
// Patterns.less
|
|
|
|
// Repeatable UI elements outside the base styles provided from the scaffolding
|
|
|
|
// ----------------------------------------------------------------------------
|
2011-05-04 03:09:25 +02:00
|
|
|
|
2011-08-17 07:58:01 +02:00
|
|
|
|
2011-10-11 18:44:51 +02:00
|
|
|
// NAVBAR (FIXED AND STATIC)
|
|
|
|
// -------------------------
|
2011-05-04 03:09:25 +02:00
|
|
|
|
2011-10-11 18:44:51 +02:00
|
|
|
// Navbar variables
|
|
|
|
@navBarHeight: 40px;
|
|
|
|
@navBarBgStart: #333;
|
|
|
|
@navBarBgEnd: #222;
|
2011-08-21 21:19:01 +02:00
|
|
|
|
2011-10-11 18:44:51 +02:00
|
|
|
// Common styles
|
|
|
|
.navbar {
|
|
|
|
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 {
|
2011-08-20 07:28:22 +02:00
|
|
|
// Hover and active states
|
2011-09-13 04:00:44 +02:00
|
|
|
.brand a:hover,
|
2011-09-07 06:54:00 +02:00
|
|
|
ul .active > a {
|
2011-05-04 03:09:25 +02:00
|
|
|
color: @white;
|
|
|
|
text-decoration: none;
|
2011-11-17 10:28:42 +01:00
|
|
|
background-color: @navBarBgStart;
|
|
|
|
background-color: rgba(255,255,255,.05);
|
2011-05-04 03:09:25 +02:00
|
|
|
}
|
2011-09-18 02:21:43 +02:00
|
|
|
// Website or project name
|
2011-09-12 05:00:45 +02:00
|
|
|
.brand {
|
|
|
|
float: left;
|
|
|
|
display: block;
|
|
|
|
padding: 8px 20px 12px;
|
|
|
|
margin-left: -20px; // negative indent to left-align the text down the page
|
|
|
|
font-size: 20px;
|
|
|
|
font-weight: 200;
|
|
|
|
line-height: 1;
|
2011-11-17 10:28:42 +01:00
|
|
|
color: @white;
|
2011-05-04 03:09:25 +02:00
|
|
|
}
|
2011-09-03 08:01:38 +02:00
|
|
|
// Plain text in topbar
|
|
|
|
p {
|
|
|
|
margin: 0;
|
|
|
|
line-height: 40px;
|
2011-09-03 08:09:59 +02:00
|
|
|
a:hover {
|
2011-09-13 04:00:44 +02:00
|
|
|
color: @white;
|
2011-11-17 10:28:42 +01:00
|
|
|
background-color: transparent;
|
2011-09-03 08:09:59 +02:00
|
|
|
}
|
2011-09-03 08:01:38 +02:00
|
|
|
}
|
2011-12-27 19:39:39 +01:00
|
|
|
// Buttons in navbar
|
|
|
|
.btn {
|
|
|
|
margin-top: 5px; // make buttons vertically centered in navbar
|
|
|
|
}
|
2011-10-11 18:44:51 +02:00
|
|
|
}
|
2011-09-03 08:01:38 +02:00
|
|
|
|
2011-10-11 18:44:51 +02:00
|
|
|
// Navbar search
|
|
|
|
.navbar-search {
|
|
|
|
position: relative;
|
2011-11-17 10:28:42 +01:00
|
|
|
float: left;
|
2011-10-11 18:52:50 +02:00
|
|
|
margin-top: 6px;
|
2011-10-11 18:44:51 +02:00
|
|
|
margin-bottom: 0;
|
2011-10-11 18:52:50 +02:00
|
|
|
.search-query {
|
2011-10-11 18:44:51 +02:00
|
|
|
padding: 4px 9px;
|
2011-11-17 10:28:42 +01:00
|
|
|
#font > .sans-serif(13px, normal, 1);
|
2011-10-11 18:44:51 +02:00
|
|
|
color: @white;
|
|
|
|
color: rgba(255,255,255,.75);
|
2011-11-17 10:28:42 +01:00
|
|
|
background-color: #444;
|
|
|
|
background-color: rgba(255,255,255,.3);
|
2011-10-11 18:44:51 +02:00
|
|
|
border: 1px solid #111;
|
2011-10-11 18:52:50 +02:00
|
|
|
@shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0px rgba(255,255,255,.15);
|
2011-10-11 18:44:51 +02:00
|
|
|
.box-shadow(@shadow);
|
|
|
|
.transition(none);
|
2011-10-10 06:13:26 +02:00
|
|
|
|
2011-10-11 18:44:51 +02: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 {
|
2011-11-17 10:28:42 +01:00
|
|
|
color: @white;
|
2011-10-11 18:44:51 +02:00
|
|
|
background-color: @grayLight;
|
|
|
|
background-color: rgba(255,255,255,.5);
|
|
|
|
}
|
|
|
|
// Focus states (we use .focused since IE8 and down doesn't support :focus)
|
|
|
|
&:focus,
|
|
|
|
&.focused {
|
2011-11-17 10:28:42 +01:00
|
|
|
padding: 5px 10px;
|
2011-10-11 18:44:51 +02:00
|
|
|
color: @grayDark;
|
|
|
|
text-shadow: 0 1px 0 @white;
|
2011-11-17 10:28:42 +01:00
|
|
|
background-color: @white;
|
2011-10-11 18:44:51 +02:00
|
|
|
border: 0;
|
|
|
|
.box-shadow(0 0 3px rgba(0,0,0,.15));
|
2011-11-17 10:28:42 +01:00
|
|
|
outline: 0;
|
2011-10-10 06:13:26 +02:00
|
|
|
}
|
2011-09-08 18:43:37 +02:00
|
|
|
}
|
2011-08-27 05:38:23 +02:00
|
|
|
}
|
2011-08-17 07:58:01 +02:00
|
|
|
|
2011-10-11 18:44:51 +02:00
|
|
|
|
|
|
|
// Static navbar
|
|
|
|
.navbar-static {
|
|
|
|
margin-bottom: @baseLineHeight;
|
2011-09-02 09:28:54 +02:00
|
|
|
}
|
2011-10-11 18:44:51 +02:00
|
|
|
.navbar-static .navbar-inner {
|
|
|
|
padding-left: 20px;
|
|
|
|
padding-right: 20px;
|
|
|
|
.border-radius(4px);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Fixed navbar
|
|
|
|
.navbar-fixed {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
2011-11-17 10:28:42 +01:00
|
|
|
left: 0;
|
2011-10-11 18:44:51 +02:00
|
|
|
z-index: 10000;
|
|
|
|
}
|
|
|
|
|
2011-09-02 09:28:54 +02:00
|
|
|
|
2011-08-27 05:38:23 +02:00
|
|
|
|
|
|
|
// NAVIGATION
|
|
|
|
// ----------
|
2011-08-27 08:18:39 +02:00
|
|
|
|
2011-10-11 18:44:51 +02:00
|
|
|
// Nav for navbar and topbar
|
2011-08-27 05:38:23 +02:00
|
|
|
// ul.nav for all topbar based navigation to avoid inheritance issues and over-specificity
|
|
|
|
.nav {
|
2011-11-17 10:28:42 +01:00
|
|
|
position: relative;
|
|
|
|
left: 0;
|
2011-08-27 05:38:23 +02:00
|
|
|
display: block;
|
|
|
|
float: left;
|
|
|
|
margin: 0 10px 0 0;
|
2011-09-02 09:28:54 +02:00
|
|
|
> li {
|
2011-05-04 03:09:25 +02:00
|
|
|
display: block;
|
|
|
|
float: left;
|
2011-08-30 06:24:00 +02:00
|
|
|
}
|
|
|
|
a {
|
|
|
|
display: block;
|
|
|
|
float: none;
|
|
|
|
padding: 10px 10px 11px;
|
|
|
|
line-height: 19px;
|
2011-12-27 00:25:25 +01:00
|
|
|
color: @grayLight;
|
2011-08-30 06:24:00 +02:00
|
|
|
text-decoration: none;
|
2011-12-27 00:25:25 +01:00
|
|
|
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
2011-08-30 06:24:00 +02:00
|
|
|
&:hover {
|
2011-09-13 07:19:28 +02:00
|
|
|
color: @white;
|
2011-08-27 05:38:23 +02:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
2011-09-07 06:54:00 +02:00
|
|
|
.active > a {
|
2011-08-30 06:24:00 +02:00
|
|
|
background-color: #222;
|
|
|
|
background-color: rgba(0,0,0,.5);
|
|
|
|
}
|
2011-11-30 08:16:09 +01:00
|
|
|
// Dividers (basically a vertical hr)
|
|
|
|
.divider {
|
|
|
|
height: 40px;
|
|
|
|
width: 1px;
|
|
|
|
margin: 0 5px;
|
|
|
|
overflow: hidden;
|
|
|
|
background-color: #222;
|
|
|
|
border-right: 1px solid #444;
|
|
|
|
}
|
2011-08-17 07:58:01 +02:00
|
|
|
|
2011-08-27 08:18:39 +02:00
|
|
|
// Secondary (floated right) nav in topbar
|
|
|
|
&.secondary-nav {
|
|
|
|
float: right;
|
|
|
|
margin-left: 10px;
|
|
|
|
margin-right: 0;
|
2011-08-30 06:24:00 +02:00
|
|
|
.dropdown-menu {
|
2011-08-27 08:18:39 +02:00
|
|
|
right: 0;
|
2011-09-12 05:38:45 +02:00
|
|
|
border: 0;
|
2011-08-27 08:18:39 +02:00
|
|
|
}
|
|
|
|
}
|
2011-08-27 05:38:23 +02:00
|
|
|
// Dropdowns within the .nav
|
2011-08-27 08:18:39 +02:00
|
|
|
.dropdown-toggle:hover,
|
|
|
|
.dropdown.open .dropdown-toggle {
|
2011-08-31 19:55:53 +02:00
|
|
|
background: #444;
|
|
|
|
background: rgba(255,255,255,.05);
|
2011-08-27 08:18:39 +02:00
|
|
|
}
|
|
|
|
.dropdown-menu {
|
|
|
|
background-color: #333;
|
|
|
|
.dropdown-toggle {
|
2011-09-13 07:19:28 +02:00
|
|
|
color: @white;
|
2011-08-27 08:18:39 +02:00
|
|
|
&.open {
|
2011-08-31 19:55:53 +02:00
|
|
|
background: #444;
|
|
|
|
background: rgba(255,255,255,.05);
|
2011-05-04 03:09:25 +02:00
|
|
|
}
|
2011-08-27 08:18:39 +02:00
|
|
|
}
|
|
|
|
li a {
|
|
|
|
color: #999;
|
|
|
|
text-shadow: 0 1px 0 rgba(0,0,0,.5);
|
2011-05-04 03:09:25 +02:00
|
|
|
&:hover {
|
2011-08-27 08:18:39 +02:00
|
|
|
#gradient > .vertical(#292929,#191919);
|
2011-09-13 07:19:28 +02:00
|
|
|
color: @white;
|
2011-05-04 03:09:25 +02:00
|
|
|
}
|
2011-08-27 08:18:39 +02:00
|
|
|
}
|
2011-09-07 06:54:00 +02:00
|
|
|
.active a {
|
2011-09-13 07:19:28 +02:00
|
|
|
color: @white;
|
2011-09-07 06:54:00 +02:00
|
|
|
}
|
2011-08-27 08:18:39 +02:00
|
|
|
.divider {
|
|
|
|
background-color: #222;
|
|
|
|
border-color: #444;
|
2011-05-04 03:09:25 +02:00
|
|
|
}
|
|
|
|
}
|
2011-08-27 05:38:23 +02:00
|
|
|
}
|
2011-08-17 07:58:01 +02:00
|
|
|
|
2011-09-02 09:50:05 +02:00
|
|
|
.topbar ul .dropdown-menu li a {
|
|
|
|
padding: 4px 15px;
|
|
|
|
}
|
|
|
|
|
2011-08-27 08:18:39 +02:00
|
|
|
|
2011-10-12 17:31:16 +02:00
|
|
|
|
2011-08-27 05:38:23 +02:00
|
|
|
|
2011-08-21 03:58:12 +02:00
|
|
|
// PAGE HEADERS
|
|
|
|
// ------------
|
|
|
|
|
|
|
|
.hero-unit {
|
|
|
|
padding: 60px;
|
2011-11-17 10:28:42 +01:00
|
|
|
margin-bottom: 30px;
|
|
|
|
background-color: #f5f5f5;
|
2011-08-21 03:58:12 +02:00
|
|
|
.border-radius(6px);
|
|
|
|
h1 {
|
|
|
|
margin-bottom: 0;
|
|
|
|
font-size: 60px;
|
|
|
|
line-height: 1;
|
|
|
|
letter-spacing: -1px;
|
|
|
|
}
|
|
|
|
p {
|
|
|
|
font-size: 18px;
|
|
|
|
font-weight: 200;
|
2011-10-04 09:20:38 +02:00
|
|
|
line-height: @baseLineHeight * 1.5;
|
2011-08-21 03:58:12 +02:00
|
|
|
}
|
|
|
|
}
|
2011-08-22 21:50:30 +02:00
|
|
|
footer {
|
2011-10-04 09:20:38 +02:00
|
|
|
padding-top: @baseLineHeight - 1;
|
2011-11-17 10:28:42 +01:00
|
|
|
margin-top: @baseLineHeight - 1;
|
2011-08-22 21:50:30 +02:00
|
|
|
border-top: 1px solid #eee;
|
|
|
|
}
|
2011-08-21 03:58:12 +02:00
|
|
|
|
2011-08-30 06:24:00 +02:00
|
|
|
|
2011-08-17 07:58:01 +02:00
|
|
|
// PAGE HEADERS
|
2011-06-30 00:40:52 +02:00
|
|
|
// ------------
|
2011-05-04 03:09:25 +02:00
|
|
|
|
2011-08-22 05:03:12 +02:00
|
|
|
.page-header {
|
2011-10-17 08:04:31 +02:00
|
|
|
margin-bottom: @baseLineHeight * 1.5;
|
|
|
|
border-bottom: 1px solid #eee;
|
2011-05-04 03:09:25 +02:00
|
|
|
.box-shadow(0 1px 0 rgba(255,255,255,.5));
|
|
|
|
h1 {
|
2011-10-17 08:04:31 +02:00
|
|
|
margin-bottom: @baseLineHeight * .75;
|
2011-05-04 03:09:25 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-08-30 06:24:00 +02:00
|
|
|
|
2011-08-25 22:31:46 +02:00
|
|
|
// BUTTON STYLES
|
|
|
|
// -------------
|
2011-05-04 03:09:25 +02:00
|
|
|
|
2011-09-13 05:07:26 +02: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 22:31:46 +02:00
|
|
|
// Base .btn styles
|
|
|
|
.btn {
|
|
|
|
// Button Base
|
|
|
|
display: inline-block;
|
|
|
|
padding: 5px 14px 6px;
|
2011-10-04 09:20:38 +02:00
|
|
|
font-size: @baseFontSize;
|
2011-08-25 22:31:46 +02:00
|
|
|
line-height: normal;
|
2011-11-17 10:28:42 +01:00
|
|
|
color: #333;
|
|
|
|
text-shadow: 0 1px 1px rgba(255,255,255,.75);
|
|
|
|
#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 22:31:46 +02:00
|
|
|
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);
|
2011-11-17 10:28:42 +01:00
|
|
|
cursor: pointer;
|
2011-08-25 22:31:46 +02:00
|
|
|
|
|
|
|
&:hover {
|
2011-12-21 23:22:20 +01:00
|
|
|
color: @grayDark;
|
2011-08-25 22:31:46 +02:00
|
|
|
text-decoration: none;
|
2011-11-17 10:28:42 +01:00
|
|
|
background-position: 0 -15px;
|
2011-08-25 22:31:46 +02:00
|
|
|
}
|
|
|
|
|
2011-09-09 09:02:47 +02:00
|
|
|
// Focus state for keyboard and accessibility
|
|
|
|
&:focus {
|
|
|
|
outline: 1px dotted #666;
|
|
|
|
}
|
|
|
|
|
2011-08-25 22:52:04 +02:00
|
|
|
// Primary Button Type
|
|
|
|
&.primary {
|
2011-09-13 07:19:28 +02:00
|
|
|
color: @white;
|
2011-12-21 23:22:20 +01:00
|
|
|
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
2011-08-25 22:52:04 +02:00
|
|
|
.gradientBar(@blue, @blueDark)
|
|
|
|
}
|
|
|
|
|
2011-08-25 22:31:46 +02:00
|
|
|
// Transitions
|
|
|
|
.transition(.1s linear all);
|
|
|
|
|
|
|
|
// Active and Disabled states
|
2011-11-24 23:43:26 +01:00
|
|
|
&.active,
|
2011-09-02 09:56:03 +02: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 22:31:46 +02:00
|
|
|
&.disabled {
|
|
|
|
cursor: default;
|
|
|
|
background-image: none;
|
2011-09-02 21:19:43 +02:00
|
|
|
.reset-filter();
|
2011-08-25 22:31:46 +02:00
|
|
|
.opacity(65);
|
2011-09-02 09:02:44 +02:00
|
|
|
.box-shadow(none);
|
2011-08-25 22:31:46 +02:00
|
|
|
}
|
2011-09-02 21:19:43 +02:00
|
|
|
&[disabled] {
|
2011-08-25 22:31:46 +02: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 21:19:43 +02:00
|
|
|
.reset-filter();
|
2011-08-25 22:31:46 +02:00
|
|
|
.opacity(65);
|
2011-09-02 09:28:54 +02:00
|
|
|
.box-shadow(none);
|
2011-08-25 22:31:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Button Sizes
|
|
|
|
&.large {
|
2011-11-17 10:28:42 +01:00
|
|
|
padding: 9px 14px 9px;
|
2011-10-04 09:20:38 +02:00
|
|
|
font-size: @baseFontSize + 2px;
|
2011-08-25 22:31:46 +02:00
|
|
|
line-height: normal;
|
|
|
|
.border-radius(6px);
|
|
|
|
}
|
|
|
|
&.small {
|
|
|
|
padding: 7px 9px 7px;
|
2011-10-04 09:20:38 +02:00
|
|
|
font-size: @baseFontSize - 2px;
|
2011-08-25 22:31:46 +02:00
|
|
|
}
|
|
|
|
}
|
2011-09-02 21:35:41 +02: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 22:31:46 +02: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 11:00:07 +02:00
|
|
|
}
|
|
|
|
|
2011-09-29 11:21:02 +02:00
|
|
|
// Button groups
|
|
|
|
// -------------
|
|
|
|
|
|
|
|
// Group multiple button groups together for a toolbar
|
|
|
|
.btn-toolbar {
|
|
|
|
.clearfix();
|
|
|
|
.btn-group {
|
|
|
|
float: left;
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Clear the float
|
|
|
|
.btn-group {
|
|
|
|
.clearfix();
|
|
|
|
}
|
|
|
|
// Float them, remove border radius, then re-add to first and last elements
|
|
|
|
.btn-group .btn {
|
|
|
|
position: relative;
|
|
|
|
float: left;
|
|
|
|
margin-left: -1px;
|
|
|
|
.border-radius(0);
|
2011-12-27 00:25:25 +01:00
|
|
|
// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
|
2011-09-29 11:21:02 +02:00
|
|
|
&:first-child {
|
|
|
|
margin-left: 0;
|
|
|
|
-webkit-border-top-left-radius: 4px;
|
|
|
|
-moz-border-radius-topleft: 4px;
|
|
|
|
border-top-left-radius: 4px;
|
|
|
|
-webkit-border-bottom-left-radius: 4px;
|
|
|
|
-moz-border-radius-bottomleft: 4px;
|
|
|
|
border-bottom-left-radius: 4px;
|
|
|
|
}
|
|
|
|
&:last-child {
|
|
|
|
-webkit-border-top-right-radius: 4px;
|
|
|
|
-moz-border-radius-topright: 4px;
|
|
|
|
border-top-right-radius: 4px;
|
|
|
|
-webkit-border-bottom-right-radius: 4px;
|
|
|
|
-moz-border-radius-bottomright: 4px;
|
|
|
|
border-bottom-right-radius: 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// On hover/focus/active, bring the proper btn to front
|
|
|
|
.btn-group .btn:hover,
|
|
|
|
.btn-group .btn:focus,
|
|
|
|
.btn-group .btn:active {
|
|
|
|
z-index: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-08-25 22:31:46 +02:00
|
|
|
|
2011-09-09 08:01:28 +02:00
|
|
|
// CLOSE ICONS
|
|
|
|
// -----------
|
|
|
|
.close {
|
|
|
|
float: right;
|
|
|
|
font-size: 20px;
|
|
|
|
font-weight: bold;
|
2011-10-04 09:20:38 +02:00
|
|
|
line-height: @baseLineHeight * .75;
|
2011-11-17 10:28:42 +01:00
|
|
|
color: @black;
|
2011-09-09 08:01:28 +02:00
|
|
|
text-shadow: 0 1px 0 rgba(255,255,255,1);
|
|
|
|
.opacity(20);
|
|
|
|
&:hover {
|
|
|
|
color: @black;
|
|
|
|
text-decoration: none;
|
|
|
|
.opacity(40);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-08-17 07:58:01 +02:00
|
|
|
// ERROR STYLES
|
2011-06-30 00:40:52 +02:00
|
|
|
// ------------
|
2011-05-04 03:09:25 +02:00
|
|
|
|
2011-08-25 11:00:07 +02:00
|
|
|
// Base alert styles
|
2011-08-22 05:03:12 +02:00
|
|
|
.alert-message {
|
2011-09-09 08:01:28 +02:00
|
|
|
position: relative;
|
|
|
|
padding: 7px 15px;
|
2011-10-04 09:20:38 +02:00
|
|
|
margin-bottom: @baseLineHeight;
|
2011-08-25 11:00:07 +02:00
|
|
|
color: @grayDark;
|
|
|
|
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
2011-11-17 10:28:42 +01:00
|
|
|
.gradientBar(#fceec1, #eedc94); // warning by default
|
2011-08-25 11:00:07 +02:00
|
|
|
border-width: 1px;
|
|
|
|
border-style: solid;
|
2011-06-29 00:11:41 +02:00
|
|
|
.border-radius(4px);
|
2011-08-25 11:00:07 +02:00
|
|
|
.box-shadow(inset 0 1px 0 rgba(255,255,255,.25));
|
2011-08-25 22:31:46 +02:00
|
|
|
|
2011-09-16 19:51:44 +02:00
|
|
|
// Adjust close icon
|
|
|
|
.close {
|
|
|
|
*margin-top: 3px; /* IE7 spacing */
|
|
|
|
}
|
|
|
|
|
2011-08-25 11:00:07 +02:00
|
|
|
// Remove extra margin from content
|
|
|
|
h5 {
|
2011-10-04 09:20:38 +02:00
|
|
|
line-height: @baseLineHeight;
|
2011-08-25 11:00:07 +02:00
|
|
|
}
|
2011-05-04 03:09:25 +02:00
|
|
|
p {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2011-08-25 11:00:07 +02:00
|
|
|
div {
|
|
|
|
margin-top: 5px;
|
|
|
|
margin-bottom: 2px;
|
|
|
|
line-height: 28px;
|
2011-05-04 03:09:25 +02:00
|
|
|
}
|
2011-08-25 11:00:07 +02:00
|
|
|
.btn {
|
2011-08-25 22:31:46 +02:00
|
|
|
// Provide actions with buttons
|
2011-08-25 11:00:07 +02:00
|
|
|
.box-shadow(0 1px 0 rgba(255,255,255,.25));
|
2011-05-04 03:09:25 +02:00
|
|
|
}
|
|
|
|
|
2011-12-21 23:00:50 +01:00
|
|
|
&.error,
|
|
|
|
&.success,
|
|
|
|
&.info {
|
|
|
|
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
|
|
|
}
|
|
|
|
|
2011-08-26 07:41:45 +02:00
|
|
|
&.block-message {
|
2011-11-17 10:28:42 +01:00
|
|
|
padding: 14px;
|
2011-08-25 22:31:46 +02:00
|
|
|
background-image: none;
|
|
|
|
background-color: lighten(#fceec1, 5%);
|
2011-11-17 10:28:42 +01:00
|
|
|
.reset-filter(); // undo gradient for IE9
|
2011-08-25 22:31:46 +02:00
|
|
|
border-color: #fceec1;
|
|
|
|
.box-shadow(none);
|
2011-09-03 08:28:01 +02:00
|
|
|
ul, p {
|
2011-08-25 22:31:46 +02:00
|
|
|
margin-right: 30px;
|
|
|
|
}
|
2011-09-03 08:28:01 +02:00
|
|
|
ul {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
li {
|
|
|
|
color: @grayDark;
|
|
|
|
}
|
2011-08-25 22:31:46 +02: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-04 03:09:25 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-17 07:58:01 +02:00
|
|
|
// WELLS
|
2011-06-30 00:40:52 +02:00
|
|
|
// -----
|
2011-05-04 03:09:25 +02:00
|
|
|
|
2011-08-21 03:58:12 +02:00
|
|
|
.well {
|
2011-05-04 03:09:25 +02:00
|
|
|
min-height: 20px;
|
2011-11-17 10:28:42 +01:00
|
|
|
padding: 19px;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
background-color: #f5f5f5;
|
2011-08-21 03:58:12 +02:00
|
|
|
border: 1px solid #eee;
|
|
|
|
border: 1px solid rgba(0,0,0,.05);
|
2011-05-04 03:09:25 +02:00
|
|
|
.border-radius(4px);
|
2011-08-21 05:27:06 +02:00
|
|
|
.box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
|
2011-09-12 06:12:55 +02:00
|
|
|
blockquote {
|
|
|
|
border-color: #ddd;
|
|
|
|
border-color: rgba(0,0,0,.15);
|
|
|
|
}
|
2011-05-04 03:09:25 +02:00
|
|
|
}
|
2011-06-28 02:15:26 +02:00
|
|
|
|
|
|
|
|
2011-09-11 00:29:38 +02:00
|
|
|
// PATTERN ANIMATIONS
|
2011-08-27 22:03:06 +02:00
|
|
|
// ------------------
|
|
|
|
|
2011-08-28 03:03:01 +02:00
|
|
|
.fade {
|
2011-08-27 22:03:06 +02:00
|
|
|
.transition(opacity .15s linear);
|
|
|
|
opacity: 0;
|
2011-08-28 03:03:01 +02:00
|
|
|
&.in {
|
2011-08-27 22:03:06 +02:00
|
|
|
opacity: 1;
|
|
|
|
}
|
2011-09-11 00:29:38 +02:00
|
|
|
}
|
|
|
|
|
2011-11-26 02:23:14 +01:00
|
|
|
.collapse {
|
2011-11-26 06:34:55 +01:00
|
|
|
.transition(height .35s ease);
|
2011-11-26 02:23:14 +01:00
|
|
|
position:relative;
|
|
|
|
overflow:hidden;
|
2011-11-26 06:34:55 +01:00
|
|
|
height: 0;
|
|
|
|
&.in { height: auto; }
|
2011-11-26 02:23:14 +01:00
|
|
|
}
|
|
|
|
|
2011-09-11 00:29:38 +02:00
|
|
|
|
|
|
|
// LABELS
|
|
|
|
// ------
|
|
|
|
|
|
|
|
.label {
|
|
|
|
padding: 1px 3px 2px;
|
2011-10-04 09:20:38 +02:00
|
|
|
font-size: @baseFontSize * .75;
|
2011-09-11 00:29:38 +02:00
|
|
|
font-weight: bold;
|
|
|
|
color: @white;
|
|
|
|
text-transform: uppercase;
|
2011-11-17 10:28:42 +01:00
|
|
|
background-color: @grayLight;
|
2011-09-11 00:29:38 +02:00
|
|
|
.border-radius(3px);
|
|
|
|
&.important { background-color: #c43c35; }
|
|
|
|
&.warning { background-color: @orange; }
|
|
|
|
&.success { background-color: @green; }
|
|
|
|
&.notice { background-color: lighten(@blue, 25%); }
|
2011-09-11 07:31:43 +02:00
|
|
|
}
|
|
|
|
|