bootstrap-sass-rails-rtl 2.0.4.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. data/LICENSE +14 -0
  2. data/README.md +115 -0
  3. data/Rakefile +37 -0
  4. data/lib/bootstrap-sass-rails-rtl.rb +9 -0
  5. data/lib/bootstrap/sass/extensions.rb +5 -0
  6. data/lib/bootstrap/sass/extensions/functions.rb +15 -0
  7. data/lib/bootstrap/sass/rails.rb +2 -0
  8. data/lib/bootstrap/sass/rails/engine.rb +9 -0
  9. data/lib/bootstrap/sass/rails/version.rb +7 -0
  10. data/test/cases/usage_css_spec.rb +216 -0
  11. data/test/cases/usage_js_spec.rb +40 -0
  12. data/test/dummy/Rakefile +7 -0
  13. data/test/dummy/app/assets/javascripts/application.js +3 -0
  14. data/test/dummy/app/assets/javascripts/individual.js +1 -0
  15. data/test/dummy/app/assets/stylesheets/application-rtl.css.scss +3 -0
  16. data/test/dummy/app/assets/stylesheets/application.css.scss +3 -0
  17. data/test/dummy/app/assets/stylesheets/individual-rtl.css.scss +11 -0
  18. data/test/dummy/app/assets/stylesheets/individual.css.scss +11 -0
  19. data/test/dummy/app/assets/stylesheets/sprockets-rtl.css +3 -0
  20. data/test/dummy/app/assets/stylesheets/sprockets.css +3 -0
  21. data/test/dummy/app/controllers/application_controller.rb +3 -0
  22. data/test/dummy/app/helpers/application_helper.rb +2 -0
  23. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  24. data/test/dummy/config.ru +4 -0
  25. data/test/dummy/config/application.rb +49 -0
  26. data/test/dummy/config/boot.rb +10 -0
  27. data/test/dummy/config/database.yml +25 -0
  28. data/test/dummy/config/environment.rb +5 -0
  29. data/test/dummy/config/environments/development.rb +30 -0
  30. data/test/dummy/config/environments/production.rb +60 -0
  31. data/test/dummy/config/environments/test.rb +39 -0
  32. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  33. data/test/dummy/config/initializers/inflections.rb +10 -0
  34. data/test/dummy/config/initializers/mime_types.rb +5 -0
  35. data/test/dummy/config/initializers/secret_token.rb +7 -0
  36. data/test/dummy/config/initializers/session_store.rb +8 -0
  37. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  38. data/test/dummy/config/locales/en.yml +5 -0
  39. data/test/dummy/config/routes.rb +58 -0
  40. data/test/dummy/public/404.html +26 -0
  41. data/test/dummy/public/422.html +26 -0
  42. data/test/dummy/public/500.html +26 -0
  43. data/test/dummy/public/favicon.ico +0 -0
  44. data/test/dummy/script/rails +6 -0
  45. data/test/spec_helper.rb +13 -0
  46. data/test/support/helpers.rb +35 -0
  47. data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
  48. data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
  49. data/vendor/assets/javascripts/twitter/bootstrap.js +12 -0
  50. data/vendor/assets/javascripts/twitter/bootstrap/alert.js +90 -0
  51. data/vendor/assets/javascripts/twitter/bootstrap/button.js +96 -0
  52. data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +169 -0
  53. data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +157 -0
  54. data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +100 -0
  55. data/vendor/assets/javascripts/twitter/bootstrap/modal.js +218 -0
  56. data/vendor/assets/javascripts/twitter/bootstrap/popover.js +98 -0
  57. data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +151 -0
  58. data/vendor/assets/javascripts/twitter/bootstrap/tab.js +135 -0
  59. data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +275 -0
  60. data/vendor/assets/javascripts/twitter/bootstrap/transition.js +61 -0
  61. data/vendor/assets/javascripts/twitter/bootstrap/typeahead.js +285 -0
  62. data/vendor/assets/stylesheets/twitter/bootstrap.css.scss +62 -0
  63. data/vendor/assets/stylesheets/twitter/bootstrap/_accordion.scss +33 -0
  64. data/vendor/assets/stylesheets/twitter/bootstrap/_alerts.scss +59 -0
  65. data/vendor/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +24 -0
  66. data/vendor/assets/stylesheets/twitter/bootstrap/_button-groups.scss +190 -0
  67. data/vendor/assets/stylesheets/twitter/bootstrap/_buttons.scss +193 -0
  68. data/vendor/assets/stylesheets/twitter/bootstrap/_carousel.scss +121 -0
  69. data/vendor/assets/stylesheets/twitter/bootstrap/_close.scss +29 -0
  70. data/vendor/assets/stylesheets/twitter/bootstrap/_code.scss +57 -0
  71. data/vendor/assets/stylesheets/twitter/bootstrap/_component-animations.scss +20 -0
  72. data/vendor/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +142 -0
  73. data/vendor/assets/stylesheets/twitter/bootstrap/_forms.scss +589 -0
  74. data/vendor/assets/stylesheets/twitter/bootstrap/_grid.scss +8 -0
  75. data/vendor/assets/stylesheets/twitter/bootstrap/_hero-unit.scss +22 -0
  76. data/vendor/assets/stylesheets/twitter/bootstrap/_labels-badges.scss +54 -0
  77. data/vendor/assets/stylesheets/twitter/bootstrap/_layouts.scss +17 -0
  78. data/vendor/assets/stylesheets/twitter/bootstrap/_mixins.scss +612 -0
  79. data/vendor/assets/stylesheets/twitter/bootstrap/_modals.scss +90 -0
  80. data/vendor/assets/stylesheets/twitter/bootstrap/_navbar.scss +358 -0
  81. data/vendor/assets/stylesheets/twitter/bootstrap/_navs.scss +364 -0
  82. data/vendor/assets/stylesheets/twitter/bootstrap/_pager.scss +36 -0
  83. data/vendor/assets/stylesheets/twitter/bootstrap/_pagination.scss +56 -0
  84. data/vendor/assets/stylesheets/twitter/bootstrap/_popovers.scss +49 -0
  85. data/vendor/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +118 -0
  86. data/vendor/assets/stylesheets/twitter/bootstrap/_reset.scss +131 -0
  87. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-1200px-min.scss +26 -0
  88. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-767px-max.scss +150 -0
  89. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-768px-979px.scss +19 -0
  90. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-navbar.scss +153 -0
  91. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-utilities.scss +41 -0
  92. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive.scss +48 -0
  93. data/vendor/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +29 -0
  94. data/vendor/assets/stylesheets/twitter/bootstrap/_sprites.scss +178 -0
  95. data/vendor/assets/stylesheets/twitter/bootstrap/_tables.scss +175 -0
  96. data/vendor/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +47 -0
  97. data/vendor/assets/stylesheets/twitter/bootstrap/_tooltip.scss +35 -0
  98. data/vendor/assets/stylesheets/twitter/bootstrap/_type.scss +232 -0
  99. data/vendor/assets/stylesheets/twitter/bootstrap/_utilities.scss +23 -0
  100. data/vendor/assets/stylesheets/twitter/bootstrap/_variables.scss +206 -0
  101. data/vendor/assets/stylesheets/twitter/bootstrap/_wells.scss +27 -0
  102. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_accordion.scss +33 -0
  103. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_alerts.scss +59 -0
  104. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_breadcrumbs.scss +24 -0
  105. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_button-groups.scss +190 -0
  106. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_buttons.scss +193 -0
  107. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_carousel.scss +121 -0
  108. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_close.scss +29 -0
  109. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_code.scss +57 -0
  110. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_component-animations.scss +20 -0
  111. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_dropdowns.scss +142 -0
  112. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_forms.scss +589 -0
  113. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_grid.scss +8 -0
  114. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_hero-unit.scss +22 -0
  115. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_labels-badges.scss +54 -0
  116. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_layouts.scss +17 -0
  117. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_mixins.scss +612 -0
  118. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_modals.scss +90 -0
  119. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_navbar.scss +358 -0
  120. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_navs.scss +364 -0
  121. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_pager.scss +36 -0
  122. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_pagination.scss +56 -0
  123. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_popovers.scss +49 -0
  124. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_progress-bars.scss +118 -0
  125. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_reset.scss +131 -0
  126. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_responsive-1200px-min.scss +26 -0
  127. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_responsive-767px-max.scss +150 -0
  128. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_responsive-768px-979px.scss +19 -0
  129. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_responsive-navbar.scss +153 -0
  130. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_responsive-utilities.scss +41 -0
  131. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_responsive.scss +48 -0
  132. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_scaffolding.scss +29 -0
  133. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_sprites.scss +178 -0
  134. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_tables.scss +175 -0
  135. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_thumbnails.scss +47 -0
  136. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_tooltip.scss +35 -0
  137. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_type.scss +232 -0
  138. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_utilities.scss +23 -0
  139. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_variables.scss +206 -0
  140. data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_wells.scss +27 -0
  141. data/vendor/assets/stylesheets/twitter/bootstrap_rtl.css.scss +62 -0
  142. metadata +276 -0
