purecss-sass 1.0.1.1 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 29be610a9604dc25eb21a95b2f52b43684c9734cc710611fa9da2de4270e0985
4
- data.tar.gz: '09d3e36248dbfee032d526d58b955ac4f39e3815be4040d6e2465fd2ae9623c2'
3
+ metadata.gz: 373f5237b50d87914d10bcd24a8d7af59612c636a1fe051ae92df3286cabf872
4
+ data.tar.gz: c9dfb109a9cfa6cec609f68006e9bdef3750a88650a73adb8283e9908fa5aa56
5
5
  SHA512:
6
- metadata.gz: 02fcd94f03b5d0d2feda132a2521d2eb4ba1eb353bed06fb4284a3ce237351121ec7ccc216271d6e5f19144585a6a6acde7e15dd01fe2eb2afc80115b882078f
7
- data.tar.gz: 95f29ea5729b763dab8632f8f403daf44ff662c4b11abd3729637f27926ae15efd9ea269d0d153bb33ae7c6a464b5a1f1026f9bb8d00b97505a4fc738b3710aa
6
+ metadata.gz: 92da1a0fe8b2a5384ae441fbcc506f624dc641baa58244c6451f42c78130824652a52227c4f7ece9c3159e5591e351c097b432ccb5aa6b500d678202ef7091c2
7
+ data.tar.gz: 361d309c40a8433d447ec50aaa276b66331f8e097a5ab92e49c7fead990b8b7654362e8ecfc0ee76b0c6a7a4d8a9cd22082ef1884afdf26b709caad38e1a263d
@@ -0,0 +1,20 @@
1
+ name: CI
2
+ on: [push, pull_request]
3
+ jobs:
4
+ tests:
5
+ runs-on: ubuntu-latest
6
+ strategy:
7
+ fail-fast: false
8
+ matrix:
9
+ ruby: ['2.5', '2.6', '2.7']
10
+ name: Ruby ${{ matrix.ruby }}
11
+ steps:
12
+ - name: Checkout
13
+ uses: actions/checkout@v2
14
+ - name: Set up Ruby
15
+ uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: ${{ matrix.ruby }}
18
+ bundler-cache: true
19
+ - name: Run tests
20
+ run: bundle exec rake
data/.gitignore CHANGED
@@ -1,12 +1,14 @@
1
1
  /.bundle/
2
2
  /.sass-cache/
3
3
  /.yardoc
4
- /Gemfile.lock
5
4
  /_yardoc/
6
5
  /coverage/
7
6
  /doc/
7
+ /Gemfile.lock
8
8
  /pkg/
9
+ /spec/reports/
9
10
  /spec/support/dummy_rails_app/log/
11
+ /spec/support/dummy_rails_app/public/
10
12
  /spec/support/dummy_rails_app/tmp/
11
- /spec/reports/
12
13
  /tmp/
14
+ .rspec_status
data/.rspec CHANGED
@@ -1,2 +1,3 @@
1
1
  --format documentation
2
2
  --color
