bootstrap_farsi 3.2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +100 -0
  6. data/Rakefile +2 -0
  7. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.eot +0 -0
  8. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.svg +229 -0
  9. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  10. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.woff +0 -0
  11. data/app/assets/javascripts/twitter/bootstrap.js +6 -0
  12. data/app/assets/javascripts/twitter/bootstrap/.DS_Store +0 -0
  13. data/app/assets/javascripts/twitter/bootstrap/affix.js +142 -0
  14. data/app/assets/javascripts/twitter/bootstrap/alert.js +92 -0
  15. data/app/assets/javascripts/twitter/bootstrap/button.js +110 -0
  16. data/app/assets/javascripts/twitter/bootstrap/carousel.js +223 -0
  17. data/app/assets/javascripts/twitter/bootstrap/collapse.js +170 -0
  18. data/app/assets/javascripts/twitter/bootstrap/dropdown.js +151 -0
  19. data/app/assets/javascripts/twitter/bootstrap/modal.js +280 -0
  20. data/app/assets/javascripts/twitter/bootstrap/popover.js +113 -0
  21. data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +170 -0
  22. data/app/assets/javascripts/twitter/bootstrap/tab.js +128 -0
  23. data/app/assets/javascripts/twitter/bootstrap/tooltip.js +457 -0
  24. data/app/assets/javascripts/twitter/bootstrap/transition.js +59 -0
  25. data/app/frameworks/twitter/bootstrap/alerts.less +68 -0
  26. data/app/frameworks/twitter/bootstrap/badges.less +55 -0
  27. data/app/frameworks/twitter/bootstrap/bi-app/bi-app-ltr.less +12 -0
  28. data/app/frameworks/twitter/bootstrap/bi-app/bi-app-rtl.less +16 -0
  29. data/app/frameworks/twitter/bootstrap/bi-app/mixins.less +326 -0
  30. data/app/frameworks/twitter/bootstrap/bi-app/variables-ltr.less +16 -0
  31. data/app/frameworks/twitter/bootstrap/bi-app/variables-rtl.less +16 -0
  32. data/app/frameworks/twitter/bootstrap/bootstrap.less +53 -0
  33. data/app/frameworks/twitter/bootstrap/breadcrumbs.less +26 -0
  34. data/app/frameworks/twitter/bootstrap/button-groups.less +240 -0
  35. data/app/frameworks/twitter/bootstrap/buttons.less +157 -0
  36. data/app/frameworks/twitter/bootstrap/carousel.less +241 -0
  37. data/app/frameworks/twitter/bootstrap/close.less +33 -0
  38. data/app/frameworks/twitter/bootstrap/code.less +69 -0
  39. data/app/frameworks/twitter/bootstrap/component-animations.less +31 -0
  40. data/app/frameworks/twitter/bootstrap/dropdowns.less +215 -0
  41. data/app/frameworks/twitter/bootstrap/forms.less +540 -0
  42. data/app/frameworks/twitter/bootstrap/glyphicons.less +233 -0
  43. data/app/frameworks/twitter/bootstrap/grid.less +84 -0
  44. data/app/frameworks/twitter/bootstrap/input-groups.less +166 -0
  45. data/app/frameworks/twitter/bootstrap/jumbotron.less +48 -0
  46. data/app/frameworks/twitter/bootstrap/labels.less +64 -0
  47. data/app/frameworks/twitter/bootstrap/list-group.less +131 -0
  48. data/app/frameworks/twitter/bootstrap/media.less +56 -0
  49. data/app/frameworks/twitter/bootstrap/mixins.less +39 -0
  50. data/app/frameworks/twitter/bootstrap/mixins/alerts.less +14 -0
  51. data/app/frameworks/twitter/bootstrap/mixins/background-variant.less +8 -0
  52. data/app/frameworks/twitter/bootstrap/mixins/border-radius.less +10 -0
  53. data/app/frameworks/twitter/bootstrap/mixins/buttons.less +50 -0
  54. data/app/frameworks/twitter/bootstrap/mixins/center-block.less +7 -0
  55. data/app/frameworks/twitter/bootstrap/mixins/clearfix.less +22 -0
  56. data/app/frameworks/twitter/bootstrap/mixins/forms.less +81 -0
  57. data/app/frameworks/twitter/bootstrap/mixins/gradients.less +59 -0
  58. data/app/frameworks/twitter/bootstrap/mixins/grid-framework.less +91 -0
  59. data/app/frameworks/twitter/bootstrap/mixins/grid.less +122 -0
  60. data/app/frameworks/twitter/bootstrap/mixins/hide-text.less +21 -0
  61. data/app/frameworks/twitter/bootstrap/mixins/image.less +34 -0
  62. data/app/frameworks/twitter/bootstrap/mixins/labels.less +12 -0
  63. data/app/frameworks/twitter/bootstrap/mixins/list-group.less +29 -0
  64. data/app/frameworks/twitter/bootstrap/mixins/nav-divider.less +10 -0
  65. data/app/frameworks/twitter/bootstrap/mixins/nav-vertical-align.less +9 -0
  66. data/app/frameworks/twitter/bootstrap/mixins/opacity.less +8 -0
  67. data/app/frameworks/twitter/bootstrap/mixins/pagination.less +23 -0
  68. data/app/frameworks/twitter/bootstrap/mixins/panels.less +24 -0
  69. data/app/frameworks/twitter/bootstrap/mixins/progress-bar.less +10 -0
  70. data/app/frameworks/twitter/bootstrap/mixins/reset-filter.less +8 -0
  71. data/app/frameworks/twitter/bootstrap/mixins/resize.less +6 -0
  72. data/app/frameworks/twitter/bootstrap/mixins/responsive-visibility.less +15 -0
  73. data/app/frameworks/twitter/bootstrap/mixins/size.less +10 -0
  74. data/app/frameworks/twitter/bootstrap/mixins/tab-focus.less +9 -0
  75. data/app/frameworks/twitter/bootstrap/mixins/table-row.less +28 -0
  76. data/app/frameworks/twitter/bootstrap/mixins/text-emphasis.less +8 -0
  77. data/app/frameworks/twitter/bootstrap/mixins/text-overflow.less +8 -0
  78. data/app/frameworks/twitter/bootstrap/mixins/vendor-prefixes.less +224 -0
  79. data/app/frameworks/twitter/bootstrap/modals.less +150 -0
  80. data/app/frameworks/twitter/bootstrap/navbar.less +655 -0
  81. data/app/frameworks/twitter/bootstrap/navs.less +242 -0
  82. data/app/frameworks/twitter/bootstrap/normalize.less +425 -0
  83. data/app/frameworks/twitter/bootstrap/pager.less +55 -0
  84. data/app/frameworks/twitter/bootstrap/pagination.less +88 -0
  85. data/app/frameworks/twitter/bootstrap/panels.less +243 -0
  86. data/app/frameworks/twitter/bootstrap/popovers.less +133 -0
  87. data/app/frameworks/twitter/bootstrap/print.less +101 -0
  88. data/app/frameworks/twitter/bootstrap/progress-bars.less +105 -0
  89. data/app/frameworks/twitter/bootstrap/responsive-embed.less +34 -0
  90. data/app/frameworks/twitter/bootstrap/responsive-utilities.less +194 -0
  91. data/app/frameworks/twitter/bootstrap/scaffolding.less +150 -0
  92. data/app/frameworks/twitter/bootstrap/tables.less +233 -0
  93. data/app/frameworks/twitter/bootstrap/theme.less +258 -0
  94. data/app/frameworks/twitter/bootstrap/thumbnails.less +36 -0
  95. data/app/frameworks/twitter/bootstrap/tooltip.less +95 -0
  96. data/app/frameworks/twitter/bootstrap/type.less +313 -0
  97. data/app/frameworks/twitter/bootstrap/utilities.less +57 -0
  98. data/app/frameworks/twitter/bootstrap/variables.less +846 -0
  99. data/app/frameworks/twitter/bootstrap/wells.less +29 -0
  100. data/bootstrap_farsi.gemspec +27 -0
  101. data/lib/bootstrap_farsi.rb +7 -0
  102. data/lib/bootstrap_farsi/engine.rb +7 -0
  103. data/lib/bootstrap_farsi/version.rb +3 -0
  104. metadata +216 -0
