normality 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +20 -0
- data/README.md +61 -0
- data/app/assets/stylesheets/_normality.scss +80 -0
- data/app/assets/stylesheets/normality/addons/_box.scss +9 -0
- data/app/assets/stylesheets/normality/base/_body.scss +7 -0
- data/app/assets/stylesheets/normality/base/_html.scss +11 -0
- data/app/assets/stylesheets/normality/embed/_img.scss +7 -0
- data/app/assets/stylesheets/normality/embed/_svg.scss +7 -0
- data/app/assets/stylesheets/normality/figures/_figure.scss +7 -0
- data/app/assets/stylesheets/normality/forms/_buttons.scss +15 -0
- data/app/assets/stylesheets/normality/forms/_checkbox-and-radio.scss +10 -0
- data/app/assets/stylesheets/normality/forms/_disabled.scss +8 -0
- data/app/assets/stylesheets/normality/forms/_fieldset.scss +9 -0
- data/app/assets/stylesheets/normality/forms/_fix-focus-inner.scss +9 -0
- data/app/assets/stylesheets/normality/forms/_fix-font.scss +14 -0
- data/app/assets/stylesheets/normality/forms/_fix-line-height.scss +9 -0
- data/app/assets/stylesheets/normality/forms/_fix-text-transform.scss +11 -0
- data/app/assets/stylesheets/normality/forms/_legend.scss +9 -0
- data/app/assets/stylesheets/normality/forms/_search.scss +22 -0
- data/app/assets/stylesheets/normality/forms/_textarea.scss +9 -0
- data/app/assets/stylesheets/normality/html5/_audio.scss +9 -0
- data/app/assets/stylesheets/normality/html5/_blocks.scss +18 -0
- data/app/assets/stylesheets/normality/html5/_hidden.scss +9 -0
- data/app/assets/stylesheets/normality/html5/_inline-blocks.scss +9 -0
- data/app/assets/stylesheets/normality/links/_fix-background.scss +7 -0
- data/app/assets/stylesheets/normality/links/_fix-outline.scss +16 -0
- data/app/assets/stylesheets/normality/tables/_fix-cell-spacing.scss +8 -0
- data/app/assets/stylesheets/normality/typography/_abbr.scss +7 -0
- data/app/assets/stylesheets/normality/typography/_dfn.scss +8 -0
- data/app/assets/stylesheets/normality/typography/_fix-bolder.scss +8 -0
- data/app/assets/stylesheets/normality/typography/_fix-monospace.scss +11 -0
- data/app/assets/stylesheets/normality/typography/_headings.scss +10 -0
- data/app/assets/stylesheets/normality/typography/_hr.scss +9 -0
- data/app/assets/stylesheets/normality/typography/_mark.scss +8 -0
- data/app/assets/stylesheets/normality/typography/_pre.scss +7 -0
- data/app/assets/stylesheets/normality/typography/_q.scss +7 -0
- data/app/assets/stylesheets/normality/typography/_small.scss +7 -0
- data/app/assets/stylesheets/normality/typography/_sub-and-sup.scss +19 -0
- data/lib/normality/engine.rb +5 -0
- data/lib/normality/version.rb +3 -0
- data/lib/normality.rb +4 -0
- metadata +99 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: abd20881d97c0f21192a7dfb7abab0be8d9e70e0
|
4
|
+
data.tar.gz: 2244fb813e6dbd9f1b78c54838424c4a04cd4c48
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a1b3bb7b0ae1b2a49085043abe159f1c738e968fd3b4ffd26d1a495ed2821b11ac4b70f1ea1e3172f2b2b609a0e61043cde000af0b12f29b70d364b547801098
|
7
|
+
data.tar.gz: cbd71dde76c75760c9db1eef58ec8e90e4293d6eadcccd02ac577383af0a5ab43df9b98c3fa296a289991f8c5984c389d790015a5074961bc5b4267cda5b576a
|
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2013 Daniel Perez Alvarez
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
# Normality
|
2
|
+
|
3
|
+
Include [normalize.css](http://necolas.github.io/normalize.css/) functionality in your Rails app using SASS/SCSS.
|
4
|
+
|
5
|
+
|
6
|
+
## Install for Rails 3.1+
|
7
|
+
|
8
|
+
In your `Gemfile`, add `sass-rails` (if you don't have it already) and `normality`:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'sass-rails'
|
12
|
+
gem 'normality'
|
13
|
+
```
|
14
|
+
|
15
|
+
Then run:
|
16
|
+
|
17
|
+
```sh
|
18
|
+
bundle install
|
19
|
+
```
|
20
|
+
|
21
|
+
Restart your server.
|
22
|
+
|
23
|
+
To start using *Normality* in your SCSS stylesheets, rename `application.css` to `application.css.scss`:
|
24
|
+
|
25
|
+
```sh
|
26
|
+
mv app/assets/stylesheets/application.css app/assets/stylesheets/application.css.scss
|
27
|
+
```
|
28
|
+
|
29
|
+
Delete the Sprocket directives in `application.css.scss`:
|
30
|
+
|
31
|
+
```css
|
32
|
+
/*
|
33
|
+
*= require_self
|
34
|
+
*= require_tree .
|
35
|
+
*/
|
36
|
+
```
|
37
|
+
|
38
|
+
And finally import *Normality* (and your own stylesheets) in `application.css.scss` using `@import`:
|
39
|
+
|
40
|
+
```scss
|
41
|
+
@import "normalize";
|
42
|
+
|
43
|
+
@import "home";
|
44
|
+
@import "users";
|
45
|
+
```
|
46
|
+
|
47
|
+
|
48
|
+
## Meta
|
49
|
+
|
50
|
+
* Code: `git clone git://github.com/unindented/normality.git`
|
51
|
+
* Home: <https://github.com/unindented/normality/>
|
52
|
+
|
53
|
+
|
54
|
+
## Contributors
|
55
|
+
|
56
|
+
* Daniel Perez Alvarez ([unindented@gmail.com](mailto:unindented@gmail.com))
|
57
|
+
|
58
|
+
|
59
|
+
## License
|
60
|
+
|
61
|
+
Copyright (c) 2013 Daniel Perez Alvarez ([unindented.org](http://unindented.org/)). This is free software, and may be redistributed under the terms specified in the LICENSE file.
|
@@ -0,0 +1,80 @@
|
|
1
|
+
/* =============================================================================
|
2
|
+
HTML5 display definitions
|
3
|
+
========================================================================== */
|
4
|
+
|
5
|
+
@import "normality/html5/blocks";
|
6
|
+
@import "normality/html5/inline-blocks";
|
7
|
+
@import "normality/html5/audio";
|
8
|
+
@import "normality/html5/hidden";
|
9
|
+
|
10
|
+
|
11
|
+
/* =============================================================================
|
12
|
+
Base
|
13
|
+
========================================================================== */
|
14
|
+
|
15
|
+
@import "normality/base/html";
|
16
|
+
@import "normality/base/body";
|
17
|
+
|
18
|
+
|
19
|
+
/* =============================================================================
|
20
|
+
Links
|
21
|
+
========================================================================== */
|
22
|
+
|
23
|
+
@import "normality/links/fix-background";
|
24
|
+
@import "normality/links/fix-outline";
|
25
|
+
|
26
|
+
|
27
|
+
/* =============================================================================
|
28
|
+
Typography
|
29
|
+
========================================================================== */
|
30
|
+
|
31
|
+
@import "normality/typography/headings";
|
32
|
+
@import "normality/typography/abbr";
|
33
|
+
@import "normality/typography/fix-bolder";
|
34
|
+
@import "normality/typography/dfn";
|
35
|
+
@import "normality/typography/hr";
|
36
|
+
@import "normality/typography/mark";
|
37
|
+
@import "normality/typography/fix-monospace";
|
38
|
+
@import "normality/typography/pre";
|
39
|
+
@import "normality/typography/q";
|
40
|
+
@import "normality/typography/small";
|
41
|
+
@import "normality/typography/sub-and-sup";
|
42
|
+
|
43
|
+
|
44
|
+
/* =============================================================================
|
45
|
+
Embedded content
|
46
|
+
========================================================================== */
|
47
|
+
|
48
|
+
@import "normality/embed/img";
|
49
|
+
@import "normality/embed/svg";
|
50
|
+
|
51
|
+
|
52
|
+
/* =============================================================================
|
53
|
+
Figures
|
54
|
+
========================================================================== */
|
55
|
+
|
56
|
+
@import "normality/figures/figure";
|
57
|
+
|
58
|
+
|
59
|
+
/* =============================================================================
|
60
|
+
Forms
|
61
|
+
========================================================================== */
|
62
|
+
|
63
|
+
@import "normality/forms/fieldset";
|
64
|
+
@import "normality/forms/legend";
|
65
|
+
@import "normality/forms/fix-font";
|
66
|
+
@import "normality/forms/fix-text-transform";
|
67
|
+
@import "normality/forms/fix-line-height";
|
68
|
+
@import "normality/forms/buttons";
|
69
|
+
@import "normality/forms/disabled";
|
70
|
+
@import "normality/forms/checkbox-and-radio";
|
71
|
+
@import "normality/forms/search";
|
72
|
+
@import "normality/forms/fix-focus-inner";
|
73
|
+
@import "normality/forms/textarea";
|
74
|
+
|
75
|
+
|
76
|
+
/* =============================================================================
|
77
|
+
Tables
|
78
|
+
========================================================================== */
|
79
|
+
|
80
|
+
@import "normality/tables/fix-cell-spacing";
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/**
|
2
|
+
* 1. Set default font family to sans-serif.
|
3
|
+
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
4
|
+
* user zoom.
|
5
|
+
*/
|
6
|
+
|
7
|
+
html {
|
8
|
+
font-family: sans-serif; /* 1 */
|
9
|
+
-ms-text-size-adjust: 100%; /* 2 */
|
10
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
11
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
3
|
+
* and `video` controls.
|
4
|
+
* 2. Correct inability to style clickable `input` types in iOS.
|
5
|
+
* 3. Improve usability and consistency of cursor style between image-type
|
6
|
+
* `input` and others.
|
7
|
+
*/
|
8
|
+
|
9
|
+
button,
|
10
|
+
html input[type="button"], /* 1 */
|
11
|
+
input[type="reset"],
|
12
|
+
input[type="submit"] {
|
13
|
+
-webkit-appearance: button; /* 2 */
|
14
|
+
cursor: pointer; /* 3 */
|
15
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* 1. Correct font family not being inherited in all browsers.
|
3
|
+
* 2. Correct font size not being inherited in all browsers.
|
4
|
+
* 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
|
5
|
+
*/
|
6
|
+
|
7
|
+
button,
|
8
|
+
input,
|
9
|
+
select,
|
10
|
+
textarea {
|
11
|
+
font-family: inherit; /* 1 */
|
12
|
+
font-size: 100%; /* 2 */
|
13
|
+
margin: 0; /* 3 */
|
14
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/**
|
2
|
+
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
3
|
+
* All other form control elements do not inherit `text-transform` values.
|
4
|
+
* Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
|
5
|
+
* Correct `select` style inheritance in Firefox 4+ and Opera.
|
6
|
+
*/
|
7
|
+
|
8
|
+
button,
|
9
|
+
select {
|
10
|
+
text-transform: none;
|
11
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/**
|
2
|
+
* 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
|
3
|
+
* 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
|
4
|
+
* (include `-moz` to future-proof).
|
5
|
+
*/
|
6
|
+
|
7
|
+
input[type="search"] {
|
8
|
+
-webkit-appearance: textfield; /* 1 */
|
9
|
+
-moz-box-sizing: content-box;
|
10
|
+
-webkit-box-sizing: content-box; /* 2 */
|
11
|
+
box-sizing: content-box;
|
12
|
+
}
|
13
|
+
|
14
|
+
/**
|
15
|
+
* Remove inner padding and search cancel button in Safari 5 and Chrome
|
16
|
+
* on OS X.
|
17
|
+
*/
|
18
|
+
|
19
|
+
input[type="search"]::-webkit-search-cancel-button,
|
20
|
+
input[type="search"]::-webkit-search-decoration {
|
21
|
+
-webkit-appearance: none;
|
22
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/**
|
2
|
+
* Address `outline` inconsistency between Chrome and other browsers.
|
3
|
+
*/
|
4
|
+
|
5
|
+
a:focus {
|
6
|
+
outline: thin dotted;
|
7
|
+
}
|
8
|
+
|
9
|
+
/**
|
10
|
+
* Improve readability when focused and also mouse hovered in all browsers.
|
11
|
+
*/
|
12
|
+
|
13
|
+
a:active,
|
14
|
+
a:hover {
|
15
|
+
outline: 0;
|
16
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
3
|
+
*/
|
4
|
+
|
5
|
+
sub,
|
6
|
+
sup {
|
7
|
+
font-size: 75%;
|
8
|
+
line-height: 0;
|
9
|
+
position: relative;
|
10
|
+
vertical-align: baseline;
|
11
|
+
}
|
12
|
+
|
13
|
+
sup {
|
14
|
+
top: -0.5em;
|
15
|
+
}
|
16
|
+
|
17
|
+
sub {
|
18
|
+
bottom: -0.25em;
|
19
|
+
}
|
data/lib/normality.rb
ADDED
metadata
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: normality
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Daniel Perez Alvarez
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-07-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.0.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.0.0
|
27
|
+
description: Include normalize.css functionality in your Rails app using SASS/SCSS
|
28
|
+
email:
|
29
|
+
- unindented@gmail.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- app/assets/stylesheets/_normality.scss
|
35
|
+
- app/assets/stylesheets/normality/addons/_box.scss
|
36
|
+
- app/assets/stylesheets/normality/base/_body.scss
|
37
|
+
- app/assets/stylesheets/normality/base/_html.scss
|
38
|
+
- app/assets/stylesheets/normality/embed/_img.scss
|
39
|
+
- app/assets/stylesheets/normality/embed/_svg.scss
|
40
|
+
- app/assets/stylesheets/normality/figures/_figure.scss
|
41
|
+
- app/assets/stylesheets/normality/forms/_buttons.scss
|
42
|
+
- app/assets/stylesheets/normality/forms/_checkbox-and-radio.scss
|
43
|
+
- app/assets/stylesheets/normality/forms/_disabled.scss
|
44
|
+
- app/assets/stylesheets/normality/forms/_fieldset.scss
|
45
|
+
- app/assets/stylesheets/normality/forms/_fix-focus-inner.scss
|
46
|
+
- app/assets/stylesheets/normality/forms/_fix-font.scss
|
47
|
+
- app/assets/stylesheets/normality/forms/_fix-line-height.scss
|
48
|
+
- app/assets/stylesheets/normality/forms/_fix-text-transform.scss
|
49
|
+
- app/assets/stylesheets/normality/forms/_legend.scss
|
50
|
+
- app/assets/stylesheets/normality/forms/_search.scss
|
51
|
+
- app/assets/stylesheets/normality/forms/_textarea.scss
|
52
|
+
- app/assets/stylesheets/normality/html5/_audio.scss
|
53
|
+
- app/assets/stylesheets/normality/html5/_blocks.scss
|
54
|
+
- app/assets/stylesheets/normality/html5/_hidden.scss
|
55
|
+
- app/assets/stylesheets/normality/html5/_inline-blocks.scss
|
56
|
+
- app/assets/stylesheets/normality/links/_fix-background.scss
|
57
|
+
- app/assets/stylesheets/normality/links/_fix-outline.scss
|
58
|
+
- app/assets/stylesheets/normality/tables/_fix-cell-spacing.scss
|
59
|
+
- app/assets/stylesheets/normality/typography/_abbr.scss
|
60
|
+
- app/assets/stylesheets/normality/typography/_dfn.scss
|
61
|
+
- app/assets/stylesheets/normality/typography/_fix-bolder.scss
|
62
|
+
- app/assets/stylesheets/normality/typography/_fix-monospace.scss
|
63
|
+
- app/assets/stylesheets/normality/typography/_headings.scss
|
64
|
+
- app/assets/stylesheets/normality/typography/_hr.scss
|
65
|
+
- app/assets/stylesheets/normality/typography/_mark.scss
|
66
|
+
- app/assets/stylesheets/normality/typography/_pre.scss
|
67
|
+
- app/assets/stylesheets/normality/typography/_q.scss
|
68
|
+
- app/assets/stylesheets/normality/typography/_small.scss
|
69
|
+
- app/assets/stylesheets/normality/typography/_sub-and-sup.scss
|
70
|
+
- lib/normality/engine.rb
|
71
|
+
- lib/normality/version.rb
|
72
|
+
- lib/normality.rb
|
73
|
+
- LICENSE
|
74
|
+
- README.md
|
75
|
+
homepage: https://github.com/unindented/normality
|
76
|
+
licenses:
|
77
|
+
- MIT
|
78
|
+
metadata: {}
|
79
|
+
post_install_message:
|
80
|
+
rdoc_options: []
|
81
|
+
require_paths:
|
82
|
+
- lib
|
83
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - '>='
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '0'
|
93
|
+
requirements: []
|
94
|
+
rubyforge_project:
|
95
|
+
rubygems_version: 2.0.3
|
96
|
+
signing_key:
|
97
|
+
specification_version: 4
|
98
|
+
summary: Include normalize.css in your Rails app
|
99
|
+
test_files: []
|