3
+ --require spec_helper
@@ -0,0 +1,27 @@
1
+ Layout/IndentationConsistency:
2
+ EnforcedStyle: indented_internal_methods
3
+
4
+ Metrics/BlockLength:
5
+ ExcludedMethods: [RSpec.describe, context]
6
+
7
+ Metrics/LineLength:
8
+ Max: 100
9
+
10
+ Metrics/ParameterLists:
11
+ Max: 6
12
+
13
+ Naming/FileName:
14
+ Exclude:
15
+ - lib/*
16
+
17
+ Naming/MethodParameterName:
18
+ MinNameLength: 2
19
+
20
+ Style/BlockDelimiters:
21
+ EnforcedStyle: braces_for_chaining
22
+
23
+ Style/Documentation:
24
+ Enabled: false
25
+
26
+ Style/FrozenStringLiteralComment:
27
+ EnforcedStyle: never
@@ -1,3 +1,27 @@
1
+ ## 2.0.3 (2020-05-12)
2
+
3
+ - Update assets to match upstream version
4
+
5
+ Framework version: Pure v2.0.3
6
+
7
+ ## 2.0.2 (2020-05-12)
8
+
9
+ - Update assets to match upstream version
10
+
11
+ Framework version: Pure v2.0.2
12
+
13
+ ## 2.0.1 (2020-05-07)
14
+
15
+ - Update assets to match upstream version
16
+
17
+ Framework version: Pure v2.0.1
18
+
19
+ ## 2.0.0 (2020-05-06)
20
+
21
+ - Update assets to match upstream version
22
+
23
+ Framework version: Pure v2.0.0
24
+
1
25
  ## 1.0.1.1 (2019-10-14)
2
26
 
3
27
  - Replace `sass` dependency with `sassc`.
data/README.md CHANGED
@@ -1,23 +1,30 @@
1
1
  # Pure CSS for Sass
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/purecss-sass.svg)](http://badge.fury.io/rb/purecss-sass)
4
- [![npm version](https://badge.fury.io/js/purecss-sass.svg)](http://badge.fury.io/js/purecss-sass)
5
- [![Build Status](https://travis-ci.org/rubysamurai/purecss-sass.svg?branch=master)](https://travis-ci.org/rubysamurai/purecss-sass)
3
+ [![Gem Version](https://badge.fury.io/rb/purecss-sass.svg)](https://badge.fury.io/rb/purecss-sass)
4
+ [![npm version](https://badge.fury.io/js/purecss-sass.svg)](https://badge.fury.io/js/purecss-sass)
5
+ [![CI](https://github.com/rubysamurai/purecss-sass/workflows/CI/badge.svg)](https://github.com/rubysamurai/purecss-sass/actions?query=workflow%3ACI)
6
6
 
7
- [Pure](https://purecss.io/) is a set of small, responsive CSS modules that you can use in every web project.
8
-
9
- `purecss-sass` is a Sass-powered version of Pure CSS for your applications. It allows to include all of Pure's components at once or load them individually.
7
+ `purecss-sass` is a Sass-powered version of [Pure CSS](https://purecss.io/) for your applications, allowing to include all of Pure's components at once or load them individually.
10
8
 
11
9
  Original Pure CSS files are converted using `sass-convert` and otherwise untouched and unmodified.
12
10
 
13
- ## Installation
11
+ ## npm and Yarn
12
+
13
+ To install `purecss-sass` npm package execute this command:
14
+
15
+ ```
16
+ $ npm install purecss-sass
17
+ ```
14
18
 
15
- * [Ruby on Rails](#ruby-on-rails)
16
- * [npm](#npm)
19
+ If you are using Yarn:
20
+
21
+ ```
22
+ $ yarn add purecss-sass
23
+ ```
17
24
 
18
- ### Ruby on Rails
25
+ ## Ruby on Rails
19
26
 
20
- Open your Rails application's `Gemfile` and add this line:
27
+ Open your `Gemfile` and add this line:
21
28
 
22
29
  ```ruby
23
30
  gem 'purecss-sass'
@@ -31,22 +38,11 @@ Open `/app/assets/stylesheets/application.scss` file and add this line:
31
38
  @import 'purecss';
32
39
  ```
33
40
 
34
- > Note: Default Rails installation comes with `.css` file extension for stylesheet assests files, make sure you change it to `.scss` and remove all the `*= require_tree .` and `*= require_self` statements from file. Alternatively, to keep original `application.css` file, you can create `custom.scss` file in the same folder and import `purecss` there.
35
-
36
- Restart Rails web server if it was running and now your Rails application is powered by Pure CSS for Sass.
37
-
38
- ### npm
39
-
40
- To install `purecss-sass` npm package execute this command:
41
- ```
42
- npm install purecss-sass
43
- ```
44
-
45
- This will fetch latest version of `purecss-sass` stylesheets to drop into your Sass powered application.
41
+ > Note: Default Rails-generated application comes with `.css` file extension for stylesheet assets files, make sure you change it to `.scss` and remove all the `*= require_tree .` and `*= require_self` statements from the file.
46
42
 
47
43
  ## Usage
48
44
 
49
- By default, using `@import 'purecss';`, all of Pure CSS components are imported.
45
+ By default, using `@import 'purecss';`, all of Pure CSS responsive components are imported.
50
46
 
51
47
  You can import individual Sass components like this:
52
48
 
@@ -54,6 +50,7 @@ You can import individual Sass components like this:
54
50
  @import 'purecss/base';
55
51
  @import 'purecss/buttons';
56
52
  @import 'purecss/forms';
53
+ @import 'purecss/forms-nr';
57
54
  @import 'purecss/grids';
58
55
  @import 'purecss/grids-responsive';
59
56
  @import 'purecss/menus';
@@ -62,7 +59,7 @@ You can import individual Sass components like this:
62
59
 
63
60
  ## Versioning
64
61
 
65
- Pure CSS for Sass follows the upstream version of Pure. But last version number may be ahead, in case there is a need to release project specific changes.
62
+ Pure CSS for Sass follows the upstream version of Pure. But the last version number may be ahead, in case there is a need to release project-specific changes.
66
63
 
67
64
  ## Credits
68
65
 
@@ -72,4 +69,4 @@ Pure CSS for Sass is inspired from [bootstrap-sass](https://github.com/twbs/boot
72
69
 
73
70
  Pure © Yahoo! Inc. Licensed under the [BSD](https://github.com/pure-css/pure/blob/master/LICENSE) license.
74
71
 
75
- `purecss-sass` © Dmitriy Tarasov. Licensed under the [MIT](https://github.com/rubysamurai/purecss-sass/blob/master/LICENSE.txt) licence.
72
+ `purecss-sass` © Dmitriy Tarasov. Licensed under the [MIT](LICENSE.txt) licence.
data/Rakefile CHANGED
@@ -1,4 +1,6 @@
1
1
  require 'bundler/gem_tasks'
2
2
  require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
3
6
  task default: :spec
4
- RSpec::Core::RakeTask.new
@@ -11,4 +11,4 @@ require 'purecss-sass'
11
11
  # Pry.start
12
12
 
13
13
  require 'irb'
14
- IRB.start
14
+ IRB.start(__FILE__)
data/bin/setup CHANGED
@@ -1,6 +1,7 @@
1
- #!/bin/bash
1
+ #!/usr/bin/env bash
2
2
  set -euo pipefail
3
3
  IFS=$'\n\t'
4
+ set -vx
4
5
 
5
6
  bundle install
6
7
 
@@ -1,5 +1,5 @@
1
1
  module Purecss
2
2
  module Sass
3
- VERSION = '1.0.1.1'.freeze
3
+ VERSION = '2.0.4'.freeze
4
4
  end
5
5
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purecss-sass",
3
- "version": "1.0.1",
3
+ "version": "2.0.4",
4
4
  "description": "Pure CSS framework, converted to Sass and ready to use in Sass powered applications",
5
5
  "keywords": [
6
6
  "pure",
@@ -13,10 +13,9 @@
13
13
  "url": "https://github.com/rubysamurai/purecss-sass/issues"
14
14
  },
15
15
  "license": "MIT",
16
- "author": "Dmitriy Tarasov",
16
+ "author": "Dmitriy Tarasov <info@rubysamurai.com>",
17
17
  "files": [
18
- "vendor",
19
- "LICENSE.txt"
18
+ "vendor"
20
19
  ],
21
20
  "main": "vendor/assets/stylesheets/_purecss.scss",
22
21
  "repository": {
@@ -1,5 +1,4 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
1
+ lib = File.expand_path('lib', __dir__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require 'purecss/sass/version'
5
4
 
@@ -9,22 +8,27 @@ Gem::Specification.new do |spec|
9
8
  spec.authors = ['Dmitriy Tarasov']
10
9
  spec.email = ['info@rubysamurai.com']
11
10
 
12
- spec.summary = 'Pure CSS framework by Yahoo, converted to Sass and ready to use in Ruby projects'
13
- spec.description = 'Pure CSS framework by Yahoo, converted to Sass and ready to use in Ruby projects'
11
+ spec.summary = 'Pure CSS framework, converted to Sass'
12
+ spec.description = 'Pure CSS framework, converted to Sass'
14
13
  spec.homepage = 'https://github.com/rubysamurai/purecss-sass'
15
14
  spec.license = 'MIT'
16
15
 
17
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
16
+ spec.metadata['bug_tracker_uri'] = 'https://github.com/rubysamurai/purecss-sass/issues'
17
+ spec.metadata['changelog_uri'] = 'https://github.com/rubysamurai/purecss-sass/blob/master/CHANGELOG.md'
18
+
19
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
20
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
+ end
18
22
  spec.bindir = 'exe'
19
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
24
  spec.require_paths = ['lib']
21
25
 
22
- spec.required_ruby_version = '>= 2.0.0'
26
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.0.0')
23
27
 
24
28
  spec.add_runtime_dependency 'sassc', '>= 2.0'
25
29
 
26
30
  spec.add_development_dependency 'railties', '>= 5.0'
27
- spec.add_development_dependency 'rspec', '>= 3.5'
31
+ spec.add_development_dependency 'rspec', '>= 3.9'
28
32
  spec.add_development_dependency 'sassc-rails', '>= 2.0'
29
33
  spec.add_development_dependency 'sprockets-rails', '>= 3.0'
30
34
  end
@@ -1,7 +1,6 @@
1
1
  @import 'purecss/base';
2
2
  @import 'purecss/buttons';
3
3
  @import 'purecss/forms';
4
- @import 'purecss/grids';
5
4
  @import 'purecss/grids-responsive';
6
5
  @import 'purecss/menus';
7
6
  @import 'purecss/tables';
@@ -1,156 +1,149 @@
1
1
  /*!
2
- Pure v1.0.1
2
+ Pure v2.0.4
3
3
  Copyright 2013 Yahoo!
4
4
  Licensed under the BSD License.
5
- https://github.com/pure-css/pure/blob/master/LICENSE.md
5
+ https://github.com/pure-css/pure/blob/master/LICENSE
6
6
  */
