twbs_less_rails 1.0.2

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