middleman-ganbaruzoi 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +19 -38
  3. data/lib/middleman-ganbaruzoi/template.rb +23 -29
  4. data/lib/middleman-ganbaruzoi/template/shared/Gemfile +5 -3
  5. data/lib/middleman-ganbaruzoi/template/shared/config.rb +5 -5
  6. data/lib/middleman-ganbaruzoi/template/source/assets/images/.gitkeep +0 -0
  7. data/lib/middleman-ganbaruzoi/template/source/assets/javascripts/.gitkeep +0 -0
  8. data/lib/middleman-ganbaruzoi/template/source/assets/javascripts/all.js.coffee +11 -0
  9. data/lib/middleman-ganbaruzoi/template/source/assets/stylesheets/.gitkeep +0 -0
  10. data/lib/middleman-ganbaruzoi/template/source/assets/stylesheets/_mixin.sass +22 -0
  11. data/lib/middleman-ganbaruzoi/template/source/{css → assets/stylesheets/options}/_normalize.scss +175 -19
  12. data/lib/middleman-ganbaruzoi/template/source/assets/stylesheets/style.sass +25 -0
  13. data/lib/middleman-ganbaruzoi/template/source/assets/stylesheets/variables/_color.scss +18 -0
  14. data/lib/middleman-ganbaruzoi/template/source/assets/stylesheets/variables/_common.sass +1 -0
  15. data/lib/middleman-ganbaruzoi/template/source/layouts/layout.slim +7 -9
  16. data/lib/middleman-ganbaruzoi/template/source/{layouts → partial}/_footer.slim +0 -0
  17. data/lib/middleman-ganbaruzoi/template/source/{layouts → partial}/_header.slim +0 -0
  18. data/lib/middleman-ganbaruzoi/template/source/{layouts → partial}/_script.slim +0 -0
  19. data/lib/middleman-ganbaruzoi/version.rb +1 -1
  20. data/middleman-ganbaruzoi.gemspec +9 -8
  21. metadata +78 -56
  22. data/lib/middleman-ganbaruzoi/template/source/css/_grid.sass +0 -53
  23. data/lib/middleman-ganbaruzoi/template/source/css/_media-queries.sass +0 -23
  24. data/lib/middleman-ganbaruzoi/template/source/css/_mixin.sass +0 -99
  25. data/lib/middleman-ganbaruzoi/template/source/css/_module.sass +0 -57
  26. data/lib/middleman-ganbaruzoi/template/source/css/_variable.sass +0 -21
  27. data/lib/middleman-ganbaruzoi/template/source/css/style.sass +0 -69
  28. data/lib/middleman-ganbaruzoi/template/source/js/all.js.coffee +0 -14
  29. data/lib/middleman-ganbaruzoi/template/source/js/core/jquery-1.11.1.min.js +0 -4
  30. data/lib/middleman-ganbaruzoi/template/source/js/core/jquery-2.1.1.min.js +0 -4
  31. data/lib/middleman-ganbaruzoi/template/source/js/core/jquery.easing-1.3.min.js +0 -44
  32. data/lib/middleman-ganbaruzoi/template/source/js/core/jquery.transit-0.99.min.js +0 -22
  33. data/lib/middleman-ganbaruzoi/template/source/js/lib/cssua.min.js +0 -7
  34. data/lib/middleman-ganbaruzoi/template/source/js/lib/modernizr.min.js +0 -5
  35. data/lib/middleman-ganbaruzoi/template/source/js/lib/retina.min.js +0 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7834d84d4a1f155c950a194ca1103aa4ad463de
4
- data.tar.gz: c73946b9d34194f3d8b36420784c2c0ab527c97d
3
+ metadata.gz: f8431aeb251c3d7fcfbb917ef6e31fb3c63f3a38
4
+ data.tar.gz: 53c4c2842a1a1ba1607e436714ee75b36ea3f812
5
5
  SHA512:
