flatstrap-sass 2.3.1.0

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 (70) hide show
  1. data/LICENSE +14 -0
  2. data/README.md +52 -0
  3. data/lib/flatstrap-sass.rb +51 -0
  4. data/lib/flatstrap-sass/compass_functions.rb +19 -0
  5. data/lib/flatstrap-sass/engine.rb +7 -0
  6. data/lib/flatstrap-sass/sass_functions.rb +14 -0
  7. data/templates/project/manifest.rb +13 -0
  8. data/templates/project/styles.scss +5 -0
  9. data/vendor/assets/javascripts/application.js +154 -0
  10. data/vendor/assets/javascripts/bootstrap-affix.js +117 -0
  11. data/vendor/assets/javascripts/bootstrap-alert.js +99 -0
  12. data/vendor/assets/javascripts/bootstrap-button.js +105 -0
  13. data/vendor/assets/javascripts/bootstrap-carousel.js +207 -0
  14. data/vendor/assets/javascripts/bootstrap-collapse.js +167 -0
  15. data/vendor/assets/javascripts/bootstrap-dropdown.js +165 -0
  16. data/vendor/assets/javascripts/bootstrap-modal.js +247 -0
  17. data/vendor/assets/javascripts/bootstrap-popover.js +114 -0
  18. data/vendor/assets/javascripts/bootstrap-scrollspy.js +162 -0
  19. data/vendor/assets/javascripts/bootstrap-tab.js +144 -0
  20. data/vendor/assets/javascripts/bootstrap-tooltip.js +361 -0
  21. data/vendor/assets/javascripts/bootstrap-transition.js +60 -0
  22. data/vendor/assets/javascripts/bootstrap-typeahead.js +335 -0
  23. data/vendor/assets/javascripts/bootstrap.js +2159 -0
  24. data/vendor/assets/javascripts/bootstrap.min.js +6 -0
  25. data/vendor/assets/javascripts/google-code-prettify/prettify.js +28 -0
  26. data/vendor/assets/javascripts/jquery.js +2 -0
  27. data/vendor/assets/stylesheets/flatstrap-responsive.scss +1 -0
  28. data/vendor/assets/stylesheets/flatstrap.scss +1 -0
  29. data/vendor/assets/stylesheets/flatstrap/_accordion.scss +33 -0
  30. data/vendor/assets/stylesheets/flatstrap/_alerts.scss +78 -0
  31. data/vendor/assets/stylesheets/flatstrap/_breadcrumbs.scss +23 -0
  32. data/vendor/assets/stylesheets/flatstrap/_button-groups.scss +211 -0
  33. data/vendor/assets/stylesheets/flatstrap/_buttons.scss +215 -0
  34. data/vendor/assets/stylesheets/flatstrap/_carousel.scss +156 -0
  35. data/vendor/assets/stylesheets/flatstrap/_close.scss +32 -0
  36. data/vendor/assets/stylesheets/flatstrap/_code.scss +59 -0
  37. data/vendor/assets/stylesheets/flatstrap/_component-animations.scss +22 -0
  38. data/vendor/assets/stylesheets/flatstrap/_dropdowns.scss +231 -0
  39. data/vendor/assets/stylesheets/flatstrap/_font-awesome.scss +534 -0
  40. data/vendor/assets/stylesheets/flatstrap/_forms.scss +646 -0
  41. data/vendor/assets/stylesheets/flatstrap/_grid.scss +21 -0
  42. data/vendor/assets/stylesheets/flatstrap/_hero-unit.scss +24 -0
  43. data/vendor/assets/stylesheets/flatstrap/_labels-badges.scss +79 -0
  44. data/vendor/assets/stylesheets/flatstrap/_layouts.scss +16 -0
  45. data/vendor/assets/stylesheets/flatstrap/_media.scss +55 -0
  46. data/vendor/assets/stylesheets/flatstrap/_mixins.scss +654 -0
  47. data/vendor/assets/stylesheets/flatstrap/_modals.scss +91 -0
  48. data/vendor/assets/stylesheets/flatstrap/_navbar.scss +481 -0
  49. data/vendor/assets/stylesheets/flatstrap/_navs.scss +388 -0
  50. data/vendor/assets/stylesheets/flatstrap/_pager.scss +42 -0
  51. data/vendor/assets/stylesheets/flatstrap/_pagination.scss +94 -0
  52. data/vendor/assets/stylesheets/flatstrap/_popovers.scss +130 -0
  53. data/vendor/assets/stylesheets/flatstrap/_progress-bars.scss +118 -0
  54. data/vendor/assets/stylesheets/flatstrap/_reset.scss +216 -0
  55. data/vendor/assets/stylesheets/flatstrap/_responsive-1200px-min.scss +28 -0
  56. data/vendor/assets/stylesheets/flatstrap/_responsive-767px-max.scss +193 -0
  57. data/vendor/assets/stylesheets/flatstrap/_responsive-768px-979px.scss +19 -0
  58. data/vendor/assets/stylesheets/flatstrap/_responsive-navbar.scss +184 -0
  59. data/vendor/assets/stylesheets/flatstrap/_responsive-utilities.scss +74 -0
  60. data/vendor/assets/stylesheets/flatstrap/_scaffolding.scss +42 -0
  61. data/vendor/assets/stylesheets/flatstrap/_tables.scss +183 -0
  62. data/vendor/assets/stylesheets/flatstrap/_thumbnails.scss +50 -0
  63. data/vendor/assets/stylesheets/flatstrap/_tooltip.scss +69 -0
  64. data/vendor/assets/stylesheets/flatstrap/_type.scss +247 -0
  65. data/vendor/assets/stylesheets/flatstrap/_utilities.scss +45 -0
  66. data/vendor/assets/stylesheets/flatstrap/_variables.scss +296 -0
  67. data/vendor/assets/stylesheets/flatstrap/_wells.scss +25 -0
  68. data/vendor/assets/stylesheets/flatstrap/bootstrap-responsive.scss +48 -0
  69. data/vendor/assets/stylesheets/flatstrap/bootstrap.scss +63 -0
  70. metadata +180 -0
