twbs_sass_rails 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +12 -0
  3. data/CONTRIBUTING.md +45 -0
  4. data/Gemfile +3 -0
  5. data/Gemfile.lock +142 -0
  6. data/LICENSE +30 -0
  7. data/README.md +138 -0
  8. data/Rakefile +108 -0
  9. data/VERSION +1 -0
  10. data/app/assets/fonts/fontawesome-webfont.eot +0 -0
  11. data/app/assets/fonts/fontawesome-webfont.svg +399 -0
  12. data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
  13. data/app/assets/fonts/fontawesome-webfont.woff +0 -0
  14. data/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  15. data/app/assets/fonts/glyphicons-halflings-regular.svg +228 -0
  16. data/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  17. data/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  18. data/gemfiles/Gemfile.rails-3.2.x +9 -0
  19. data/gemfiles/Gemfile.rails-4.0.x +9 -0
  20. data/lib/generators/twbs_sass_rails/install/install_generator.rb +31 -0
  21. data/lib/generators/twbs_sass_rails/install/templates/application.css +15 -0
  22. data/lib/generators/twbs_sass_rails/install/templates/application.js +17 -0
  23. data/lib/generators/twbs_sass_rails/install/templates/twbs-variables.css.less +5 -0
  24. data/lib/generators/twbs_sass_rails/install/templates/twbs.css.less +10 -0
  25. data/lib/generators/twbs_sass_rails/install/templates/twbs.js.coffee +7 -0
  26. data/lib/tasks/twbs_sass_rails_tasks.rake +4 -0
  27. data/lib/twbs_sass_rails/engine.rb +7 -0
  28. data/lib/twbs_sass_rails/version.rb +3 -0
  29. data/lib/twbs_sass_rails.rb +4 -0
  30. data/test/dummy/README.rdoc +28 -0
  31. data/test/dummy/Rakefile +6 -0
  32. data/test/dummy/app/assets/images/.keep +0 -0
  33. data/test/dummy/app/assets/javascripts/application.js +14 -0
  34. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  35. data/test/dummy/app/assets/stylesheets/default-twbs.css.less +1 -0
  36. data/test/dummy/app/assets/stylesheets/test.css.less +5 -0
  37. data/test/dummy/app/assets/stylesheets/twbs-variables.css.less +6 -0
  38. data/test/dummy/app/assets/stylesheets/twbs.css.less +10 -0
  39. data/test/dummy/app/controllers/application_controller.rb +5 -0
  40. data/test/dummy/app/controllers/concerns/.keep +0 -0
  41. data/test/dummy/app/helpers/application_helper.rb +2 -0
  42. data/test/dummy/app/mailers/.keep +0 -0
  43. data/test/dummy/app/models/.keep +0 -0
  44. data/test/dummy/app/models/concerns/.keep +0 -0
  45. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  46. data/test/dummy/bin/bundle +3 -0
  47. data/test/dummy/bin/rails +4 -0
  48. data/test/dummy/bin/rake +4 -0
  49. data/test/dummy/config/application.rb +27 -0
  50. data/test/dummy/config/boot.rb +5 -0
  51. data/test/dummy/config/database.yml +25 -0
  52. data/test/dummy/config/environment.rb +5 -0
  53. data/test/dummy/config/environments/development.rb +29 -0
  54. data/test/dummy/config/environments/production.rb +80 -0
  55. data/test/dummy/config/environments/test.rb +36 -0
  56. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  57. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  58. data/test/dummy/config/initializers/inflections.rb +16 -0
  59. data/test/dummy/config/initializers/mime_types.rb +5 -0
  60. data/test/dummy/config/initializers/secret_token.rb +18 -0
  61. data/test/dummy/config/initializers/session_store.rb +3 -0
  62. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  63. data/test/dummy/config/locales/en.yml +23 -0
  64. data/test/dummy/config/routes.rb +56 -0
  65. data/test/dummy/config.ru +4 -0
  66. data/test/dummy/db/.keep +0 -0
  67. data/test/dummy/lib/assets/.keep +0 -0
  68. data/test/dummy/log/.keep +0 -0
  69. data/test/dummy/public/404.html +58 -0
  70. data/test/dummy/public/422.html +58 -0
  71. data/test/dummy/public/500.html +57 -0
  72. data/test/dummy/public/favicon.ico +0 -0
  73. data/test/generators/default_rails_assets/application.css +13 -0
  74. data/test/generators/default_rails_assets/application.js +16 -0
  75. data/test/generators/install_generator_test.rb +47 -0
  76. data/test/integration/assets_precompile_integration_test.rb +49 -0
  77. data/test/integration/twbs_sass_rails_integration_test.rb +37 -0
  78. data/test/test_helper.rb +38 -0
  79. data/twbs_sass_rails.gemspec +34 -0
  80. data/vendor/assets/javascripts/respond.js +342 -0
  81. data/vendor/assets/javascripts/twbs/bootstrap/affix.js +126 -0
  82. data/vendor/assets/javascripts/twbs/bootstrap/alert.js +98 -0
  83. data/vendor/assets/javascripts/twbs/bootstrap/button.js +109 -0
  84. data/vendor/assets/javascripts/twbs/bootstrap/carousel.js +217 -0
  85. data/vendor/assets/javascripts/twbs/bootstrap/collapse.js +179 -0
  86. data/vendor/assets/javascripts/twbs/bootstrap/dropdown.js +154 -0
  87. data/vendor/assets/javascripts/twbs/bootstrap/modal.js +246 -0
  88. data/vendor/assets/javascripts/twbs/bootstrap/popover.js +117 -0
  89. data/vendor/assets/javascripts/twbs/bootstrap/scrollspy.js +158 -0
  90. data/vendor/assets/javascripts/twbs/bootstrap/tab.js +135 -0
  91. data/vendor/assets/javascripts/twbs/bootstrap/tooltip.js +386 -0
  92. data/vendor/assets/javascripts/twbs/bootstrap/transition.js +56 -0
  93. data/vendor/assets/javascripts/twbs/bootstrap.js +12 -0
  94. data/vendor/assets/stylesheets/fontawesome/bootstrap.less +84 -0
  95. data/vendor/assets/stylesheets/fontawesome/core.less +129 -0
  96. data/vendor/assets/stylesheets/fontawesome/extras.less +93 -0
  97. data/vendor/assets/stylesheets/fontawesome/font-awesome.less +33 -0
  98. data/vendor/assets/stylesheets/fontawesome/icons.less +381 -0
  99. data/vendor/assets/stylesheets/fontawesome/mixins.less +48 -0
  100. data/vendor/assets/stylesheets/fontawesome/path.less +14 -0
  101. data/vendor/assets/stylesheets/fontawesome/variables.less +735 -0
  102. data/vendor/assets/stylesheets/twbs/bootstrap/alerts.less +67 -0
  103. data/vendor/assets/stylesheets/twbs/bootstrap/badges.less +51 -0
  104. data/vendor/assets/stylesheets/twbs/bootstrap/bootstrap.less +58 -0
  105. data/vendor/assets/stylesheets/twbs/bootstrap/breadcrumbs.less +23 -0
  106. data/vendor/assets/stylesheets/twbs/bootstrap/button-groups.less +248 -0
  107. data/vendor/assets/stylesheets/twbs/bootstrap/buttons.less +160 -0
  108. data/vendor/assets/stylesheets/twbs/bootstrap/carousel.less +209 -0
  109. data/vendor/assets/stylesheets/twbs/bootstrap/close.less +33 -0
  110. data/vendor/assets/stylesheets/twbs/bootstrap/code.less +56 -0
  111. data/vendor/assets/stylesheets/twbs/bootstrap/component-animations.less +29 -0
  112. data/vendor/assets/stylesheets/twbs/bootstrap/dropdowns.less +193 -0
  113. data/vendor/assets/stylesheets/twbs/bootstrap/forms.less +362 -0
  114. data/vendor/assets/stylesheets/twbs/bootstrap/glyphicons.less +236 -0
  115. data/vendor/assets/stylesheets/twbs/bootstrap/grid.less +346 -0
  116. data/vendor/assets/stylesheets/twbs/bootstrap/input-groups.less +127 -0
  117. data/vendor/assets/stylesheets/twbs/bootstrap/jumbotron.less +40 -0
  118. data/vendor/assets/stylesheets/twbs/bootstrap/labels.less +58 -0
  119. data/vendor/assets/stylesheets/twbs/bootstrap/list-group.less +88 -0
  120. data/vendor/assets/stylesheets/twbs/bootstrap/media.less +56 -0
  121. data/vendor/assets/stylesheets/twbs/bootstrap/mixins.less +744 -0
  122. data/vendor/assets/stylesheets/twbs/bootstrap/modals.less +141 -0
  123. data/vendor/assets/stylesheets/twbs/bootstrap/navbar.less +621 -0
  124. data/vendor/assets/stylesheets/twbs/bootstrap/navs.less +248 -0
  125. data/vendor/assets/stylesheets/twbs/bootstrap/normalize.less +396 -0
  126. data/vendor/assets/stylesheets/twbs/bootstrap/pager.less +55 -0
  127. data/vendor/assets/stylesheets/twbs/bootstrap/pagination.less +85 -0
  128. data/vendor/assets/stylesheets/twbs/bootstrap/panels.less +148 -0
  129. data/vendor/assets/stylesheets/twbs/bootstrap/popovers.less +133 -0
  130. data/vendor/assets/stylesheets/twbs/bootstrap/print.less +100 -0
  131. data/vendor/assets/stylesheets/twbs/bootstrap/progress-bars.less +95 -0
  132. data/vendor/assets/stylesheets/twbs/bootstrap/responsive-utilities.less +220 -0
  133. data/vendor/assets/stylesheets/twbs/bootstrap/scaffolding.less +130 -0
  134. data/vendor/assets/stylesheets/twbs/bootstrap/tables.less +238 -0
  135. data/vendor/assets/stylesheets/twbs/bootstrap/theme.less +241 -0
  136. data/vendor/assets/stylesheets/twbs/bootstrap/thumbnails.less +32 -0
  137. data/vendor/assets/stylesheets/twbs/bootstrap/tooltip.less +95 -0
  138. data/vendor/assets/stylesheets/twbs/bootstrap/type.less +242 -0
  139. data/vendor/assets/stylesheets/twbs/bootstrap/utilities.less +42 -0
  140. data/vendor/assets/stylesheets/twbs/bootstrap/variables.less +628 -0
  141. data/vendor/assets/stylesheets/twbs/bootstrap/wells.less +29 -0
  142. data/vendor/assets/stylesheets/twbs/bootstrap.less +1 -0
  143. metadata +388 -0
