compass_twitter_bootstrap 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. data/CHANGELOG.md +11 -1
  2. data/README.md +25 -3
  3. data/Rakefile +5 -0
  4. data/{lib → build}/convert.rb +55 -4
  5. data/init.rb +1 -0
  6. data/lib/compass_twitter_bootstrap.rb +5 -0
  7. data/lib/compass_twitter_bootstrap/engine.rb +4 -0
  8. data/lib/compass_twitter_bootstrap/version.rb +1 -1
  9. data/stylesheets/compass_twitter_bootstrap/_forms.scss +49 -35
  10. data/stylesheets/compass_twitter_bootstrap/_mixins.scss +5 -2
  11. data/stylesheets/compass_twitter_bootstrap/_patterns.scss +100 -45
  12. data/stylesheets/compass_twitter_bootstrap/_reset.scss +1 -1
  13. data/stylesheets/compass_twitter_bootstrap/_scaffolding.scss +24 -20
  14. data/stylesheets/compass_twitter_bootstrap/_tables.scss +68 -15
  15. data/stylesheets_sass/_compass_twitter_bootstrap.sass +27 -0
  16. data/stylesheets_sass/compass_twitter_bootstrap/_forms.sass +451 -0
  17. data/stylesheets_sass/compass_twitter_bootstrap/_mixins.sass +159 -0
  18. data/stylesheets_sass/compass_twitter_bootstrap/_patterns.sass +923 -0
  19. data/stylesheets_sass/compass_twitter_bootstrap/_reset.sass +164 -0
  20. data/stylesheets_sass/compass_twitter_bootstrap/_scaffolding.sass +187 -0
  21. data/stylesheets_sass/compass_twitter_bootstrap/_tables.sass +198 -0
  22. data/stylesheets_sass/compass_twitter_bootstrap/_type.sass +162 -0
  23. data/stylesheets_sass/compass_twitter_bootstrap/_variables.sass +71 -0
  24. data/vendor/assets/javascripts/bootstrap-alerts.js +124 -0
  25. data/vendor/assets/javascripts/bootstrap-buttons.js +64 -0
  26. data/vendor/assets/javascripts/bootstrap-dropdown.js +55 -0
  27. data/vendor/assets/javascripts/bootstrap-modal.js +260 -0
  28. data/vendor/assets/javascripts/bootstrap-popover.js +90 -0
  29. data/vendor/assets/javascripts/bootstrap-scrollspy.js +107 -0
  30. data/vendor/assets/javascripts/bootstrap-tabs.js +80 -0
  31. data/vendor/assets/javascripts/bootstrap-twipsy.js +321 -0
  32. metadata +27 -8