6
- metadata.gz: 7dae14d327f5cd0ab43669690534ae2a18c173cda275b8c1d08aca383a3797e2ab44812dc8df2a8abf38dea952eaaafdea1a12ae4e0700cd263b0af2c421dd8f
7
- data.tar.gz: 3c59cda22b4aac8a71dce43d80883f2525665fda528b8cb683ded486cdfc1947d955c9260b1b9742a2386537f4340d02c4ea18d6b1818f0eba64fc482e529605
6
+ metadata.gz: 7266a60093c59da2f10ec5e407cc6440ddb08ba37794a6453c5fa82a098be719e663d61b9108bb90e0d1af17b0c021539c6ecb18cc5b9d775ac541edcac4d8c7
7
+ data.tar.gz: e765117ef73def4bd3eeb88aa3de14bc06ff03907b74bda93f4932148434dbfd8a4c9ae3185ac301406fb68f8742156a90b59bd802fc66947423b9f1b7f119be
data/README.md CHANGED
@@ -7,29 +7,31 @@ Middleman-Ganbaruzoi is a boilerplate of middleman using using Slim, Sass and Co
7
7
  <img src="http://f.cl.ly/items/00201Z12410h1W2N0r2j/%E5%86%99%E7%9C%9F%202014-06-07%2022%2011%2032_1.png" width="450" alt="今日も一日がんばるぞい!">
8
8
 
9
9
 
10
- ## Ready:
10
+ ## Feature
11
11
 
