fastfood 0.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 (84) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -0
  3. data/.travis.yml +26 -0
  4. data/Gemfile +3 -0
  5. data/LICENSE +21 -0
  6. data/README.md +18 -0
  7. data/Rakefile +12 -0
  8. data/app/assets/stylesheets/_fastfood.scss +48 -0
  9. data/app/assets/stylesheets/fastfood/_alerts.scss +73 -0
  10. data/app/assets/stylesheets/fastfood/_badges.scss +68 -0
  11. data/app/assets/stylesheets/fastfood/_breadcrumbs.scss +26 -0
  12. data/app/assets/stylesheets/fastfood/_button-groups.scss +243 -0
  13. data/app/assets/stylesheets/fastfood/_buttons.scss +160 -0
  14. data/app/assets/stylesheets/fastfood/_carousel.scss +269 -0
  15. data/app/assets/stylesheets/fastfood/_close.scss +36 -0
  16. data/app/assets/stylesheets/fastfood/_code.scss +69 -0
  17. data/app/assets/stylesheets/fastfood/_component-animations.scss +37 -0
  18. data/app/assets/stylesheets/fastfood/_dropdowns.scss +214 -0
  19. data/app/assets/stylesheets/fastfood/_forms.scss +578 -0
  20. data/app/assets/stylesheets/fastfood/_grid.scss +85 -0
  21. data/app/assets/stylesheets/fastfood/_input-groups.scss +166 -0
  22. data/app/assets/stylesheets/fastfood/_jumbotron.scss +50 -0
  23. data/app/assets/stylesheets/fastfood/_labels.scss +66 -0
  24. data/app/assets/stylesheets/fastfood/_list-group.scss +124 -0
  25. data/app/assets/stylesheets/fastfood/_media.scss +61 -0
  26. data/app/assets/stylesheets/fastfood/_mixins.scss +39 -0
  27. data/app/assets/stylesheets/fastfood/_modals.scss +150 -0
  28. data/app/assets/stylesheets/fastfood/_navbar.scss +664 -0
  29. data/app/assets/stylesheets/fastfood/_navs.scss +242 -0
  30. data/app/assets/stylesheets/fastfood/_normalize.scss +427 -0
  31. data/app/assets/stylesheets/fastfood/_pager.scss +54 -0
  32. data/app/assets/stylesheets/fastfood/_pagination.scss +88 -0
  33. data/app/assets/stylesheets/fastfood/_panels.scss +265 -0
  34. data/app/assets/stylesheets/fastfood/_popovers.scss +135 -0
  35. data/app/assets/stylesheets/fastfood/_print.scss +107 -0
  36. data/app/assets/stylesheets/fastfood/_progress-bars.scss +87 -0
  37. data/app/assets/stylesheets/fastfood/_responsive-embed.scss +35 -0
  38. data/app/assets/stylesheets/fastfood/_responsive-utilities.scss +177 -0
  39. data/app/assets/stylesheets/fastfood/_scaffolding.scss +204 -0
  40. data/app/assets/stylesheets/fastfood/_tables.scss +234 -0
  41. data/app/assets/stylesheets/fastfood/_theme.scss +273 -0
  42. data/app/assets/stylesheets/fastfood/_thumbnails.scss +38 -0
  43. data/app/assets/stylesheets/fastfood/_tooltip.scss +102 -0
  44. data/app/assets/stylesheets/fastfood/_type.scss +306 -0
  45. data/app/assets/stylesheets/fastfood/_utilities.scss +73 -0
  46. data/app/assets/stylesheets/fastfood/_wells.scss +29 -0
  47. data/app/assets/stylesheets/fastfood/mixins/_alerts.scss +14 -0
  48. data/app/assets/stylesheets/fastfood/mixins/_background-variant.scss +11 -0
  49. data/app/assets/stylesheets/fastfood/mixins/_border-radius.scss +18 -0
  50. data/app/assets/stylesheets/fastfood/mixins/_buttons.scss +52 -0
  51. data/app/assets/stylesheets/fastfood/mixins/_center-block.scss +7 -0
  52. data/app/assets/stylesheets/fastfood/mixins/_clearfix.scss +22 -0
  53. data/app/assets/stylesheets/fastfood/mixins/_forms.scss +88 -0
  54. data/app/assets/stylesheets/fastfood/mixins/_gradients.scss +58 -0
  55. data/app/assets/stylesheets/fastfood/mixins/_grid-framework.scss +81 -0
  56. data/app/assets/stylesheets/fastfood/mixins/_grid.scss +123 -0
  57. data/app/assets/stylesheets/fastfood/mixins/_hide-text.scss +21 -0
  58. data/app/assets/stylesheets/fastfood/mixins/_image.scss +33 -0
  59. data/app/assets/stylesheets/fastfood/mixins/_labels.scss +12 -0
  60. data/app/assets/stylesheets/fastfood/mixins/_list-group.scss +31 -0
  61. data/app/assets/stylesheets/fastfood/mixins/_nav-divider.scss +10 -0
  62. data/app/assets/stylesheets/fastfood/mixins/_nav-vertical-align.scss +9 -0
  63. data/app/assets/stylesheets/fastfood/mixins/_opacity.scss +8 -0
  64. data/app/assets/stylesheets/fastfood/mixins/_pagination.scss +23 -0
  65. data/app/assets/stylesheets/fastfood/mixins/_panels.scss +24 -0
  66. data/app/assets/stylesheets/fastfood/mixins/_progress-bar.scss +10 -0
  67. data/app/assets/stylesheets/fastfood/mixins/_reset-filter.scss +8 -0
  68. data/app/assets/stylesheets/fastfood/mixins/_resize.scss +6 -0
  69. data/app/assets/stylesheets/fastfood/mixins/_responsive-visibility.scss +21 -0
  70. data/app/assets/stylesheets/fastfood/mixins/_size.scss +10 -0
  71. data/app/assets/stylesheets/fastfood/mixins/_tab-focus.scss +9 -0
  72. data/app/assets/stylesheets/fastfood/mixins/_table-row.scss +28 -0
  73. data/app/assets/stylesheets/fastfood/mixins/_text-emphasis.scss +11 -0
  74. data/app/assets/stylesheets/fastfood/mixins/_text-overflow.scss +8 -0
  75. data/app/assets/stylesheets/fastfood/mixins/_vendor-prefixes.scss +222 -0
  76. data/bin/fastfood +6 -0
  77. data/fastfood.gemspec +30 -0
  78. data/lib/.gitkeep +0 -0
  79. data/lib/fastfood.rb +28 -0
  80. data/lib/fastfood/engine.rb +5 -0
  81. data/lib/fastfood/generator.rb +80 -0
  82. data/lib/fastfood/version.rb +3 -0
  83. data/lib/tasks/install.rake +20 -0
  84. metadata +225 -0