@@ -0,0 +1,164 @@
1
+ /* Reset.less
2
+ * Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
3
+ * -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
4
+
5
+ // ERIC MEYER RESET
6
+ // --------------------------------------------------
7
+
8
+ html, body
9
+ margin: 0
10
+ padding: 0
11
+
12
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, cite, code, del, dfn, em, img, q, s, samp, small, strike, strong, sub, sup, tt, var, dd, dl, dt, li, ol, ul, fieldset, form, label, legend, button, table, caption, tbody, tfoot, thead, tr, th, td
13
+ margin: 0
14
+ padding: 0
15
+ border: 0
16
+ font-weight: normal
17
+ font-style: normal
18
+ font-size: 100%
19
+ line-height: 1
20
+ font-family: inherit
21
+
22
+ table
23
+ border-collapse: collapse
24
+ border-spacing: 0
25
+
26
+ ol, ul
27
+ list-style: none
28
+
29
+ q:before, q:after, blockquote:before, blockquote:after
30
+ content: ""
31
+
32
+ // Normalize.css
33
+ // Pulling in select resets form the normalize.css project
34
+ // --------------------------------------------------
35
+
36
+ // Display in IE6-9 and FF3
37
+ // -------------------------
38
+ // Source: http://github.com/necolas/normalize.css
39
+ html
40
+ overflow-y: scroll
41
+ font-size: 100%
42
+ -webkit-text-size-adjust: 100%
43
+ -ms-text-size-adjust: 100%
44
+
45
+ // Focus states
46
+ a:focus
47
+ outline: thin dotted
48
+
49
+ // Hover & Active
50
+
51
+ a:hover,
52
+ a:active
53
+ outline: 0
54
+
55
+ // Display in IE6-9 and FF3
56
+ // -------------------------
57
+ // Source: http://github.com/necolas/normalize.css
58
+
59
+ article,
60
+ aside,
61
+ details,
62
+ figcaption,
63
+ figure,
64
+ footer,
65
+ header,
66
+ hgroup,
67
+ nav,
68
+ section
69
+ display: block
70
+
71
+ // Display block in IE6-9 and FF3
72
+ // -------------------------
73
+ // Source: http://github.com/necolas/normalize.css
74
+
75
+ audio,
76
+ canvas,
77
+ video
78
+ display: inline-block
79
+ *display: inline
80
+ *zoom: 1
81
+
82
+ // Prevents modern browsers from displaying 'audio' without controls
83
+ // -------------------------
84
+ // Source: http://github.com/necolas/normalize.css
85
+ audio:not([controls])
86
+ display: none
87
+
88
+ // Prevents sub and sup affecting line-height in all browsers
89
+ // -------------------------
90
+ // Source: http://github.com/necolas/normalize.css
91
+
92
+ sub,
93
+ sup
94
+ font-size: 75%
95
+ line-height: 0
96
+ position: relative
97
+ vertical-align: baseline
98
+
99
+ sup
100
+ top: -0.5em
101
+
102
+ sub
103
+ bottom: -0.25em
104
+
105
+ // Img border in a's and image quality
106
+ // -------------------------
107
+ // Source: http://github.com/necolas/normalize.css
108
+ img
109
+ border: 0
110
+ -ms-interpolation-mode: bicubic
111
+
112
+ // Forms
113
+ // -------------------------
114
+ // Source: http://github.com/necolas/normalize.css
115
+
116
+ // Font size in all browsers, margin changes, misc consistency
117
+
118
+ button,
119
+ input,
120
+ select,
121
+ textarea
122
+ font-size: 100%
123
+ margin: 0
124
+ vertical-align: baseline
125
+ *vertical-align: middle
126
+
127
+ button,
128
+ input
129
+ line-height: normal
130
+ // FF3/4 have !important on line-height in UA stylesheet
131
+ *overflow: visible
132
+ // Inner spacing ie IE6/7
133
+
134
+ button::-moz-focus-inner,
135
+ input::-moz-focus-inner
136
+ // Inner padding and border oddities in FF3/4
137
+ border: 0
138
+ padding: 0
139
+
140
+ button,
141
+ input[type="button"],
142
+ input[type="reset"],
143
+ input[type="submit"]
144
+ cursor: pointer
145
+ // Cursors on all buttons applied consistently
146
+ -webkit-appearance: button
147
+ // Style clicable inputs in iOS
148
+
149
+ input[type="search"]
150
+ // Appearance in Safari/Chrome
151
+ -webkit-appearance: textfield
152
+ -webkit-box-sizing: content-box
153
+ -moz-box-sizing: content-box
154
+ box-sizing: content-box
155
+
156
+ input[type="search"]::-webkit-search-decoration
157
+ -webkit-appearance: none
158
+ // Inner-padding issues in Chrome OSX, Safari 5
159
+
160
+ textarea
161
+ overflow: auto
162
+ // Remove vertical scrollbar in IE6-9
163
+ vertical-align: top
164
+ // Readability and alignment cross-browser
@@ -0,0 +1,187 @@
1
+ /*
2
+ * Scaffolding
3
+ * Basic and global styles for generating a grid system, structural layout, and page templates
4
+ * -------------------------------------------------------------------------------------------
5
+
6
+ // STRUCTURAL LAYOUT
7
+ // -----------------
8
+
9
+ body
10
+ background-color: $white
11
+ margin: 0
12
+ +sans-serif(normal, $basefont, $baseline)
13
+ color: $grayDark
14
+
15
+ // Container (centered, fixed-width layouts)
16
+ .container
17
+ +fixed-container
18
+
19
+ // Fluid layouts (left aligned, with sidebar, min- & max-width content)
20
+ .container-fluid
21
+ position: relative
22
+ min-width: 940px
23
+ padding-left: 20px
24
+ padding-right: 20px
25
+ +clearfix
26
+ > .sidebar
27
+ position: absolute
28
+ top: 0
29
+ left: 20px
30
+ width: 220px
31
+ // TODO in v2: rename this and .popover .content to be more specific
32
+ > .content
33
+ margin-left: 240px
34
+
35
+ // BASE STYLES
36
+ // -----------
37
+
38
+ // Links
39
+ a
40
+ color: $linkColor
41
+ text-decoration: none
42
+ line-height: inherit
43
+ font-weight: inherit
44
+ &:hover
45
+ color: $linkColorHover
46
+ text-decoration: underline
47
+
48
+ // Quick floats
49
+ .pull-right
50
+ float: right
51
+
52
+ .pull-left
53
+ float: left
54
+
55
+ // Toggling content
56
+ .hide
57
+ display: none
58
+
59
+ .show
60
+ display: block
61
+
62
+ // GRID SYSTEM
63
+ // -----------
64
+ // To customize the grid system, bring up the variables.less file and change the column count, size, and gutter there
65
+
66
+ .row
67
+ +clearfix
68
+ margin-left: -$gridGutterWidth
69
+
70
+ // Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7)
71
+ // Credit to $dhg for the idea
72
+ .row > [class*="span"]
73
+ +gridColumn
74
+
75
+ // Default columns
76
+ .span1
77
+ +columns(1)
78
+
79
+ .span2
80
+ +columns(2)
81
+
82
+ .span3
83
+ +columns(3)
84
+
85
+ .span4
86
+ +columns(4)
87
+
88
+ .span5
89
+ +columns(5)
90
+
91
+ .span6
92
+ +columns(6)
93
+
94
+ .span7
95
+ +columns(7)
96
+
97
+ .span8
98
+ +columns(8)
99
+
100
+ .span9
101
+ +columns(9)
102
+
103
+ .span10
104
+ +columns(10)
105
+
106
+ .span11
107
+ +columns(11)
108
+
109
+ .span12
110
+ +columns(12)
111
+
112
+ .span13
113
+ +columns(13)
114
+
115
+ .span14
116
+ +columns(14)
117
+
118
+ .span15
119
+ +columns(15)
120
+
121
+ .span16
122
+ +columns(16)
123
+
124
+ // For optional 24-column grid
125
+ .span17
126
+ +columns(17)
127
+
128
+ .span18
129
+ +columns(18)
130
+
131
+ .span19
132
+ +columns(19)
133
+
134
+ .span20
135
+ +columns(20)
136
+
137
+ .span21
138
+ +columns(21)
139
+
140
+ .span22
141
+ +columns(22)
142
+
143
+ .span23
144
+ +columns(23)
145
+
146
+ .span24
147
+ +columns(24)
148
+
149
+ // Offset column options
150
+ .row
151
+ > .offset1
152
+ +offset(1)
153
+ > .offset2
154
+ +offset(2)
155
+ > .offset3
156
+ +offset(3)
157
+ > .offset4
158
+ +offset(4)
159
+ > .offset5
160
+ +offset(5)
161
+ > .offset6
162
+ +offset(6)
163
+ > .offset7
164
+ +offset(7)
165
+ > .offset8
166
+ +offset(8)
167
+ > .offset9
168
+ +offset(9)
169
+ > .offset10
170
+ +offset(10)
171
+ > .offset11
172
+ +offset(11)
173
+ > .offset12
174
+ +offset(12)
175
+
176
+ // Unique column sizes for 16-column grid
177
+ .span-one-third
178
+ width: 300px
179
+
180
+ .span-two-thirds
181
+ width: 620px
182
+
183
+ .row
184
+ > .offset-one-third
185
+ margin-left: 340px
186
+ > .offset-two-thirds
187
+ margin-left: 660px
@@ -0,0 +1,198 @@
1
+ /*
2
+ * Tables.less
3
+ * Tables for, you guessed it, tabular data
4
+ * ----------------------------------------
5
+
6
+ // BASELINE STYLES
7
+ // ---------------
8
+
9
+ table
10
+ width: 100%
11
+ margin-bottom: $baseline
12
+ padding: 0
13
+ font-size: $basefont
14
+ border-collapse: collapse
15
+ th,
16
+ td
17
+ padding: 10px 10px 9px
18
+ line-height: $baseline
19
+ text-align: left
20
+ th
21
+ padding-top: 9px
22
+ font-weight: bold
23
+ vertical-align: middle
24
+ td
25
+ vertical-align: top
26
+ border-top: 1px solid #ddd
27
+ // When scoped to row, fix th in tbody
28
+ tbody th
29
+ border-top: 1px solid #ddd
30
+ vertical-align: top
31
+
32
+ // CONDENSED VERSION
33
+ // -----------------
34
+ .condensed-table
35
+ th,
36
+ td
37
+ padding: 5px 5px 4px
38
+
39
+ // BORDERED VERSION
40
+ // ----------------
41
+
42
+ .bordered-table
43
+ border: 1px solid #ddd
44
+ border-collapse: separate
45
+ // Done so we can round those corners!
46
+ *border-collapse: collapse
47
+ /* IE7, collapse table to remove spacing
48
+ +border-radius(4px)
49
+ th + th,
50
+ td + td,
51
+ th + td
52
+ border-left: 1px solid #ddd
53
+ thead tr:first-child th:first-child,
54
+ tbody tr:first-child td:first-child
55
+ +border-radius(4px 0 0 0)
56
+ thead tr:first-child th:last-child,
57
+ tbody tr:first-child td:last-child
58
+ +border-radius(0 4px 0 0)
59
+ tbody tr:last-child td:first-child
60
+ +border-radius(0 0 0 4px)
61
+ tbody tr:last-child td:last-child
62
+ +border-radius(0 0 4px 0)
63
+
64
+ // TABLE CELL SIZES
65
+ // ----------------
66
+
67
+ // This is a duplication of the main grid @include columns(); mixin, but subtracts 20px to account for input padding and border
68
+ =tableColumns($columnSpan: 1)
69
+ width: ($gridColumnWidth - 20) * $columnSpan + ($gridColumnWidth - 20) * ($columnSpan - 1)
70
+
71
+ table
72
+ // Default columns
73
+ .span1
74
+ +tableColumns(1)
75
+ .span2
76
+ +tableColumns(2)
77
+ .span3
78
+ +tableColumns(3)
79
+ .span4
80
+ +tableColumns(4)
81
+ .span5
82
+ +tableColumns(5)
83
+ .span6
84
+ +tableColumns(6)
85
+ .span7
86
+ +tableColumns(7)
87
+ .span8
88
+ +tableColumns(8)
89
+ .span9
90
+ +tableColumns(9)
91
+ .span10
92
+ +tableColumns(10)
93
+ .span11
94
+ +tableColumns(11)
95
+ .span12
96
+ +tableColumns(12)
97
+ .span13
98
+ +tableColumns(13)
99
+ .span14
100
+ +tableColumns(14)
101
+ .span15
102
+ +tableColumns(15)
103
+ .span16
104
+ +tableColumns(16)
105
+
106
+ // ZEBRA-STRIPING
107
+ // --------------
108
+
109
+ // Default zebra-stripe styles (alternating gray and transparent backgrounds)
110
+ .zebra-striped
111
+ tbody
112
+ tr:nth-child(odd) td,
113
+ tr:nth-child(odd) th
114
+ background-color: #f9f9f9
115
+ tr:hover td,
116
+ tr:hover th
117
+ background-color: #f5f5f5
118
+
119
+ table
120
+ // Tablesorting styles w/ jQuery plugin
121
+ .header
122
+ cursor: pointer
123
+ &:after
124
+ content: ""
125
+ float: right
126
+ margin-top: 7px
127
+ border-width: 0 4px 4px
128
+ border-style: solid
129
+ border-color: #000 transparent
130
+ visibility: hidden
131
+ // Style the sorted column headers (THs)
132
+ .headerSortUp,
133
+ .headerSortDown
134
+ background-color: rgba(141, 192, 219, 0.25)
135
+ text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75)
136
+ // Style the ascending (reverse alphabetical) column header
137
+ .header:hover
138
+ &:after
139
+ visibility: visible
140
+ // Style the descending (alphabetical) column header
141
+ .headerSortDown,
142
+ .headerSortDown:hover
143
+ &:after
144
+ visibility: visible
145
+ +opacity(60)
146
+ // Style the ascending (reverse alphabetical) column header
147
+ .headerSortUp
148
+ &:after
149
+ border-bottom: none
150
+ border-left: 4px solid transparent
151
+ border-right: 4px solid transparent
152
+ border-top: 4px solid #000
153
+ visibility: visible
154
+ +box-shadow(none)
155
+ //can't add boxshadow to downward facing arrow :(
156
+ +opacity(60)
157
+ // Blue Table Headings
158
+ .blue
159
+ color: $blue
160
+ border-bottom-color: $blue
161
+ .headerSortUp.blue,
162
+ .headerSortDown.blue
163
+ background-color: lighten($blue, 40%)
164
+ // Green Table Headings
165
+ .green
166
+ color: $green
167
+ border-bottom-color: $green
168
+ .headerSortUp.green,
169
+ .headerSortDown.green
170
+ background-color: lighten($green, 40%)
171
+ // Red Table Headings
172
+ .red
173
+ color: $red
174
+ border-bottom-color: $red
175
+ .headerSortUp.red,
176
+ .headerSortDown.red
177
+ background-color: lighten($red, 50%)
178
+ // Yellow Table Headings
179
+ .yellow
180
+ color: $yellow
181
+ border-bottom-color: $yellow
182
+ .headerSortUp.yellow,
183
+ .headerSortDown.yellow
184
+ background-color: lighten($yellow, 40%)
185
+ // Orange Table Headings
186
+ .orange
187
+ color: $orange
188
+ border-bottom-color: $orange
189
+ .headerSortUp.orange,
190
+ .headerSortDown.orange
191
+ background-color: lighten($orange, 40%)
192
+ // Purple Table Headings
193
+ .purple
194
+ color: $purple
195
+ border-bottom-color: $purple
196
+ .headerSortUp.purple,
197
+ .headerSortDown.purple
198
+ background-color: lighten($purple, 40%)