bootstrap-generators 2.3.2 → 3.0.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 (179) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +12 -2
  3. data/{LICENSE.txt → MIT-LICENSE} +1 -3
  4. data/README.md +19 -64
  5. data/Rakefile +24 -22
  6. data/bootstrap-generators.gemspec +3 -1
  7. data/lib/bootstrap-generators.rb +12 -1
  8. data/lib/bootstrap/generators/version.rb +1 -1
  9. data/lib/generators/bootstrap/install/install_generator.rb +9 -24
  10. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.less +498 -179
  11. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.scss +620 -0
  12. data/lib/generators/bootstrap/install/templates/assets/stylesheets/{fluid.css → starter.css} +6 -6
  13. data/lib/generators/bootstrap/install/templates/assets/stylesheets/{fluid.css.less → starter.less} +7 -7
  14. data/lib/generators/bootstrap/install/templates/assets/stylesheets/{fluid.css.scss → starter.scss} +7 -8
  15. data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.erb +11 -9
  16. data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.haml +9 -8
  17. data/lib/generators/bootstrap/install/templates/layouts/starter.html.erb +50 -0
  18. data/lib/generators/bootstrap/install/templates/layouts/{hero.html.haml → starter.html.haml} +0 -0
  19. data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/edit.html.erb +3 -3
  20. data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/index.html.erb +25 -25
  21. data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/new.html.erb +2 -2
  22. data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/show.html.erb +5 -5
  23. data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/edit.html.haml +3 -3
  24. data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml +20 -19
  25. data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/new.html.haml +2 -2
  26. data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/show.html.haml +5 -5
  27. data/readme-template.md.erb +5 -48
  28. data/test/lib/generators/bootstrap/install_generator_test.rb +3 -33
  29. data/vendor/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  30. data/vendor/assets/fonts/glyphicons-halflings-regular.svg +228 -0
  31. data/vendor/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  32. data/vendor/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  33. data/vendor/assets/javascripts/bootstrap-ie.js +2 -0
  34. data/vendor/assets/javascripts/bootstrap-ie/html5shiv.js +8 -0
  35. data/vendor/assets/javascripts/bootstrap-ie/respond.min.js +6 -0
  36. data/vendor/assets/javascripts/bootstrap.js +12 -13
  37. data/vendor/assets/javascripts/bootstrap/affix.js +126 -0
  38. data/vendor/assets/javascripts/{bootstrap-alert.js → bootstrap/alert.js} +35 -36
  39. data/vendor/assets/javascripts/bootstrap/button.js +109 -0
  40. data/vendor/assets/javascripts/bootstrap/carousel.js +217 -0
  41. data/vendor/assets/javascripts/bootstrap/collapse.js +179 -0
  42. data/vendor/assets/javascripts/bootstrap/dropdown.js +154 -0
  43. data/vendor/assets/javascripts/bootstrap/modal.js +246 -0
  44. data/vendor/assets/javascripts/bootstrap/popover.js +117 -0
  45. data/vendor/assets/javascripts/bootstrap/scrollspy.js +158 -0
  46. data/vendor/assets/javascripts/bootstrap/tab.js +135 -0
  47. data/vendor/assets/javascripts/bootstrap/tooltip.js +386 -0
  48. data/vendor/assets/javascripts/bootstrap/transition.js +56 -0
  49. data/vendor/assets/stylesheets/bootstrap.css +4638 -4000
  50. data/vendor/twitter/bootstrap/less/alerts.less +46 -58
  51. data/vendor/twitter/bootstrap/less/badges.less +51 -0
  52. data/vendor/twitter/bootstrap/less/bootstrap.less +27 -31
  53. data/vendor/twitter/bootstrap/less/breadcrumbs.less +7 -8
  54. data/vendor/twitter/bootstrap/less/button-groups.less +173 -154
  55. data/vendor/twitter/bootstrap/less/buttons.less +97 -165
  56. data/vendor/twitter/bootstrap/less/carousel.less +115 -64
  57. data/vendor/twitter/bootstrap/less/close.less +20 -19
  58. data/vendor/twitter/bootstrap/less/code.less +17 -22
  59. data/vendor/twitter/bootstrap/less/component-animations.less +10 -3
  60. data/vendor/twitter/bootstrap/less/dropdowns.less +92 -147
  61. data/vendor/twitter/bootstrap/less/forms.less +224 -561
  62. data/vendor/twitter/bootstrap/less/glyphicons.less +232 -0
  63. data/vendor/twitter/bootstrap/less/grid.less +336 -11
  64. data/vendor/twitter/bootstrap/less/input-groups.less +127 -0
  65. data/vendor/twitter/bootstrap/less/jumbotron.less +40 -0
  66. data/vendor/twitter/bootstrap/less/labels.less +58 -0
  67. data/vendor/twitter/bootstrap/less/list-group.less +88 -0
  68. data/vendor/twitter/bootstrap/less/media.less +8 -7
  69. data/vendor/twitter/bootstrap/less/mixins.less +487 -466
  70. data/vendor/twitter/bootstrap/less/modals.less +98 -52
  71. data/vendor/twitter/bootstrap/less/navbar.less +507 -383
  72. data/vendor/twitter/bootstrap/less/navs.less +169 -349
  73. data/vendor/twitter/bootstrap/less/normalize.less +396 -0
  74. data/vendor/twitter/bootstrap/less/pager.less +45 -33
  75. data/vendor/twitter/bootstrap/less/pagination.less +65 -105
  76. data/vendor/twitter/bootstrap/less/panels.less +148 -0
  77. data/vendor/twitter/bootstrap/less/popovers.less +51 -51
  78. data/vendor/twitter/bootstrap/less/print.less +100 -0
  79. data/vendor/twitter/bootstrap/less/progress-bars.less +28 -55
  80. data/vendor/twitter/bootstrap/less/responsive-utilities.less +195 -34
  81. data/vendor/twitter/bootstrap/less/scaffolding.less +101 -24
  82. data/vendor/twitter/bootstrap/less/tables.less +170 -178
  83. data/vendor/twitter/bootstrap/less/theme.less +232 -0
  84. data/vendor/twitter/bootstrap/less/thumbnails.less +11 -33
  85. data/vendor/twitter/bootstrap/less/tooltip.less +45 -20
  86. data/vendor/twitter/bootstrap/less/type.less +100 -109
  87. data/vendor/twitter/bootstrap/less/utilities.less +19 -7
  88. data/vendor/twitter/bootstrap/less/variables.less +498 -179
  89. data/vendor/twitter/bootstrap/less/wells.less +7 -7
  90. data/vendor/twitter/bootstrap/sass/_alerts.scss +46 -58
  91. data/vendor/twitter/bootstrap/sass/_badges.scss +51 -0
  92. data/vendor/twitter/bootstrap/sass/_breadcrumbs.scss +8 -9
  93. data/vendor/twitter/bootstrap/sass/_button-groups.scss +173 -154
  94. data/vendor/twitter/bootstrap/sass/_buttons.scss +97 -165
  95. data/vendor/twitter/bootstrap/sass/_carousel.scss +116 -65
  96. data/vendor/twitter/bootstrap/sass/_close.scss +9 -8
  97. data/vendor/twitter/bootstrap/sass/_code.scss +16 -21
  98. data/vendor/twitter/bootstrap/sass/_component-animations.scss +10 -3
  99. data/vendor/twitter/bootstrap/sass/_dropdowns.scss +94 -148
  100. data/vendor/twitter/bootstrap/sass/_forms.scss +220 -559
  101. data/vendor/twitter/bootstrap/sass/_glyphicons.scss +232 -0
  102. data/vendor/twitter/bootstrap/sass/_grid.scss +336 -11
  103. data/vendor/twitter/bootstrap/sass/_input-groups.scss +127 -0
  104. data/vendor/twitter/bootstrap/sass/_jumbotron.scss +40 -0
  105. data/vendor/twitter/bootstrap/sass/_labels.scss +58 -0
  106. data/vendor/twitter/bootstrap/sass/_list-group.scss +88 -0
  107. data/vendor/twitter/bootstrap/sass/_media.scss +8 -7
  108. data/vendor/twitter/bootstrap/sass/_mixins.scss +465 -433
  109. data/vendor/twitter/bootstrap/sass/_modals.scss +102 -52
  110. data/vendor/twitter/bootstrap/sass/_navbar.scss +511 -383
  111. data/vendor/twitter/bootstrap/sass/_navs.scss +169 -349
  112. data/vendor/twitter/bootstrap/sass/_normalize.scss +396 -0
  113. data/vendor/twitter/bootstrap/sass/_pager.scss +45 -33
  114. data/vendor/twitter/bootstrap/sass/_pagination.scss +65 -105
  115. data/vendor/twitter/bootstrap/sass/_panels.scss +148 -0
  116. data/vendor/twitter/bootstrap/sass/_popovers.scss +51 -51
  117. data/vendor/twitter/bootstrap/sass/_print.scss +100 -0
  118. data/vendor/twitter/bootstrap/sass/_progress-bars.scss +28 -55
  119. data/vendor/twitter/bootstrap/sass/_responsive-utilities.scss +180 -45
  120. data/vendor/twitter/bootstrap/sass/_scaffolding.scss +101 -24
  121. data/vendor/twitter/bootstrap/sass/_tables.scss +169 -168
  122. data/vendor/twitter/bootstrap/sass/_theme.scss +232 -0
  123. data/vendor/twitter/bootstrap/sass/_thumbnails.scss +11 -33
  124. data/vendor/twitter/bootstrap/sass/_tooltip.scss +45 -20
  125. data/vendor/twitter/bootstrap/sass/_type.scss +101 -110
  126. data/vendor/twitter/bootstrap/sass/_utilities.scss +19 -22
  127. data/vendor/twitter/bootstrap/sass/_variables.scss +498 -179
  128. data/vendor/twitter/bootstrap/sass/_wells.scss +7 -7
  129. data/vendor/twitter/bootstrap/sass/bootstrap.scss +29 -33
  130. metadata +47 -56
  131. data/lib/bootstrap/generators/engine.rb +0 -14
  132. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.css.scss +0 -301
  133. data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css +0 -18
  134. data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.less +0 -19
  135. data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.scss +0 -19
  136. data/lib/generators/bootstrap/install/templates/config/initializers/simple_form.rb +0 -176
  137. data/lib/generators/bootstrap/install/templates/config/locales/simple_form.en.yml +0 -24
  138. data/lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.erb +0 -13
  139. data/lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.haml +0 -10
  140. data/lib/generators/bootstrap/install/templates/layouts/fluid.html.erb +0 -80
  141. data/lib/generators/bootstrap/install/templates/layouts/fluid.html.haml +0 -94
  142. data/lib/generators/bootstrap/install/templates/layouts/hero.html.erb +0 -53
  143. data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
  144. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  145. data/vendor/assets/javascripts/bootstrap-affix.js +0 -117
  146. data/vendor/assets/javascripts/bootstrap-button.js +0 -105
  147. data/vendor/assets/javascripts/bootstrap-carousel.js +0 -207
  148. data/vendor/assets/javascripts/bootstrap-collapse.js +0 -167
  149. data/vendor/assets/javascripts/bootstrap-dropdown.js +0 -169
  150. data/vendor/assets/javascripts/bootstrap-modal.js +0 -247
  151. data/vendor/assets/javascripts/bootstrap-popover.js +0 -114
  152. data/vendor/assets/javascripts/bootstrap-scrollspy.js +0 -162
  153. data/vendor/assets/javascripts/bootstrap-tab.js +0 -144
  154. data/vendor/assets/javascripts/bootstrap-tooltip.js +0 -361
  155. data/vendor/assets/javascripts/bootstrap-transition.js +0 -60
  156. data/vendor/assets/javascripts/bootstrap-typeahead.js +0 -335
  157. data/vendor/assets/stylesheets/bootstrap-responsive.css +0 -1109
  158. data/vendor/twitter/bootstrap/less/accordion.less +0 -34
  159. data/vendor/twitter/bootstrap/less/hero-unit.less +0 -25
  160. data/vendor/twitter/bootstrap/less/labels-badges.less +0 -84
  161. data/vendor/twitter/bootstrap/less/layouts.less +0 -16
  162. data/vendor/twitter/bootstrap/less/reset.less +0 -216
  163. data/vendor/twitter/bootstrap/less/responsive-1200px-min.less +0 -28
  164. data/vendor/twitter/bootstrap/less/responsive-767px-max.less +0 -193
  165. data/vendor/twitter/bootstrap/less/responsive-768px-979px.less +0 -19
  166. data/vendor/twitter/bootstrap/less/responsive-navbar.less +0 -189
  167. data/vendor/twitter/bootstrap/less/responsive.less +0 -48
  168. data/vendor/twitter/bootstrap/less/sprites.less +0 -197
  169. data/vendor/twitter/bootstrap/sass/_accordion.scss +0 -34
  170. data/vendor/twitter/bootstrap/sass/_hero-unit.scss +0 -25
  171. data/vendor/twitter/bootstrap/sass/_labels-badges.scss +0 -83
  172. data/vendor/twitter/bootstrap/sass/_layouts.scss +0 -16
  173. data/vendor/twitter/bootstrap/sass/_reset.scss +0 -216
  174. data/vendor/twitter/bootstrap/sass/_responsive-1200px-min.scss +0 -28
  175. data/vendor/twitter/bootstrap/sass/_responsive-767px-max.scss +0 -193
  176. data/vendor/twitter/bootstrap/sass/_responsive-768px-979px.scss +0 -19
  177. data/vendor/twitter/bootstrap/sass/_responsive-navbar.scss +0 -189
  178. data/vendor/twitter/bootstrap/sass/_sprites.scss +0 -197
  179. data/vendor/twitter/bootstrap/sass/responsive.scss +0 -48
