pure-sass 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.gitmodules +3 -0
- data/.travis.yml +3 -0
- data/Gemfile +4 -0
- data/Guardfile +12 -0
- data/LICENSE.txt +22 -0
- data/README.md +43 -0
- data/Rakefile +31 -0
- data/app/assets/stylesheets/pure/_all.css.sass +7 -0
- data/app/assets/stylesheets/pure/_base.css.sass +2 -0
- data/app/assets/stylesheets/pure/_buttons.css.sass +2 -0
- data/app/assets/stylesheets/pure/_defaults.css.sass +0 -0
- data/app/assets/stylesheets/pure/_forms.css.sass +2 -0
- data/app/assets/stylesheets/pure/_grids.css.sass +2 -0
- data/app/assets/stylesheets/pure/_menus.css.sass +2 -0
- data/app/assets/stylesheets/pure/_tables.css.sass +2 -0
- data/app/assets/stylesheets/pure/all.css.sass +7 -0
- data/app/assets/stylesheets/pure/base/_normalize-context.css.sass +152 -0
- data/app/assets/stylesheets/pure/base/_normalize.css.sass +425 -0
- data/app/assets/stylesheets/pure/base.css.sass +2 -0
- data/app/assets/stylesheets/pure/buttons/_buttons-core.css.sass +23 -0
- data/app/assets/stylesheets/pure/buttons/_buttons.css.sass +103 -0
- data/app/assets/stylesheets/pure/buttons.css.sass +2 -0
- data/app/assets/stylesheets/pure/defaults.css.sass +0 -0
- data/app/assets/stylesheets/pure/forms/_forms-core.css.sass +132 -0
- data/app/assets/stylesheets/pure/forms/_forms-r.css.sass +22 -0
- data/app/assets/stylesheets/pure/forms/_forms.css.sass +128 -0
- data/app/assets/stylesheets/pure/forms.css.sass +2 -0
- data/app/assets/stylesheets/pure/grids/_grids-core.css.sass +26 -0
- data/app/assets/stylesheets/pure/grids/_grids-r.css.sass +34 -0
- data/app/assets/stylesheets/pure/grids/_grids-units.css.sass +93 -0
- data/app/assets/stylesheets/pure/grids.css.sass +2 -0
- data/app/assets/stylesheets/pure/menus/_menus-core.css.sass +99 -0
- data/app/assets/stylesheets/pure/menus/_menus-paginator.css.sass +24 -0
- data/app/assets/stylesheets/pure/menus/_menus-r.css.sass +8 -0
- data/app/assets/stylesheets/pure/menus/_menus.css.sass +65 -0
- data/app/assets/stylesheets/pure/menus.css.sass +2 -0
- data/app/assets/stylesheets/pure/tables/_tables.css.sass +68 -0
- data/app/assets/stylesheets/pure/tables.css.sass +2 -0
- data/lib/pure/sass/version.rb +5 -0
- data/lib/pure/sass.rb +7 -0
- data/pure-sass.gemspec +31 -0
- data/spec/assets_spec.rb +21 -0
- data/spec/spec_helper.rb +1 -0
- metadata +218 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1a7cf046ca1f3d921b0db746ceea962dc6b3a9fc
|
4
|
+
data.tar.gz: df2dc176b76e84168a64dfe9a4f5e1a971498d33
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b9d38ad9a855b1b03265f3f4603d66377dc4d5289f87d275132097e2ffccf1a48278e7e195912bf9ff98f59d491b18e264c6d36bf83893d32204acdf787123f1
|
7
|
+
data.tar.gz: 884e8de0d2260b372cc91d171972fd6d2992fb47e8451778e281084ff1477b8ee8527d2077cf415548646ad0de43b677ff0002c416bbde1267fb3191fc004933
|
data/.gitignore
ADDED
data/.gitmodules
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Guardfile
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
guard 'bundler' do
|
2
|
+
watch('Gemfile')
|
3
|
+
watch(/^.+\.gemspec/)
|
4
|
+
end
|
5
|
+
|
6
|
+
guard :rspec do
|
7
|
+
watch(%r{^spec/.+_spec\.rb$})
|
8
|
+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
9
|
+
watch('spec/spec_helper.rb') { "spec" }
|
10
|
+
end
|
11
|
+
|
12
|
+
guard 'sass', :input => 'sass', :output => 'css'
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 James Harton
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# Pure::Sass
|
2
|
+
|
3
|
+
pure-sass is a port of [Yahoo!'s Pure CSS](http://purecss.io/) framework to SASS.
|
4
|
+
|
5
|
+
[](https://travis-ci.org/jamesotron/pure-sass)
|
6
|
+
|
7
|
+
## Usage
|
8
|
+
|
9
|
+
Add pure-sass to your applications `Gemfile`
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'pure-sass'
|
13
|
+
```
|
14
|
+
|
15
|
+
Then in your `app/assets/stylesheets/application.css` you can use
|
16
|
+
|
17
|
+
```
|
18
|
+
*= require pure/all
|
19
|
+
```
|
20
|
+
|
21
|
+
or in your SASS or SCSS files you can use
|
22
|
+
|
23
|
+
```sass
|
24
|
+
@include 'pure/all'
|
25
|
+
```
|
26
|
+
|
27
|
+
If you don't want all of Pure then you can manually include
|
28
|
+
|
29
|
+
* `pure/defaults` - default theme
|
30
|
+
* `pure/base` - base styles based on [normalize.css](http://necolas.github.io/normalize.css/)
|
31
|
+
* `pure/buttons` - Pure's button module
|
32
|
+
* `pure/forms` - Pure's form module
|
33
|
+
* `pure/grids` - Pure's grid layout
|
34
|
+
* `pure/menus` - PUre's menu module
|
35
|
+
* `pure/tables` - Pure's table module
|
36
|
+
|
37
|
+
## Contributing
|
38
|
+
|
39
|
+
1. Fork it
|
40
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
41
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
42
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
43
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require 'rspec/core/rake_task'
|
3
|
+
RSpec::Core::RakeTask.new(:spec)
|
4
|
+
|
5
|
+
namespace :upstream do
|
6
|
+
|
7
|
+
def generate_sass_dependencies
|
8
|
+
find_upstream_css_files.map do |source|
|
9
|
+
mod, base = source.scan(/purecss\/src\/([a-z_]+)\/.+\/([a-z_-]+).css\Z/)[0]
|
10
|
+
"app/assets/stylesheets/pure/#{mod}/_#{base}.css.sass"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def find_upstream_css_files
|
15
|
+
Dir['vendor/upstream/purecss/src/*/css/**/*.css']
|
16
|
+
end
|
17
|
+
|
18
|
+
desc "Import CSS files from upstream and convert them to SASS"
|
19
|
+
task :import => generate_sass_dependencies
|
20
|
+
|
21
|
+
desc "Update upstream CSS files"
|
22
|
+
task :update do
|
23
|
+
sh "git submodule update vendor/upstream/purecss/"
|
24
|
+
end
|
25
|
+
|
26
|
+
rule(/.*\.css\.sass\Z/ => [proc { |t| t.sub(/\A.*\/([a-z_-]+)\/_([a-z_-]+)\.css\.sass\Z/, 'vendor/upstream/purecss/src/\1/css/\2.css') }]) do |t|
|
27
|
+
sh "sass-convert -C -F css -T sass #{t.source.inspect} #{t.name.inspect}"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
task :default => [ :spec ]
|
File without changes
|
@@ -0,0 +1,152 @@
|
|
1
|
+
/* THIS FILE IS GENERATED BY A BUILD SCRIPT - DO NOT EDIT!
|
2
|
+
|
3
|
+
.pure
|
4
|
+
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary
|
5
|
+
display: block
|
6
|
+
audio, canvas, video
|
7
|
+
display: inline-block
|
8
|
+
audio:not([controls])
|
9
|
+
display: none
|
10
|
+
height: 0
|
11
|
+
[hidden]
|
12
|
+
display: none
|
13
|
+
font-size: 100%
|
14
|
+
-ms-text-size-adjust: 100%
|
15
|
+
-webkit-text-size-adjust: 100%
|
16
|
+
font-family: sans-serif
|
17
|
+
button, input, select, textarea
|
18
|
+
font-family: sans-serif
|
19
|
+
body
|
20
|
+
margin: 0
|
21
|
+
a
|
22
|
+
&:focus
|
23
|
+
outline: thin dotted
|
24
|
+
&:active, &:hover
|
25
|
+
outline: 0
|
26
|
+
h1
|
27
|
+
font-size: 2em
|
28
|
+
margin: 0.67em 0
|
29
|
+
h2
|
30
|
+
font-size: 1.5em
|
31
|
+
margin: 0.83em 0
|
32
|
+
h3
|
33
|
+
font-size: 1.17em
|
34
|
+
margin: 1em 0
|
35
|
+
h4
|
36
|
+
font-size: 1em
|
37
|
+
margin: 1.33em 0
|
38
|
+
h5
|
39
|
+
font-size: 0.83em
|
40
|
+
margin: 1.67em 0
|
41
|
+
h6
|
42
|
+
font-size: 0.67em
|
43
|
+
margin: 2.33em 0
|
44
|
+
abbr[title]
|
45
|
+
border-bottom: 1px dotted
|
46
|
+
b, strong
|
47
|
+
font-weight: bold
|
48
|
+
blockquote
|
49
|
+
margin: 1em 40px
|
50
|
+
dfn
|
51
|
+
font-style: italic
|
52
|
+
hr
|
53
|
+
-moz-box-sizing: content-box
|
54
|
+
box-sizing: content-box
|
55
|
+
height: 0
|
56
|
+
mark
|
57
|
+
background: #ff0
|
58
|
+
color: #000
|
59
|
+
p, pre
|
60
|
+
margin: 1em 0
|
61
|
+
code, kbd, pre, samp
|
62
|
+
font-family: monospace , serif
|
63
|
+
_font-family: 'courier new' , monospace
|
64
|
+
font-size: 1em
|
65
|
+
pre
|
66
|
+
white-space: pre
|
67
|
+
white-space: pre-wrap
|
68
|
+
word-wrap: break-word
|
69
|
+
q
|
70
|
+
quotes: none
|
71
|
+
&:before, &:after
|
72
|
+
content: ''
|
73
|
+
content: none
|
74
|
+
small
|
75
|
+
font-size: 80%
|
76
|
+
sub
|
77
|
+
font-size: 75%
|
78
|
+
line-height: 0
|
79
|
+
position: relative
|
80
|
+
vertical-align: baseline
|
81
|
+
sup
|
82
|
+
font-size: 75%
|
83
|
+
line-height: 0
|
84
|
+
position: relative
|
85
|
+
vertical-align: baseline
|
86
|
+
top: -0.5em
|
87
|
+
sub
|
88
|
+
bottom: -0.25em
|
89
|
+
dl, menu, ol, ul
|
90
|
+
margin: 1em 0
|
91
|
+
dd
|
92
|
+
margin: 0 0 0 40px
|
93
|
+
menu, ol, ul
|
94
|
+
padding: 0 0 0 40px
|
95
|
+
nav
|
96
|
+
ul, ol
|
97
|
+
list-style: none
|
98
|
+
list-style-image: none
|
99
|
+
img
|
100
|
+
border: 0
|
101
|
+
-ms-interpolation-mode: bicubic
|
102
|
+
svg:not(:root)
|
103
|
+
overflow: hidden
|
104
|
+
figure, form
|
105
|
+
margin: 0
|
106
|
+
fieldset
|
107
|
+
border: 1px solid #c0c0c0
|
108
|
+
margin: 0 2px
|
109
|
+
padding: 0.35em 0.625em 0.75em
|
110
|
+
legend
|
111
|
+
border: 0
|
112
|
+
padding: 0
|
113
|
+
white-space: normal
|
114
|
+
button, input, select, textarea
|
115
|
+
font-size: 100%
|
116
|
+
margin: 0
|
117
|
+
vertical-align: baseline
|
118
|
+
button, input
|
119
|
+
line-height: normal
|
120
|
+
button, select
|
121
|
+
text-transform: none
|
122
|
+
button
|
123
|
+
-webkit-appearance: button
|
124
|
+
cursor: pointer
|
125
|
+
input
|
126
|
+
&[type="button"], &[type="reset"], &[type="submit"]
|
127
|
+
-webkit-appearance: button
|
128
|
+
cursor: pointer
|
129
|
+
button[disabled]
|
130
|
+
cursor: default
|
131
|
+
input
|
132
|
+
&[disabled]
|
133
|
+
cursor: default
|
134
|
+
&[type="checkbox"], &[type="radio"]
|
135
|
+
box-sizing: border-box
|
136
|
+
padding: 0
|
137
|
+
&[type="search"]
|
138
|
+
-webkit-appearance: textfield
|
139
|
+
-moz-box-sizing: content-box
|
140
|
+
-webkit-box-sizing: content-box
|
141
|
+
box-sizing: content-box
|
142
|
+
&::-webkit-search-cancel-button, &::-webkit-search-decoration
|
143
|
+
-webkit-appearance: none
|
144
|
+
button::-moz-focus-inner, input::-moz-focus-inner
|
145
|
+
border: 0
|
146
|
+
padding: 0
|
147
|
+
textarea
|
148
|
+
overflow: auto
|
149
|
+
vertical-align: top
|
150
|
+
table
|
151
|
+
border-collapse: collapse
|
152
|
+
border-spacing: 0
|