@@ -0,0 +1,248 @@
1
+ //
2
+ // Navs
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Base class
7
+ // --------------------------------------------------
8
+
9
+ .nav {
10
+ margin-bottom: 0;
11
+ padding-left: 0; // Override default ul/ol
12
+ list-style: none;
13
+ .clearfix();
14
+
15
+ > li {
16
+ position: relative;
17
+ display: block;
18
+
19
+ > a {
20
+ position: relative;
21
+ display: block;
22
+ padding: @nav-link-padding;
23
+ &:hover,
24
+ &:focus {
25
+ text-decoration: none;
26
+ background-color: @nav-link-hover-bg;
27
+ }
28
+ }
29
+
30
+ // Disabled state sets text to gray and nukes hover/tab effects
31
+ &.disabled > a {
32
+ color: @nav-disabled-link-color;
33
+
34
+ &:hover,
35
+ &:focus {
36
+ color: @nav-disabled-link-hover-color;
37
+ text-decoration: none;
38
+ background-color: transparent;
39
+ cursor: not-allowed;
40
+ }
41
+ }
42
+ }
43
+
44
+ // Open dropdowns
45
+ .open > a {
46
+ &,
47
+ &:hover,
48
+ &:focus {
49
+ background-color: @nav-link-hover-bg;
50
+ border-color: @link-color;
51
+ }
52
+ }
53
+
54
+ // Dividers (basically an hr) within the dropdown
55
+ .nav-divider {
56
+ .nav-divider();
57
+ }
58
+
59
+ // Prevent IE8 from misplacing imgs
60
+ // See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989
61
+ > li > a > img {
62
+ max-width: none;
63
+ }
64
+ }
65
+
66
+
67
+ // Tabs
68
+ // -------------------------
69
+
70
+ // Give the tabs something to sit on
71
+ .nav-tabs {
72
+ border-bottom: 1px solid @nav-tabs-border-color;
73
+ > li {
74
+ float: left;
75
+ // Make the list-items overlay the bottom border
76
+ margin-bottom: -1px;
77
+
78
+ // Actual tabs (as links)
79
+ > a {
80
+ margin-right: 2px;
81
+ line-height: @line-height-base;
82
+ border: 1px solid transparent;
83
+ border-radius: @border-radius-base @border-radius-base 0 0;
84
+ &:hover {
85
+ border-color: @nav-tabs-link-hover-border-color @nav-tabs-link-hover-border-color @nav-tabs-border-color;
86
+ }
87
+ }
88
+
89
+ // Active state, and it's :hover to override normal :hover
90
+ &.active > a {
91
+ &,
92
+ &:hover,
93
+ &:focus {
94
+ color: @nav-tabs-active-link-hover-color;
95
+ background-color: @nav-tabs-active-link-hover-bg;
96
+ border: 1px solid @nav-tabs-active-link-hover-border-color;
97
+ border-bottom-color: transparent;
98
+ cursor: default;
99
+ }
100
+ }
101
+ }
102
+ // pulling this in mainly for less shorthand
103
+ &.nav-justified {
104
+ .nav-justified();
105
+ .nav-tabs-justified();
106
+ }
107
+ }
108
+
109
+
110
+ // Pills
111
+ // -------------------------
112
+ .nav-pills {
113
+ > li {
114
+ float: left;
115
+
116
+ // Links rendered as pills
117
+ > a {
118
+ border-radius: 5px;
119
+ }
120
+ + li {
121
+ margin-left: 2px;
122
+ }
123
+
124
+ // Active state
125
+ &.active > a {
126
+ &,
127
+ &:hover,
128
+ &:focus {
129
+ color: @nav-pills-active-link-hover-color;
130
+ background-color: @nav-pills-active-link-hover-bg;
131
+ }
132
+ }
133
+ }
134
+ }
135
+
136
+
137
+ // Stacked pills
138
+ .nav-stacked {
139
+ > li {
140
+ float: none;
141
+ + li {
142
+ margin-top: 2px;
143
+ margin-left: 0; // no need for this gap between nav items
144
+ }
145
+ }
146
+ }
147
+
148
+
149
+ // Nav variations
150
+ // --------------------------------------------------
151
+
152
+ // Justified nav links
153
+ // -------------------------
154
+
155
+ .nav-justified {
156
+ width: 100%;
157
+
158
+ > li {
159
+ float: none;
160
+ > a {
161
+ text-align: center;
162
+ margin-bottom: 5px;
163
+ }
164
+ }
165
+
166
+ @media (min-width: @screen-sm-min) {
167
+ > li {
168
+ display: table-cell;
169
+ width: 1%;
170
+ > a {
171
+ margin-bottom: 0;
172
+ }
173
+ }
174
+ }
175
+ }
176
+
177
+ // Move borders to anchors instead of bottom of list
178
+ .nav-tabs-justified {
179
+ border-bottom: 0;
180
+
181
+ > li > a {
182
+ // Override margin from .nav-tabs
183
+ margin-right: 0;
184
+ border-radius: @border-radius-base;
185
+ }
186
+
187
+ > .active > a,
188
+ > .active > a:hover,
189
+ > .active > a:focus {
190
+ border: 1px solid @nav-tabs-justified-link-border-color;
191
+ }
192
+
193
+ @media (min-width: @screen-sm-min) {
194
+ > li > a {
195
+ border-bottom: 1px solid @nav-tabs-justified-link-border-color;
196
+ border-radius: @border-radius-base @border-radius-base 0 0;
197
+ }
198
+ > .active > a,
199
+ > .active > a:hover,
200
+ > .active > a:focus {
201
+ border-bottom-color: @nav-tabs-justified-active-link-border-color;
202
+ }
203
+ }
204
+ }
205
+
206
+
207
+ // Tabbable tabs
208
+ // -------------------------
209
+
210
+ // Clear any floats
211
+ .tabbable {
212
+ .clearfix();
213
+ }
214
+
215
+ // Show/hide tabbable areas
216
+ .tab-content > .tab-pane,
217
+ .pill-content > .pill-pane {
218
+ display: none;
219
+ }
220
+ .tab-content,
221
+ .pill-content {
222
+ > .active {
223
+ display: block;
224
+ }
225
+ }
226
+
227
+
228
+
229
+ // Dropdowns
230
+ // -------------------------
231
+
232
+ // Make dropdown carets use link color in navs
233
+ .nav .caret {
234
+ border-top-color: @link-color;
235
+ border-bottom-color: @link-color;
236
+ }
237
+ .nav a:hover .caret {
238
+ border-top-color: @link-hover-color;
239
+ border-bottom-color: @link-hover-color;
240
+ }
241
+
242
+ // Specific dropdowns
243
+ .nav-tabs .dropdown-menu {
244
+ // make dropdown border overlap tab border
245
+ margin-top: -1px;
246
+ // Remove the top rounded corners here since there is a hard edge above the menu
247
+ .border-top-radius(0);
248
+ }
@@ -0,0 +1,396 @@
1
+ /*! normalize.css v2.1.0 | MIT License | git.io/normalize */
2
+
3
+ // ==========================================================================
4
+ // HTML5 display definitions
5
+ // ==========================================================================
6
+
7
+ //
8
+ // Correct `block` display not defined in IE 8/9.
9
+ //
10
+
11
+ article,
12
+ aside,
13
+ details,
14
+ figcaption,
15
+ figure,
16
+ footer,
17
+ header,
18
+ hgroup,
19
+ main,
20
+ nav,
21
+ section,
22
+ summary {
23
+ display: block;
24
+ }
25
+
26
+ //
27
+ // Correct `inline-block` display not defined in IE 8/9.
28
+ //
29
+
30
+ audio,
31
+ canvas,
32
+ video {
33
+ display: inline-block;
34
+ }
35
+
36
+ //
37
+ // Prevent modern browsers from displaying `audio` without controls.
38
+ // Remove excess height in iOS 5 devices.
39
+ //
40
+
41
+ audio:not([controls]) {
42
+ display: none;
43
+ height: 0;
44
+ }
45
+
46
+ //
47
+ // Address styling not present in IE 8/9.
48
+ //
49
+
50
+ [hidden] {
51
+ display: none;
52
+ }
53
+
54
+ // ==========================================================================
55
+ // Base
56
+ // ==========================================================================
57
+
58
+ //
59
+ // 1. Set default font family to sans-serif.
60
+ // 2. Prevent iOS text size adjust after orientation change, without disabling
61
+ // user zoom.
62
+ //
63
+
64
+ html {
65
+ font-family: sans-serif; // 1
66
+ -webkit-text-size-adjust: 100%; // 2
67
+ -ms-text-size-adjust: 100%; // 2
68
+ }
69
+
70
+ //
71
+ // Remove default margin.
72
+ //
73
+
74
+ body {
75
+ margin: 0;
76
+ }
77
+
78
+ // ==========================================================================
79
+ // Links
80
+ // ==========================================================================
81
+
82
+ //
83
+ // Address `outline` inconsistency between Chrome and other browsers.
84
+ //
85
+
86
+ a:focus {
87
+ outline: thin dotted;
88
+ }
89
+
90
+ //
91
+ // Improve readability when focused and also mouse hovered in all browsers.
92
+ //
93
+
94
+ a:active,
95
+ a:hover {
96
+ outline: 0;
97
+ }
98
+
99
+ // ==========================================================================
100
+ // Typography
101
+ // ==========================================================================
102
+
103
+ //
104
+ // Address variable `h1` font-size and margin within `section` and `article`
105
+ // contexts in Firefox 4+, Safari 5, and Chrome.
106
+ //
107
+
108
+ h1 {
109
+ font-size: 2em;
110
+ margin: 0.67em 0;
111
+ }
112
+
113
+ //
114
+ // Address styling not present in IE 8/9, Safari 5, and Chrome.
115
+ //
116
+
117
+ abbr[title] {
118
+ border-bottom: 1px dotted;
119
+ }
120
+
121
+ //
122
+ // Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
123
+ //
124
+
125
+ b,
126
+ strong {
127
+ font-weight: bold;
128
+ }
129
+
130
+ //
131
+ // Address styling not present in Safari 5 and Chrome.
132
+ //
133
+
134
+ dfn {
135
+ font-style: italic;
136
+ }
137
+
138
+ //
139
+ // Address differences between Firefox and other browsers.
140
+ //
141
+
142
+ hr {
143
+ -moz-box-sizing: content-box;
144
+ box-sizing: content-box;
145
+ height: 0;
146
+ }
147
+
148
+ //
149
+ // Address styling not present in IE 8/9.
150
+ //
151
+
152
+ mark {
153
+ background: #ff0;
154
+ color: #000;
155
+ }
156
+
157
+ //
158
+ // Correct font family set oddly in Safari 5 and Chrome.
159
+ //
160
+
161
+ code,
162
+ kbd,
163
+ pre,
164
+ samp {
165
+ font-family: monospace, serif;
166
+ font-size: 1em;
167
+ }
168
+
169
+ //
170
+ // Improve readability of pre-formatted text in all browsers.
171
+ //
172
+
173
+ pre {
174
+ white-space: pre-wrap;
175
+ }
176
+
177
+ //
178
+ // Set consistent quote types.
179
+ //
180
+
181
+ q {
182
+ quotes: "\201C" "\201D" "\2018" "\2019";
183
+ }
184
+
185
+ //
186
+ // Address inconsistent and variable font size in all browsers.
187
+ //
188
+
189
+ small {
190
+ font-size: 80%;
191
+ }
192
+
193
+ //
194
+ // Prevent `sub` and `sup` affecting `line-height` in all browsers.
195
+ //
196
+
197
+ sub,
198
+ sup {
199
+ font-size: 75%;
200
+ line-height: 0;
201
+ position: relative;
202
+ vertical-align: baseline;
203
+ }
204
+
205
+ sup {
206
+ top: -0.5em;
207
+ }
208
+
209
+ sub {
210
+ bottom: -0.25em;
211
+ }
212
+
213
+ // ==========================================================================
214
+ // Embedded content
215
+ // ==========================================================================
216
+
217
+ //
218
+ // Remove border when inside `a` element in IE 8/9.
219
+ //
220
+
221
+ img {
222
+ border: 0;
223
+ }
224
+
225
+ //
226
+ // Correct overflow displayed oddly in IE 9.
227
+ //
228
+
229
+ svg:not(:root) {
230
+ overflow: hidden;
231
+ }
232
+
233
+ // ==========================================================================
234
+ // Figures
235
+ // ==========================================================================
236
+
237
+ //
238
+ // Address margin not present in IE 8/9 and Safari 5.
239
+ //
240
+
241
+ figure {
242
+ margin: 0;
243
+ }
244
+
245
+ // ==========================================================================
246
+ // Forms
247
+ // ==========================================================================
248
+
249
+ //
250
+ // Define consistent border, margin, and padding.
251
+ //
252
+
253
+ fieldset {
254
+ border: 1px solid #c0c0c0;
255
+ margin: 0 2px;
256
+ padding: 0.35em 0.625em 0.75em;
257
+ }
258
+
259
+ //
260
+ // 1. Correct `color` not being inherited in IE 8/9.
261
+ // 2. Remove padding so people aren't caught out if they zero out fieldsets.
262
+ //
263
+
264
+ legend {
265
+ border: 0; // 1
266
+ padding: 0; // 2
267
+ }
268
+
269
+ //
270
+ // 1. Correct font family not being inherited in all browsers.
271
+ // 2. Correct font size not being inherited in all browsers.
272
+ // 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
273
+ //
274
+
275
+ button,
276
+ input,
277
+ select,
278
+ textarea {
279
+ font-family: inherit; // 1
280
+ font-size: 100%; // 2
281
+ margin: 0; // 3
282
+ }
283
+
284
+ //
285
+ // Address Firefox 4+ setting `line-height` on `input` using `!important` in
286
+ // the UA stylesheet.
287
+ //
288
+
289
+ button,
290
+ input {
291
+ line-height: normal;
292
+ }
293
+
294
+ //
295
+ // Address inconsistent `text-transform` inheritance for `button` and `select`.
296
+ // All other form control elements do not inherit `text-transform` values.
297
+ // Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
298
+ // Correct `select` style inheritance in Firefox 4+ and Opera.
299
+ //
300
+
301
+ button,
302
+ select {
303
+ text-transform: none;
304
+ }
305
+
306
+ //
307
+ // 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
308
+ // and `video` controls.
309
+ // 2. Correct inability to style clickable `input` types in iOS.
310
+ // 3. Improve usability and consistency of cursor style between image-type
311
+ // `input` and others.
312
+ //
313
+
314
+ button,
315
+ html input[type="button"], // 1
316
+ input[type="reset"],
317
+ input[type="submit"] {
318
+ -webkit-appearance: button; // 2
319
+ cursor: pointer; // 3
320
+ }
321
+
322
+ //
323
+ // Re-set default cursor for disabled elements.
324
+ //
325
+
326
+ button[disabled],
327
+ html input[disabled] {
328
+ cursor: default;
329
+ }
330
+
331
+ //
332
+ // 1. Address box sizing set to `content-box` in IE 8/9.
333
+ // 2. Remove excess padding in IE 8/9.
334
+ //
335
+
336
+ input[type="checkbox"],
337
+ input[type="radio"] {
338
+ box-sizing: border-box; // 1
339
+ padding: 0; // 2
340
+ }
341
+
342
+ //
343
+ // 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
344
+ // 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
345
+ // (include `-moz` to future-proof).
346
+ //
347
+
348
+ input[type="search"] {
349
+ -webkit-appearance: textfield; // 1
350
+ -moz-box-sizing: content-box;
351
+ -webkit-box-sizing: content-box; // 2
352
+ box-sizing: content-box;
353
+ }
354
+
355
+ //
356
+ // Remove inner padding and search cancel button in Safari 5 and Chrome
357
+ // on OS X.
358
+ //
359
+
360
+ input[type="search"]::-webkit-search-cancel-button,
361
+ input[type="search"]::-webkit-search-decoration {
362
+ -webkit-appearance: none;
363
+ }
364
+
365
+ //
366
+ // Remove inner padding and border in Firefox 4+.
367
+ //
368
+
369
+ button::-moz-focus-inner,
370
+ input::-moz-focus-inner {
371
+ border: 0;
372
+ padding: 0;
373
+ }
374
+
375
+ //
376
+ // 1. Remove default vertical scrollbar in IE 8/9.
377
+ // 2. Improve readability and alignment in all browsers.
378
+ //
379
+
380
+ textarea {
381
+ overflow: auto; // 1
382
+ vertical-align: top; // 2
383
+ }
384
+
385
+ // ==========================================================================
386
+ // Tables
387
+ // ==========================================================================
388
+
389
+ //
390
+ // Remove most spacing between table cells.
391
+ //
392
+
393
+ table {
394
+ border-collapse: collapse;
395
+ border-spacing: 0;
396
+ }
@@ -0,0 +1,55 @@
1
+ //
2
+ // Pager pagination
3
+ // --------------------------------------------------
4
+
5
+
6
+ .pager {
7
+ padding-left: 0;
8
+ margin: @line-height-computed 0;
9
+ list-style: none;
10
+ text-align: center;
11
+ .clearfix();
12
+ li {
13
+ display: inline;
14
+ > a,
15
+ > span {
16
+ display: inline-block;
17
+ padding: 5px 14px;
18
+ background-color: @pagination-bg;
19
+ border: 1px solid @pagination-border;
20
+ border-radius: @pager-border-radius;
21
+ }
22
+
23
+ > a:hover,
24
+ > a:focus {
25
+ text-decoration: none;
26
+ background-color: @pagination-hover-bg;
27
+ }
28
+ }
29
+
30
+ .next {
31
+ > a,
32
+ > span {
33
+ float: right;
34
+ }
35
+ }
36
+
37
+ .previous {
38
+ > a,
39
+ > span {
40
+ float: left;
41
+ }
42
+ }
43
+
44
+ .disabled {
45
+ > a,
46
+ > a:hover,
47
+ > a:focus,
48
+ > span {
49
+ color: @pager-disabled-color;
50
+ background-color: @pagination-bg;
51
+ cursor: not-allowed;
52
+ }
53
+ }
54
+
55
+ }