@@ -0,0 +1,193 @@
1
+ // BUTTON STYLES
2
+ // -------------
3
+
4
+
5
+ // Base styles
6
+ // --------------------------------------------------
7
+
8
+ // Core
9
+ .btn {
10
+ display: inline-block;
11
+ @include ie7-inline-block();
12
+ padding: 4px 10px 4px;
13
+ margin-bottom: 0; // For input.btn
14
+ font-size: $baseFontSize;
15
+ line-height: $baseLineHeight;
16
+ *line-height: 20px;
17
+ color: $grayDark;
18
+ text-align: center;
19
+ text-shadow: 0 1px 1px rgba(255,255,255,.75);
20
+ @include gradient-vertical-three-colors($white, $white, 25%, darken($white, 10%)); // Don't use .gradientbar() here since it does a three-color gradient
21
+ vertical-align: middle;
22
+ cursor: pointer;
23
+ @include buttonBackground($btnBackground, $btnBackgroundHighlight);
24
+ border: 1px solid $btnBorder;
25
+ *border: 0; // Remove the border to prevent IE7's black border on input:focus
26
+ border-bottom-color: darken($btnBorder, 10%);
27
+ @include border-radius(4px);
28
+
29
+ @include ie7-restore-left-whitespace(); // Give IE7 some love
30
+ @include box-shadow("inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");
31
+ }
32
+
33
+ // Hover state
34
+ .btn:hover {
35
+ color: $grayDark;
36
+ text-decoration: none;
37
+ background-color: darken($white, 10%);
38
+ *background-color: darken($white, 15%); /* Buttons in IE7 don't get borders, so darken on hover */
39
+ background-position: 0 -15px;
40
+
41
+ // transition is only when going to hover, otherwise the background
42
+ // behind the gradient (there for IE<=9 fallback) gets mismatched
43
+ @include transition(background-position .1s linear);
44
+ }
45
+
46
+ // Focus state for keyboard and accessibility
47
+ .btn:focus {
48
+ @include tab-focus();
49
+ }
50
+
51
+ // Active state
52
+ .btn.active,
53
+ .btn:active {
54
+ @include box-shadow("inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)");
55
+ background-color: darken($white, 10%);
56
+ background-color: darken($white, 15%) \9; /* IE6-9 */
57
+ background-image: none;
58
+ outline: 0;
59
+ }
60
+
61
+ // Disabled state
62
+ .btn.disabled,
63
+ .btn[disabled] {
64
+ cursor: default;
65
+ background-color: darken($white, 10%);
66
+ background-image: none;
67
+ @include opacity(65);
68
+ @include box-shadow(none);
69
+ }
70
+
71
+
72
+ // Button Sizes
73
+ // --------------------------------------------------
74
+
75
+ // Large
76
+ .btn-large {
77
+ padding: 9px 14px;
78
+ font-size: $baseFontSize + 2px;
79
+ line-height: normal;
80
+ @include border-radius(5px);
81
+ }
82
+ .btn-large [class^="icon-"] {
83
+ margin-top: 1px;
84
+ }
85
+
86
+ // Small
87
+ .btn-small {
88
+ padding: 5px 9px;
89
+ font-size: $baseFontSize - 2px;
90
+ line-height: $baseLineHeight - 2px;
91
+ }
92
+ .btn-small [class^="icon-"] {
93
+ margin-top: -1px;
94
+ }
95
+
96
+ // Mini
97
+ .btn-mini {
98
+ padding: 2px 6px;
99
+ font-size: $baseFontSize - 2px;
100
+ line-height: $baseLineHeight - 4px;
101
+ }
102
+
103
+
104
+ // Alternate buttons
105
+ // --------------------------------------------------
106
+
107
+ // Set text color
108
+ // -------------------------
109
+ .btn-primary,
110
+ .btn-primary:hover,
111
+ .btn-warning,
112
+ .btn-warning:hover,
113
+ .btn-danger,
114
+ .btn-danger:hover,
115
+ .btn-success,
116
+ .btn-success:hover,
117
+ .btn-info,
118
+ .btn-info:hover,
119
+ .btn-inverse,
120
+ .btn-inverse:hover {
121
+ color: $white;
122
+ text-shadow: 0 -1px 0 rgba(0,0,0,.25);
123
+ }
124
+ // Provide *some* extra contrast for those who can get it
125
+ .btn-primary.active,
126
+ .btn-warning.active,
127
+ .btn-danger.active,
128
+ .btn-success.active,
129
+ .btn-info.active,
130
+ .btn-inverse.active {
131
+ color: rgba(255,255,255,.75);
132
+ }
133
+
134
+ // Set the backgrounds
135
+ // -------------------------
136
+ .btn {
137
+ // reset here as of 2.0.3 due to Recess property order
138
+ border-color: #ccc;
139
+ border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);
140
+ }
141
+ .btn-primary {
142
+ @include buttonBackground($btnPrimaryBackground, $btnPrimaryBackgroundHighlight);
143
+ }
144
+ // Warning appears are orange
145
+ .btn-warning {
146
+ @include buttonBackground($btnWarningBackground, $btnWarningBackgroundHighlight);
147
+ }
148
+ // Danger and error appear as red
149
+ .btn-danger {
150
+ @include buttonBackground($btnDangerBackground, $btnDangerBackgroundHighlight);
151
+ }
152
+ // Success appears as green
153
+ .btn-success {
154
+ @include buttonBackground($btnSuccessBackground, $btnSuccessBackgroundHighlight);
155
+ }
156
+ // Info appears as a neutral blue
157
+ .btn-info {
158
+ @include buttonBackground($btnInfoBackground, $btnInfoBackgroundHighlight);
159
+ }
160
+ // Inverse appears as dark gray
161
+ .btn-inverse {
162
+ @include buttonBackground($btnInverseBackground, $btnInverseBackgroundHighlight);
163
+ }
164
+
165
+
166
+ // Cross-browser Jank
167
+ // --------------------------------------------------
168
+
169
+ button.btn,
170
+ input[type="submit"].btn {
171
+
172
+ // Firefox 3.6 only I believe
173
+ &::-moz-focus-inner {
174
+ padding: 0;
175
+ border: 0;
176
+ }
177
+
178
+ // IE7 has some default padding on button controls
179
+ *padding-top: 2px;
180
+ *padding-bottom: 2px;
181
+ &.btn-large {
182
+ *padding-top: 7px;
183
+ *padding-bottom: 7px;
184
+ }
185
+ &.btn-small {
186
+ *padding-top: 3px;
187
+ *padding-bottom: 3px;
188
+ }
189
+ &.btn-mini {
190
+ *padding-top: 1px;
191
+ *padding-bottom: 1px;
192
+ }
193
+ }
@@ -0,0 +1,121 @@
1
+ // CAROUSEL
2
+ // --------
3
+
4
+ .carousel {
5
+ position: relative;
6
+ margin-bottom: $baseLineHeight;
7
+ line-height: 1;
8
+ }
9
+
10
+ .carousel-inner {
11
+ overflow: hidden;
12
+ width: 100%;
13
+ position: relative;
14
+ }
15
+
16
+ .carousel {
17
+
18
+ .item {
19
+ display: none;
20
+ position: relative;
21
+ @include transition(.6s ease-in-out left);
22
+ }
23
+
24
+ // Account for jankitude on images
25
+ .item > img {
26
+ display: block;
27
+ line-height: 1;
28
+ }
29
+
30
+ .active,
31
+ .next,
32
+ .prev { display: block; }
33
+
34
+ .active {
35
+ right: 0;
36
+ }
37
+
38
+ .next,
39
+ .prev {
40
+ position: absolute;
41
+ top: 0;
42
+ width: 100%;
43
+ }
44
+
45
+ .next {
46
+ right: 100%;
47
+ }
48
+ .prev {
49
+ right: -100%;
50
+ }
51
+ .next.left,
52
+ .prev.right {
53
+ right: 0;
54
+ }
55
+
56
+ .active.left {
57
+ right: -100%;
58
+ }
59
+ .active.right {
60
+ right: 100%;
61
+ }
62
+
63
+ }
64
+
65
+ // Left/right controls for nav
66
+ // ---------------------------
67
+
68
+ .carousel-control {
69
+ position: absolute;
70
+ top: 40%;
71
+ right: 15px;
72
+ width: 40px;
73
+ height: 40px;
74
+ margin-top: -20px;
75
+ font-size: 60px;
76
+ font-weight: 100;
77
+ line-height: 30px;
78
+ color: $white;
79
+ text-align: center;
80
+ background: $grayDarker;
81
+ border: 3px solid $white;
82
+ @include border-radius(23px);
83
+ @include opacity(50);
84
+
85
+ // we can't have this transition here
86
+ // because webkit cancels the carousel
87
+ // animation if you trip this while
88
+ // in the middle of another animation
89
+ // ;_;
90
+ // .transition(opacity .2s linear);
91
+
92
+ // Reposition the right one
93
+ &.right {
94
+ right: auto;
95
+ left: 15px;
96
+ }
97
+
98
+ // Hover state
99
+ &:hover {
100
+ color: $white;
101
+ text-decoration: none;
102
+ @include opacity(90);
103
+ }
104
+ }
105
+
106
+ // Caption for text below images
107
+ // -----------------------------
108
+
109
+ .carousel-caption {
110
+ position: absolute;
111
+ right: 0;
112
+ left: 0;
113
+ bottom: 0;
114
+ padding: 10px 15px 5px;
115
+ background: $grayDark;
116
+ background: rgba(0,0,0,.75);
117
+ }
118
+ .carousel-caption h4,
119
+ .carousel-caption p {
120
+ color: $white;
121
+ }
@@ -0,0 +1,29 @@
1
+ // CLOSE ICONS
2
+ // -----------
3
+
4
+ .close {
5
+ float: left;
6
+ font-size: 20px;
7
+ font-weight: bold;
8
+ line-height: $baseLineHeight;
9
+ color: $black;
10
+ text-shadow: 0 1px 0 rgba(255,255,255,1);
11
+ @include opacity(20);
12
+ &:hover {
13
+ color: $black;
14
+ text-decoration: none;
15
+ cursor: pointer;
16
+ @include opacity(40);
17
+ }
18
+ }
19
+
20
+ // Additional properties for button version
21
+ // iOS requires the button element instead of an anchor tag.
22
+ // If you want the anchor version, it requires `href="#"`.
23
+ button.close {
24
+ padding: 0;
25
+ cursor: pointer;
26
+ background: transparent;
27
+ border: 0;
28
+ -webkit-appearance: none;
29
+ }
@@ -0,0 +1,57 @@
1
+ // Code.less
2
+ // Code typography styles for the <code> and <pre> elements
3
+ // --------------------------------------------------------
4
+
5
+ // Inline and block code styles
6
+ code,
7
+ pre {
8
+ padding: 0 3px 2px;
9
+ @include font-family-monospace();
10
+ font-size: $baseFontSize - 1;
11
+ color: $grayDark;
12
+ @include border-radius(3px);
13
+ }
14
+
15
+ // Inline code
16
+ code {
17
+ padding: 2px 4px;
18
+ color: #d14;
19
+ background-color: #f7f7f9;
20
+ border: 1px solid #e1e1e8;
21
+ }
22
+
23
+ // Blocks of code
24
+ pre {
25
+ display: block;
26
+ padding: ($baseLineHeight - 1) / 2;
27
+ margin: 0 0 $baseLineHeight / 2;
28
+ font-size: $baseFontSize * .925; // 13px to 12px
29
+ line-height: $baseLineHeight;
30
+ word-break: break-all;
31
+ word-wrap: break-word;
32
+ white-space: pre;
33
+ white-space: pre-wrap;
34
+ background-color: #f5f5f5;
35
+ border: 1px solid #ccc; // fallback for IE7-8
36
+ border: 1px solid rgba(0,0,0,.15);
37
+ @include border-radius(4px);
38
+
39
+ // Make prettyprint styles more spaced out for readability
40
+ &.prettyprint {
41
+ margin-bottom: $baseLineHeight;
42
+ }
43
+
44
+ // Account for some code outputs that place code tags in pre tags
45
+ code {
46
+ padding: 0;
47
+ color: inherit;
48
+ background-color: transparent;
49
+ border: 0;
50
+ }
51
+ }
52
+
53
+ // Enable scrollable blocks of code
54
+ .pre-scrollable {
55
+ max-height: 340px;
56
+ overflow-y: scroll;
57
+ }
@@ -0,0 +1,20 @@
1
+ // COMPONENT ANIMATIONS
2
+ // --------------------
3
+
4
+ .fade {
5
+ opacity: 0;
6
+ @include transition(opacity .15s linear);
7
+ &.in {
8
+ opacity: 1;
9
+ }
10
+ }
11
+
12
+ .collapse {
13
+ position: relative;
14
+ height: 0;
15
+ overflow: hidden;
16
+ @include transition(height .35s ease);
17
+ &.in {
18
+ height: auto;
19
+ }
20
+ }
@@ -0,0 +1,142 @@
1
+ // DROPDOWN MENUS
2
+ // --------------
3
+
4
+ // Use the .menu class on any <li> element within the topbar or ul.tabs and you'll get some superfancy dropdowns
5
+ .dropup,
6
+ .dropdown {
7
+ position: relative;
8
+ }
9
+ .dropdown-toggle {
10
+ // The caret makes the toggle a bit too tall in IE7
11
+ *margin-bottom: -3px;
12
+ }
13
+ .dropdown-toggle:active,
14
+ .open .dropdown-toggle {
15
+ outline: 0;
16
+ }
17
+
18
+ // Dropdown arrow/caret
19
+ // --------------------
20
+ .caret {
21
+ display: inline-block;
22
+ width: 0;
23
+ height: 0;
24
+ vertical-align: top;
25
+ border-top: 4px solid $black;
26
+ border-left: 4px solid transparent;
27
+ border-right: 4px solid transparent;
28
+ content: "";
29
+ @include opacity(30);
30
+ }
31
+ // Place the caret
32
+ .dropdown .caret {
33
+ margin-top: 8px;
34
+ margin-right: 2px;
35
+ }
36
+ .dropdown:hover .caret,
37
+ .open .caret {
38
+ @include opacity(100);
39
+ }
40
+
41
+ // The dropdown menu (ul)
42
+ // ----------------------
43
+ .dropdown-menu {
44
+ position: absolute;
45
+ top: 100%;
46
+ right: 0;
47
+ z-index: $zindexDropdown;
48
+ display: none; // none by default, but block on "open" of the menu
49
+ float: right;
50
+ min-width: 160px;
51
+ padding: 4px 0;
52
+ margin: 1px 0 0; // override default ul
53
+ list-style: none;
54
+ background-color: $dropdownBackground;
55
+ border: 1px solid #ccc;
56
+ border: 1px solid rgba(0,0,0,.2);
57
+ *border-left-width: 2px;
58
+ *border-bottom-width: 2px;
59
+ @include border-radius(5px);
60
+ @include box-shadow(0 5px 10px rgba(0,0,0,.2));
61
+ -webkit-background-clip: padding-box;
62
+ -moz-background-clip: padding;
63
+ background-clip: padding-box;
64
+
65
+ // Aligns the dropdown menu to right
66
+ &.pull-right {
67
+ left: 0;
68
+ right: auto;
69
+ }
70
+
71
+ // Dividers (basically an hr) within the dropdown
72
+ .divider {
73
+ @include nav-divider($dropdownDividerTop, $dropdownDividerBottom);
74
+ }
75
+
76
+ // Links within the dropdown menu
77
+ a {
78
+ display: block;
79
+ padding: 3px 15px;
80
+ clear: both;
81
+ font-weight: normal;
82
+ line-height: $baseLineHeight;
83
+ color: $dropdownLinkColor;
84
+ white-space: nowrap;
85
+ }
86
+ }
87
+
88
+ // Hover state
89
+ // -----------
90
+ .dropdown-menu li > a:hover,
91
+ .dropdown-menu .active > a,
92
+ .dropdown-menu .active > a:hover {
93
+ color: $dropdownLinkColorHover;
94
+ text-decoration: none;
95
+ background-color: $dropdownLinkBackgroundHover;
96
+ }
97
+
98
+ // Open state for the dropdown
99
+ // ---------------------------
100
+ .open {
101
+ // IE7's z-index only goes to the nearest positioned ancestor, which would
102
+ // make the menu appear below buttons that appeared later on the page
103
+ *z-index: $zindexDropdown;
104
+
105
+ & > .dropdown-menu {
106
+ display: block;
107
+ }
108
+ }
109
+
110
+ // Right aligned dropdowns
111
+ // ---------------------------
112
+ .pull-right > .dropdown-menu {
113
+ left: 0;
114
+ right: auto;
115
+ }
116
+
117
+ // Allow for dropdowns to go bottom up (aka, dropup-menu)
118
+ // ------------------------------------------------------
119
+ // Just add .dropup after the standard .dropdown class and you're set, bro.
120
+ // TODO: abstract this so that the navbar fixed styles are not placed here?
121
+ .dropup,
122
+ .navbar-fixed-bottom .dropdown {
123
+ // Reverse the caret
124
+ .caret {
125
+ border-top: 0;
126
+ border-bottom: 4px solid $black;
127
+ content: "\2191";
128
+ }
129
+ // Different positioning for bottom up menu
130
+ .dropdown-menu {
131
+ top: auto;
132
+ bottom: 100%;
133
+ margin-bottom: 1px;
134
+ }
135
+ }
136
+
137
+ // Typeahead
138
+ // ---------
139
+ .typeahead {
140
+ margin-top: 2px; // give it some space to breathe
141
+ @include border-radius(4px);
142
+ }