twitter-bootstrap-turbo 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +266 -0
- data/Rakefile +14 -0
- data/app/helpers/bootstrap_flash_helper.rb +14 -0
- data/app/helpers/flash_block_helper.rb +17 -0
- data/app/helpers/glyph_helper.rb +12 -0
- data/app/helpers/modal_helper.rb +42 -0
- data/app/helpers/twitter_breadcrumbs_helper.rb +5 -0
- data/app/views/twitter-bootstrap/_breadcrumbs.html.erb +14 -0
- data/lib/generators/bootstrap/install/install_generator.rb +53 -0
- data/lib/generators/bootstrap/install/templates/application.css +7 -0
- data/lib/generators/bootstrap/install/templates/application.js +10 -0
- data/lib/generators/bootstrap/install/templates/bootstrap.coffee +9 -0
- data/lib/generators/bootstrap/install/templates/bootstrap_and_overrides.less +28 -0
- data/lib/generators/bootstrap/layout/layout_generator.rb +23 -0
- data/lib/generators/bootstrap/layout/templates/layout.html.erb +108 -0
- data/lib/generators/bootstrap/layout/templates/layout.html.haml +68 -0
- data/lib/generators/bootstrap/layout/templates/layout.html.slim +68 -0
- data/lib/generators/bootstrap/partial/partial_generator.rb +20 -0
- data/lib/generators/bootstrap/partial/templates/_login.html.erb +29 -0
- data/lib/generators/bootstrap/partial/templates/_navbar.html.erb +13 -0
- data/lib/generators/bootstrap/themed/templates/_form.html.erb +16 -0
- data/lib/generators/bootstrap/themed/templates/_form.html.haml +10 -0
- data/lib/generators/bootstrap/themed/templates/_form.html.slim +11 -0
- data/lib/generators/bootstrap/themed/templates/edit.html.erb +6 -0
- data/lib/generators/bootstrap/themed/templates/edit.html.haml +4 -0
- data/lib/generators/bootstrap/themed/templates/edit.html.slim +4 -0
- data/lib/generators/bootstrap/themed/templates/index.html.erb +40 -0
- data/lib/generators/bootstrap/themed/templates/index.html.haml +25 -0
- data/lib/generators/bootstrap/themed/templates/index.html.slim +27 -0
- data/lib/generators/bootstrap/themed/templates/new.html.erb +6 -0
- data/lib/generators/bootstrap/themed/templates/new.html.haml +4 -0
- data/lib/generators/bootstrap/themed/templates/new.html.slim +4 -0
- data/lib/generators/bootstrap/themed/templates/show.html.erb +23 -0
- data/lib/generators/bootstrap/themed/templates/show.html.haml +15 -0
- data/lib/generators/bootstrap/themed/templates/show.html.slim +17 -0
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb +14 -0
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.haml +11 -0
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.slim +12 -0
- data/lib/generators/bootstrap/themed/themed_generator.rb +99 -0
- data/lib/twitter-bootstrap-turbo.rb +10 -0
- data/lib/twitter/bootstrap/rails/bootstrap.rb +2 -0
- data/lib/twitter/bootstrap/rails/engine.rb +29 -0
- data/lib/twitter/bootstrap/rails/twitter-bootstrap-breadcrumbs.rb +30 -0
- data/lib/twitter/bootstrap/rails/version.rb +7 -0
- data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.svg +255 -0
- data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/twitter/bootstrap.js +13 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-affix.js +105 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-alert.js +92 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-button.js +98 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-carousel.js +178 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-collapse.js +159 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-dropdown.js +151 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-modal.js +241 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-popover.js +103 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-scrollspy.js +152 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-tab.js +137 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-tooltip.js +275 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-transition.js +60 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-typeahead.js +302 -0
- data/vendor/assets/javascripts/twitter/bootstrap_ujs.js +11 -0
- data/vendor/toolkit/font-awesome-ie7.less +245 -0
- data/vendor/toolkit/fontawesome.less +327 -0
- data/vendor/toolkit/twitter/bootstrap/accordion.less +34 -0
- data/vendor/toolkit/twitter/bootstrap/alerts.less +65 -0
- data/vendor/toolkit/twitter/bootstrap/bootstrap.less +62 -0
- data/vendor/toolkit/twitter/bootstrap/breadcrumbs.less +24 -0
- data/vendor/toolkit/twitter/bootstrap/button-groups.less +245 -0
- data/vendor/toolkit/twitter/bootstrap/buttons.less +231 -0
- data/vendor/toolkit/twitter/bootstrap/carousel.less +131 -0
- data/vendor/toolkit/twitter/bootstrap/close.less +31 -0
- data/vendor/toolkit/twitter/bootstrap/code.less +58 -0
- data/vendor/toolkit/twitter/bootstrap/component-animations.less +22 -0
- data/vendor/toolkit/twitter/bootstrap/dropdowns.less +210 -0
- data/vendor/toolkit/twitter/bootstrap/forms.less +650 -0
- data/vendor/toolkit/twitter/bootstrap/grid.less +21 -0
- data/vendor/toolkit/twitter/bootstrap/hero-unit.less +24 -0
- data/vendor/toolkit/twitter/bootstrap/labels-badges.less +72 -0
- data/vendor/toolkit/twitter/bootstrap/layouts.less +16 -0
- data/vendor/toolkit/twitter/bootstrap/mixins.less +681 -0
- data/vendor/toolkit/twitter/bootstrap/modals.less +98 -0
- data/vendor/toolkit/twitter/bootstrap/navbar.less +475 -0
- data/vendor/toolkit/twitter/bootstrap/navs.less +384 -0
- data/vendor/toolkit/twitter/bootstrap/pager.less +40 -0
- data/vendor/toolkit/twitter/bootstrap/pagination.less +64 -0
- data/vendor/toolkit/twitter/bootstrap/popovers.less +117 -0
- data/vendor/toolkit/twitter/bootstrap/progress-bars.less +122 -0
- data/vendor/toolkit/twitter/bootstrap/reset.less +137 -0
- data/vendor/toolkit/twitter/bootstrap/responsive-1200px-min.less +28 -0
- data/vendor/toolkit/twitter/bootstrap/responsive-767px-max.less +174 -0
- data/vendor/toolkit/twitter/bootstrap/responsive-768px-979px.less +19 -0
- data/vendor/toolkit/twitter/bootstrap/responsive-navbar.less +177 -0
- data/vendor/toolkit/twitter/bootstrap/responsive-utilities.less +43 -0
- data/vendor/toolkit/twitter/bootstrap/responsive.less +48 -0
- data/vendor/toolkit/twitter/bootstrap/scaffolding.less +52 -0
- data/vendor/toolkit/twitter/bootstrap/sprites.less +193 -0
- data/vendor/toolkit/twitter/bootstrap/tables.less +245 -0
- data/vendor/toolkit/twitter/bootstrap/thumbnails.less +52 -0
- data/vendor/toolkit/twitter/bootstrap/tooltip.less +70 -0
- data/vendor/toolkit/twitter/bootstrap/type.less +221 -0
- data/vendor/toolkit/twitter/bootstrap/utilities.less +30 -0
- data/vendor/toolkit/twitter/bootstrap/variables.less +279 -0
- data/vendor/toolkit/twitter/bootstrap/wells.less +29 -0
- data/vendor/toolkit/twitter/bootstrap_base.less +2 -0
- metadata +235 -0
@@ -0,0 +1,131 @@
|
|
1
|
+
//
|
2
|
+
// Carousel
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
.carousel {
|
7
|
+
position: relative;
|
8
|
+
margin-bottom: @baseLineHeight;
|
9
|
+
line-height: 1;
|
10
|
+
}
|
11
|
+
|
12
|
+
.carousel-inner {
|
13
|
+
overflow: hidden;
|
14
|
+
width: 100%;
|
15
|
+
position: relative;
|
16
|
+
}
|
17
|
+
|
18
|
+
.carousel {
|
19
|
+
|
20
|
+
.item {
|
21
|
+
display: none;
|
22
|
+
position: relative;
|
23
|
+
.transition(.6s ease-in-out left);
|
24
|
+
}
|
25
|
+
|
26
|
+
// Account for jankitude on images
|
27
|
+
.item > img {
|
28
|
+
display: block;
|
29
|
+
line-height: 1;
|
30
|
+
}
|
31
|
+
|
32
|
+
.active,
|
33
|
+
.next,
|
34
|
+
.prev { display: block; }
|
35
|
+
|
36
|
+
.active {
|
37
|
+
left: 0;
|
38
|
+
}
|
39
|
+
|
40
|
+
.next,
|
41
|
+
.prev {
|
42
|
+
position: absolute;
|
43
|
+
top: 0;
|
44
|
+
width: 100%;
|
45
|
+
}
|
46
|
+
|
47
|
+
.next {
|
48
|
+
left: 100%;
|
49
|
+
}
|
50
|
+
.prev {
|
51
|
+
left: -100%;
|
52
|
+
}
|
53
|
+
.next.left,
|
54
|
+
.prev.right {
|
55
|
+
left: 0;
|
56
|
+
}
|
57
|
+
|
58
|
+
.active.left {
|
59
|
+
left: -100%;
|
60
|
+
}
|
61
|
+
.active.right {
|
62
|
+
left: 100%;
|
63
|
+
}
|
64
|
+
|
65
|
+
}
|
66
|
+
|
67
|
+
// Left/right controls for nav
|
68
|
+
// ---------------------------
|
69
|
+
|
70
|
+
.carousel-control {
|
71
|
+
position: absolute;
|
72
|
+
top: 40%;
|
73
|
+
left: 15px;
|
74
|
+
width: 40px;
|
75
|
+
height: 40px;
|
76
|
+
margin-top: -20px;
|
77
|
+
font-size: 60px;
|
78
|
+
font-weight: 100;
|
79
|
+
line-height: 30px;
|
80
|
+
color: @white;
|
81
|
+
text-align: center;
|
82
|
+
background: @grayDarker;
|
83
|
+
border: 3px solid @white;
|
84
|
+
.border-radius(23px);
|
85
|
+
.opacity(50);
|
86
|
+
|
87
|
+
// we can't have this transition here
|
88
|
+
// because webkit cancels the carousel
|
89
|
+
// animation if you trip this while
|
90
|
+
// in the middle of another animation
|
91
|
+
// ;_;
|
92
|
+
// .transition(opacity .2s linear);
|
93
|
+
|
94
|
+
// Reposition the right one
|
95
|
+
&.right {
|
96
|
+
left: auto;
|
97
|
+
right: 15px;
|
98
|
+
}
|
99
|
+
|
100
|
+
// Hover state
|
101
|
+
&:hover {
|
102
|
+
color: @white;
|
103
|
+
text-decoration: none;
|
104
|
+
.opacity(90);
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
|
109
|
+
// Caption for text below images
|
110
|
+
// -----------------------------
|
111
|
+
|
112
|
+
.carousel-caption {
|
113
|
+
position: absolute;
|
114
|
+
left: 0;
|
115
|
+
right: 0;
|
116
|
+
bottom: 0;
|
117
|
+
padding: 15px;
|
118
|
+
background: @grayDark;
|
119
|
+
background: rgba(0,0,0,.75);
|
120
|
+
}
|
121
|
+
.carousel-caption h4,
|
122
|
+
.carousel-caption p {
|
123
|
+
color: @white;
|
124
|
+
line-height: @baseLineHeight;
|
125
|
+
}
|
126
|
+
.carousel-caption h4 {
|
127
|
+
margin: 0 0 5px;
|
128
|
+
}
|
129
|
+
.carousel-caption p {
|
130
|
+
margin-bottom: 0;
|
131
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
//
|
2
|
+
// Close icons
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
.close {
|
7
|
+
float: right;
|
8
|
+
font-size: 20px;
|
9
|
+
font-weight: bold;
|
10
|
+
line-height: @baseLineHeight;
|
11
|
+
color: @black;
|
12
|
+
text-shadow: 0 1px 0 rgba(255,255,255,1);
|
13
|
+
.opacity(20);
|
14
|
+
&:hover {
|
15
|
+
color: @black;
|
16
|
+
text-decoration: none;
|
17
|
+
cursor: pointer;
|
18
|
+
.opacity(40);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
// Additional properties for button version
|
23
|
+
// iOS requires the button element instead of an anchor tag.
|
24
|
+
// If you want the anchor version, it requires `href="#"`.
|
25
|
+
button.close {
|
26
|
+
padding: 0;
|
27
|
+
cursor: pointer;
|
28
|
+
background: transparent;
|
29
|
+
border: 0;
|
30
|
+
-webkit-appearance: none;
|
31
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
//
|
2
|
+
// Code (inline and blocK)
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Inline and block code styles
|
7
|
+
code,
|
8
|
+
pre {
|
9
|
+
padding: 0 3px 2px;
|
10
|
+
#font > #family > .monospace;
|
11
|
+
font-size: @baseFontSize - 2;
|
12
|
+
color: @grayDark;
|
13
|
+
.border-radius(3px);
|
14
|
+
}
|
15
|
+
|
16
|
+
// Inline code
|
17
|
+
code {
|
18
|
+
padding: 2px 4px;
|
19
|
+
color: #d14;
|
20
|
+
background-color: #f7f7f9;
|
21
|
+
border: 1px solid #e1e1e8;
|
22
|
+
}
|
23
|
+
|
24
|
+
// Blocks of code
|
25
|
+
pre {
|
26
|
+
display: block;
|
27
|
+
padding: (@baseLineHeight - 1) / 2;
|
28
|
+
margin: 0 0 @baseLineHeight / 2;
|
29
|
+
font-size: @baseFontSize - 1; // 14px to 13px
|
30
|
+
line-height: @baseLineHeight;
|
31
|
+
word-break: break-all;
|
32
|
+
word-wrap: break-word;
|
33
|
+
white-space: pre;
|
34
|
+
white-space: pre-wrap;
|
35
|
+
background-color: #f5f5f5;
|
36
|
+
border: 1px solid #ccc; // fallback for IE7-8
|
37
|
+
border: 1px solid rgba(0,0,0,.15);
|
38
|
+
.border-radius(4px);
|
39
|
+
|
40
|
+
// Make prettyprint styles more spaced out for readability
|
41
|
+
&.prettyprint {
|
42
|
+
margin-bottom: @baseLineHeight;
|
43
|
+
}
|
44
|
+
|
45
|
+
// Account for some code outputs that place code tags in pre tags
|
46
|
+
code {
|
47
|
+
padding: 0;
|
48
|
+
color: inherit;
|
49
|
+
background-color: transparent;
|
50
|
+
border: 0;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
// Enable scrollable blocks of code
|
55
|
+
.pre-scrollable {
|
56
|
+
max-height: 340px;
|
57
|
+
overflow-y: scroll;
|
58
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
//
|
2
|
+
// Component animations
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
.fade {
|
7
|
+
opacity: 0;
|
8
|
+
.transition(opacity .15s linear);
|
9
|
+
&.in {
|
10
|
+
opacity: 1;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
.collapse {
|
15
|
+
position: relative;
|
16
|
+
height: 0;
|
17
|
+
overflow: hidden;
|
18
|
+
.transition(height .35s ease);
|
19
|
+
&.in {
|
20
|
+
height: auto;
|
21
|
+
}
|
22
|
+
}
|
@@ -0,0 +1,210 @@
|
|
1
|
+
//
|
2
|
+
// Dropdown menus
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Use the .menu class on any <li> element within the topbar or ul.tabs and you'll get some superfancy dropdowns
|
7
|
+
.dropup,
|
8
|
+
.dropdown {
|
9
|
+
position: relative;
|
10
|
+
}
|
11
|
+
.dropdown-toggle {
|
12
|
+
// The caret makes the toggle a bit too tall in IE7
|
13
|
+
*margin-bottom: -3px;
|
14
|
+
}
|
15
|
+
.dropdown-toggle:active,
|
16
|
+
.open .dropdown-toggle {
|
17
|
+
outline: 0;
|
18
|
+
}
|
19
|
+
|
20
|
+
// Dropdown arrow/caret
|
21
|
+
// --------------------
|
22
|
+
.caret {
|
23
|
+
display: inline-block;
|
24
|
+
width: 0;
|
25
|
+
height: 0;
|
26
|
+
vertical-align: top;
|
27
|
+
border-top: 4px solid @black;
|
28
|
+
border-right: 4px solid transparent;
|
29
|
+
border-left: 4px solid transparent;
|
30
|
+
content: "";
|
31
|
+
}
|
32
|
+
|
33
|
+
// Place the caret
|
34
|
+
.dropdown .caret {
|
35
|
+
margin-top: 8px;
|
36
|
+
margin-left: 2px;
|
37
|
+
}
|
38
|
+
|
39
|
+
// The dropdown menu (ul)
|
40
|
+
// ----------------------
|
41
|
+
.dropdown-menu {
|
42
|
+
position: absolute;
|
43
|
+
top: 100%;
|
44
|
+
left: 0;
|
45
|
+
z-index: @zindexDropdown;
|
46
|
+
display: none; // none by default, but block on "open" of the menu
|
47
|
+
float: left;
|
48
|
+
min-width: 160px;
|
49
|
+
padding: 5px 0;
|
50
|
+
margin: 2px 0 0; // override default ul
|
51
|
+
list-style: none;
|
52
|
+
background-color: @dropdownBackground;
|
53
|
+
border: 1px solid #ccc; // Fallback for IE7-8
|
54
|
+
border: 1px solid @dropdownBorder;
|
55
|
+
*border-right-width: 2px;
|
56
|
+
*border-bottom-width: 2px;
|
57
|
+
.border-radius(6px);
|
58
|
+
.box-shadow(0 5px 10px rgba(0,0,0,.2));
|
59
|
+
-webkit-background-clip: padding-box;
|
60
|
+
-moz-background-clip: padding;
|
61
|
+
background-clip: padding-box;
|
62
|
+
|
63
|
+
// Aligns the dropdown menu to right
|
64
|
+
&.pull-right {
|
65
|
+
right: 0;
|
66
|
+
left: auto;
|
67
|
+
}
|
68
|
+
|
69
|
+
// Dividers (basically an hr) within the dropdown
|
70
|
+
.divider {
|
71
|
+
.nav-divider(@dropdownDividerTop, @dropdownDividerBottom);
|
72
|
+
}
|
73
|
+
|
74
|
+
// Links within the dropdown menu
|
75
|
+
a {
|
76
|
+
display: block;
|
77
|
+
padding: 3px 20px;
|
78
|
+
clear: both;
|
79
|
+
font-weight: normal;
|
80
|
+
line-height: @baseLineHeight;
|
81
|
+
color: @dropdownLinkColor;
|
82
|
+
white-space: nowrap;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
// Hover state
|
87
|
+
// -----------
|
88
|
+
.dropdown-menu li > a:hover,
|
89
|
+
.dropdown-menu li > a:focus,
|
90
|
+
.dropdown-submenu:hover > a {
|
91
|
+
text-decoration: none;
|
92
|
+
color: @dropdownLinkColorHover;
|
93
|
+
background-color: @dropdownLinkBackgroundHover;
|
94
|
+
#gradient > .vertical(@dropdownLinkBackgroundHover, darken(@dropdownLinkBackgroundHover, 5%));
|
95
|
+
}
|
96
|
+
|
97
|
+
// Active state
|
98
|
+
// ------------
|
99
|
+
.dropdown-menu .active > a,
|
100
|
+
.dropdown-menu .active > a:hover {
|
101
|
+
color: @dropdownLinkColorHover;
|
102
|
+
text-decoration: none;
|
103
|
+
outline: 0;
|
104
|
+
background-color: @dropdownLinkBackgroundActive;
|
105
|
+
#gradient > .vertical(@dropdownLinkBackgroundActive, darken(@dropdownLinkBackgroundActive, 5%));
|
106
|
+
}
|
107
|
+
|
108
|
+
// Disabled state
|
109
|
+
// --------------
|
110
|
+
// Gray out text and ensure the hover state remains gray
|
111
|
+
.dropdown-menu .disabled > a,
|
112
|
+
.dropdown-menu .disabled > a:hover {
|
113
|
+
color: @grayLight;
|
114
|
+
}
|
115
|
+
// Nuke hover effects
|
116
|
+
.dropdown-menu .disabled > a:hover {
|
117
|
+
text-decoration: none;
|
118
|
+
background-color: transparent;
|
119
|
+
cursor: default;
|
120
|
+
}
|
121
|
+
|
122
|
+
// Open state for the dropdown
|
123
|
+
// ---------------------------
|
124
|
+
.open {
|
125
|
+
// IE7's z-index only goes to the nearest positioned ancestor, which would
|
126
|
+
// make the menu appear below buttons that appeared later on the page
|
127
|
+
*z-index: @zindexDropdown;
|
128
|
+
|
129
|
+
& > .dropdown-menu {
|
130
|
+
display: block;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
// Right aligned dropdowns
|
135
|
+
// ---------------------------
|
136
|
+
.pull-right > .dropdown-menu {
|
137
|
+
right: 0;
|
138
|
+
left: auto;
|
139
|
+
}
|
140
|
+
|
141
|
+
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
142
|
+
// ------------------------------------------------------
|
143
|
+
// Just add .dropup after the standard .dropdown class and you're set, bro.
|
144
|
+
// TODO: abstract this so that the navbar fixed styles are not placed here?
|
145
|
+
.dropup,
|
146
|
+
.navbar-fixed-bottom .dropdown {
|
147
|
+
// Reverse the caret
|
148
|
+
.caret {
|
149
|
+
border-top: 0;
|
150
|
+
border-bottom: 4px solid @black;
|
151
|
+
content: "";
|
152
|
+
}
|
153
|
+
// Different positioning for bottom up menu
|
154
|
+
.dropdown-menu {
|
155
|
+
top: auto;
|
156
|
+
bottom: 100%;
|
157
|
+
margin-bottom: 1px;
|
158
|
+
}
|
159
|
+
}
|
160
|
+
|
161
|
+
// Sub menus
|
162
|
+
// ---------------------------
|
163
|
+
.dropdown-submenu {
|
164
|
+
position: relative;
|
165
|
+
}
|
166
|
+
.dropdown-submenu > .dropdown-menu {
|
167
|
+
top: 0;
|
168
|
+
left: 100%;
|
169
|
+
margin-top: -6px;
|
170
|
+
margin-left: -1px;
|
171
|
+
-webkit-border-radius: 0 6px 6px 6px;
|
172
|
+
-moz-border-radius: 0 6px 6px 6px;
|
173
|
+
border-radius: 0 6px 6px 6px;
|
174
|
+
}
|
175
|
+
.dropdown-submenu:hover > .dropdown-menu {
|
176
|
+
display: block;
|
177
|
+
}
|
178
|
+
|
179
|
+
.dropdown-submenu > a:after {
|
180
|
+
display: block;
|
181
|
+
content: " ";
|
182
|
+
float: right;
|
183
|
+
width: 0;
|
184
|
+
height: 0;
|
185
|
+
border-color: transparent;
|
186
|
+
border-style: solid;
|
187
|
+
border-width: 5px 0 5px 5px;
|
188
|
+
border-left-color: darken(@dropdownBackground, 20%);
|
189
|
+
margin-top: 5px;
|
190
|
+
margin-right: -10px;
|
191
|
+
}
|
192
|
+
.dropdown-submenu:hover > a:after {
|
193
|
+
border-left-color: @dropdownLinkColorHover;
|
194
|
+
}
|
195
|
+
|
196
|
+
|
197
|
+
// Tweak nav headers
|
198
|
+
// -----------------
|
199
|
+
// Increase padding from 15px to 20px on sides
|
200
|
+
.dropdown .dropdown-menu .nav-header {
|
201
|
+
padding-left: 20px;
|
202
|
+
padding-right: 20px;
|
203
|
+
}
|
204
|
+
|
205
|
+
// Typeahead
|
206
|
+
// ---------
|
207
|
+
.typeahead {
|
208
|
+
margin-top: 2px; // give it some space to breathe
|
209
|
+
.border-radius(4px);
|
210
|
+
}
|