flatstrap-sass 2.3.1.0

Sign up to get free protection for your applications and to get access to all the features.
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,130 @@
1
+ //
2
+ // Popovers
3
+ // --------------------------------------------------
4
+
5
+
6
+ .popover {
7
+ position: absolute;
8
+ top: 0;
9
+ left: 0;
10
+ z-index: $zindexPopover;
11
+ display: none;
12
+ max-width: 276px;
13
+ padding: 1px;
14
+ text-align: left; // Reset given new insertion method
15
+ background-color: $popoverBackground;
16
+ -webkit-background-clip: padding-box;
17
+ -moz-background-clip: padding;
18
+ background-clip: padding-box;
19
+ border: 1px solid #ccc;
20
+ border: 1px solid rgba(0,0,0,.2);
21
+
22
+ // Overrides for proper insertion
23
+ white-space: normal;
24
+
25
+ // Offset the popover to account for the popover arrow
26
+ &.top { margin-top: -10px; }
27
+ &.right { margin-left: 10px; }
28
+ &.bottom { margin-top: 10px; }
29
+ &.left { margin-left: -10px; }
30
+ }
31
+
32
+ .popover-title {
33
+ margin: 0; // reset heading margin
34
+ padding: 8px 14px;
35
+ font-size: 14px;
36
+ font-weight: normal;
37
+ line-height: 18px;
38
+ background-color: $popoverTitleBackground;
39
+ border-bottom: 1px solid darken($popoverTitleBackground, 5%);
40
+
41
+ &:empty {
42
+ display: none;
43
+ }
44
+ }
45
+
46
+ .popover-content {
47
+ padding: 9px 14px;
48
+ }
49
+
50
+ // Arrows
51
+ //
52
+ // .arrow is outer, .arrow:after is inner
53
+
54
+ .popover .arrow,
55
+ .popover .arrow:after {
56
+ position: absolute;
57
+ display: block;
58
+ width: 0;
59
+ height: 0;
60
+ border-color: transparent;
61
+ border-style: solid;
62
+ }
63
+ .popover .arrow {
64
+ border-width: $popoverArrowOuterWidth;
65
+ }
66
+ .popover .arrow:after {
67
+ border-width: $popoverArrowWidth;
68
+ content: "";
69
+ }
70
+
71
+ .popover {
72
+ &.top .arrow {
73
+ left: 50%;
74
+ margin-left: -$popoverArrowOuterWidth;
75
+ border-bottom-width: 0;
76
+ border-top-color: #999; // IE8 fallback
77
+ border-top-color: $popoverArrowOuterColor;
78
+ bottom: -$popoverArrowOuterWidth;
79
+ &:after {
80
+ bottom: 1px;
81
+ margin-left: -$popoverArrowWidth;
82
+ border-bottom-width: 0;
83
+ border-top-color: $popoverArrowColor;
84
+ }
85
+ }
86
+ &.right .arrow {
87
+ top: 50%;
88
+ left: -$popoverArrowOuterWidth;
89
+ margin-top: -$popoverArrowOuterWidth;
90
+ border-left-width: 0;
91
+ border-right-color: #999; // IE8 fallback
92
+ border-right-color: $popoverArrowOuterColor;
93
+ &:after {
94
+ left: 1px;
95
+ bottom: -$popoverArrowWidth;
96
+ border-left-width: 0;
97
+ border-right-color: $popoverArrowColor;
98
+ }
99
+ }
100
+ &.bottom .arrow {
101
+ left: 50%;
102
+ margin-left: -$popoverArrowOuterWidth;
103
+ border-top-width: 0;
104
+ border-bottom-color: #999; // IE8 fallback
105
+ border-bottom-color: $popoverArrowOuterColor;
106
+ top: -$popoverArrowOuterWidth;
107
+ &:after {
108
+ top: 1px;
109
+ margin-left: -$popoverArrowWidth;
110
+ border-top-width: 0;
111
+ border-bottom-color: $popoverArrowColor;
112
+ }
113
+ }
114
+
115
+ &.left .arrow {
116
+ top: 50%;
117
+ right: -$popoverArrowOuterWidth;
118
+ margin-top: -$popoverArrowOuterWidth;
119
+ border-right-width: 0;
120
+ border-left-color: #999; // IE8 fallback
121
+ border-left-color: $popoverArrowOuterColor;
122
+ &:after {
123
+ right: 1px;
124
+ border-right-width: 0;
125
+ border-left-color: $popoverArrowColor;
126
+ bottom: -$popoverArrowWidth;
127
+ }
128
+ }
129
+
130
+ }
@@ -0,0 +1,118 @@
1
+ //
2
+ // Progress bars
3
+ // --------------------------------------------------
4
+
5
+
6
+ // ANIMATIONS
7
+ // ----------
8
+
9
+ // Webkit
10
+ @-webkit-keyframes progress-bar-stripes {
11
+ from { background-position: 40px 0; }
12
+ to { background-position: 0 0; }
13
+ }
14
+
15
+ // Firefox
16
+ @-moz-keyframes progress-bar-stripes {
17
+ from { background-position: 40px 0; }
18
+ to { background-position: 0 0; }
19
+ }
20
+
21
+ // IE9
22
+ @-ms-keyframes progress-bar-stripes {
23
+ from { background-position: 40px 0; }
24
+ to { background-position: 0 0; }
25
+ }
26
+
27
+ // Opera
28
+ @-o-keyframes progress-bar-stripes {
29
+ from { background-position: 0 0; }
30
+ to { background-position: 40px 0; }
31
+ }
32
+
33
+ // Spec
34
+ @keyframes progress-bar-stripes {
35
+ from { background-position: 40px 0; }
36
+ to { background-position: 0 0; }
37
+ }
38
+
39
+
40
+
41
+ // THE BARS
42
+ // --------
43
+
44
+ // Outer container
45
+ .progress {
46
+ overflow: hidden;
47
+ height: $baseLineHeight;
48
+ margin-bottom: $baseLineHeight;
49
+ @include gradient-vertical(#f5f5f5, #f9f9f9);
50
+ }
51
+
52
+ // Bar of progress
53
+ .progress .bar {
54
+ width: 0%;
55
+ height: 100%;
56
+ color: $white;
57
+ float: left;
58
+ font-size: 12px;
59
+ text-align: center;
60
+ text-shadow: 0 -1px 0 rgba(0,0,0,.25);
61
+ @include gradient-vertical(#149bdf, #0480be);
62
+ @include box-sizing(border-box);
63
+ @include transition(width .6s ease);
64
+ }
65
+ .progress .bar + .bar {
66
+ }
67
+
68
+ // Striped bars
69
+ .progress-striped .bar {
70
+ @include gradient-striped(#149bdf);
71
+ @include background-size(40px 40px);
72
+ }
73
+
74
+ // Call animation for the active one
75
+ .progress.active .bar {
76
+ -webkit-animation: progress-bar-stripes 2s linear infinite;
77
+ -moz-animation: progress-bar-stripes 2s linear infinite;
78
+ -ms-animation: progress-bar-stripes 2s linear infinite;
79
+ -o-animation: progress-bar-stripes 2s linear infinite;
80
+ animation: progress-bar-stripes 2s linear infinite;
81
+ }
82
+
83
+
84
+
85
+ // COLORS
86
+ // ------
87
+
88
+ // Danger (red)
89
+ .progress-danger .bar, .progress .bar-danger {
90
+ @include gradient-vertical(#ee5f5b, #c43c35);
91
+ }
92
+ .progress-danger.progress-striped .bar, .progress-striped .bar-danger {
93
+ @include gradient-striped(#ee5f5b);
94
+ }
95
+
96
+ // Success (green)
97
+ .progress-success .bar, .progress .bar-success {
98
+ @include gradient-vertical(#62c462, #57a957);
99
+ }
100
+ .progress-success.progress-striped .bar, .progress-striped .bar-success {
101
+ @include gradient-striped(#62c462);
102
+ }
103
+
104
+ // Info (teal)
105
+ .progress-info .bar, .progress .bar-info {
106
+ @include gradient-vertical(#5bc0de, #339bb9);
107
+ }
108
+ .progress-info.progress-striped .bar, .progress-striped .bar-info {
109
+ @include gradient-striped(#5bc0de);
110
+ }
111
+
112
+ // Warning (orange)
113
+ .progress-warning .bar, .progress .bar-warning {
114
+ @include gradient-vertical(lighten($orange, 15%), $orange);
115
+ }
116
+ .progress-warning.progress-striped .bar, .progress-striped .bar-warning {
117
+ @include gradient-striped(lighten($orange, 15%));
118
+ }
@@ -0,0 +1,216 @@
1
+ //
2
+ // Reset CSS
3
+ // Adapted from http://github.com/necolas/normalize.css
4
+ // --------------------------------------------------
5
+
6
+
7
+ // Display in IE6-9 and FF3
8
+ // -------------------------
9
+
10
+ article,
11
+ aside,
12
+ details,
13
+ figcaption,
14
+ figure,
15
+ footer,
16
+ header,
17
+ hgroup,
18
+ nav,
19
+ section {
20
+ display: block;
21
+ }
22
+
23
+ // Display block in IE6-9 and FF3
24
+ // -------------------------
25
+
26
+ audio,
27
+ canvas,
28
+ video {
29
+ display: inline-block;
30
+ *display: inline;
31
+ *zoom: 1;
32
+ }
33
+
34
+ // Prevents modern browsers from displaying 'audio' without controls
35
+ // -------------------------
36
+
37
+ audio:not([controls]) {
38
+ display: none;
39
+ }
40
+
41
+ // Base settings
42
+ // -------------------------
43
+
44
+ html {
45
+ font-size: 100%;
46
+ -webkit-text-size-adjust: 100%;
47
+ -ms-text-size-adjust: 100%;
48
+ }
49
+ // Focus states
50
+ a:focus {
51
+ @include tab-focus();
52
+ }
53
+ // Hover & Active
54
+ a:hover,
55
+ a:active {
56
+ outline: 0;
57
+ }
58
+
59
+ // Prevents sub and sup affecting line-height in all browsers
60
+ // -------------------------
61
+
62
+ sub,
63
+ sup {
64
+ position: relative;
65
+ font-size: 75%;
66
+ line-height: 0;
67
+ vertical-align: baseline;
68
+ }
69
+ sup {
70
+ top: -0.5em;
71
+ }
72
+ sub {
73
+ bottom: -0.25em;
74
+ }
75
+
76
+ // Img border in a's and image quality
77
+ // -------------------------
78
+
79
+ img {
80
+ /* Responsive images (ensure images don't scale beyond their parents) */
81
+ max-width: 100%; /* Part 1: Set a maxium relative to the parent */
82
+ width: auto\9; /* IE7-8 need help adjusting responsive images */
83
+ height: auto; /* Part 2: Scale the height according to the width, otherwise you get stretching */
84
+
85
+ vertical-align: middle;
86
+ border: 0;
87
+ -ms-interpolation-mode: bicubic;
88
+ }
89
+
90
+ // Prevent max-width from affecting Google Maps
91
+ #map_canvas img,
92
+ .google-maps img {
93
+ max-width: none;
94
+ }
95
+
96
+ // Forms
97
+ // -------------------------
98
+
99
+ // Font size in all browsers, margin changes, misc consistency
100
+ button,
101
+ input,
102
+ select,
103
+ textarea {
104
+ margin: 0;
105
+ font-size: 100%;
106
+ vertical-align: middle;
107
+ }
108
+ button,
109
+ input {
110
+ *overflow: visible; // Inner spacing ie IE6/7
111
+ line-height: normal; // FF3/4 have !important on line-height in UA stylesheet
112
+ }
113
+ button::-moz-focus-inner,
114
+ input::-moz-focus-inner { // Inner padding and border oddities in FF3/4
115
+ padding: 0;
116
+ border: 0;
117
+ }
118
+ button,
119
+ html input[type="button"], // Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` and `video` controls.
120
+ input[type="reset"],
121
+ input[type="submit"] {
122
+ -webkit-appearance: button; // Corrects inability to style clickable `input` types in iOS.
123
+ cursor: pointer; // Improves usability and consistency of cursor style between image-type `input` and others.
124
+ }
125
+ label,
126
+ select,
127
+ button,
128
+ input[type="button"],
129
+ input[type="reset"],
130
+ input[type="submit"],
131
+ input[type="radio"],
132
+ input[type="checkbox"] {
133
+ cursor: pointer; // Improves usability and consistency of cursor style between image-type `input` and others.
134
+ }
135
+ input[type="search"] { // Appearance in Safari/Chrome
136
+ @include box-sizing(content-box);
137
+ -webkit-appearance: textfield;
138
+ }
139
+ input[type="search"]::-webkit-search-decoration,
140
+ input[type="search"]::-webkit-search-cancel-button {
141
+ -webkit-appearance: none; // Inner-padding issues in Chrome OSX, Safari 5
142
+ }
143
+ textarea {
144
+ overflow: auto; // Remove vertical scrollbar in IE6-9
145
+ vertical-align: top; // Readability and alignment cross-browser
146
+ }
147
+
148
+
149
+ // Printing
150
+ // -------------------------
151
+ // Source: https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css
152
+
153
+ @media print {
154
+
155
+ * {
156
+ text-shadow: none !important;
157
+ color: #000 !important; // Black prints faster: h5bp.com/s
158
+ background: transparent !important;
159
+ box-shadow: none !important;
160
+ }
161
+
162
+ a,
163
+ a:visited {
164
+ text-decoration: underline;
165
+ }
166
+
167
+ a[href]:after {
168
+ content: " (" attr(href) ")";
169
+ }
170
+
171
+ abbr[title]:after {
172
+ content: " (" attr(title) ")";
173
+ }
174
+
175
+ // Don't show links for images, or javascript/internal links
176
+ .ir a:after,
177
+ a[href^="javascript:"]:after,
178
+ a[href^="#"]:after {
179
+ content: "";
180
+ }
181
+
182
+ pre,
183
+ blockquote {
184
+ border: 1px solid #999;
185
+ page-break-inside: avoid;
186
+ }
187
+
188
+ thead {
189
+ display: table-header-group; // h5bp.com/t
190
+ }
191
+
192
+ tr,
193
+ img {
194
+ page-break-inside: avoid;
195
+ }
196
+
197
+ img {
198
+ max-width: 100% !important;
199
+ }
200
+
201
+ @page {
202
+ margin: 0.5cm;
203
+ }
204
+
205
+ p,
206
+ h2,
207
+ h3 {
208
+ orphans: 3;
209
+ widows: 3;
210
+ }
211
+
212
+ h2,
213
+ h3 {
214
+ page-break-after: avoid;
215
+ }
216
+ }