compass_twitter_bootstrap 0.1.8 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. data/CHANGELOG.md +6 -0
  2. data/README.md +14 -8
  3. data/build/convert.rb +58 -33
  4. data/lib/compass_twitter_bootstrap.rb +1 -1
  5. data/lib/compass_twitter_bootstrap/version.rb +1 -1
  6. data/stylesheets/_compass_twitter_bootstrap.scss +45 -7
  7. data/stylesheets/_compass_twitter_bootstrap_responsive.scss +322 -0
  8. data/stylesheets/compass_twitter_bootstrap/_accordion.scss +28 -0
  9. data/stylesheets/compass_twitter_bootstrap/_alerts.scss +70 -0
  10. data/stylesheets/compass_twitter_bootstrap/_breadcrumbs.scss +22 -0
  11. data/stylesheets/compass_twitter_bootstrap/_button-groups.scss +147 -0
  12. data/stylesheets/compass_twitter_bootstrap/_buttons.scss +165 -0
  13. data/stylesheets/compass_twitter_bootstrap/_carousel.scss +121 -0
  14. data/stylesheets/compass_twitter_bootstrap/_close.scss +18 -0
  15. data/stylesheets/compass_twitter_bootstrap/_code.scss +44 -0
  16. data/stylesheets/compass_twitter_bootstrap/_component-animations.scss +18 -0
  17. data/stylesheets/compass_twitter_bootstrap/_dropdowns.scss +131 -0
  18. data/stylesheets/compass_twitter_bootstrap/_forms.scss +335 -299
  19. data/stylesheets/compass_twitter_bootstrap/_grid.scss +8 -0
  20. data/stylesheets/compass_twitter_bootstrap/_hero-unit.scss +20 -0
  21. data/stylesheets/compass_twitter_bootstrap/_labels.scss +16 -0
  22. data/stylesheets/compass_twitter_bootstrap/_layouts.scss +17 -0
  23. data/stylesheets/compass_twitter_bootstrap/_mixins.scss +409 -68
  24. data/stylesheets/compass_twitter_bootstrap/_modals.scss +72 -0
  25. data/stylesheets/compass_twitter_bootstrap/_navbar.scss +292 -0
  26. data/stylesheets/compass_twitter_bootstrap/_navs.scss +344 -0
  27. data/stylesheets/compass_twitter_bootstrap/_pager.scss +30 -0
  28. data/stylesheets/compass_twitter_bootstrap/_pagination.scss +55 -0
  29. data/stylesheets/compass_twitter_bootstrap/_popovers.scss +49 -0
  30. data/stylesheets/compass_twitter_bootstrap/_progress-bars.scss +95 -0
  31. data/stylesheets/compass_twitter_bootstrap/_reset.scss +37 -52
  32. data/stylesheets/compass_twitter_bootstrap/_scaffolding.scss +13 -123
  33. data/stylesheets/compass_twitter_bootstrap/_sprites.scss +156 -0
  34. data/stylesheets/compass_twitter_bootstrap/_tables.scss +75 -160
  35. data/stylesheets/compass_twitter_bootstrap/_thumbnails.scss +35 -0
  36. data/stylesheets/compass_twitter_bootstrap/_tooltip.scss +35 -0
  37. data/stylesheets/compass_twitter_bootstrap/_type.scss +100 -70
  38. data/stylesheets/compass_twitter_bootstrap/_utilities.scss +23 -0
  39. data/stylesheets/compass_twitter_bootstrap/_variables.scss +94 -55
  40. data/stylesheets/compass_twitter_bootstrap/_wells.scss +17 -0
  41. data/stylesheets_sass/_compass_twitter_bootstrap.sass +49 -6
  42. data/stylesheets_sass/_compass_twitter_bootstrap_responsive.sass +252 -0
  43. data/stylesheets_sass/compass_twitter_bootstrap/_accordion.sass +24 -0
  44. data/stylesheets_sass/compass_twitter_bootstrap/_alerts.sass +65 -0
  45. data/stylesheets_sass/compass_twitter_bootstrap/_breadcrumbs.sass +18 -0
  46. data/stylesheets_sass/compass_twitter_bootstrap/_button-groups.sass +129 -0
  47. data/stylesheets_sass/compass_twitter_bootstrap/_buttons.sass +150 -0
  48. data/stylesheets_sass/compass_twitter_bootstrap/_carousel.sass +95 -0
  49. data/stylesheets_sass/compass_twitter_bootstrap/_close.sass +16 -0
  50. data/stylesheets_sass/compass_twitter_bootstrap/_code.sass +41 -0
  51. data/stylesheets_sass/compass_twitter_bootstrap/_component-animations.sass +16 -0
  52. data/stylesheets_sass/compass_twitter_bootstrap/_dropdowns.sass +121 -0
  53. data/stylesheets_sass/compass_twitter_bootstrap/_forms.sass +327 -306
  54. data/stylesheets_sass/compass_twitter_bootstrap/_grid.sass +8 -0
  55. data/stylesheets_sass/compass_twitter_bootstrap/_hero-unit.sass +17 -0
  56. data/stylesheets_sass/compass_twitter_bootstrap/_labels.sass +23 -0
  57. data/stylesheets_sass/compass_twitter_bootstrap/_layouts.sass +14 -0
  58. data/stylesheets_sass/compass_twitter_bootstrap/_mixins.sass +425 -57
  59. data/stylesheets_sass/compass_twitter_bootstrap/_modals.sass +75 -0
  60. data/stylesheets_sass/compass_twitter_bootstrap/_navbar.sass +258 -0
  61. data/stylesheets_sass/compass_twitter_bootstrap/_navs.sass +316 -0
  62. data/stylesheets_sass/compass_twitter_bootstrap/_pager.sass +29 -0
  63. data/stylesheets_sass/compass_twitter_bootstrap/_pagination.sass +53 -0
  64. data/stylesheets_sass/compass_twitter_bootstrap/_popovers.sass +55 -0
  65. data/stylesheets_sass/compass_twitter_bootstrap/_progress-bars.sass +89 -0
  66. data/stylesheets_sass/compass_twitter_bootstrap/_reset.sass +33 -67
  67. data/stylesheets_sass/compass_twitter_bootstrap/_scaffolding.sass +13 -175
  68. data/stylesheets_sass/compass_twitter_bootstrap/_sprites.sass +392 -0
  69. data/stylesheets_sass/compass_twitter_bootstrap/_tables.sass +67 -139
  70. data/stylesheets_sass/compass_twitter_bootstrap/_thumbnails.sass +34 -0
  71. data/stylesheets_sass/compass_twitter_bootstrap/_tooltip.sass +43 -0
  72. data/stylesheets_sass/compass_twitter_bootstrap/_type.sass +95 -65
  73. data/stylesheets_sass/compass_twitter_bootstrap/_utilities.sass +20 -0
  74. data/stylesheets_sass/compass_twitter_bootstrap/_variables.sass +67 -45
  75. data/stylesheets_sass/compass_twitter_bootstrap/_wells.sass +15 -0
  76. data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
  77. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  78. data/vendor/assets/javascripts/bootstrap-alert.js +91 -0
  79. data/vendor/assets/javascripts/bootstrap-button.js +98 -0
  80. data/vendor/assets/javascripts/bootstrap-carousel.js +154 -0
  81. data/vendor/assets/javascripts/bootstrap-collapse.js +136 -0
  82. data/vendor/assets/javascripts/bootstrap-dropdown.js +58 -21
  83. data/vendor/assets/javascripts/bootstrap-modal.js +63 -114
  84. data/vendor/assets/javascripts/bootstrap-popover.js +38 -33
  85. data/vendor/assets/javascripts/bootstrap-scrollspy.js +62 -44
  86. data/vendor/assets/javascripts/bootstrap-tab.js +130 -0
  87. data/vendor/assets/javascripts/bootstrap-tooltip.js +270 -0
  88. data/vendor/assets/javascripts/bootstrap-transition.js +51 -0
  89. data/vendor/assets/javascripts/bootstrap-typeahead.js +271 -0
  90. metadata +69 -17
  91. data/stylesheets/compass_twitter_bootstrap/_patterns.scss +0 -1058
  92. data/stylesheets_sass/compass_twitter_bootstrap/_patterns.sass +0 -923
  93. data/vendor/assets/javascripts/bootstrap-alerts.js +0 -124
  94. data/vendor/assets/javascripts/bootstrap-buttons.js +0 -64
  95. data/vendor/assets/javascripts/bootstrap-tabs.js +0 -80
  96. data/vendor/assets/javascripts/bootstrap-twipsy.js +0 -321