12
- * Slim
13
- * Sass(SASS) + Compass
14
- * CoffeeScript
15
- * CSS Autoprefixer
16
- * LiveReload
12
+ * Middlemanの初期設定がだいたい済んだ感じですぐに開発を始められる
13
+ - ベンダープレフィックスが自動で付与される
14
+ - LiveReloadでファイルを保存するとブラウザが自動でリロードする
15
+ - GitHub Pagesへのデプロイが簡単
16
+ * Slim + Sass(SASS) + CoffeeScriptで開発ができる
17
+ - Sassは[Bourbon](http://bourbon.io/) & [Neat](http://neat.bourbon.io/)の使用を前提とした構成
17
18
 
18
19
 
19
- ## Install
20
+ ## How to Use
21
+ ### Set Up
20
22
 
21
- $ gem install middleman
22
-
23
- $ gem install middleman-ganbaruzoi
24
-
25
- $ middleman init project_name --template ganbaruzoi
23
+ $ gem install middleman middleman-ganbaruzoi
24
+ $ mkdir xxxxx
25
+ $ cd xxxxx
26
+ $ middleman init . --template ganbaruzoi
26
27
 
28
+ ### Develop
27
29
 
28
- ## Run
30
+ $ middleman server
29
31
 
30
- $ cd project_name
31
-
32
- $ middleman server
32
+ ### Build
33
+
34
+ $ middleman build
33
35
 
34
36
 
35
37
  ## Author
@@ -42,25 +44,4 @@ Web Designer in Kyoto, Japan.
42
44
  * [Twitter](https://twitter.com/ryo_dg)
43
45
  * [JAYPEG](https://jypg.net/ryo_dg)
44
46
  * [Dribbble](https://dribbble.com/ryo_dg)
45
- * [GitHub](https://github.com/ryonakae)
46
-
47
-
48
- ## Change Log
49
-
50
- ### 0.0.4 (2014-08-18)
51
-
52
- * `js/lib`ディレクトリの指定間違えてたので修正
53
-
54
- ### 0.0.3 (2014-08-18)
55
-
56
- * `template.rb`の`js`ディレクトリの設定おかしかったので修正
57
-
58
- ### 0.0.2 (2014-08-18)
59
-
60
- * `README.md`修正したやつをrubygems.orgに反映してなかったので、もうよく分からんのでアップデートした
61
-
62
- ### 0.0.1 (2014-08-18)
63
-
64
- * RubyGem化(なのでバージョンは新たに0.0.1からスタート)
65
- * `layouts`以下のヘッダーやらのパーシャルファイルに、`_header.slim`のようにアンダースコアを先頭に追加した
66
- * `README.md`修正
47
+ * [GitHub](https://github.com/ryonakae)
@@ -5,19 +5,19 @@ module Middleman
5
5
 
6
6
  class Template < Middleman::Templates::Base
7
7
  class_option 'css_dir',
8
- default: 'css',
8
+ default: 'assets/stylesheets',
9
9
  desc: 'The path to the css files'
10
+ class_option 'css_options_dir',
11
+ default: 'assets/stylesheets/options',
12
+ desc: 'The path to the css options files'
13
+ class_option 'css_variables_dir',
14
+ default: 'assets/stylesheets/variables',
15
+ desc: 'The path to the css variables files'
10
16
  class_option 'js_dir',
11
- default: 'js',
17
+ default: 'assets/javascripts',
12
18
  desc: 'The path to the javascript files'
13
- class_option 'js_core_dir',
14
- default: 'js/core',
15
- desc: 'The path to the javascript core files'
16
- class_option 'js_lib_dir',
17
- default: 'js/lib',
18
- desc: 'The path to the javascript library files'
19
19
  class_option 'images_dir',
20
- default: 'img',
20
+ default: 'assets/images',
21
21
  desc: 'The path to the image files'
22
22
 
23
23
  def self.source_root
@@ -27,32 +27,26 @@ module Middleman
27
27
  def build_scaffold
28
28
  template 'shared/Gemfile', File.join(location, 'Gemfile')
29
29
  template 'shared/config.rb', File.join(location, 'config.rb')
30
+
30
31
  copy_file 'source/index.html.slim', File.join(location, 'source/index.html.slim')
31
32
  copy_file 'source/layouts/layout.slim', File.join(location, 'source/layouts/layout.slim')
32
- copy_file 'source/layouts/_header.slim', File.join(location, 'source/layouts/_header.slim')
33
- copy_file 'source/layouts/_footer.slim', File.join(location, 'source/layouts/_footer.slim')
34
- copy_file 'source/layouts/_script.slim', File.join(location, 'source/layouts/_script.slim')
33
+ copy_file 'source/partial/_header.slim', File.join(location, 'source/partial/_header.slim')
34
+ copy_file 'source/partial/_footer.slim', File.join(location, 'source/partial/_footer.slim')
35
+ copy_file 'source/partial/_script.slim', File.join(location, 'source/partial/_script.slim')
35
36
 
36
37
  empty_directory File.join(location, 'source', options[:css_dir])
37
- copy_file 'source/css/style.sass', File.join(location, 'source', options[:css_dir], 'style.sass')
38
- copy_file 'source/css/_grid.sass', File.join(location, 'source', options[:css_dir], '_grid.sass')
39
- copy_file 'source/css/_media-queries.sass', File.join(location, 'source', options[:css_dir], '_media-queries.sass')
40
- copy_file 'source/css/_mixin.sass', File.join(location, 'source', options[:css_dir], '_mixin.sass')
41
- copy_file 'source/css/_module.sass', File.join(location, 'source', options[:css_dir], '_module.sass')
42
- copy_file 'source/css/_normalize.scss', File.join(location, 'source', options[:css_dir], '_normalize.scss')
43
- copy_file 'source/css/_variable.sass', File.join(location, 'source', options[:css_dir], '_variable.sass')
38
+ copy_file 'source/assets/stylesheets/style.sass', File.join(location, 'source', options[:css_dir], 'style.sass')
39
+ copy_file 'source/assets/stylesheets/_mixin.sass', File.join(location, 'source', options[:css_dir], '_mixin.sass')
40
+
41
+ empty_directory File.join(location, 'source', options[:css_options_dir])
42
+ copy_file 'source/assets/stylesheets/options/_normalize.scss', File.join(location, 'source', options[:css_options_dir], '_normalize.scss')
43
+
44
+ empty_directory File.join(location, 'source', options[:css_variables_dir])
45
+ copy_file 'source/assets/stylesheets/variables/_color.scss', File.join(location, 'source', options[:css_variables_dir], '_color.scss')
46
+ copy_file 'source/assets/stylesheets/variables/_common.sass', File.join(location, 'source', options[:css_variables_dir], '_common.sass')
44
47
 
45
48
  empty_directory File.join(location, 'source', options[:js_dir])
46
- copy_file 'source/js/all.js.coffee', File.join(location, 'source', options[:js_dir], 'all.js.coffee')
47
- empty_directory File.join(location, 'source', options[:js_core_dir])
48
- copy_file 'source/js/core/jquery-1.11.1.min.js', File.join(location, 'source', options[:js_core_dir], 'jquery-1.11.1.min.js')
49
- copy_file 'source/js/core/jquery-2.1.1.min.js', File.join(location, 'source', options[:js_core_dir], 'jquery-2.1.1.min.js')
50
- copy_file 'source/js/core/jquery.easing-1.3.min.js', File.join(location, 'source', options[:js_core_dir], 'jquery.easing-1.3.min.js')
51
- copy_file 'source/js/core/jquery.transit-0.99.min.js', File.join(location, 'source', options[:js_core_dir], 'jquery.transit-0.99.min.js')
52
- empty_directory File.join(location, 'source', options[:js_lib_dir])
53
- copy_file 'source/js/lib/cssua.min.js', File.join(location, 'source', options[:js_lib_dir], 'cssua.min.js')
54
- copy_file 'source/js/lib/modernizr.min.js', File.join(location, 'source', options[:js_lib_dir], 'modernizr.min.js')
55
- copy_file 'source/js/lib/retina.min.js', File.join(location, 'source', options[:js_lib_dir], 'retina.min.js')
49
+ copy_file 'source/assets/javascripts/all.js.coffee', File.join(location, 'source', options[:js_dir], 'all.js.coffee')
56
50
 
57
51
  empty_directory File.join(location, 'source', options[:images_dir])
58
52
  end
@@ -1,8 +1,10 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
3
  gem "middleman", "~><%= Middleman::VERSION %>"
4
- gem "middleman-livereload", "~> 3.1.0"
5
- gem "slim", "~> 2.0.3"
4
+ gem "middleman-autoprefixer", ">= 2.4.3"
5
+ gem "slim", ">= 2.0"
6
+ gem "bourbon", ">= 4.2.0"
7
+ gem "neat", ">= 1.7.1"
6
8
 
7
- gem "middleman-autoprefixer"
9
+ gem "middleman-livereload"
8
10
  gem "middleman-deploy"
@@ -56,10 +56,10 @@ end
56
56
  require 'slim'
57
57
  set :slim, { :pretty => true, :sort_attrs => false, :format => :html5 }
58
58
 
59
- set :css_dir, 'css'
60
- set :js_dir, 'js'
61
- set :images_dir, 'img'
62
- set :fonts_dir, 'font'
59
+ set :css_dir, 'assets/stylesheets'
60
+ set :js_dir, 'assets/javascripts'
61
+ set :images_dir, 'assets/images'
62
+ set :fonts_dir, 'assets/fonts'
63
63
 
64
64
  # Build-specific configuration
65
65
  configure :build do
@@ -80,7 +80,7 @@ configure :build do
80
80
  # set :http_prefix, "/Content/images/"
81
81
  end
82
82
 
83
- # Deploy
83
+ Deploy
84
84
  activate :deploy do |deploy|
85
85
  deploy.build_before = true
86
86
  deploy.method = :git
@@ -0,0 +1,11 @@
1
+ #= require_tree .
2
+
3
+
4
+ hello = ->
5
+ console.log('Hello World!')
6
+
7
+ hello()
8
+
9
+
10
+ # jQuery
11
+ $ ->
@@ -0,0 +1,22 @@
1
+ // Font Size (rem)
2
+ =rem-custom($size: 13)
3
+ font-size: $size + px
4
+ font-size: ($size / 10) + rem
5
+
6
+
7
+ // Inline Block
8
+ // Set Parent
9
+ =inline-block-custom-parent
10
+ font-size: 0
11
+ letter-spacing: -1em
12
+ word-spacing: -1em
13
+
14
+ // Set Child
15
+ =inline-block-custom
16
+ display: inline-block
17
+ vertical-align: top
18
+ *display: inline
19
+ *zoom: 1
20
+ font-size: 1rem
21
+ letter-spacing: normal
22
+ word-spacing: normal
@@ -1,15 +1,32 @@
1
- /*! normalize.css v3.0.1 | MIT License | git.io/normalize */
1
+ /* ==========================================================================
2
+ Normalize.scss settings
3
+ ========================================================================== */
4
+ /**
5
+ * Includes legacy browser support IE6/7
6
+ *
7
+ * Set to false if you want to drop support for IE6 and IE7
8
+ */
9
+
10
+ $legacy_browser_support: false !default;
11
+
12
+ /* Base
13
+ ========================================================================== */
2
14
 
3
15
  /**
4
16
  * 1. Set default font family to sans-serif.
5
17
  * 2. Prevent iOS text size adjust after orientation change, without disabling
6
- * user zoom.
18
+ * user zoom.
19
+ * 3. Corrects text resizing oddly in IE 6/7 when body `font-size` is set using
20
+ * `em` units.
7
21
  */
8
22
 
9
23
  html {
10
24
  font-family: sans-serif; /* 1 */
11
25
  -ms-text-size-adjust: 100%; /* 2 */
12
26
  -webkit-text-size-adjust: 100%; /* 2 */
27
+ @if $legacy_browser_support {
28
+ *font-size: 100%; /* 3 */
29
+ }
13
30
  }
14
31
 
15
32
  /**
@@ -25,7 +42,8 @@ body {
25
42
 
26
43
  /**
27
44
  * Correct `block` display not defined for any HTML5 element in IE 8/9.
28
- * Correct `block` display not defined for `details` or `summary` in IE 10/11 and Firefox.
45
+ * Correct `block` display not defined for `details` or `summary` in IE 10/11
46
+ * and Firefox.
29
47
  * Correct `block` display not defined for `main` in IE 11.
30
48
  */
31
49
 
@@ -38,6 +56,7 @@ footer,
38
56
  header,
39
57
  hgroup,
40
58
  main,
59
+ menu,
41
60
  nav,
42
61
  section,
43
62
  summary {
@@ -45,7 +64,7 @@ summary {
45
64
  }
46
65
 
47
66
  /**
48
- * 1. Correct `inline-block` display not defined in IE 8/9.
67
+ * 1. Correct `inline-block` display not defined in IE 6/7/8/9 and Firefox 3.
49
68
  * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
50
69
  */
51
70
 
@@ -55,10 +74,14 @@ progress,
55
74
  video {
56
75
  display: inline-block; /* 1 */
57
76
  vertical-align: baseline; /* 2 */
77
+ @if $legacy_browser_support {
78
+ *display: inline;
79
+ *zoom: 1;
80
+ }
58
81
  }
59
82
 
60
83
  /**
61
- * Prevent modern browsers from displaying `audio` without controls.
84
+ * Prevents modern browsers from displaying `audio` without controls.
62
85
  * Remove excess height in iOS 5 devices.
63
86
  */
64
87
 
@@ -85,16 +108,17 @@ template {
85
108
  */
86
109
 
87
110
  a {
88
- background: transparent;
111
+ background-color: transparent;
89
112
  }
90
113
 
91
114
  /**
92
115
  * Improve readability when focused and also mouse hovered in all browsers.
93
116
  */
94
117
 
95
- a:active,
96
- a:hover {
97
- outline: 0;
118
+ a {
119
+ &:active, &:hover {
120
+ outline: 0;
121
+ };
98
122
  }
99
123
 
100
124
  /* Text-level semantics
@@ -117,6 +141,12 @@ strong {
117
141
  font-weight: bold;
118
142
  }
119
143
 
144
+ @if $legacy_browser_support {
145
+ blockquote {
146
+ margin: 1em 40px;
147
+ }
148
+ }
149
+
120
150
  /**
121
151
  * Address styling not present in Safari and Chrome.
122
152
  */
@@ -135,8 +165,35 @@ h1 {
135
165
  margin: 0.67em 0;
136
166
  }
137
167
 
168
+ @if $legacy_browser_support {
169
+ h2 {
170
+ font-size: 1.5em;
171
+ margin: 0.83em 0;
172
+ }
173
+
174
+ h3 {
175
+ font-size: 1.17em;
176
+ margin: 1em 0;
177
+ }
178
+
179
+ h4 {
180
+ font-size: 1em;
181
+ margin: 1.33em 0;
182
+ }
183
+
184
+ h5 {
185
+ font-size: 0.83em;
186
+ margin: 1.67em 0;
187
+ }
188
+
189
+ h6 {
190
+ font-size: 0.67em;
191
+ margin: 2.33em 0;
192
+ }
193
+ }
194
+
138
195
  /**
139
- * Address styling not present in IE 8/9.
196
+ * Addresses styling not present in IE 8/9.
140
197
  */
141
198
 
142
199
  mark {
@@ -144,6 +201,36 @@ mark {
144
201
  color: #000;
145
202
  }
146
203
 
204
+ @if $legacy_browser_support {
205
+
206
+ /**
207
+ * Addresses margins set differently in IE 6/7.
208
+ */
209
+
210
+ p,
211
+ pre {
212
+ *margin: 1em 0;
213
+ }
214
+
215
+ /*
216
+ * Addresses CSS quotes not supported in IE 6/7.
217
+ */
218
+
219
+ q {
220
+ *quotes: none;
221
+ }
222
+
223
+ /*
224
+ * Addresses `quotes` property not supported in Safari 4.
225
+ */
226
+
227
+ q:before,
228
+ q:after {
229
+ content: '';
230
+ content: none;
231
+ }
232
+ }
233
+
147
234
  /**
148
235
  * Address inconsistent and variable font size in all browsers.
149
236
  */
@@ -172,15 +259,62 @@ sub {
172
259
  bottom: -0.25em;
173
260
  }
174
261
 
262
+ @if $legacy_browser_support {
263
+
264
+ /* ==========================================================================
265
+ Lists
266
+ ========================================================================== */
267
+
268
+ /*
269
+ * Addresses margins set differently in IE 6/7.
270
+ */
271
+
272
+ dl,
273
+ menu,
274
+ ol,
275
+ ul {
276
+ *margin: 1em 0;
277
+ }
278
+
279
+ dd {
280
+ *margin: 0 0 0 40px;
281
+ }
282
+
283
+ /*
284
+ * Addresses paddings set differently in IE 6/7.
285
+ */
286
+
287
+ menu,
288
+ ol,
289
+ ul {
290
+ *padding: 0 0 0 40px;
291
+ }
292
+
293
+ /*
294
+ * Corrects list images handled incorrectly in IE 7.
295
+ */
296
+
297
+ nav ul,
298
+ nav ol {
299
+ *list-style: none;
300
+ *list-style-image: none;
301
+ }
302
+
303
+ }
304
+
175
305
  /* Embedded content
176
306
  ========================================================================== */
177
307
 
178
308
  /**
179
- * Remove border when inside `a` element in IE 8/9/10.
309
+ * 1. Remove border when inside `a` element in IE 8/9/10.
310
+ * 2. Improves image quality when scaled in IE 7.
180
311
  */
181
312
 
182
313
  img {
183
314
  border: 0;
315
+ @if $legacy_browser_support {
316
+ *-ms-interpolation-mode: bicubic; /* 2 */
317
+ }
184
318
  }
185
319
 
186
320
  /**
@@ -222,6 +356,7 @@ pre {
222
356
 
223
357
  /**
224
358
  * Address odd `em`-unit font size rendering in all browsers.
359
+ * Correct font family set oddly in IE 6, Safari 4/5, and Chrome.
225
360
  */
226
361
 
227
362
  code,
@@ -229,6 +364,9 @@ kbd,
229
364
  pre,
230
365
  samp {
231
366
  font-family: monospace, monospace;
367
+ @if $legacy_browser_support {
368
+ _font-family: 'courier new', monospace;
369
+ }
232
370
  font-size: 1em;
233
371
  }
234
372
 
@@ -242,9 +380,10 @@ samp {
242
380
 
243
381
  /**
244
382
  * 1. Correct color not being inherited.
245
- * Known issue: affects color of disabled elements.
383
+ * Known issue: affects color of disabled elements.
246
384
  * 2. Correct font properties not being inherited.
247
385
  * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
386
+ * 4. Improves appearance and consistency in all browsers.
248
387
  */
249
388
 
250
389
  button,
@@ -255,6 +394,10 @@ textarea {
255
394
  color: inherit; /* 1 */
256
395
  font: inherit; /* 2 */
257
396
  margin: 0; /* 3 */
397
+ @if $legacy_browser_support {
398
+ vertical-align: baseline; /* 3 */
399
+ *vertical-align: middle; /* 3 */
400
+ }
258
401
  }
259
402
 
260
403
  /**
@@ -279,10 +422,12 @@ select {
279
422
 
280
423
  /**
281
424
  * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
282
- * and `video` controls.
425
+ * and `video` controls.
283
426
  * 2. Correct inability to style clickable `input` types in iOS.
284
427
  * 3. Improve usability and consistency of cursor style between image-type
285
- * `input` and others.
428
+ * `input` and others.
429
+ * 4. Removes inner spacing in IE 7 without affecting normal text inputs.
430
+ * Known issue: inner spacing remains in IE 6.
286
431
  */
287
432
 
288
433
  button,
@@ -291,6 +436,9 @@ input[type="reset"],
291
436
  input[type="submit"] {
292
437
  -webkit-appearance: button; /* 2 */
293
438
  cursor: pointer; /* 3 */
439
+ @if $legacy_browser_support {
440
+ *overflow: visible; /* 4 */
441
+ }
294
442
  }
295
443
 
296
444
  /**
@@ -322,17 +470,19 @@ input {
322
470
  }
323
471
 
324
472
  /**
325
- * It's recommended that you don't attempt to style these elements.
326
- * Firefox's implementation doesn't respect box-sizing, padding, or width.
327
- *
328
473
  * 1. Address box sizing set to `content-box` in IE 8/9/10.
329
474
  * 2. Remove excess padding in IE 8/9/10.
475
+ * Known issue: excess padding remains in IE 6.
330
476
  */
331
477
 
332
478
  input[type="checkbox"],
333
479
  input[type="radio"] {
334
480
  box-sizing: border-box; /* 1 */
335
481
  padding: 0; /* 2 */
482
+ @if $legacy_browser_support {
483
+ *height: 13px; /* 3 */
484
+ *width: 13px; /* 3 */
485
+ }
336
486
  }
337
487
 
338
488
  /**
@@ -349,7 +499,7 @@ input[type="number"]::-webkit-outer-spin-button {
349
499
  /**
350
500
  * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
351
501
  * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
352
- * (include `-moz` to future-proof).
502
+ * (include `-moz` to future-proof).
353
503
  */
354
504
 
355
505
  input[type="search"] {
@@ -383,11 +533,17 @@ fieldset {
383
533
  /**
384
534
  * 1. Correct `color` not being inherited in IE 8/9/10/11.
385
535
  * 2. Remove padding so people aren't caught out if they zero out fieldsets.
536
+ * 3. Corrects text not wrapping in Firefox 3.
537
+ * 4. Corrects alignment displayed oddly in IE 6/7.
386
538
  */
387
539
 
388
540
  legend {
389
541
  border: 0; /* 1 */
390
542
  padding: 0; /* 2 */
543
+ @if $legacy_browser_support {
544
+ white-space: normal; /* 3 */
545
+ *margin-left: -7px; /* 4 */
546
+ }
391
547
  }
392
548
 
393
549
  /**
@@ -422,4 +578,4 @@ table {
422
578
  td,
423
579
  th {
424
580
  padding: 0;
425
- }
581
+ }