bootstrapped-rails 2.0.7.2 → 2.0.7.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. data/app/helpers/twitter_breadcrumbs_helper.rb +5 -0
  2. data/app/views/twitter_bootstrap/_breadcrumbs.html.erb +14 -0
  3. data/bootstrapped-rails.gemspec +2 -2
  4. data/lib/bootstrapped-rails/breadcrumbs.rb +21 -0
  5. data/lib/bootstrapped-rails/engine.rb +8 -0
  6. data/lib/bootstrapped-rails/version.rb +1 -1
  7. data/logical_license +23 -0
  8. data/readme.md +58 -25
  9. data/vendor/assets/javascripts/bootstrapped/bootstrap-alert.js +1 -1
  10. data/vendor/assets/javascripts/bootstrapped/bootstrap-button.js +4 -2
  11. data/vendor/assets/javascripts/bootstrapped/bootstrap-carousel.js +7 -3
  12. data/vendor/assets/javascripts/bootstrapped/bootstrap-collapse.js +4 -2
  13. data/vendor/assets/javascripts/bootstrapped/bootstrap-dropdown.js +1 -1
  14. data/vendor/assets/javascripts/bootstrapped/bootstrap-modal.js +1 -1
  15. data/vendor/assets/javascripts/bootstrapped/bootstrap-popover.js +1 -1
  16. data/vendor/assets/javascripts/bootstrapped/bootstrap-scrollspy.js +1 -1
  17. data/vendor/assets/javascripts/bootstrapped/bootstrap-tab.js +1 -1
  18. data/vendor/assets/javascripts/bootstrapped/bootstrap-tooltip.js +2 -2
  19. data/vendor/assets/javascripts/bootstrapped/bootstrap-transition.js +1 -1
  20. data/vendor/assets/javascripts/bootstrapped/bootstrap-typeahead.js +7 -7
  21. data/vendor/assets/stylesheets/bootstrapped-sass/_reset.scss +31 -10
  22. data/vendor/assets/stylesheets/custom_partials/animation.scss +170 -0
  23. data/vendor/assets/stylesheets/custom_partials/box-shadow.scss +13 -0
  24. data/vendor/assets/stylesheets/custom_partials/box-sizing.scss +6 -0
  25. data/vendor/assets/stylesheets/custom_partials/flex-box.scss +64 -0
  26. data/vendor/assets/stylesheets/custom_partials/license +24 -0
  27. data/vendor/toolkit/twitter/bootstrap/accordion.less +28 -0
  28. data/vendor/toolkit/twitter/bootstrap/alerts.less +70 -0
  29. data/vendor/toolkit/twitter/bootstrap/bootstrap.less +62 -0
  30. data/vendor/toolkit/twitter/bootstrap/breadcrumbs.less +22 -0
  31. data/vendor/toolkit/twitter/bootstrap/button-groups.less +148 -0
  32. data/vendor/toolkit/twitter/bootstrap/buttons.less +183 -0
  33. data/vendor/toolkit/twitter/bootstrap/carousel.less +121 -0
  34. data/vendor/toolkit/twitter/bootstrap/close.less +18 -0
  35. data/vendor/toolkit/twitter/bootstrap/code.less +57 -0
  36. data/vendor/toolkit/twitter/bootstrap/component-animations.less +18 -0
  37. data/vendor/toolkit/twitter/bootstrap/dropdowns.less +130 -0
  38. data/vendor/toolkit/twitter/bootstrap/forms.less +522 -0
  39. data/vendor/toolkit/twitter/bootstrap/grid.less +8 -0
  40. data/vendor/toolkit/twitter/bootstrap/hero-unit.less +20 -0
  41. data/vendor/toolkit/twitter/bootstrap/labels.less +32 -0
  42. data/vendor/toolkit/twitter/bootstrap/layouts.less +17 -0
  43. data/vendor/toolkit/twitter/bootstrap/mixins.less +590 -0
  44. data/vendor/toolkit/twitter/bootstrap/modals.less +83 -0
  45. data/vendor/toolkit/twitter/bootstrap/navbar.less +299 -0
  46. data/vendor/toolkit/twitter/bootstrap/navs.less +353 -0
  47. data/vendor/toolkit/twitter/bootstrap/pager.less +30 -0
  48. data/vendor/toolkit/twitter/bootstrap/pagination.less +55 -0
  49. data/vendor/toolkit/twitter/bootstrap/popovers.less +49 -0
  50. data/vendor/toolkit/twitter/bootstrap/progress-bars.less +95 -0
  51. data/vendor/toolkit/twitter/bootstrap/reset.less +126 -0
  52. data/vendor/toolkit/twitter/bootstrap/responsive.less +327 -0
  53. data/vendor/toolkit/twitter/bootstrap/scaffolding.less +29 -0
  54. data/vendor/toolkit/twitter/bootstrap/sprites.less +158 -0
  55. data/vendor/toolkit/twitter/bootstrap/tables.less +150 -0
  56. data/vendor/toolkit/twitter/bootstrap/thumbnails.less +35 -0
  57. data/vendor/toolkit/twitter/bootstrap/tooltip.less +35 -0
  58. data/vendor/toolkit/twitter/bootstrap/type.less +218 -0
  59. data/vendor/toolkit/twitter/bootstrap/utilities.less +23 -0
  60. data/vendor/toolkit/twitter/bootstrap/variables.less +107 -0
  61. data/vendor/toolkit/twitter/bootstrap/wells.less +17 -0
  62. data/vendor/toolkit/twitter/bootstrap_base.less +2 -0
  63. metadata +64 -10
