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 +4 -4
- data/.github/workflows/ci.yml +20 -0
- data/.gitignore +4 -2
- data/.rspec +1 -0
- data/.rubocop.yml +27 -0
- data/CHANGELOG.md +24 -0
- data/README.md +23 -26
- data/Rakefile +3 -1
- data/bin/console +1 -1
- data/bin/setup +2 -1
- data/lib/purecss/sass/version.rb +1 -1
- data/package.json +3 -4
- data/purecss-sass.gemspec +11 -7
- data/vendor/assets/stylesheets/_purecss.scss +0 -1
- data/vendor/assets/stylesheets/purecss/_base.scss +195 -249
- data/vendor/assets/stylesheets/purecss/_buttons.scss +2 -40
- data/vendor/assets/stylesheets/purecss/_forms-nr.scss +335 -0
- data/vendor/assets/stylesheets/purecss/_forms.scss +4 -19
- data/vendor/assets/stylesheets/purecss/_grids-responsive.scss +2 -118
- data/vendor/assets/stylesheets/purecss/_grids.scss +2 -44
- data/vendor/assets/stylesheets/purecss/_menus.scss +2 -5
- data/vendor/assets/stylesheets/purecss/_tables.scss +2 -2
- metadata +13 -10
- data/.travis.yml +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 373f5237b50d87914d10bcd24a8d7af59612c636a1fe051ae92df3286cabf872
|
4
|
+
data.tar.gz: c9dfb109a9cfa6cec609f68006e9bdef3750a88650a73adb8283e9908fa5aa56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/.rubocop.yml
ADDED
@@ -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
|
data/CHANGELOG.md
CHANGED
@@ -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)](
|
4
|
-
[![npm version](https://badge.fury.io/js/purecss-sass.svg)](
|
5
|
-
[![
|
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/)
|
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
|
-
##
|
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
|
-
|
16
|
-
|
19
|
+
If you are using Yarn:
|
20
|
+
|
21
|
+
```
|
22
|
+
$ yarn add purecss-sass
|
23
|
+
```
|
17
24
|
|
18
|
-
|
25
|
+
## Ruby on Rails
|
19
26
|
|
20
|
-
Open your
|
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
|
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
|
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](
|
72
|
+
`purecss-sass` © Dmitriy Tarasov. Licensed under the [MIT](LICENSE.txt) licence.
|
data/Rakefile
CHANGED
data/bin/console
CHANGED
data/bin/setup
CHANGED
data/lib/purecss/sass/version.rb
CHANGED
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "purecss-sass",
|
3
|
-
"version": "
|
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": {
|
data/purecss-sass.gemspec
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
|
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
|
13
|
-
spec.description = 'Pure CSS framework
|
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.
|
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.
|
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,156 +1,149 @@
|
|
1
1
|
/*!
|
2
|
-
Pure
|
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
|
5
|
+
https://github.com/pure-css/pure/blob/master/LICENSE
|
6
6
|
*/
|
7
7
|
/*!
|
8
|
-
normalize.css v
|
8
|
+
normalize.css v | MIT License | git.io/normalize
|
9
9
|
Copyright (c) Nicolas Gallagher and Jonathan Neal
|
10
10
|
*/
|
11
|
-
/*! 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.
|
15
|
-
* 2. Prevent
|
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
|
-
|
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
|
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
|
-
*
|
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
|
-
|
45
|
+
main {
|
50
46
|
display: block;
|
51
47
|
}
|
52
48
|
|
53
49
|
/**
|
54
|
-
*
|
55
|
-
*
|
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
|
-
|
59
|
-
|
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
|
-
*
|
69
|
-
*
|
63
|
+
* 1. Add the correct box sizing in Firefox.
|
64
|
+
* 2. Show the overflow in Edge and IE.
|
70
65
|
*/
|
71
66
|
|
72
|
-
|
73
|
-
|
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
|
-
*
|
79
|
-
*
|
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
|
-
|
83
|
-
|
85
|
+
pre {
|
86
|
+
font-family: monospace, monospace;
|
87
|
+
|
88
|
+
/* 1 */
|
89
|
+
font-size: 1em;
|
90
|
+
|
91
|
+
/* 2 */
|
84
92
|
}
|
85
93
|
|
86
|
-
/*
|
94
|
+
/* Text-level semantics
|
87
95
|
========================================================================== */
|
88
96
|
|
89
97
|
/**
|
90
|
-
* Remove the gray background
|
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
|
-
*
|
103
|
-
*
|
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:
|
115
|
-
}
|
111
|
+
border-bottom: none;
|
116
112
|
|
117
|
-
|
118
|
-
|
119
|
-
*/
|
113
|
+
/* 1 */
|
114
|
+
text-decoration: underline;
|
120
115
|
|
121
|
-
|
122
|
-
|
116
|
+
/* 2 */
|
117
|
+
-webkit-text-decoration: underline dotted;
|
118
|
+
text-decoration: underline dotted;
|
119
|
+
|
120
|
+
/* 2 */
|
123
121
|
}
|
124
122
|
|
125
123
|
/**
|
126
|
-
*
|
124
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
127
125
|
*/
|
128
126
|
|
129
|
-
|
130
|
-
font-
|
127
|
+
b, strong {
|
128
|
+
font-weight: bolder;
|
131
129
|
}
|
132
130
|
|
133
131
|
/**
|
134
|
-
*
|
135
|
-
*
|
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
|
-
|
139
|
-
font-
|
140
|
-
margin: 0.67em 0;
|
141
|
-
}
|
136
|
+
code, kbd, samp {
|
137
|
+
font-family: monospace, monospace;
|
142
138
|
|
143
|
-
|
144
|
-
|
145
|
-
*/
|
139
|
+
/* 1 */
|
140
|
+
font-size: 1em;
|
146
141
|
|
147
|
-
|
148
|
-
background: #ff0;
|
149
|
-
color: #000;
|
142
|
+
/* 2 */
|
150
143
|
}
|
151
144
|
|
152
145
|
/**
|
153
|
-
*
|
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
|
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
|
177
|
+
* Remove the border on images inside links in IE 10.
|
188
178
|
*/
|
189
179
|
|
190
180
|
img {
|
191
|
-
border:
|
181
|
+
border-style: none;
|
192
182
|
}
|
193
183
|
|
184
|
+
/* Forms
|
185
|
+
========================================================================== */
|
186
|
+
|
194
187
|
/**
|
195
|
-
*
|
188
|
+
* 1. Change the font styles in all browsers.
|
189
|
+
* 2. Remove the margin in Firefox and Safari.
|
196
190
|
*/
|
197
191
|
|
198
|
-
|
199
|
-
|
200
|
-
}
|
192
|
+
button, input, optgroup, select, textarea {
|
193
|
+
font-family: inherit;
|
201
194
|
|
202
|
-
/*
|
203
|
-
|
195
|
+
/* 1 */
|
196
|
+
font-size: 100%;
|
204
197
|
|
205
|
-
|
206
|
-
|
207
|
-
|
198
|
+
/* 1 */
|
199
|
+
line-height: 1.15;
|
200
|
+
|
201
|
+
/* 1 */
|
202
|
+
margin: 0;
|
208
203
|
|
209
|
-
|
210
|
-
margin: 1em 40px;
|
204
|
+
/* 2 */
|
211
205
|
}
|
212
206
|
|
213
207
|
/**
|
214
|
-
*
|
208
|
+
* Show the overflow in IE.
|
209
|
+
* 1. Show the overflow in Edge.
|
215
210
|
*/
|
216
211
|
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
height: 0;
|
212
|
+
button, input {
|
213
|
+
/* 1 */
|
214
|
+
overflow: visible;
|
221
215
|
}
|
222
216
|
|
223
217
|
/**
|
224
|
-
*
|
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
|
-
|
228
|
-
|
222
|
+
button, select {
|
223
|
+
/* 1 */
|
224
|
+
text-transform: none;
|
229
225
|
}
|
230
226
|
|
231
227
|
/**
|
232
|
-
*
|
228
|
+
* Correct the inability to style clickable types in iOS and Safari.
|
233
229
|
*/
|
234
230
|
|
235
|
-
|
236
|
-
|
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
|
-
*
|
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
|
-
|
250
|
-
|
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
|
-
*
|
245
|
+
* Restore the focus styles unset by the previous rule.
|
269
246
|
*/
|
270
247
|
|
271
|
-
button {
|
272
|
-
|
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
|
-
*
|
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
|
-
|
284
|
-
|
256
|
+
fieldset {
|
257
|
+
padding: 0.35em 0.75em 0.625em;
|
285
258
|
}
|
286
259
|
|
287
260
|
/**
|
288
|
-
* 1.
|
289
|
-
*
|
290
|
-
*
|
291
|
-
*
|
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
|
-
|
296
|
-
-webkit-
|
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
|
-
|
275
|
+
display: table;
|
300
276
|
|
301
|
-
/*
|
302
|
-
|
277
|
+
/* 1 */
|
278
|
+
max-width: 100%;
|
303
279
|
|
304
|
-
|
305
|
-
|
306
|
-
-webkit-appearance: button;
|
280
|
+
/* 1 */
|
281
|
+
padding: 0;
|
307
282
|
|
308
|
-
|
309
|
-
|
283
|
+
/* 3 */
|
284
|
+
white-space: normal;
|
310
285
|
|
311
|
-
|
312
|
-
}
|
286
|
+
/* 1 */
|
313
287
|
}
|
314
288
|
|
315
289
|
/**
|
316
|
-
*
|
290
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
317
291
|
*/
|
318
292
|
|
319
|
-
|
320
|
-
|
293
|
+
progress {
|
294
|
+
vertical-align: baseline;
|
321
295
|
}
|
322
296
|
|
323
297
|
/**
|
324
|
-
* Remove
|
298
|
+
* Remove the default vertical scrollbar in IE 10+.
|
325
299
|
*/
|
326
300
|
|
327
|
-
|
328
|
-
|
329
|
-
padding: 0;
|
301
|
+
textarea {
|
302
|
+
overflow: auto;
|
330
303
|
}
|
331
304
|
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
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
|
-
|
348
|
-
|
310
|
+
[type="checkbox"], [type="radio"] {
|
311
|
+
-webkit-box-sizing: border-box;
|
312
|
+
box-sizing: border-box;
|
349
313
|
|
350
|
-
|
351
|
-
|
352
|
-
height: auto;
|
353
|
-
}
|
354
|
-
}
|
355
|
-
|
356
|
-
&[type="search"] {
|
357
|
-
-webkit-appearance: textfield;
|
314
|
+
/* 1 */
|
315
|
+
padding: 0;
|
358
316
|
|
359
|
-
|
360
|
-
|
361
|
-
box-sizing: content-box;
|
317
|
+
/* 2 */
|
318
|
+
}
|
362
319
|
|
363
|
-
|
320
|
+
/**
|
321
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
322
|
+
*/
|
364
323
|
|
365
|
-
|
366
|
-
|
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
|
-
*
|
373
|
-
* the
|
331
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
332
|
+
* 2. Correct the outline style in Safari.
|
374
333
|
*/
|
375
334
|
|
376
|
-
|
377
|
-
|
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
|
-
|
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
|
-
|
397
|
-
|
398
|
-
|
399
|
-
*/
|
343
|
+
&::-webkit-search-decoration {
|
344
|
+
-webkit-appearance: none;
|
345
|
+
}
|
346
|
+
}
|
400
347
|
|
401
348
|
/**
|
402
|
-
*
|
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
|
413
|
-
* 2.
|
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
|
-
|
417
|
-
|
357
|
+
::-webkit-file-upload-button {
|
358
|
+
-webkit-appearance: button;
|
418
359
|
|
419
360
|
/* 1 */
|
420
|
-
|
361
|
+
font: inherit;
|
421
362
|
|
422
363
|
/* 2 */
|
423
364
|
}
|
424
365
|
|
425
|
-
|
426
|
-
|
366
|
+
/* Interactive
|
367
|
+
========================================================================== */
|
368
|
+
|
369
|
+
/*
|
370
|
+
* Add the correct display in Edge, IE 10+, and Firefox.
|
427
371
|
*/
|
428
372
|
|
429
|
-
|
430
|
-
|
373
|
+
details {
|
374
|
+
display: block;
|
431
375
|
}
|
432
376
|
|
433
|
-
|
434
|
-
*
|
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
|
-
|
439
|
-
|
381
|
+
summary {
|
382
|
+
display: list-item;
|
440
383
|
}
|
441
384
|
|
442
|
-
/*
|
385
|
+
/* Misc
|
443
386
|
========================================================================== */
|
444
387
|
|
445
388
|
/**
|
446
|
-
*
|
389
|
+
* Add the correct display in IE 10+.
|
447
390
|
*/
|
448
391
|
|
449
|
-
|
450
|
-
|
451
|
-
border-spacing: 0;
|
392
|
+
template, [hidden] {
|
393
|
+
display: none;
|
452
394
|
}
|
453
395
|
|
454
|
-
|
455
|
-
|
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
|
*/
|