@@ -0,0 +1,17 @@
1
+ // WELLS
2
+ // -----
3
+
4
+ .well {
5
+ min-height: 20px;
6
+ padding: 19px;
7
+ margin-bottom: 20px;
8
+ background-color: #f5f5f5;
9
+ border: 1px solid #eee;
10
+ border: 1px solid rgba(0,0,0,.05);
11
+ @include border-radius(4px);
12
+ @include box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
13
+ blockquote {
14
+ border-color: #ddd;
15
+ border-color: rgba(0,0,0,.15);
16
+ }
17
+ }
@@ -1,27 +1,70 @@
1
1
  /*!
2
- * Bootstrap v1.3.0
2
+ * Bootstrap v2.0.0
3
3
  *
4
- * Copyright 2011 Twitter, Inc
4
+ * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
6
6
  * http://www.apache.org/licenses/LICENSE-2.0
7
7
  *
8
8
  * Designed and built with all the love in the world @twitter by @mdo and @fat.
9
- * Date: @DATE
10
9
 
11
10
  @import compass
12
11
 
12
+ @import compass_twitter_bootstrap/mixins
13
+
13
14
  // CSS Reset
14
15
  @import compass_twitter_bootstrap/reset
15
16
 
16
17
  // Core variables and mixins
17
18
  @import compass_twitter_bootstrap/variables
18
- @import compass_twitter_bootstrap/mixins
19
+
20
+ // Modify this for custom colors, font-sizes, etc
19
21
 
20
22
  // Grid system and page structure
21
23
  @import compass_twitter_bootstrap/scaffolding
24
+ @import compass_twitter_bootstrap/grid
25
+ @import compass_twitter_bootstrap/layouts
22
26
 
23
- // Styled patterns and elements
27
+ // Base CSS
24
28
  @import compass_twitter_bootstrap/type
29
+ @import compass_twitter_bootstrap/code
25
30
  @import compass_twitter_bootstrap/forms
26
31
  @import compass_twitter_bootstrap/tables
27
- @import compass_twitter_bootstrap/patterns
32
+
33
+ // Components: common
34
+ @import compass_twitter_bootstrap/sprites
35
+ @import compass_twitter_bootstrap/dropdowns
36
+ @import compass_twitter_bootstrap/wells
37
+ @import compass_twitter_bootstrap/component-animations
38
+ @import compass_twitter_bootstrap/close
39
+
40
+ // Components: Buttons & Alerts
41
+ @import compass_twitter_bootstrap/buttons
42
+ @import compass_twitter_bootstrap/button-groups
43
+ @import compass_twitter_bootstrap/alerts
44
+
45
+ // Note: alerts share common CSS with buttons and thus have styles in buttons.less
46
+
47
+ // Components: Nav
48
+ @import compass_twitter_bootstrap/navs
49
+ @import compass_twitter_bootstrap/navbar
50
+ @import compass_twitter_bootstrap/breadcrumbs
51
+ @import compass_twitter_bootstrap/pagination
52
+ @import compass_twitter_bootstrap/pager
53
+
54
+ // Components: Popovers
55
+ @import compass_twitter_bootstrap/modals
56
+ @import compass_twitter_bootstrap/tooltip
57
+ @import compass_twitter_bootstrap/popovers
58
+
59
+ // Components: Misc
60
+ @import compass_twitter_bootstrap/thumbnails
61
+ @import compass_twitter_bootstrap/labels
62
+ @import compass_twitter_bootstrap/progress-bars
63
+ @import compass_twitter_bootstrap/accordion
64
+ @import compass_twitter_bootstrap/carousel
65
+ @import compass_twitter_bootstrap/hero-unit
66
+
67
+ // Utility classes
68
+ @import compass_twitter_bootstrap/utilities
69
+
70
+ // Has to be last to override when necessary
@@ -0,0 +1,252 @@
1
+ /*!
2
+ * Bootstrap Responsive v2.0.0
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
+ // RESPONSIVE
11
+ // For phone and tablet devices
12
+ // -------------------------------------------------------------
13
+
14
+ // REPEAT VARIABLES & MIXINS
15
+ // -------------------------
16
+ // Required since we compile the responsive stuff separately
17
+
18
+ @import variables
19
+
20
+ // Modify this for custom colors, font-sizes, etc
21
+ @import mixins
22
+
23
+ // RESPONSIVE CLASSES
24
+ // ------------------
25
+
26
+ // Hide from screenreaders and browsers
27
+ // Credit: HTML5 Boilerplate
28
+ .hidden
29
+ display: none
30
+ visibility: hidden
31
+
32
+ // UP TO LANDSCAPE PHONE
33
+ // ---------------------
34
+
35
+ @media (max-width: 480px)
36
+ // Smooth out the collapsing/expanding nav
37
+ .nav-collapse
38
+ -webkit-transform: translate3d(0, 0, 0)
39
+ // activate the GPU
40
+ // Block level the page header small tag for readability
41
+ .page-header h1 small
42
+ display: block
43
+ line-height: $baseLineHeight
44
+ // Make span* classes full width
45
+ input[class*="span"],
46
+ select[class*="span"],
47
+ textarea[class*="span"],
48
+ .uneditable-input
49
+ display: block
50
+ width: 100%
51
+ height: 28px
52
+ /* Make inputs at least the height of their button counterpart
53
+ /* Makes inputs behave like true block-level elements
54
+ -webkit-box-sizing: border-box
55
+ /* Older Webkit
56
+ -moz-box-sizing: border-box
57
+ /* Older FF
58
+ -ms-box-sizing: border-box
59
+ /* IE8
60
+ box-sizing: border-box
61
+ /* CSS3 spec
62
+ // But don't let it screw up prepend/append inputs
63
+ .input-prepend input[class*="span"],
64
+ .input-append input[class*="span"]
65
+ width: auto
66
+ // Update checkboxes for iOS
67
+ input[type="checkbox"],
68
+ input[type="radio"]
69
+ border: 1px solid #ccc
70
+ // Remove the horizontal form styles
71
+ .form-horizontal .control-group > label
72
+ float: none
73
+ width: auto
74
+ padding-top: 0
75
+ text-align: left
76
+ // Move over all input controls and content
77
+ .form-horizontal .controls
78
+ margin-left: 0
79
+ // Move the options list down to align with labels
80
+ .form-horizontal .control-list
81
+ padding-top: 0
82
+ // has to be padding because margin collaspes
83
+ // Move over buttons in .form-actions to align with .controls
84
+ .form-horizontal .form-actions
85
+ padding-left: 10px
86
+ padding-right: 10px
87
+ // Modals
88
+ .modal
89
+ position: absolute
90
+ top: 10px
91
+ left: 10px
92
+ right: 10px
93
+ width: auto
94
+ margin: 0
95
+ &.fade.in
96
+ top: auto
97
+ .modal-header .close
98
+ padding: 10px
99
+ margin: -10px
100
+ // Carousel
101
+ .carousel-caption
102
+ position: static
103
+
104
+ // LANDSCAPE PHONE TO SMALL DESKTOP & PORTRAIT TABLET
105
+ // --------------------------------------------------
106
+
107
+ @media (max-width: 768px)
108
+ // GRID & CONTAINERS
109
+ // -----------------
110
+ // Remove width from containers
111
+ .container
112
+ width: auto
113
+ padding: 0 20px
114
+ // Fluid rows
115
+ .row-fluid
116
+ width: 100%
117
+ // Undo negative margin on rows
118
+ .row
119
+ margin-left: 0
120
+ // Make all columns even
121
+ .row > [class*="span"],
122
+ .row-fluid > [class*="span"]
123
+ float: none
124
+ display: block
125
+ width: auto
126
+ margin: 0
127
+
128
+ // PORTRAIT TABLET TO DEFAULT DESKTOP
129
+ // ----------------------------------
130
+
131
+ @media (min-width: 768px) and (max-width: 980px)
132
+ // Fixed grid
133
+ +gridSystem-generate(12, 42px, 20px)
134
+ // Fluid grid
135
+ +fluidGridSystem-generate(12, 5.801%, 2.762%)
136
+ // Input grid
137
+ +inputGridSystem-generate(12, 42px, 20px)
138
+
139
+ // TABLETS AND BELOW
140
+ // -----------------
141
+ @media (max-width: 980px)
142
+ // UNFIX THE TOPBAR
143
+ // ----------------
144
+ // Remove any padding from the body
145
+ body
146
+ padding-top: 0
147
+ // Unfix the navbar
148
+ .navbar-fixed-top
149
+ position: static
150
+ margin-bottom: $baseLineHeight
151
+ .navbar-fixed-top .navbar-inner
152
+ padding: 5px
153
+ .navbar .container
154
+ width: auto
155
+ padding: 0
156
+ // Account for brand name
157
+ .navbar .brand
158
+ padding-left: 10px
159
+ padding-right: 10px
160
+ margin: 0 0 0 -5px
161
+ // Nav collapse clears brand
162
+ .navbar .nav-collapse
163
+ clear: left
164
+ // Block-level the nav
165
+ .navbar .nav
166
+ float: none
167
+ margin: 0 0 $baseLineHeight / 2
168
+ .navbar .nav > li
169
+ float: none
170
+ .navbar .nav > li > a
171
+ margin-bottom: 2px
172
+ .navbar .nav > .divider-vertical
173
+ display: none
174
+ // Nav and dropdown links in navbar
175
+ .navbar .nav > li > a,
176
+ .navbar .dropdown-menu a
177
+ padding: 6px 15px
178
+ font-weight: bold
179
+ color: $navbarLinkColor
180
+ +border-radius(3px)
181
+ .navbar .dropdown-menu li + li a
182
+ margin-bottom: 2px
183
+ .navbar .nav > li > a:hover,
184
+ .navbar .dropdown-menu a:hover
185
+ background-color: $navbarBackground
186
+ // Dropdowns in the navbar
187
+ .navbar .dropdown-menu
188
+ position: static
189
+ top: auto
190
+ left: auto
191
+ float: none
192
+ display: block
193
+ max-width: none
194
+ margin: 0 15px
195
+ padding: 0
196
+ background-color: transparent
197
+ border: none
198
+ +border-radius(0)
199
+ +box-shadow(none)
200
+ .navbar .dropdown-menu:before,
201
+ .navbar .dropdown-menu:after
202
+ display: none
203
+ .navbar .dropdown-menu .divider
204
+ display: none
205
+ // Forms in navbar
206
+ .navbar-form,
207
+ .navbar-search
208
+ float: none
209
+ padding: $baseLineHeight / 2 15px
210
+ margin: $baseLineHeight / 2 0
211
+ border-top: 1px solid $navbarBackground
212
+ border-bottom: 1px solid $navbarBackground
213
+ $shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1)
214
+ +box-shadow($shadow)
215
+ // Pull right (secondary) nav content
216
+ .navbar .nav.pull-right
217
+ float: none
218
+ margin-left: 0
219
+ // Static navbar
220
+ .navbar-static .navbar-inner
221
+ padding-left: 10px
222
+ padding-right: 10px
223
+ // Navbar button
224
+ .btn-navbar
225
+ display: block
226
+ // Hide everything in the navbar save .brand and toggle button */
227
+ .nav-collapse
228
+ overflow: hidden
229
+ height: 0
230
+
231
+ // DEFAULT DESKTOP
232
+ // ---------------
233
+
234
+ @media (min-width: 980px)
235
+ .nav-collapse.collapse
236
+ height: auto !important
237
+
238
+ // LARGE DESKTOP & UP
239
+ // ------------------
240
+
241
+ @media (min-width: 1200px)
242
+ // Fixed grid
243
+ +gridSystem-generate(12, 70px, 30px)
244
+ // Fluid grid
245
+ +fluidGridSystem-generate(12, 5.983%, 2.564%)
246
+ // Input grid
247
+ +inputGridSystem-generate(12, 70px, 30px)
248
+ // Thumbnails
249
+ .thumbnails
250
+ margin-left: -30px
251
+ .thumbnails > li
252
+ margin-left: 30px
@@ -0,0 +1,24 @@
1
+ // ACCORDION
2
+ // ---------
3
+
4
+ // Parent container
5
+ .accordion
6
+ margin-bottom: $baseLineHeight
7
+
8
+ // Group == heading + body
9
+ .accordion-group
10
+ margin-bottom: 2px
11
+ border: 1px solid #e5e5e5
12
+ +border-radius(4px)
13
+
14
+ .accordion-heading
15
+ border-bottom: 0
16
+
17
+ .accordion-heading .accordion-toggle
18
+ display: block
19
+ padding: 8px 15px
20
+
21
+ // Inner needs the styles because you can't animate properly with any styles on the element
22
+ .accordion-inner
23
+ padding: 9px 15px
24
+ border-top: 1px solid #e5e5e5
@@ -0,0 +1,65 @@
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, 0.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
+ // Adjust close link position
18
+ .alert .close
19
+ position: relative
20
+ top: -2px
21
+ right: -21px
22
+ line-height: 18px
23
+
24
+ // Alternate styles
25
+ // ----------------
26
+
27
+ .alert-success
28
+ background-color: $successBackground
29
+ border-color: $successBorder
30
+
31
+ .alert-success,
32
+ .alert-success .alert-heading
33
+ color: $successText
34
+
35
+ .alert-danger,
36
+ .alert-error
37
+ background-color: $errorBackground
38
+ border-color: $errorBorder
39
+
40
+ .alert-danger,
41
+ .alert-error,
42
+ .alert-danger .alert-heading,
43
+ .alert-error .alert-heading
44
+ color: $errorText
45
+
46
+ .alert-info
47
+ background-color: $infoBackground
48
+ border-color: $infoBorder
49
+
50
+ .alert-info,
51
+ .alert-info .alert-heading
52
+ color: $infoText
53
+
54
+ // Block alerts
55
+ // ------------------------
56
+ .alert-block
57
+ padding-top: 14px
58
+ padding-bottom: 14px
59
+
60
+ .alert-block > p,
61
+ .alert-block > ul
62
+ margin-bottom: 0
63
+
64
+ .alert-block p + p
65
+ margin-top: 5px
@@ -0,0 +1,18 @@
1
+ // BREADCRUMBS
2
+ // -----------
3
+
4
+ .breadcrumb
5
+ padding: 7px 14px
6
+ margin: 0 0 $baseLineHeight
7
+ +gradient-vertical($white, #f5f5f5)
8
+ border: 1px solid #ddd
9
+ +border-radius(3px)
10
+ +box-shadow(inset 0 1px 0 $white)
11
+ li
12
+ display: inline
13
+ text-shadow: 0 1px 0 $white
14
+ .divider
15
+ padding: 0 5px
16
+ color: $grayLight
17
+ .active a
18
+ color: $grayDark