@@ -1,34 +0,0 @@
1
- //
2
- // Accordion
3
- // --------------------------------------------------
4
-
5
-
6
- // Parent container
7
- .accordion {
8
- margin-bottom: $baseLineHeight;
9
- }
10
-
11
- // Group == heading + body
12
- .accordion-group {
13
- margin-bottom: 2px;
14
- border: 1px solid #e5e5e5;
15
- @include border-radius($baseBorderRadius);
16
- }
17
- .accordion-heading {
18
- border-bottom: 0;
19
- }
20
- .accordion-heading .accordion-toggle {
21
- display: block;
22
- padding: 8px 15px;
23
- }
24
-
25
- // General toggle styles
26
- .accordion-toggle {
27
- cursor: pointer;
28
- }
29
-
30
- // Inner needs the styles because you can't animate properly with any styles on the element
31
- .accordion-inner {
32
- padding: 9px 15px;
33
- border-top: 1px solid #e5e5e5;
34
- }
@@ -1,25 +0,0 @@
1
- //
2
- // Hero unit
3
- // --------------------------------------------------
4
-
5
-
6
- .hero-unit {
7
- padding: 60px;
8
- margin-bottom: 30px;
9
- font-size: 18px;
10
- font-weight: 200;
11
- line-height: $baseLineHeight * 1.5;
12
- color: $heroUnitLeadColor;
13
- background-color: $heroUnitBackground;
14
- @include border-radius(6px);
15
- h1 {
16
- margin-bottom: 0;
17
- font-size: 60px;
18
- line-height: 1;
19
- color: $heroUnitHeadingColor;
20
- letter-spacing: -1px;
21
- }
22
- li {
23
- line-height: $baseLineHeight * 1.5; // Reset since we specify in type.scss
24
- }
25
- }
@@ -1,83 +0,0 @@
1
- //
2
- // Labels and badges
3
- // --------------------------------------------------
4
-
5
-
6
- // Base classes
7
- .label,
8
- .badge {
9
- display: inline-block;
10
- padding: 2px 4px;
11
- font-size: $baseFontSize * .846;
12
- font-weight: bold;
13
- line-height: 14px; // ensure proper line-height if floated
14
- color: $white;
15
- vertical-align: baseline;
16
- white-space: nowrap;
17
- text-shadow: 0 -1px 0 rgba(0,0,0,.25);
18
- background-color: $grayLight;
19
- }
20
- // Set unique padding and border-radii
21
- .label {
22
- @include border-radius(3px);
23
- }
24
- .badge {
25
- padding-left: 9px;
26
- padding-right: 9px;
27
- @include border-radius(9px);
28
- }
29
-
30
- // Empty labels/badges collapse
31
- .label,
32
- .badge {
33
- &:empty {
34
- display: none;
35
- }
36
- }
37
-
38
- // Hover/focus state, but only for links
39
- a {
40
- &.label:hover,
41
- &.label:focus,
42
- &.badge:hover,
43
- &.badge:focus {
44
- color: $white;
45
- text-decoration: none;
46
- cursor: pointer;
47
- }
48
- }
49
-
50
- // Colors
51
- // Only give background-color difference to links (and to simplify, we don't qualifty with `a` but [href] attribute)
52
- @each $item in label, badge {
53
- // Important (red)
54
- .#{$item}-important { background-color: $errorText; }
55
- .#{$item}-important[href] { background-color: darken($errorText, 10%); }
56
- // Warnings (orange)
57
- .#{$item}-warning { background-color: $orange; }
58
- .#{$item}-warning[href] { background-color: darken($orange, 10%); }
59
- // Success (green)
60
- .#{$item}-success { background-color: $successText; }
61
- .#{$item}-success[href] { background-color: darken($successText, 10%); }
62
- // Info (turquoise)
63
- .#{$item}-info { background-color: $infoText; }
64
- .#{$item}-info[href] { background-color: darken($infoText, 10%); }
65
- // Inverse (black)
66
- .#{$item}-inverse { background-color: $grayDark; }
67
- .#{$item}-inverse[href] { background-color: darken($grayDark, 10%); }
68
- }
69
-
70
- // Quick fix for labels/badges in buttons
71
- .btn {
72
- .label,
73
- .badge {
74
- position: relative;
75
- top: -1px;
76
- }
77
- }
78
- .btn-mini {
79
- .label,
80
- .badge {
81
- top: 0;
82
- }
83
- }
@@ -1,16 +0,0 @@
1
- //
2
- // Layouts
3
- // --------------------------------------------------
4
-
5
-
6
- // Container (centered, fixed-width layouts)
7
- .container {
8
- @include container-fixed();
9
- }
10
-
11
- // Fluid layouts (left aligned, with sidebar, min- & max-width content)
12
- .container-fluid {
13
- padding-right: $gridGutterWidth;
14
- padding-left: $gridGutterWidth;
15
- @include clearfix();
16
- }
@@ -1,216 +0,0 @@
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
- }
@@ -1,28 +0,0 @@
1
- //
2
- // Responsive: Large desktop and up
3
- // --------------------------------------------------
4
-
5
-
6
- @media (min-width: 1200px) {
7
-
8
- // Fixed grid
9
- @include grid-core($gridColumnWidth1200, $gridGutterWidth1200);
10
-
11
- // Fluid grid
12
- @include grid-fluid($fluidGridColumnWidth1200, $fluidGridGutterWidth1200);
13
-
14
- // Input grid
15
- @include grid-input($gridColumnWidth1200, $gridGutterWidth1200);
16
-
17
- // Thumbnails
18
- .thumbnails {
19
- margin-left: -$gridGutterWidth1200;
20
- }
21
- .thumbnails > li {
22
- margin-left: $gridGutterWidth1200;
23
- }
24
- .row-fluid .thumbnails {
25
- margin-left: 0;
26
- }
27
-
28
- }
@@ -1,193 +0,0 @@
1
- //
2
- // Responsive: Landscape phone to desktop/tablet
3
- // --------------------------------------------------
4
-
5
-
6
- @media (max-width: 767px) {
7
-
8
- // Padding to set content in a bit
9
- body {
10
- padding-left: 20px;
11
- padding-right: 20px;
12
- }
13
- // Negative indent the now static "fixed" navbar
14
- .navbar-fixed-top,
15
- .navbar-fixed-bottom,
16
- .navbar-static-top {
17
- margin-left: -20px;
18
- margin-right: -20px;
19
- }
20
- // Remove padding on container given explicit padding set on body
21
- .container-fluid {
22
- padding: 0;
23
- }
24
-
25
- // TYPOGRAPHY
26
- // ----------
27
- // Reset horizontal dl
28
- .dl-horizontal {
29
- dt {
30
- float: none;
31
- clear: none;
32
- width: auto;
33
- text-align: left;
34
- }
35
- dd {
36
- margin-left: 0;
37
- }
38
- }
39
-
40
- // GRID & CONTAINERS
41
- // -----------------
42
- // Remove width from containers
43
- .container {
44
- width: auto;
45
- }
46
- // Fluid rows
47
- .row-fluid {
48
- width: 100%;
49
- }
50
- // Undo negative margin on rows and thumbnails
51
- .row,
52
- .thumbnails {
53
- margin-left: 0;
54
- }
55
- .thumbnails > li {
56
- float: none;
57
- margin-left: 0; // Reset the default margin for all li elements when no .span* classes are present
58
- }
59
- // Make all grid-sized elements block level again
60
- [class*="span"],
61
- .uneditable-input[class*="span"], // Makes uneditable inputs full-width when using grid sizing
62
- .row-fluid [class*="span"] {
63
- float: none;
64
- display: block;
65
- width: 100%;
66
- margin-left: 0;
67
- @include box-sizing(border-box);
68
- }
69
- .span12,
70
- .row-fluid .span12 {
71
- width: 100%;
72
- @include box-sizing(border-box);
73
- }
74
- .row-fluid [class*="offset"]:first-child {
75
- margin-left: 0;
76
- }
77
-
78
- // FORM FIELDS
79
- // -----------
80
- // Make span* classes full width
81
- .input-large,
82
- .input-xlarge,
83
- .input-xxlarge,
84
- input[class*="span"],
85
- select[class*="span"],
86
- textarea[class*="span"],
87
- .uneditable-input {
88
- @include input-block-level();
89
- }
90
- // But don't let it screw up prepend/append inputs
91
- .input-prepend input,
92
- .input-append input,
93
- .input-prepend input[class*="span"],
94
- .input-append input[class*="span"] {
95
- display: inline-block; // redeclare so they don't wrap to new lines
96
- width: auto;
97
- }
98
- .controls-row [class*="span"] + [class*="span"] {
99
- margin-left: 0;
100
- }
101
-
102
- // Modals
103
- .modal {
104
- position: fixed;
105
- top: 20px;
106
- left: 20px;
107
- right: 20px;
108
- width: auto;
109
- margin: 0;
110
- &.fade { top: -100px; }
111
- &.fade.in { top: 20px; }
112
- }
113
-
114
- }
115
-
116
-
117
-
118
- // UP TO LANDSCAPE PHONE
119
- // ---------------------
120
-
121
- @media (max-width: 480px) {
122
-
123
- // Smooth out the collapsing/expanding nav
124
- .nav-collapse {
125
- -webkit-transform: translate3d(0, 0, 0); // activate the GPU
126
- }
127
-
128
- // Block level the page header small tag for readability
129
- .page-header h1 small {
130
- display: block;
131
- line-height: $baseLineHeight;
132
- }
133
-
134
- // Update checkboxes for iOS
135
- input[type="checkbox"],
136
- input[type="radio"] {
137
- border: 1px solid #ccc;
138
- }
139
-
140
- // Remove the horizontal form styles
141
- .form-horizontal {
142
- .control-label {
143
- float: none;
144
- width: auto;
145
- padding-top: 0;
146
- text-align: left;
147
- }
148
- // Move over all input controls and content
149
- .controls {
150
- margin-left: 0;
151
- }
152
- // Move the options list down to align with labels
153
- .control-list {
154
- padding-top: 0; // has to be padding because margin collaspes
155
- }
156
- // Move over buttons in .form-actions to align with .controls
157
- .form-actions {
158
- padding-left: 10px;
159
- padding-right: 10px;
160
- }
161
- }
162
-
163
- // Medias
164
- // Reset float and spacing to stack
165
- .media .pull-left,
166
- .media .pull-right {
167
- float: none;
168
- display: block;
169
- margin-bottom: 10px;
170
- }
171
- // Remove side margins since we stack instead of indent
172
- .media-object {
173
- margin-right: 0;
174
- margin-left: 0;
175
- }
176
-
177
- // Modals
178
- .modal {
179
- top: 10px;
180
- left: 10px;
181
- right: 10px;
182
- }
183
- .modal-header .close {
184
- padding: 10px;
185
- margin: -10px;
186
- }
187
-
188
- // Carousel
189
- .carousel-caption {
190
- position: static;
191
- }
192
-
193
- }