7
7
  /*!
8
- normalize.css v^3.0 | MIT License | git.io/normalize
8
+ normalize.css v | MIT License | git.io/normalize
9
9
  Copyright (c) Nicolas Gallagher and Jonathan Neal
10
10
  */
11
- /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
11
+ /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
12
+
13
+ /* Document
14
+ ========================================================================== */
12
15
 
13
16
  /**
14
- * 1. Set default font family to sans-serif.
15
- * 2. Prevent iOS and IE text size adjust after device orientation change,
16
- * without disabling user zoom.
17
+ * 1. Correct the line height in all browsers.
18
+ * 2. Prevent adjustments of font size after orientation changes in iOS.
17
19
  */
18
20
 
19
21
  html {
20
- font-family: sans-serif;
22
+ line-height: 1.15;
21
23
 
22
24
  /* 1 */
23
- -ms-text-size-adjust: 100%;
24
-
25
- /* 2 */
26
25
  -webkit-text-size-adjust: 100%;
27
26
 
28
27
  /* 2 */
29
28
  }
30
29
 
30
+ /* Sections
31
+ ========================================================================== */
32
+
31
33
  /**
32
- * Remove default margin.
34
+ * Remove the margin in all browsers.
33
35
  */
34
36
 
35
37
  body {
36
38
  margin: 0;
37
39
  }