@@ -0,0 +1,38 @@
1
+ //
2
+ // Thumbnails
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Mixin and adjust the regular image class
7
+ .thumbnail {
8
+ display: block;
9
+ padding: $thumbnail-padding;
10
+ margin-bottom: $line-height-computed;
11
+ line-height: $line-height-base;
12
+ background-color: $thumbnail-bg;
13
+ border: 1px solid $thumbnail-border;
14
+ border-radius: $thumbnail-border-radius;
15
+ @include transition(border .2s ease-in-out);
16
+
17
+ > img,
18
+ a > img {
19
+ @include img-responsive;
20
+ margin-left: auto;
21
+ margin-right: auto;
22
+ }
23
+
24
+ // [converter] extracted a&:hover, a&:focus, a&.active to a.thumbnail:hover, a.thumbnail:focus, a.thumbnail.active
25
+
26
+ // Image captions
27
+ .caption {
28
+ padding: $thumbnail-caption-padding;
29
+ color: $thumbnail-caption-color;
30
+ }
31
+ }
32
+
33
+ // Add a hover state for linked versions only
34
+ a.thumbnail:hover,
35
+ a.thumbnail:focus,
36
+ a.thumbnail.active {
37
+ border-color: $link-color;
38
+ }
@@ -0,0 +1,102 @@
1
+ //
2
+ // Tooltips
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Base class
7
+ .tooltip {
8
+ position: absolute;
9
+ z-index: $zindex-tooltip;
10
+ display: block;
11
+ // Reset font and text properties given new insertion method
12
+ font-family: $font-family-base;
13
+ font-size: $font-size-small;
14
+ font-weight: normal;
15
+ line-height: 1.4;
16
+ @include opacity(0);
17
+
18
+ &.in { @include opacity($tooltip-opacity); }
19
+ &.top { margin-top: -3px; padding: $tooltip-arrow-width 0; }
20
+ &.right { margin-left: 3px; padding: 0 $tooltip-arrow-width; }
21
+ &.bottom { margin-top: 3px; padding: $tooltip-arrow-width 0; }
22
+ &.left { margin-left: -3px; padding: 0 $tooltip-arrow-width; }
23
+ }
24
+
25
+ // Wrapper for the tooltip content
26
+ .tooltip-inner {
27
+ max-width: $tooltip-max-width;
28
+ padding: 3px 8px;
29
+ color: $tooltip-color;
30
+ text-align: center;
31
+ text-decoration: none;
32
+ background-color: $tooltip-bg;
33
+ border-radius: $border-radius-base;
34
+ }
35
+
36
+ // Arrows
37
+ .tooltip-arrow {
38
+ position: absolute;
39
+ width: 0;
40
+ height: 0;
41
+ border-color: transparent;
42
+ border-style: solid;
43
+ }
44
+ // Note: Deprecated .top-left, .top-right, .bottom-left, and .bottom-right as of v3.3.1
45
+ .tooltip {
46
+ &.top .tooltip-arrow {
47
+ bottom: 0;
48
+ left: 50%;
49
+ margin-left: -$tooltip-arrow-width;
50
+ border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
51
+ border-top-color: $tooltip-arrow-color;
52
+ }
53
+ &.top-left .tooltip-arrow {
54
+ bottom: 0;
55
+ right: $tooltip-arrow-width;
56
+ margin-bottom: -$tooltip-arrow-width;
57
+ border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
58
+ border-top-color: $tooltip-arrow-color;
59
+ }
60
+ &.top-right .tooltip-arrow {
61
+ bottom: 0;
62
+ left: $tooltip-arrow-width;
63
+ margin-bottom: -$tooltip-arrow-width;
64
+ border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
65
+ border-top-color: $tooltip-arrow-color;
66
+ }
67
+ &.right .tooltip-arrow {
68
+ top: 50%;
69
+ left: 0;
70
+ margin-top: -$tooltip-arrow-width;
71
+ border-width: $tooltip-arrow-width $tooltip-arrow-width $tooltip-arrow-width 0;
72
+ border-right-color: $tooltip-arrow-color;
73
+ }
74
+ &.left .tooltip-arrow {
75
+ top: 50%;
76
+ right: 0;
77
+ margin-top: -$tooltip-arrow-width;
78
+ border-width: $tooltip-arrow-width 0 $tooltip-arrow-width $tooltip-arrow-width;
79
+ border-left-color: $tooltip-arrow-color;
80
+ }
81
+ &.bottom .tooltip-arrow {
82
+ top: 0;
83
+ left: 50%;
84
+ margin-left: -$tooltip-arrow-width;
85
+ border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
86
+ border-bottom-color: $tooltip-arrow-color;
87
+ }
88
+ &.bottom-left .tooltip-arrow {
89
+ top: 0;
90
+ right: $tooltip-arrow-width;
91
+ margin-top: -$tooltip-arrow-width;
92
+ border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
93
+ border-bottom-color: $tooltip-arrow-color;
94
+ }
95
+ &.bottom-right .tooltip-arrow {
96
+ top: 0;
97
+ left: $tooltip-arrow-width;
98
+ margin-top: -$tooltip-arrow-width;
99
+ border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
100
+ border-bottom-color: $tooltip-arrow-color;
101
+ }
102
+ }
@@ -0,0 +1,306 @@
1
+ //
2
+ // Typography
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Headings
7
+ // -------------------------
8
+
9
+ h1, h2, h3, h4, h5, h6,
10
+ .h1, .h2, .h3, .h4, .h5, .h6 {
11
+ font-family: $headings-font-family;
12
+ font-weight: $headings-font-weight;
13
+ line-height: $headings-line-height;
14
+ color: $headings-color;
15
+
16
+ small,
17
+ .small {
18
+ font-weight: normal;
19
+ line-height: 1;
20
+ color: $headings-small-color;
21
+ }
22
+ }
23
+
24
+ h1, .h1,
25
+ h2, .h2,
26
+ h3, .h3 {
27
+ margin-top: $line-height-computed;
28
+ margin-bottom: ($line-height-computed / 2);
29
+
30
+ small,
31
+ .small {
32
+ font-size: 65%;
33
+ }
34
+ }
35
+ h4, .h4,
36
+ h5, .h5,
37
+ h6, .h6 {
38
+ margin-top: ($line-height-computed / 2);
39
+ margin-bottom: ($line-height-computed / 2);
40
+
41
+ small,
42
+ .small {
43
+ font-size: 75%;
44
+ }
45
+ }
46
+
47
+ h1, .h1 { font-size: $font-size-h1; }
48
+ h2, .h2 { font-size: $font-size-h2; }
49
+ h3, .h3 { font-size: $font-size-h3; }
50
+ h4, .h4 { font-size: $font-size-h4; }
51
+ h5, .h5 { font-size: $font-size-h5; }
52
+ h6, .h6 { font-size: $font-size-h6; }
53
+
54
+
55
+ // Body text
56
+ // -------------------------
57
+
58
+ p {
59
+ margin: 0 0 ($line-height-computed / 2);
60
+ }
61
+
62
+ .lead {
63
+ margin-bottom: $line-height-computed;
64
+ font-size: floor(($font-size-base * 1.15));
65
+ font-weight: 300;
66
+ line-height: 1.4;
67
+
68
+ @media (min-width: $screen-sm-min) {
69
+ font-size: ($font-size-base * 1.5);
70
+ }
71
+ }
72
+
73
+
74
+ // Emphasis & misc
75
+ // -------------------------
76
+
77
+ // Ex: (12px small font / 14px base font) * 100% = about 85%
78
+ small,
79
+ .small {
80
+ font-size: floor((100% * $font-size-small / $font-size-base));
81
+ }
82
+
83
+ mark,
84
+ .mark {
85
+ background-color: $state-warning-bg;
86
+ padding: .2em;
87
+ }
88
+
89
+ // Alignment
90
+ .text-left { text-align: left; }
91
+ .text-right { text-align: right; }
92
+ .text-center { text-align: center; }
93
+ .text-justify { text-align: justify; }
94
+ .text-nowrap { white-space: nowrap; }
95
+
96
+ // Transformation
97
+ .text-lowercase { text-transform: lowercase; }
98
+ .text-uppercase { text-transform: uppercase; }
99
+ .text-capitalize { text-transform: capitalize; }
100
+
101
+ // Decoration (underline)
102
+ .text-no-decoration { text-decoration: none; }
103
+ .text-decoration { text-decoration: underline; }
104
+
105
+ // Contextual colors
106
+ .text-muted {
107
+ color: $text-muted;
108
+ }
109
+
110
+ @include text-emphasis-variant('.text-primary', $brand-primary);
111
+
112
+ @include text-emphasis-variant('.text-success', $state-success-text);
113
+
114
+ @include text-emphasis-variant('.text-info', $state-info-text);
115
+
116
+ @include text-emphasis-variant('.text-warning', $state-warning-text);
117
+
118
+ @include text-emphasis-variant('.text-danger', $state-danger-text);
119
+
120
+ // Contextual backgrounds
121
+ // For now we'll leave these alongside the text classes until v4 when we can
122
+ // safely shift things around (per SemVer rules).
123
+ .bg-primary {
124
+ // Given the contrast here, this is the only class to have its color inverted
125
+ // automatically.
126
+ color: #fff;
127
+ }
128
+ @include bg-variant('.bg-primary', $brand-primary);
129
+
130
+ @include bg-variant('.bg-success', $state-success-bg);
131
+
132
+ @include bg-variant('.bg-info', $state-info-bg);
133
+
134
+ @include bg-variant('.bg-warning', $state-warning-bg);
135
+
136
+ @include bg-variant('.bg-danger', $state-danger-bg);
137
+
138
+
139
+ // Page header
140
+ // -------------------------
141
+
142
+ .page-header {
143
+ padding-bottom: (($line-height-computed / 2) - 1);
144
+ margin: ($line-height-computed * 2) 0 $line-height-computed;
145
+ border-bottom: 1px solid $page-header-border-color;
146
+ }
147
+
148
+
149
+ // Lists
150
+ // -------------------------
151
+
152
+ // Unordered and Ordered lists
153
+ ul,
154
+ ol {
155
+ margin-top: 0;
156
+ margin-bottom: ($line-height-computed / 2);
157
+ ul,
158
+ ol {
159
+ margin-bottom: 0;
160
+ }
161
+ }
162
+
163
+ // List options
164
+
165
+ // [converter] extracted from `.list-unstyled` for libsass compatibility
166
+ @mixin list-unstyled {
167
+ padding-left: 0;
168
+ list-style: none;
169
+ }
170
+ // [converter] extracted as `@mixin list-unstyled` for libsass compatibility
171
+ .list-unstyled {
172
+ @include list-unstyled;
173
+ }
174
+
175
+ // Inline turns list items into inline-block
176
+ .list-inline {
177
+ @include list-unstyled;
178
+ margin-left: -5px;
179
+
180
+ > li {
181
+ display: inline-block;
182
+ padding-left: 5px;
183
+ padding-right: 5px;
184
+ }
185
+ }
186
+
187
+ // Description Lists
188
+ dl {
189
+ margin-top: 0; // Remove browser default
190
+ margin-bottom: $line-height-computed;
191
+ }
192
+ dt,
193
+ dd {
194
+ line-height: $line-height-base;
195
+ }
196
+ dt {
197
+ font-weight: bold;
198
+ }
199
+ dd {
200
+ margin-left: 0; // Undo browser default
201
+ }
202
+
203
+ // Horizontal description lists
204
+ //
205
+ // Defaults to being stacked without any of the below styles applied, until the
206
+ // grid breakpoint is reached (default of ~768px).
207
+
208
+ .dl-horizontal {
209
+ dd {
210
+ @include clearfix; // Clear the floated `dt` if an empty `dd` is present
211
+ }
212
+
213
+ @media (min-width: $grid-float-breakpoint) {
214
+ dt {
215
+ float: left;
216
+ width: ($dl-horizontal-offset - 20);
217
+ clear: left;
218
+ text-align: right;
219
+ @include text-overflow;
220
+ }
221
+ dd {
222
+ margin-left: $dl-horizontal-offset;
223
+ }
224
+ }
225
+ }
226
+
227
+
228
+ // Misc
229
+ // -------------------------
230
+
231
+ // Abbreviations and acronyms
232
+ abbr[title],
233
+ // Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
234
+ abbr[data-original-title] {
235
+ cursor: help;
236
+ border-bottom: 1px dotted $abbr-border-color;
237
+ }
238
+ .initialism {
239
+ font-size: 90%;
240
+ @extend .text-uppercase;
241
+ }
242
+
243
+ // Blockquotes
244
+ blockquote {
245
+ margin-top: $line-height-computed;
246
+ margin-right: 0px;
247
+ margin-bottom: $line-height-computed;
248
+ margin-left: -($line-height-computed);
249
+ padding-left: $line-height-computed;
250
+ font-style: italic;
251
+ font-size: $blockquote-font-size;
252
+ border-left: 0.5em solid $blockquote-border-color;
253
+ color: $blockquote-color;
254
+
255
+ p,
256
+ ul,
257
+ ol {
258
+ &:last-child {
259
+ margin-bottom: 0;
260
+ }
261
+ }
262
+
263
+ // Note: Deprecated small and .small as of v3.1.0
264
+ // Context: https://github.com/twbs/bootstrap/issues/11660
265
+ footer,
266
+ small,
267
+ .small {
268
+ display: block;
269
+ font-size: 80%; // back to default font-size
270
+ line-height: $line-height-base;
271
+ color: $blockquote-small-color;
272
+
273
+ &:before {
274
+ content: '\2014 \00A0'; // em dash, nbsp
275
+ }
276
+ }
277
+ }
278
+
279
+ // Opposite alignment of blockquote
280
+ //
281
+ // Heads up: `blockquote.pull-right` has been deprecated as of v3.1.0.
282
+ .blockquote-reverse,
283
+ blockquote.pull-right {
284
+ padding-right: 15px;
285
+ padding-left: 0;
286
+ border-right: 5px solid $blockquote-border-color;
287
+ border-left: 0;
288
+ text-align: right;
289
+
290
+ // Account for citation
291
+ footer,
292
+ small,
293
+ .small {
294
+ &:before { content: ''; }
295
+ &:after {
296
+ content: '\00A0 \2014'; // nbsp, em dash
297
+ }
298
+ }
299
+ }
300
+
301
+ // Addresses
302
+ address {
303
+ margin-bottom: $line-height-computed;
304
+ font-style: normal;
305
+ line-height: $line-height-base;
306
+ }
@@ -0,0 +1,73 @@
1
+ //
2
+ // Utility classes
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Floats
7
+ // -------------------------
8
+
9
+ .clearfix {
10
+ @include clearfix;
11
+ }
12
+ .center-block {
13
+ @include center-block;
14
+ }
15
+ .pull-right {
16
+ float: right !important;
17
+ }
18
+ .pull-left {
19
+ float: left !important;
20
+ }
21
+
22
+
23
+ // Toggling content
24
+ // -------------------------
25
+
26
+ // Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1
27
+ .hide {
28
+ display: none !important;
29
+ }
30
+ .show {
31
+ display: block !important;
32
+ }
33
+ .invisible {
34
+ visibility: hidden;
35
+ }
36
+ .text-hide {
37
+ @include text-hide;
38
+ }
39
+
40
+
41
+ // Hide from screenreaders and browsers
42
+ //
43
+ // Credit: HTML5 Boilerplate
44
+
45
+ .hidden {
46
+ display: none !important;
47
+ }
48
+
49
+
50
+ // For Affix plugin
51
+ // -------------------------
52
+
53
+ .affix {
54
+ position: fixed;
55
+ }
56
+
57
+ // Opacity in specific divs
58
+ .opacity {
59
+ @include opacity(0.7);
60
+
61
+ &:hover {
62
+ @include opacity(1);
63
+ }
64
+ }
65
+
66
+ // Hand signed
67
+ .signed {
68
+ font-family: "Rock Salt";
69
+ }
70
+
71
+ .spacer {
72
+ margin-bottom: $line-height-computed/3;
73
+ }