@@ -0,0 +1,241 @@
1
+ //
2
+ // Carousel
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Wrapper for the slide container and indicators
7
+ .carousel {
8
+ position: relative;
9
+ }
10
+
11
+ .carousel-inner {
12
+ position: relative;
13
+ overflow: hidden;
14
+ width: 100%;
15
+
16
+ > .item {
17
+ display: none;
18
+ position: relative;
19
+ .carousel-transition(.6s ease-in-out);
20
+
21
+ // Account for jankitude on images
22
+ > img,
23
+ > a > img {
24
+ &:extend(.img-responsive);
25
+ line-height: 1;
26
+ }
27
+ }
28
+
29
+ > .active,
30
+ > .next,
31
+ > .prev {
32
+ display: block;
33
+ }
34
+
35
+ > .active {
36
+ .left(0);
37
+ }
38
+
39
+ > .next,
40
+ > .prev {
41
+ position: absolute;
42
+ top: 0;
43
+ width: 100%;
44
+ }
45
+
46
+ > .next {
47
+ .left(100%);
48
+ }
49
+ > .prev {
50
+ .left(-100%);
51
+ }
52
+ > .next.left,
53
+ > .prev.right {
54
+ .left(0);
55
+ }
56
+
57
+ > .active.left {
58
+ .left(-100%);
59
+ }
60
+ > .active.right {
61
+ .left(100%);
62
+ }
63
+
64
+ }
65
+
66
+ // Left/right controls for nav
67
+ // ---------------------------
68
+
69
+ .carousel-control {
70
+ position: absolute;
71
+ top: 0;
72
+ left: 0;
73
+ bottom: 0;
74
+ width: @carousel-control-width;
75
+ .opacity(@carousel-control-opacity);
76
+ font-size: @carousel-control-font-size;
77
+ color: @carousel-control-color;
78
+ text-align: center;
79
+ text-shadow: @carousel-text-shadow;
80
+ // We can't have this transition here because WebKit cancels the carousel
81
+ // animation if you trip this while in the middle of another animation.
82
+
83
+ // Set gradients for backgrounds
84
+ &.left {
85
+ }
86
+ &.right {
87
+ left: auto;
88
+ right: 0;
89
+ }
90
+
91
+ // Hover/focus state
92
+ &:hover,
93
+ &:focus {
94
+ outline: 0;
95
+ color: @carousel-control-color;
96
+ text-decoration: none;
97
+ .opacity(.9);
98
+ }
99
+
100
+ // Toggles
101
+ .icon-prev,
102
+ .icon-next,
103
+ .glyphicon-chevron-left,
104
+ .glyphicon-chevron-right {
105
+ position: absolute;
106
+ top: 50%;
107
+ z-index: 5;
108
+ display: inline-block;
109
+ }
110
+ .icon-prev,
111
+ .glyphicon-chevron-left {
112
+ .left(50%);
113
+ .margin-left(-10px);
114
+ }
115
+ .icon-next,
116
+ .glyphicon-chevron-right {
117
+ .right(50%);
118
+ .margin-right(-10px);
119
+ }
120
+ .icon-prev,
121
+ .icon-next {
122
+ width: 20px;
123
+ height: 20px;
124
+ margin-top: -10px;
125
+ font-family: serif;
126
+ }
127
+
128
+
129
+ .icon-prev {
130
+ &:before {
131
+ content: '\2039';// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039)
132
+ }
133
+ }
134
+ .icon-next {
135
+ &:before {
136
+ content: '\203a';// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A)
137
+ }
138
+ }
139
+ }
140
+
141
+ // Optional indicator pips
142
+ //
143
+ // Add an unordered list with the following class and add a list item for each
144
+ // slide your carousel holds.
145
+
146
+ .carousel-indicators {
147
+ position: absolute;
148
+ bottom: 10px;
149
+ .left(50%);
150
+ z-index: 15;
151
+ width: 60%;
152
+ .margin-left(-30%);
153
+ .padding-left(0);
154
+ list-style: none;
155
+ text-align: center;
156
+
157
+ li {
158
+ display: inline-block;
159
+ width: 10px;
160
+ height: 10px;
161
+ margin: 1px;
162
+ text-indent: -999px;
163
+ border: 1px solid @carousel-indicator-border-color;
164
+ border-radius: 10px;
165
+ cursor: pointer;
166
+
167
+ // IE8-9 hack for event handling
168
+ //
169
+ // Internet Explorer 8-9 does not support clicks on elements without a set
170
+ // `background-color`. We cannot use `filter` since that's not viewed as a
171
+ // background color by the browser. Thus, a hack is needed.
172
+ //
173
+ // For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we
174
+ // set alpha transparency for the best results possible.
175
+ background-color: #000 \9; // IE8
176
+ background-color: rgba(0,0,0,0); // IE9
177
+ }
178
+ .active {
179
+ margin: 0;
180
+ width: 12px;
181
+ height: 12px;
182
+ background-color: @carousel-indicator-active-bg;
183
+ }
184
+ }
185
+
186
+ // Optional captions
187
+ // -----------------------------
188
+ // Hidden by default for smaller viewports
189
+ .carousel-caption {
190
+ position: absolute;
191
+ .left(15%);
192
+ .right(15%);
193
+ bottom: 20px;
194
+ z-index: 10;
195
+ padding-top: 20px;
196
+ padding-bottom: 20px;
197
+ color: @carousel-caption-color;
198
+ text-align: center;
199
+ text-shadow: @carousel-text-shadow;
200
+ & .btn {
201
+ text-shadow: none; // No shadow for button elements in carousel-caption
202
+ }
203
+ }
204
+
205
+
206
+ // Scale up controls for tablets and up
207
+ @media screen and (min-width: @screen-sm-min) {
208
+
209
+ // Scale up the controls a smidge
210
+ .carousel-control {
211
+ .glyphicon-chevron-left,
212
+ .glyphicon-chevron-right,
213
+ .icon-prev,
214
+ .icon-next {
215
+ width: 30px;
216
+ height: 30px;
217
+ margin-top: -15px;
218
+ font-size: 30px;
219
+ }
220
+ .glyphicon-chevron-left,
221
+ .icon-prev {
222
+ .margin-left(-15px);
223
+ }
224
+ .glyphicon-chevron-right,
225
+ .icon-next {
226
+ .margin-right(-15px);
227
+ }
228
+ }
229
+
230
+ // Show and left align the captions
231
+ .carousel-caption {
232
+ .left(20%);
233
+ .right(20%);
234
+ padding-bottom: 30px;
235
+ }
236
+
237
+ // Move up the indicators
238
+ .carousel-indicators {
239
+ bottom: 20px;
240
+ }
241
+ }
@@ -0,0 +1,33 @@
1
+ //
2
+ // Close icons
3
+ // --------------------------------------------------
4
+
5
+
6
+ .close {
7
+ .float(right);
8
+ font-size: (@font-size-base * 1.5);
9
+ font-weight: @close-font-weight;
10
+ line-height: 1;
11
+ color: @close-color;
12
+ text-shadow: @close-text-shadow;
13
+ .opacity(.2);
14
+
15
+ &:hover,
16
+ &:focus {
17
+ color: @close-color;
18
+ text-decoration: none;
19
+ cursor: pointer;
20
+ .opacity(.5);
21
+ }
22
+
23
+ // Additional properties for button version
24
+ // iOS requires the button element instead of an anchor tag.
25
+ // If you want the anchor version, it requires `href="#"`.
26
+ button& {
27
+ padding: 0;
28
+ cursor: pointer;
29
+ background: transparent;
30
+ border: 0;
31
+ -webkit-appearance: none;
32
+ }
33
+ }
@@ -0,0 +1,69 @@
1
+ //
2
+ // Code (inline and block)
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Inline and block code styles
7
+ code,
8
+ kbd,
9
+ pre,
10
+ samp {
11
+ font-family: @font-family-monospace;
12
+ direction: ltr;
13
+ }
14
+
15
+ // Inline code
16
+ code {
17
+ padding: 2px 4px;
18
+ font-size: 90%;
19
+ color: @code-color;
20
+ background-color: @code-bg;
21
+ border-radius: @border-radius-base;
22
+ }
23
+
24
+ // User input typically entered via keyboard
25
+ kbd {
26
+ padding: 2px 4px;
27
+ font-size: 90%;
28
+ color: @kbd-color;
29
+ background-color: @kbd-bg;
30
+ border-radius: @border-radius-small;
31
+ box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
32
+
33
+ kbd {
34
+ padding: 0;
35
+ font-size: 100%;
36
+ box-shadow: none;
37
+ }
38
+ }
39
+
40
+ // Blocks of code
41
+ pre {
42
+ display: block;
43
+ padding: ((@line-height-computed - 1) / 2);
44
+ margin: 0 0 (@line-height-computed / 2);
45
+ font-size: (@font-size-base - 1); // 14px to 13px
46
+ line-height: @line-height-base;
47
+ word-break: break-all;
48
+ word-wrap: break-word;
49
+ color: @pre-color;
50
+ background-color: @pre-bg;
51
+ border: 1px solid @pre-border-color;
52
+ border-radius: @border-radius-base;
53
+
54
+ // Account for some code outputs that place code tags in pre tags
55
+ code {
56
+ padding: 0;
57
+ font-size: inherit;
58
+ color: inherit;
59
+ white-space: pre-wrap;
60
+ background-color: transparent;
61
+ border-radius: 0;
62
+ }
63
+ }
64
+
65
+ // Enable scrollable blocks of code
66
+ .pre-scrollable {
67
+ max-height: @pre-scrollable-max-height;
68
+ overflow-y: scroll;
69
+ }
@@ -0,0 +1,31 @@
1
+ //
2
+ // Component animations
3
+ // --------------------------------------------------
4
+
5
+ // Heads up!
6
+ //
7
+ // We don't use the `.opacity()` mixin here since it causes a bug with text
8
+ // fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552.
9
+
10
+ .fade {
11
+ opacity: 0;
12
+ .transition(opacity .15s linear);
13
+ &.in {
14
+ opacity: 1;
15
+ }
16
+ }
17
+
18
+ .collapse {
19
+ display: none;
20
+
21
+ &.in { display: block; }
22
+ tr&.in { display: table-row; }
23
+ tbody&.in { display: table-row-group; }
24
+ }
25
+
26
+ .collapsing {
27
+ position: relative;
28
+ height: 0;
29
+ overflow: hidden;
30
+ .transition(height .35s ease);
31
+ }
@@ -0,0 +1,215 @@
1
+ //
2
+ // Dropdown menus
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Dropdown arrow/caret
7
+ .caret {
8
+ display: inline-block;
9
+ width: 0;
10
+ height: 0;
11
+ .margin-left(2px);
12
+ vertical-align: middle;
13
+ border-top: @caret-width-base solid;
14
+ .border-right(@caret-width-base solid transparent);
15
+ .border-left(@caret-width-base solid transparent);
16
+ }
17
+
18
+ // The dropdown wrapper (div)
19
+ .dropdown {
20
+ position: relative;
21
+ }
22
+
23
+ // Prevent the focus on the dropdown toggle when closing dropdowns
24
+ .dropdown-toggle:focus {
25
+ outline: 0;
26
+ }
27
+
28
+ // The dropdown menu (ul)
29
+ .dropdown-menu {
30
+ position: absolute;
31
+ top: 100%;
32
+ .left(0);
33
+ z-index: @zindex-dropdown;
34
+ display: none; // none by default, but block on "open" of the menu
35
+ .float(left);
36
+ min-width: 160px;
37
+ padding: 5px 0;
38
+ margin: 2px 0 0; // override default ul
39
+ list-style: none;
40
+ font-size: @font-size-base;
41
+ .text-align(left); // Ensures proper alignment if parent has it changed (e.g., modal footer)
42
+ background-color: @dropdown-bg;
43
+ border: 1px solid @dropdown-fallback-border; // IE8 fallback
44
+ border: 1px solid @dropdown-border;
45
+ border-radius: @border-radius-base;
46
+ .box-shadow(0 6px 12px rgba(0,0,0,.175));
47
+ background-clip: padding-box;
48
+
49
+ // Aligns the dropdown menu to right
50
+ //
51
+ // Deprecated as of 3.1.0 in favor of `.dropdown-menu-[dir]`
52
+ &.pull-right {
53
+ .right(0);
54
+ .left(auto);
55
+ }
56
+
57
+ // Dividers (basically an hr) within the dropdown
58
+ .divider {
59
+ .nav-divider(@dropdown-divider-bg);
60
+ }
61
+
62
+ // Links within the dropdown menu
63
+ > li > a {
64
+ display: block;
65
+ padding: 3px 20px;
66
+ clear: both;
67
+ font-weight: normal;
68
+ line-height: @line-height-base;
69
+ color: @dropdown-link-color;
70
+ white-space: nowrap; // prevent links from randomly breaking onto new lines
71
+ }
72
+ }
73
+
74
+ // Hover/Focus state
75
+ .dropdown-menu > li > a {
76
+ &:hover,
77
+ &:focus {
78
+ text-decoration: none;
79
+ color: @dropdown-link-hover-color;
80
+ background-color: @dropdown-link-hover-bg;
81
+ }
82
+ }
83
+
84
+ // Active state
85
+ .dropdown-menu > .active > a {
86
+ &,
87
+ &:hover,
88
+ &:focus {
89
+ color: @dropdown-link-active-color;
90
+ text-decoration: none;
91
+ outline: 0;
92
+ background-color: @dropdown-link-active-bg;
93
+ }
94
+ }
95
+
96
+ // Disabled state
97
+ //
98
+ // Gray out text and ensure the hover/focus state remains gray
99
+
100
+ .dropdown-menu > .disabled > a {
101
+ &,
102
+ &:hover,
103
+ &:focus {
104
+ color: @dropdown-link-disabled-color;
105
+ }
106
+ }
107
+ // Nuke hover/focus effects
108
+ .dropdown-menu > .disabled > a {
109
+ &:hover,
110
+ &:focus {
111
+ text-decoration: none;
112
+ background-color: transparent;
113
+ background-image: none; // Remove CSS gradient
114
+ .reset-filter();
115
+ cursor: not-allowed;
116
+ }
117
+ }
118
+
119
+ // Open state for the dropdown
120
+ .open {
121
+ // Show the menu
122
+ > .dropdown-menu {
123
+ display: block;
124
+ }
125
+
126
+ // Remove the outline when :focus is triggered
127
+ > a {
128
+ outline: 0;
129
+ }
130
+ }
131
+
132
+ // Menu positioning
133
+ //
134
+ // Add extra class to `.dropdown-menu` to flip the alignment of the dropdown
135
+ // menu with the parent.
136
+ .dropdown-menu-right {
137
+ .left(auto); // Reset the default from `.dropdown-menu`
138
+ .right(0);
139
+ }
140
+ // With v3, we enabled auto-flipping if you have a dropdown within a right
141
+ // aligned nav component. To enable the undoing of that, we provide an override
142
+ // to restore the default dropdown menu alignment.
143
+ //
144
+ // This is only for left-aligning a dropdown menu within a `.navbar-right` or
145
+ // `.pull-right` nav component.
146
+ .dropdown-menu-left {
147
+ .left(0);
148
+ .right(auto);
149
+ }
150
+
151
+ // Dropdown section headers
152
+ .dropdown-header {
153
+ display: block;
154
+ padding: 3px 20px;
155
+ font-size: @font-size-small;
156
+ line-height: @line-height-base;
157
+ color: @dropdown-header-color;
158
+ white-space: nowrap; // as with > li > a
159
+ }
160
+
161
+ // Backdrop to catch body clicks on mobile, etc.
162
+ .dropdown-backdrop {
163
+ position: fixed;
164
+ .left(0);
165
+ .right(0);
166
+ bottom: 0;
167
+ top: 0;
168
+ z-index: (@zindex-dropdown - 10);
169
+ }
170
+
171
+ // Right aligned dropdowns
172
+ .pull-right > .dropdown-menu {
173
+ .right(0);
174
+ .left(auto);
175
+ }
176
+
177
+ // Allow for dropdowns to go bottom up (aka, dropup-menu)
178
+ //
179
+ // Just add .dropup after the standard .dropdown class and you're set, bro.
180
+ // TODO: abstract this so that the navbar fixed styles are not placed here?
181
+
182
+ .dropup,
183
+ .navbar-fixed-bottom .dropdown {
184
+ // Reverse the caret
185
+ .caret {
186
+ border-top: 0;
187
+ border-bottom: @caret-width-base solid;
188
+ content: "";
189
+ }
190
+ // Different positioning for bottom up menu
191
+ .dropdown-menu {
192
+ top: auto;
193
+ bottom: 100%;
194
+ margin-bottom: 1px;
195
+ }
196
+ }
197
+
198
+
199
+ // Component alignment
200
+ //
201
+ // Reiterate per navbar.less and the modified component alignment there.
202
+
203
+ @media (min-width: @grid-float-breakpoint) {
204
+ .navbar-right {
205
+ .dropdown-menu {
206
+ .dropdown-menu-right();
207
+ }
208
+ // Necessary for overrides of the default right aligned menu.
209
+ // Will remove come v4 in all likelihood.
210
+ .dropdown-menu-left {
211
+ .dropdown-menu-left();
212
+ }
213
+ }
214
+ }
215
+