38
40
 
39
- /* HTML5 display definitions
40
- ========================================================================== */
41
-
42
41
  /**
43
- * Correct `block` display not defined for any HTML5 element in IE 8/9.
44
- * Correct `block` display not defined for `details` or `summary` in IE 10/11
45
- * and Firefox.
46
- * Correct `block` display not defined for `main` in IE 11.
42
+ * Render the `main` element consistently in IE.
47
43
  */
48
44
 
49
- article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
45
+ main {
50
46
  display: block;
51
47
  }
52
48
 
53
49
  /**
54
- * 1. Correct `inline-block` display not defined in IE 8/9.
55
- * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
50
+ * Correct the font size and margin on `h1` elements within `section` and
51
+ * `article` contexts in Chrome, Firefox, and Safari.
56
52
  */
57
53
 
58
- audio, canvas, progress, video {
59
- display: inline-block;
60
-
61
- /* 1 */
62
- vertical-align: baseline;
63
-
64
- /* 2 */
54
+ h1 {
55
+ font-size: 2em;
56
+ margin: 0.67em 0;
65
57
  }
66
58
 
59
+ /* Grouping content
60
+ ========================================================================== */
61
+
67
62
  /**
68
- * Prevent modern browsers from displaying `audio` without controls.
69
- * Remove excess height in iOS 5 devices.
63
+ * 1. Add the correct box sizing in Firefox.
64
+ * 2. Show the overflow in Edge and IE.
70
65
  */
71
66
 
72
- audio:not([controls]) {
73
- display: none;
67
+ hr {
68
+ -webkit-box-sizing: content-box;
69
+ box-sizing: content-box;
70
+
71
+ /* 1 */
74
72
  height: 0;
73
+
74
+ /* 1 */
75
+ overflow: visible;
76
+
77
+ /* 2 */
75
78
  }
76
79
 
77
80
  /**
78
- * Address `[hidden]` styling not present in IE 8/9/10.
79
- * Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
81
+ * 1. Correct the inheritance and scaling of font size in all browsers.
82
+ * 2. Correct the odd `em` font sizing in all browsers.
80
83
  */
81
84
 
82
- [hidden], template {
83
- display: none;
85
+ pre {
86
+ font-family: monospace, monospace;
87
+
88
+ /* 1 */
89
+ font-size: 1em;
90
+
91
+ /* 2 */
84
92
  }
85
93
 
86
- /* Links
94
+ /* Text-level semantics
87
95
  ========================================================================== */
88
96
 
89
97
  /**
90
- * Remove the gray background color from active links in IE 10.
98
+ * Remove the gray background on active links in IE 10.
91
99
  */
92
100
 
93
101
  a {
94
102
  background-color: transparent;
95
-
96
- &:active, &:hover {
97
- outline: 0;
98
- }
99
103
  }
100
104
 
101
105
  /**
102
- * Improve readability of focused elements when they are also in an
103
- * active/hover state.
104
- */
105
-
106
- /* Text-level semantics
107
- ========================================================================== */
108
-
109
- /**
110
- * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
106
+ * 1. Remove the bottom border in Chrome 57-
107
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
111
108
  */
112
109
 
113
110
  abbr[title] {
114
- border-bottom: 1px dotted;
115
- }
111
+ border-bottom: none;
116
112
 
117
- /**
118
- * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
119
- */
113
+ /* 1 */
114
+ text-decoration: underline;
120
115
 
121
- b, strong {
122
- font-weight: bold;
116
+ /* 2 */
117
+ -webkit-text-decoration: underline dotted;
118
+ text-decoration: underline dotted;
119
+
120
+ /* 2 */
123
121
  }
124
122
 
125
123
  /**
126
- * Address styling not present in Safari and Chrome.
124
+ * Add the correct font weight in Chrome, Edge, and Safari.
127
125
  */
128
126
 
129
- dfn {
130
- font-style: italic;
127
+ b, strong {
128
+ font-weight: bolder;
131
129
  }
132
130
 
133
131
  /**
134
- * Address variable `h1` font-size and margin within `section` and `article`
135
- * contexts in Firefox 4+, Safari, and Chrome.
132
+ * 1. Correct the inheritance and scaling of font size in all browsers.
133
+ * 2. Correct the odd `em` font sizing in all browsers.
136
134
  */
137
135
 
138
- h1 {
139
- font-size: 2em;
140
- margin: 0.67em 0;
141
- }
136
+ code, kbd, samp {
137
+ font-family: monospace, monospace;
142
138
 
143
- /**
144
- * Address styling not present in IE 8/9.
145
- */
139
+ /* 1 */
140
+ font-size: 1em;
146
141
 
147
- mark {
148
- background: #ff0;
149
- color: #000;
142
+ /* 2 */
150
143
  }
151
144
 
152
145
  /**
153
- * Address inconsistent and variable font size in all browsers.
146
+ * Add the correct font size in all browsers.
154
147
  */
155
148
 
156
149
  small {
@@ -158,302 +151,251 @@ small {
158
151
  }
159
152
 
160
153
  /**
161
- * Prevent `sub` and `sup` affecting `line-height` in all browsers.
154
+ * Prevent `sub` and `sup` elements from affecting the line height in
155
+ * all browsers.
162
156
  */
163
157
 
164
- sub {
158
+ sub, sup {
165
159
  font-size: 75%;
166
160
  line-height: 0;
167
161
  position: relative;
168
162
  vertical-align: baseline;
169
163
  }
170
164
 
171
- sup {
172
- font-size: 75%;
173
- line-height: 0;
174
- position: relative;
175
- vertical-align: baseline;
176
- top: -0.5em;
177
- }
178
-
179
165
  sub {
180
166
  bottom: -0.25em;
181
167
  }
182
168
 
169
+ sup {
170
+ top: -0.5em;
171
+ }
172
+
183
173
  /* Embedded content
184
174
  ========================================================================== */
185
175
 
186
176
  /**
187
- * Remove border when inside `a` element in IE 8/9/10.
177
+ * Remove the border on images inside links in IE 10.
188
178
  */
189
179
 
190
180
  img {
191
- border: 0;
181
+ border-style: none;
192
182
  }
193
183
 
184
+ /* Forms
185
+ ========================================================================== */
186
+
194
187
  /**
195
- * Correct overflow not hidden in IE 9/10/11.
188
+ * 1. Change the font styles in all browsers.
189
+ * 2. Remove the margin in Firefox and Safari.
196
190
  */
197
191
 
198
- svg:not(:root) {
199
- overflow: hidden;
200
- }
192
+ button, input, optgroup, select, textarea {
193
+ font-family: inherit;
201
194
 
202
- /* Grouping content
203
- ========================================================================== */
195
+ /* 1 */
196
+ font-size: 100%;
204
197
 
205
- /**
206
- * Address margin not present in IE 8/9 and Safari.
207
- */
198
+ /* 1 */
199
+ line-height: 1.15;
200
+
201
+ /* 1 */
202
+ margin: 0;
208
203
 
209
- figure {
210
- margin: 1em 40px;
204
+ /* 2 */
211
205
  }
212
206
 
213
207
  /**
214
- * Address differences between Firefox and other browsers.
208
+ * Show the overflow in IE.
209
+ * 1. Show the overflow in Edge.
215
210
  */
216
211
 
217
- hr {
218
- -webkit-box-sizing: content-box;
219
- box-sizing: content-box;
220
- height: 0;
212
+ button, input {
213
+ /* 1 */
214
+ overflow: visible;
221
215
  }
222
216
 
223
217
  /**
224
- * Contain overflow in all browsers.
218
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
219
+ * 1. Remove the inheritance of text transform in Firefox.
225
220
  */
226
221
 
227
- pre {
228
- overflow: auto;
222
+ button, select {
223
+ /* 1 */
224
+ text-transform: none;
229
225
  }
230
226
 
231
227
  /**
232
- * Address odd `em`-unit font size rendering in all browsers.
228
+ * Correct the inability to style clickable types in iOS and Safari.
233
229
  */
234
230
 
235
- code, kbd, pre, samp {
236
- font-family: monospace, monospace;
237
- font-size: 1em;
231
+ button, [type="button"], [type="reset"], [type="submit"] {
232
+ -webkit-appearance: button;
238
233
  }
239
234
 
240
- /* Forms
241
- ========================================================================== */
242
-
243
235
  /**
244
- * Known limitation: by default, Chrome and Safari on OS X allow very limited
245
- * styling of `select`, unless a `border` property is set.
236
+ * Remove the inner border and padding in Firefox.
246
237
  */
247
238
 
248
- /**
249
- * 1. Correct color not being inherited.
250
- * Known issue: affects color of disabled elements.
251
- * 2. Correct font properties not being inherited.
252
- * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
253
- */
254
-
255
- button, input, optgroup, select, textarea {
256
- color: inherit;
257
-
258
- /* 1 */
259
- font: inherit;
260
-
261
- /* 2 */
262
- margin: 0;
263
-
264
- /* 3 */
239
+ button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner {
240
+ border-style: none;
241
+ padding: 0;
265
242
  }
266
243
 
267
244
  /**
268
- * Address `overflow` set to `hidden` in IE 8/9/10/11.
245
+ * Restore the focus styles unset by the previous rule.
269
246
  */
270
247
 
271
- button {
272
- overflow: visible;
273
- text-transform: none;
248
+ button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring {
249
+ outline: 1px dotted ButtonText;
274
250
  }
275
251
 
276
252
  /**
277
- * Address inconsistent `text-transform` inheritance for `button` and `select`.
278
- * All other form control elements do not inherit `text-transform` values.
279
- * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
280
- * Correct `select` style inheritance in Firefox.
253
+ * Correct the padding in Firefox.
281
254
  */
282
255
 
283
- select {
284
- text-transform: none;
256
+ fieldset {
257
+ padding: 0.35em 0.75em 0.625em;
285
258
  }
286
259
 
287
260
  /**
288
- * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
289
- * and `video` controls.
290
- * 2. Correct inability to style clickable `input` types in iOS.
291
- * 3. Improve usability and consistency of cursor style between image-type
292
- * `input` and others.
261
+ * 1. Correct the text wrapping in Edge and IE.
262
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
263
+ * 3. Remove the padding so developers are not caught out when they zero out
264
+ * `fieldset` elements in all browsers.
293
265
  */
294
266
 
295
- button, html input[type="button"] {
296
- -webkit-appearance: button;
267
+ legend {
268
+ -webkit-box-sizing: border-box;
269
+ box-sizing: border-box;
270
+
271
+ /* 1 */
272
+ color: inherit;
297
273
 
298
274
  /* 2 */
299
- cursor: pointer;
275
+ display: table;
300
276
 
301
- /* 3 */
302
- }
277
+ /* 1 */
278
+ max-width: 100%;
303
279
 
304
- input {
305
- &[type="reset"], &[type="submit"] {
306
- -webkit-appearance: button;
280
+ /* 1 */
281
+ padding: 0;
307
282
 
308
- /* 2 */
309
- cursor: pointer;
283
+ /* 3 */
284
+ white-space: normal;
310
285
 
311
- /* 3 */
312
- }
286
+ /* 1 */
313
287
  }
314
288
 
315
289
  /**
316
- * Re-set default cursor for disabled elements.
290
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
317
291
  */
318
292
 
319
- button[disabled], html input[disabled] {
320
- cursor: default;
293
+ progress {
294
+ vertical-align: baseline;
321
295
  }
322
296
 
323
297
  /**
324
- * Remove inner padding and border in Firefox 4+.
298
+ * Remove the default vertical scrollbar in IE 10+.
325
299
  */
326
300
 
327
- button::-moz-focus-inner {
328
- border: 0;
329
- padding: 0;
301
+ textarea {
302
+ overflow: auto;
330
303
  }
331
304
 
332
- input {
333
- &::-moz-focus-inner {
334
- border: 0;
335
- padding: 0;
336
- }
337
-
338
- line-height: normal;
339
-
340
- &[type="checkbox"], &[type="radio"] {
341
- -webkit-box-sizing: border-box;
342
- box-sizing: border-box;
343
-
344
- /* 1 */
345
- padding: 0;
305
+ /**
306
+ * 1. Add the correct box sizing in IE 10.
307
+ * 2. Remove the padding in IE 10.
308
+ */
346
309
 
347
- /* 2 */
348
- }
310
+ [type="checkbox"], [type="radio"] {
311
+ -webkit-box-sizing: border-box;
312
+ box-sizing: border-box;
349
313
 
350
- &[type="number"] {
351
- &::-webkit-inner-spin-button, &::-webkit-outer-spin-button {
352
- height: auto;
353
- }
354
- }
355
-
356
- &[type="search"] {
357
- -webkit-appearance: textfield;
314
+ /* 1 */
315
+ padding: 0;
358
316
 
359
- /* 1 */
360
- -webkit-box-sizing: content-box;
361
- box-sizing: content-box;
317
+ /* 2 */
318
+ }
362
319
 
363
- /* 2 */
320
+ /**
321
+ * Correct the cursor style of increment and decrement buttons in Chrome.
322
+ */
364
323
 
365
- &::-webkit-search-cancel-button, &::-webkit-search-decoration {
366
- -webkit-appearance: none;
367
- }
324
+ [type="number"] {
325
+ &::-webkit-inner-spin-button, &::-webkit-outer-spin-button {
326
+ height: auto;
368
327
  }
369
328
  }
370
329
 
371
330
  /**
372
- * Address Firefox 4+ setting `line-height` on `input` using `!important` in
373
- * the UA stylesheet.
331
+ * 1. Correct the odd appearance in Chrome and Safari.
332
+ * 2. Correct the outline style in Safari.
374
333
  */
375
334
 
376
- /**
377
- * It's recommended that you don't attempt to style these elements.
378
- * Firefox's implementation doesn't respect box-sizing, padding, or width.
379
- *
380
- * 1. Address box sizing set to `content-box` in IE 8/9/10.
381
- * 2. Remove excess padding in IE 8/9/10.
382
- */
335
+ [type="search"] {
336
+ -webkit-appearance: textfield;
383
337
 
384
- /**
385
- * Fix the cursor style for Chrome's increment/decrement buttons. For certain
386
- * `font-size` values of the `input`, it causes the cursor style of the
387
- * decrement button to change from `default` to `text`.
388
- */
338
+ /* 1 */
339
+ outline-offset: -2px;
389
340
 
390
- /**
391
- * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
392
- * 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
393
- */
341
+ /* 2 */
394
342
 
395
- /**
396
- * Remove inner padding and search cancel button in Safari and Chrome on OS X.
397
- * Safari (but not Chrome) clips the cancel button when the search input has
398
- * padding (and `textfield` appearance).
399
- */
343
+ &::-webkit-search-decoration {
344
+ -webkit-appearance: none;
345
+ }
346
+ }
400
347
 
401
348
  /**
402
- * Define consistent border, margin, and padding.
349
+ * Remove the inner padding in Chrome and Safari on macOS.
403
350
  */
404
351
 
405
- fieldset {
406
- border: 1px solid #c0c0c0;
407
- margin: 0 2px;
408
- padding: 0.35em 0.625em 0.75em;
409
- }
410
-
411
352
  /**
412
- * 1. Correct `color` not being inherited in IE 8/9/10/11.
413
- * 2. Remove padding so people aren't caught out if they zero out fieldsets.
353
+ * 1. Correct the inability to style clickable types in iOS and Safari.
354
+ * 2. Change font properties to `inherit` in Safari.
414
355
  */
415
356
 
416
- legend {
417
- border: 0;
357
+ ::-webkit-file-upload-button {
358
+ -webkit-appearance: button;
418
359
 
419
360
  /* 1 */
420
- padding: 0;
361
+ font: inherit;
421
362
 
422
363
  /* 2 */
423
364
  }
424
365
 
425
- /**
426
- * Remove default vertical scrollbar in IE 8/9/10/11.
366
+ /* Interactive
367
+ ========================================================================== */
368
+
369
+ /*
370
+ * Add the correct display in Edge, IE 10+, and Firefox.
427
371
  */
428
372
 
429
- textarea {
430
- overflow: auto;
373
+ details {
374
+ display: block;
431
375
  }
432
376
 
433
- /**
434
- * Don't inherit the `font-weight` (applied by a rule above).
435
- * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
377
+ /*
378
+ * Add the correct display in all browsers.
436
379
  */
437
380
 
438
- optgroup {
439
- font-weight: bold;
381
+ summary {
382
+ display: list-item;
440
383
  }
441
384
 
442
- /* Tables
385
+ /* Misc
443
386
  ========================================================================== */
444
387
 
445
388
  /**
446
- * Remove most spacing between table cells.
389
+ * Add the correct display in IE 10+.
447
390
  */
448
391
 
449
- table {
450
- border-collapse: collapse;
451
- border-spacing: 0;
392
+ template, [hidden] {
393
+ display: none;
452
394
  }
453
395
 
454
- td, th {
455
- padding: 0;
456
- }
396
+ /**
397
+ * Add the correct display in IE 10.
398
+ */
457
399
 
458
400
  /*csslint important:false*/
459
401
 
@@ -465,6 +407,10 @@ td, th {
465
407
  * Extra rules that Pure adds on top of Normalize.css
466
408
  */
467
409
 
410
+ html {
411
+ font-family: sans-serif;
412
+ }
413
+
468
414
  /**
469
415
  * Always hide an element when it has the `hidden` HTML attribute.
470
416
  */