@@ -0,0 +1,170 @@
1
+ // http://www.w3.org/TR/css3-animations/#the-animation-name-property-
2
+ // Each of these mixins support comma separated lists of values, which allows different transitions for individual properties to be described in a single style rule. Each value in the list corresponds to the value at that same position in the other properties.
3
+
4
+ // Official animation shorthand property.
5
+ @mixin animation ($animation-1,
6
+ $animation-2: false, $animation-3: false,
7
+ $animation-4: false, $animation-5: false,
8
+ $animation-6: false, $animation-7: false,
9
+ $animation-8: false, $animation-9: false)
10
+ {
11
+ $full: compact($animation-1, $animation-2, $animation-3, $animation-4,
12
+ $animation-5, $animation-6, $animation-7, $animation-8, $animation-9);
13
+
14
+ -webkit-animation: $full;
15
+ -moz-animation: $full;
16
+ animation: $full;
17
+ }
18
+
19
+ // Individual Animation Properties
20
+ @mixin animation-name ($name-1,
21
+ $name-2: false, $name-3: false,
22
+ $name-4: false, $name-5: false,
23
+ $name-6: false, $name-7: false,
24
+ $name-8: false, $name-9: false)
25
+ {
26
+ $full: compact($name-1, $name-2, $name-3, $name-4,
27
+ $name-5, $name-6, $name-7, $name-8, $name-9);
28
+
29
+ -webkit-animation-name: $full;
30
+ -moz-animation-name: $full;
31
+ animation-name: $full;
32
+ }
33
+
34
+
35
+ @mixin animation-duration ($time-1: 0,
36
+ $time-2: false, $time-3: false,
37
+ $time-4: false, $time-5: false,
38
+ $time-6: false, $time-7: false,
39
+ $time-8: false, $time-9: false)
40
+ {
41
+ $full: compact($time-1, $time-2, $time-3, $time-4,
42
+ $time-5, $time-6, $time-7, $time-8, $time-9);
43
+
44
+ -webkit-animation-duration: $full;
45
+ -moz-animation-duration: $full;
46
+ animation-duration: $full;
47
+ }
48
+
49
+
50
+ @mixin animation-timing-function ($motion-1: ease,
51
+ // ease | linear | ease-in | ease-out | ease-in-out
52
+ $motion-2: false, $motion-3: false,
53
+ $motion-4: false, $motion-5: false,
54
+ $motion-6: false, $motion-7: false,
55
+ $motion-8: false, $motion-9: false)
56
+ {
57
+ $full: compact($motion-1, $motion-2, $motion-3, $motion-4,
58
+ $motion-5, $motion-6, $motion-7, $motion-8, $motion-9);
59
+
60
+ -webkit-animation-timing-function: $full;
61
+ -moz-animation-timing-function: $full;
62
+ animation-timing-function: $full;
63
+ }
64
+
65
+
66
+ @mixin animation-iteration-count ($value-1: 1,
67
+ // infinite | <number>
68
+ $value-2: false, $value-3: false,
69
+ $value-4: false, $value-5: false,
70
+ $value-6: false, $value-7: false,
71
+ $value-8: false, $value-9: false)
72
+ {
73
+ $full: compact($value-1, $value-2, $value-3, $value-4,
74
+ $value-5, $value-6, $value-7, $value-8, $value-9);
75
+
76
+ -webkit-animation-iteration-count: $full;
77
+ -moz-animation-iteration-count: $full;
78
+ animation-iteration-count: $full;
79
+ }
80
+
81
+
82
+ @mixin animation-direction ($direction-1: normal,
83
+ // normal | alternate
84
+ $direction-2: false, $direction-3: false,
85
+ $direction-4: false, $direction-5: false,
86
+ $direction-6: false, $direction-7: false,
87
+ $direction-8: false, $direction-9: false)
88
+ {
89
+ $full: compact($direction-1, $direction-2, $direction-3, $direction-4,
90
+ $direction-5, $direction-6, $direction-7, $direction-8, $direction-9);
91
+
92
+ -webkit-animation-direction: $full;
93
+ -moz-animation-direction: $full;
94
+ animation-direction: $full;
95
+ }
96
+
97
+
98
+ @mixin animation-play-state ($state-1: running,
99
+ // running | paused
100
+ $state-2: false, $state-3: false,
101
+ $state-4: false, $state-5: false,
102
+ $state-6: false, $state-7: false,
103
+ $state-8: false, $state-9: false)
104
+ {
105
+ $full: compact($state-1, $state-2, $state-3, $state-4,
106
+ $state-5, $state-6, $state-7, $state-8, $state-9);
107
+
108
+ -webkit-animation-play-state: $full;
109
+ -moz-animation-play-state: $full;
110
+ animation-play-state: $full;
111
+ }
112
+
113
+
114
+ @mixin animation-delay ($time-1: 0,
115
+ $time-2: false, $time-3: false,
116
+ $time-4: false, $time-5: false,
117
+ $time-6: false, $time-7: false,
118
+ $time-8: false, $time-9: false)
119
+ {
120
+ $full: compact($time-1, $time-2, $time-3, $time-4,
121
+ $time-5, $time-6, $time-7, $time-8, $time-9);
122
+
123
+ -webkit-animation-delay: $full;
124
+ -moz-animation-delay: $full;
125
+ animation-delay: $full;
126
+ }
127
+
128
+
129
+ @mixin animation-fill-mode ($mode-1: none,
130
+ // http://goo.gl/l6ckm
131
+ // none | forwards | backwards | both
132
+ $mode-2: false, $mode-3: false,
133
+ $mode-4: false, $mode-5: false,
134
+ $mode-6: false, $mode-7: false,
135
+ $mode-8: false, $mode-9: false)
136
+ {
137
+ $full: compact($mode-1, $mode-2, $mode-3, $mode-4,
138
+ $mode-5, $mode-6, $mode-7, $mode-8, $mode-9);
139
+
140
+ -webkit-animation-fill-mode: $full;
141
+ -moz-animation-fill-mode: $full;
142
+ animation-fill-mode: $full;
143
+ }
144
+
145
+
146
+ // Deprecated
147
+ @mixin animation-basic ($name, $time: 0, $motion: ease) {
148
+ $length-of-name: length($name);
149
+ $length-of-time: length($time);
150
+ $length-of-motion: length($motion);
151
+
152
+ @if $length-of-name > 1 {
153
+ @include animation-name(zip($name));
154
+ } @else {
155
+ @include animation-name( $name);
156
+ }
157
+
158
+ @if $length-of-time > 1 {
159
+ @include animation-duration(zip($time));
160
+ } @else {
161
+ @include animation-duration( $time);
162
+ }
163
+
164
+ @if $length-of-motion > 1 {
165
+ @include animation-timing-function(zip($motion));
166
+ } @else {
167
+ @include animation-timing-function( $motion);
168
+ }
169
+ @warn "The animation-basic mixin is deprecated. Use the animation mixin instead.";
170
+ }
@@ -0,0 +1,13 @@
1
+ @mixin box-shadow ($shadow-1,
2
+ $shadow-2: false, $shadow-3: false,
3
+ $shadow-4: false, $shadow-5: false,
4
+ $shadow-6: false, $shadow-7: false,
5
+ $shadow-8: false, $shadow-9: false)
6
+ {
7
+ $full: compact($shadow-1, $shadow-2, $shadow-3, $shadow-4,
8
+ $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9);
9
+
10
+ -webkit-box-shadow: $full;
11
+ -moz-box-shadow: $full;
12
+ box-shadow: $full;
13
+ }
@@ -0,0 +1,6 @@
1
+ @mixin box-sizing ($box) {
2
+ // content-box | border-box | inherit
3
+ -webkit-box-sizing: $box;
4
+ -moz-box-sizing: $box;
5
+ box-sizing: $box;
6
+ }
@@ -0,0 +1,64 @@
1
+ @mixin box($orient: inline-axis, $pack: start, $align: stretch) {
2
+ @include display-box;
3
+ @include box-orient($orient);
4
+ @include box-pack($pack);
5
+ @include box-align($align);
6
+ }
7
+
8
+ @mixin display-box {
9
+ display: -webkit-box;
10
+ display: -moz-box;
11
+ display: box;
12
+ }
13
+
14
+ @mixin box-orient($orient: inline-axis) {
15
+ // horizontal|vertical|inline-axis|block-axis|inherit
16
+ -webkit-box-orient: $orient;
17
+ -moz-box-orient: $orient;
18
+ box-orient: $orient;
19
+ }
20
+
21
+ @mixin box-pack($pack: start) {
22
+ // start|end|center|justify
23
+ -webkit-box-pack: $pack;
24
+ -moz-box-pack: $pack;
25
+ box-pack: $pack;
26
+ }
27
+
28
+ @mixin box-align($align: stretch) {
29
+ // start|end|center|baseline|stretch
30
+ -webkit-box-align: $align;
31
+ -moz-box-align: $align;
32
+ box-align: $align;
33
+ }
34
+
35
+ @mixin box-direction($direction: normal) {
36
+ // normal|reverse|inherit
37
+ -webkit-box-direction: $direction;
38
+ -moz-box-direction: $direction;
39
+ box-direction: $direction;
40
+ }
41
+ @mixin box-lines($lines: single) {
42
+ // single|multiple
43
+ -webkit-box-lines: $lines;
44
+ -moz-box-lines: $lines;
45
+ box-lines: $lines;
46
+ }
47
+
48
+ @mixin box-ordinal-group($integer: 1) {
49
+ -webkit-box-ordinal-group: $integer;
50
+ -moz-box-ordinal-group: $integer;
51
+ box-ordinal-group: $integer;
52
+ }
53
+
54
+ @mixin box-flex($value: 0.0) {
55
+ -webkit-box-flex: $value;
56
+ -moz-box-flex: $value;
57
+ box-flex: $value;
58
+ }
59
+
60
+ @mixin box-flex-group($integer: 1) {
61
+ -webkit-box-flex-group: $integer;
62
+ -moz-box-flex-group: $integer;
63
+ box-flex-group: $integer;
64
+ }
@@ -0,0 +1,24 @@
1
+
2
+ LICENSE
3
+
4
+ The MIT License
5
+
6
+ Copyright (c) 2011 thoughtbot, inc.
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software is
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in
16
+ all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
+ THE SOFTWARE.
@@ -0,0 +1,28 @@
1
+ // ACCORDION
2
+ // ---------
3
+
4
+
5
+ // Parent container
6
+ .accordion {
7
+ margin-bottom: @baseLineHeight;
8
+ }
9
+
10
+ // Group == heading + body
11
+ .accordion-group {
12
+ margin-bottom: 2px;
13
+ border: 1px solid #e5e5e5;
14
+ .border-radius(4px);
15
+ }
16
+ .accordion-heading {
17
+ border-bottom: 0;
18
+ }
19
+ .accordion-heading .accordion-toggle {
20
+ display: block;
21
+ padding: 8px 15px;
22
+ }
23
+
24
+ // Inner needs the styles because you can't animate properly with any styles on the element
25
+ .accordion-inner {
26
+ padding: 9px 15px;
27
+ border-top: 1px solid #e5e5e5;
28
+ }
@@ -0,0 +1,70 @@
1
+ // ALERT STYLES
2
+ // ------------
3
+
4
+ // Base alert styles
5
+ .alert {
6
+ padding: 8px 35px 8px 14px;
7
+ margin-bottom: @baseLineHeight;
8
+ text-shadow: 0 1px 0 rgba(255,255,255,.5);
9
+ background-color: @warningBackground;
10
+ border: 1px solid @warningBorder;
11
+ .border-radius(4px);
12
+ }
13
+ .alert,
14
+ .alert-heading {
15
+ color: @warningText;
16
+ }
17
+
18
+ // Adjust close link position
19
+ .alert .close {
20
+ position: relative;
21
+ top: -2px;
22
+ right: -21px;
23
+ line-height: 18px;
24
+ }
25
+
26
+ // Alternate styles
27
+ // ----------------
28
+
29
+ .alert-success {
30
+ background-color: @successBackground;
31
+ border-color: @successBorder;
32
+ }
33
+ .alert-success,
34
+ .alert-success .alert-heading {
35
+ color: @successText;
36
+ }
37
+ .alert-danger,
38
+ .alert-error {
39
+ background-color: @errorBackground;
40
+ border-color: @errorBorder;
41
+ }
42
+ .alert-danger,
43
+ .alert-error,
44
+ .alert-danger .alert-heading,
45
+ .alert-error .alert-heading {
46
+ color: @errorText;
47
+ }
48
+ .alert-info {
49
+ background-color: @infoBackground;
50
+ border-color: @infoBorder;
51
+ }
52
+ .alert-info,
53
+ .alert-info .alert-heading {
54
+ color: @infoText;
55
+ }
56
+
57
+
58
+ // Block alerts
59
+ // ------------------------
60
+ .alert-block {
61
+ padding-top: 14px;
62
+ padding-bottom: 14px;
63
+ }
64
+ .alert-block > p,
65
+ .alert-block > ul {
66
+ margin-bottom: 0;
67
+ }
68
+ .alert-block p + p {
69
+ margin-top: 5px;
70
+ }
@@ -0,0 +1,62 @@
1
+ /*!
2
+ * Bootstrap v2.0.1
3
+ *
4
+ * Copyright 2012 Twitter, Inc
5
+ * Licensed under the Apache License v2.0
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Designed and built with all the love in the world @twitter by @mdo and @fat.
9
+ */
10
+
11
+ // CSS Reset
12
+ @import "reset.less";
13
+
14
+ // Core variables and mixins
15
+ @import "variables.less"; // Modify this for custom colors, font-sizes, etc
16
+ @import "mixins.less";
17
+
18
+ // Grid system and page structure
19
+ @import "scaffolding.less";
20
+ @import "grid.less";
21
+ @import "layouts.less";
22
+
23
+ // Base CSS
24
+ @import "type.less";
25
+ @import "code.less";
26
+ @import "forms.less";
27
+ @import "tables.less";
28
+
29
+ // Components: common
30
+ @import "sprites.less";
31
+ @import "dropdowns.less";
32
+ @import "wells.less";
33
+ @import "component-animations.less";
34
+ @import "close.less";
35
+
36
+ // Components: Buttons & Alerts
37
+ @import "buttons.less";
38
+ @import "button-groups.less";
39
+ @import "alerts.less"; // Note: alerts share common CSS with buttons and thus have styles in buttons.less
40
+
41
+ // Components: Nav
42
+ @import "navs.less";
43
+ @import "navbar.less";
44
+ @import "breadcrumbs.less";
45
+ @import "pagination.less";
46
+ @import "pager.less";
47
+
48
+ // Components: Popovers
49
+ @import "modals.less";
50
+ @import "tooltip.less";
51
+ @import "popovers.less";
52
+
53
+ // Components: Misc
54
+ @import "thumbnails.less";
55
+ @import "labels.less";
56
+ @import "progress-bars.less";
57
+ @import "accordion.less";
58
+ @import "carousel.less";
59
+ @import "hero-unit.less";
60
+
61
+ // Utility classes
62
+ @import "utilities.less"; // Has to be last to override when necessary