@@ -0,0 +1,42 @@
1
+ //
2
+ // Scaffolding
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Body reset
7
+ // -------------------------
8
+
9
+ body {
10
+ margin: 0;
11
+ font-family: $baseFontFamily;
12
+ font-size: $baseFontSize;
13
+ line-height: $baseLineHeight;
14
+ color: $textColor;
15
+ background-color: $bodyBackground;
16
+ }
17
+
18
+
19
+ // Links
20
+ // -------------------------
21
+
22
+ a {
23
+ color: $linkColor;
24
+ text-decoration: none;
25
+ }
26
+ a:hover,
27
+ a:focus {
28
+ color: $linkColorHover;
29
+ text-decoration: underline;
30
+ }
31
+
32
+
33
+ // Images
34
+ // -------------------------
35
+
36
+ // Add polaroid-esque trim
37
+ .img-polaroid {
38
+ padding: 4px;
39
+ background-color: #fff;
40
+ border: 1px solid #ccc;
41
+ border: 1px solid rgba(0,0,0,.2);
42
+ }
@@ -0,0 +1,183 @@
1
+ //
2
+ // Tables
3
+ // --------------------------------------------------
4
+
5
+
6
+ // BASE TABLES
7
+ // -----------------
8
+
9
+ table {
10
+ max-width: 100%;
11
+ background-color: $tableBackground;
12
+ border-collapse: collapse;
13
+ border-spacing: 0;
14
+ }
15
+
16
+ // BASELINE STYLES
17
+ // ---------------
18
+
19
+ .table {
20
+ width: 100%;
21
+ margin-bottom: $baseLineHeight;
22
+ // Cells
23
+ th,
24
+ td {
25
+ padding: 8px;
26
+ line-height: $baseLineHeight;
27
+ text-align: left;
28
+ vertical-align: top;
29
+ border-top: 1px solid $tableBorder;
30
+ }
31
+ th {
32
+ font-weight: bold;
33
+ }
34
+ // Bottom align for column headings
35
+ thead th {
36
+ vertical-align: bottom;
37
+ }
38
+ // Remove top border from thead by default
39
+ caption + thead tr:first-child th,
40
+ caption + thead tr:first-child td,
41
+ colgroup + thead tr:first-child th,
42
+ colgroup + thead tr:first-child td,
43
+ thead:first-child tr:first-child th,
44
+ thead:first-child tr:first-child td {
45
+ border-top: 0;
46
+ }
47
+ // Account for multiple tbody instances
48
+ tbody + tbody {
49
+ border-top: 2px solid $tableBorder;
50
+ }
51
+
52
+ // Nesting
53
+ .table {
54
+ background-color: $bodyBackground;
55
+ }
56
+ }
57
+
58
+
59
+
60
+ // CONDENSED TABLE W/ HALF PADDING
61
+ // -------------------------------
62
+
63
+ .table-condensed {
64
+ th,
65
+ td {
66
+ padding: 4px 5px;
67
+ }
68
+ }
69
+
70
+
71
+ // BORDERED VERSION
72
+ // ----------------
73
+
74
+ .table-bordered {
75
+ border: 1px solid $tableBorder;
76
+ border-collapse: separate; // Done so we can round those corners!
77
+ *border-collapse: collapse; // IE7 can't round corners anyway
78
+ border-left: 0;
79
+ th,
80
+ td {
81
+ border-left: 1px solid $tableBorder;
82
+ }
83
+ // Prevent a double border
84
+ caption + thead tr:first-child th,
85
+ caption + tbody tr:first-child th,
86
+ caption + tbody tr:first-child td,
87
+ colgroup + thead tr:first-child th,
88
+ colgroup + tbody tr:first-child th,
89
+ colgroup + tbody tr:first-child td,
90
+ thead:first-child tr:first-child th,
91
+ tbody:first-child tr:first-child th,
92
+ tbody:first-child tr:first-child td {
93
+ border-top: 0;
94
+ }
95
+ }
96
+
97
+
98
+
99
+
100
+ // ZEBRA-STRIPING
101
+ // --------------
102
+
103
+ // Default zebra-stripe styles (alternating gray and transparent backgrounds)
104
+ .table-striped {
105
+ tbody {
106
+ > tr:nth-child(odd) > td,
107
+ > tr:nth-child(odd) > th {
108
+ background-color: $tableBackgroundAccent;
109
+ }
110
+ }
111
+ }
112
+
113
+
114
+ // HOVER EFFECT
115
+ // ------------
116
+ // Placed here since it has to come after the potential zebra striping
117
+ .table-hover {
118
+ tbody {
119
+ tr:hover > td,
120
+ tr:hover > th {
121
+ background-color: $tableBackgroundHover;
122
+ }
123
+ }
124
+ }
125
+
126
+
127
+ // TABLE CELL SIZING
128
+ // -----------------
129
+
130
+ // Reset default grid behavior
131
+ table td[class*="span"],
132
+ table th[class*="span"],
133
+ .row-fluid table td[class*="span"],
134
+ .row-fluid table th[class*="span"] {
135
+ display: table-cell;
136
+ float: none; // undo default grid column styles
137
+ margin-left: 0; // undo default grid column styles
138
+ }
139
+
140
+ // Change the column widths to account for td/th padding
141
+ .table td,
142
+ .table th {
143
+ @for $i from 1 through 12 {
144
+ &.span#{$i} { @include tableColumns($i); }
145
+ }
146
+ }
147
+
148
+
149
+
150
+ // TABLE BACKGROUNDS
151
+ // -----------------
152
+ // Exact selectors below required to override .table-striped
153
+
154
+ .table tbody tr {
155
+ &.success > td {
156
+ background-color: $successBackground;
157
+ }
158
+ &.error > td {
159
+ background-color: $errorBackground;
160
+ }
161
+ &.warning > td {
162
+ background-color: $warningBackground;
163
+ }
164
+ &.info > td {
165
+ background-color: $infoBackground;
166
+ }
167
+ }
168
+
169
+ // Hover states for .table-hover
170
+ .table-hover tbody tr {
171
+ &.success:hover > td {
172
+ background-color: darken($successBackground, 5%);
173
+ }
174
+ &.error:hover > td {
175
+ background-color: darken($errorBackground, 5%);
176
+ }
177
+ &.warning:hover > td {
178
+ background-color: darken($warningBackground, 5%);
179
+ }
180
+ &.info:hover > td {
181
+ background-color: darken($infoBackground, 5%);
182
+ }
183
+ }
@@ -0,0 +1,50 @@
1
+ //
2
+ // Thumbnails
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Note: `.thumbnails` and `.thumbnails > li` are overriden in responsive files
7
+
8
+ // Make wrapper ul behave like the grid
9
+ .thumbnails {
10
+ margin-left: -$gridGutterWidth;
11
+ list-style: none;
12
+ @include clearfix();
13
+ }
14
+ // Fluid rows have no left margin
15
+ .row-fluid .thumbnails {
16
+ margin-left: 0;
17
+ }
18
+
19
+ // Float li to make thumbnails appear in a row
20
+ .thumbnails > li {
21
+ float: left; // Explicity set the float since we don't require .span* classes
22
+ margin-bottom: $baseLineHeight;
23
+ margin-left: $gridGutterWidth;
24
+ }
25
+
26
+ // The actual thumbnail (can be `a` or `div`)
27
+ .thumbnail {
28
+ display: block;
29
+ padding: 4px;
30
+ line-height: $baseLineHeight;
31
+ border: 1px solid #ddd;
32
+ @include transition(all .2s ease-in-out);
33
+ }
34
+ // Add a hover/focus state for linked versions only
35
+ a.thumbnail:hover,
36
+ a.thumbnail:focus {
37
+ border-color: $linkColor;
38
+ }
39
+
40
+ // Images and captions
41
+ .thumbnail > img {
42
+ display: block;
43
+ max-width: 100%;
44
+ margin-left: auto;
45
+ margin-right: auto;
46
+ }
47
+ .thumbnail .caption {
48
+ padding: 9px;
49
+ color: $gray;
50
+ }
@@ -0,0 +1,69 @@
1
+ //
2
+ // Tooltips
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Base class
7
+ .tooltip {
8
+ position: absolute;
9
+ z-index: $zindexTooltip;
10
+ display: block;
11
+ visibility: visible;
12
+ font-size: 11px;
13
+ line-height: 1.4;
14
+ @include opacity(0);
15
+ &.in { @include opacity(80); }
16
+ &.top { margin-top: -3px; padding: 5px 0; }
17
+ &.right { margin-left: 3px; padding: 0 5px; }
18
+ &.bottom { margin-top: 3px; padding: 5px 0; }
19
+ &.left { margin-left: -3px; padding: 0 5px; }
20
+ }
21
+
22
+ // Wrapper for the tooltip content
23
+ .tooltip-inner {
24
+ max-width: 200px;
25
+ padding: 8px;
26
+ color: $tooltipColor;
27
+ text-align: center;
28
+ text-decoration: none;
29
+ background-color: $tooltipBackground;
30
+ }
31
+
32
+ // Arrows
33
+ .tooltip-arrow {
34
+ position: absolute;
35
+ width: 0;
36
+ height: 0;
37
+ border-color: transparent;
38
+ border-style: solid;
39
+ }
40
+ .tooltip {
41
+ &.top .tooltip-arrow {
42
+ bottom: 0;
43
+ left: 50%;
44
+ margin-left: -$tooltipArrowWidth;
45
+ border-width: $tooltipArrowWidth $tooltipArrowWidth 0;
46
+ border-top-color: $tooltipArrowColor;
47
+ }
48
+ &.right .tooltip-arrow {
49
+ top: 50%;
50
+ left: 0;
51
+ margin-top: -$tooltipArrowWidth;
52
+ border-width: $tooltipArrowWidth $tooltipArrowWidth $tooltipArrowWidth 0;
53
+ border-right-color: $tooltipArrowColor;
54
+ }
55
+ &.left .tooltip-arrow {
56
+ top: 50%;
57
+ right: 0;
58
+ margin-top: -$tooltipArrowWidth;
59
+ border-width: $tooltipArrowWidth 0 $tooltipArrowWidth $tooltipArrowWidth;
60
+ border-left-color: $tooltipArrowColor;
61
+ }
62
+ &.bottom .tooltip-arrow {
63
+ top: 0;
64
+ left: 50%;
65
+ margin-left: -$tooltipArrowWidth;
66
+ border-width: 0 $tooltipArrowWidth $tooltipArrowWidth;
67
+ border-bottom-color: $tooltipArrowColor;
68
+ }
69
+ }
@@ -0,0 +1,247 @@
1
+ //
2
+ // Typography
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Body text
7
+ // -------------------------
8
+
9
+ p {
10
+ margin: 0 0 $baseLineHeight / 2;
11
+ }
12
+ .lead {
13
+ margin-bottom: $baseLineHeight;
14
+ font-size: $baseFontSize * 1.5;
15
+ font-weight: 200;
16
+ line-height: $baseLineHeight * 1.5;
17
+ }
18
+
19
+
20
+ // Emphasis & misc
21
+ // -------------------------
22
+
23
+ // Ex: 14px base font * 85% = about 12px
24
+ small { font-size: 85%; }
25
+
26
+ strong { font-weight: bold; }
27
+ em { font-style: italic; }
28
+ cite { font-style: normal; }
29
+
30
+ // Utility classes
31
+ .muted { color: $grayLight; }
32
+ a.muted:hover,
33
+ a.muted:focus { color: darken($grayLight, 10%); }
34
+
35
+ .text-warning { color: $warningText; }
36
+ a.text-warning:hover,
37
+ a.text-warning:focus { color: darken($warningText, 10%); }
38
+
39
+ .text-error { color: $errorText; }
40
+ a.text-error:hover,
41
+ a.text-error:focus { color: darken($errorText, 10%); }
42
+
43
+ .text-info { color: $infoText; }
44
+ a.text-info:hover,
45
+ a.text-info:focus { color: darken($infoText, 10%); }
46
+
47
+ .text-success { color: $successText; }
48
+ a.text-success:hover,
49
+ a.text-success:focus { color: darken($successText, 10%); }
50
+
51
+ .text-left { text-align: left; }
52
+ .text-right { text-align: right; }
53
+ .text-center { text-align: center; }
54
+
55
+
56
+ // Headings
57
+ // -------------------------
58
+
59
+ h1, h2, h3, h4, h5, h6 {
60
+ margin: ($baseLineHeight / 2) 0;
61
+ font-family: $headingsFontFamily;
62
+ font-weight: $headingsFontWeight;
63
+ line-height: $baseLineHeight;
64
+ color: $headingsColor;
65
+ text-rendering: optimizelegibility; // Fix the character spacing for headings
66
+ small {
67
+ font-weight: normal;
68
+ line-height: 1;
69
+ color: $grayLight;
70
+ }
71
+ }
72
+
73
+ h1,
74
+ h2,
75
+ h3 { line-height: $baseLineHeight * 2; }
76
+
77
+ h1 { font-size: $baseFontSize * 2.75; } // ~38px
78
+ h2 { font-size: $baseFontSize * 2.25; } // ~32px
79
+ h3 { font-size: $baseFontSize * 1.75; } // ~24px
80
+ h4 { font-size: $baseFontSize * 1.25; } // ~18px
81
+ h5 { font-size: $baseFontSize; }
82
+ h6 { font-size: $baseFontSize * 0.85; } // ~12px
83
+
84
+ h1 small { font-size: $baseFontSize * 1.75; } // ~24px
85
+ h2 small { font-size: $baseFontSize * 1.25; } // ~18px
86
+ h3 small { font-size: $baseFontSize; }
87
+ h4 small { font-size: $baseFontSize; }
88
+
89
+
90
+ // Page header
91
+ // -------------------------
92
+
93
+ .page-header {
94
+ padding-bottom: ($baseLineHeight / 2) - 1;
95
+ margin: $baseLineHeight 0 ($baseLineHeight * 1.5);
96
+ border-bottom: 1px solid $grayLighter;
97
+ }
98
+
99
+
100
+
101
+ // Lists
102
+ // --------------------------------------------------
103
+
104
+ // Unordered and Ordered lists
105
+ ul, ol {
106
+ padding: 0;
107
+ margin: 0 0 $baseLineHeight / 2 25px;
108
+ }
109
+ ul ul,
110
+ ul ol,
111
+ ol ol,
112
+ ol ul {
113
+ margin-bottom: 0;
114
+ }
115
+ li {
116
+ line-height: $baseLineHeight;
117
+ }
118
+
119
+ // Remove default list styles
120
+ ul.unstyled,
121
+ ol.unstyled {
122
+ margin-left: 0;
123
+ list-style: none;
124
+ }
125
+
126
+ // Single-line list items
127
+ ul.inline,
128
+ ol.inline {
129
+ margin-left: 0;
130
+ list-style: none;
131
+ > li {
132
+ display: inline-block;
133
+ @include ie7-inline-block();
134
+ padding-left: 5px;
135
+ padding-right: 5px;
136
+ }
137
+ }
138
+
139
+ // Description Lists
140
+ dl {
141
+ margin-bottom: $baseLineHeight;
142
+ }
143
+ dt,
144
+ dd {
145
+ line-height: $baseLineHeight;
146
+ }
147
+ dt {
148
+ font-weight: bold;
149
+ }
150
+ dd {
151
+ margin-left: $baseLineHeight / 2;
152
+ }
153
+ // Horizontal layout (like forms)
154
+ .dl-horizontal {
155
+ @include clearfix(); // Ensure dl clears floats if empty dd elements present
156
+ dt {
157
+ float: left;
158
+ width: $horizontalComponentOffset - 20;
159
+ clear: left;
160
+ text-align: right;
161
+ @include text-overflow();
162
+ }
163
+ dd {
164
+ margin-left: $horizontalComponentOffset;
165
+ }
166
+ }
167
+
168
+ // MISC
169
+ // ----
170
+
171
+ // Horizontal rules
172
+ hr {
173
+ margin: $baseLineHeight 0;
174
+ border: 0;
175
+ border-top: 1px solid $hrBorder;
176
+ border-bottom: 1px solid $white;
177
+ }
178
+
179
+ // Abbreviations and acronyms
180
+ abbr[title],
181
+ // Added data-* attribute to help out our tooltip plugin, per https://github.com/twitter/bootstrap/issues/5257
182
+ abbr[data-original-title] {
183
+ cursor: help;
184
+ border-bottom: 1px dotted $grayLight;
185
+ }
186
+ abbr.initialism {
187
+ font-size: 90%;
188
+ text-transform: uppercase;
189
+ }
190
+
191
+ // Blockquotes
192
+ blockquote {
193
+ padding: 0 0 0 15px;
194
+ margin: 0 0 $baseLineHeight;
195
+ border-left: 5px solid $grayLighter;
196
+ p {
197
+ margin-bottom: 0;
198
+ font-size: $baseFontSize * 1.25;
199
+ font-weight: 300;
200
+ line-height: 1.25;
201
+ }
202
+ small {
203
+ display: block;
204
+ line-height: $baseLineHeight;
205
+ color: $grayLight;
206
+ &:before {
207
+ content: '\2014 \00A0';
208
+ }
209
+ }
210
+
211
+ // Float right with text-align: right
212
+ &.pull-right {
213
+ float: right;
214
+ padding-right: 15px;
215
+ padding-left: 0;
216
+ border-right: 5px solid $grayLighter;
217
+ border-left: 0;
218
+ p,
219
+ small {
220
+ text-align: right;
221
+ }
222
+ small {
223
+ &:before {
224
+ content: '';
225
+ }
226
+ &:after {
227
+ content: '\00A0 \2014';
228
+ }
229
+ }
230
+ }
231
+ }
232
+
233
+ // Quotes
234
+ q:before,
235
+ q:after,
236
+ blockquote:before,
237
+ blockquote:after {
238
+ content: "";
239
+ }
240
+
241
+ // Addresses
242
+ address {
243
+ display: block;
244
+ margin-bottom: $baseLineHeight;
245
+ font-style: normal;
246
+ line-height: $baseLineHeight;
247
+ }