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.
Files changed (46) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/.gitmodules +3 -0
  4. data/.travis.yml +3 -0
  5. data/Gemfile +4 -0
  6. data/Guardfile +12 -0
  7. data/LICENSE.txt +22 -0
  8. data/README.md +43 -0
  9. data/Rakefile +31 -0
  10. data/app/assets/stylesheets/pure/_all.css.sass +7 -0
  11. data/app/assets/stylesheets/pure/_base.css.sass +2 -0
  12. data/app/assets/stylesheets/pure/_buttons.css.sass +2 -0
  13. data/app/assets/stylesheets/pure/_defaults.css.sass +0 -0
  14. data/app/assets/stylesheets/pure/_forms.css.sass +2 -0
  15. data/app/assets/stylesheets/pure/_grids.css.sass +2 -0
  16. data/app/assets/stylesheets/pure/_menus.css.sass +2 -0
  17. data/app/assets/stylesheets/pure/_tables.css.sass +2 -0
  18. data/app/assets/stylesheets/pure/all.css.sass +7 -0
  19. data/app/assets/stylesheets/pure/base/_normalize-context.css.sass +152 -0
  20. data/app/assets/stylesheets/pure/base/_normalize.css.sass +425 -0
  21. data/app/assets/stylesheets/pure/base.css.sass +2 -0
  22. data/app/assets/stylesheets/pure/buttons/_buttons-core.css.sass +23 -0
  23. data/app/assets/stylesheets/pure/buttons/_buttons.css.sass +103 -0
  24. data/app/assets/stylesheets/pure/buttons.css.sass +2 -0
  25. data/app/assets/stylesheets/pure/defaults.css.sass +0 -0
  26. data/app/assets/stylesheets/pure/forms/_forms-core.css.sass +132 -0
  27. data/app/assets/stylesheets/pure/forms/_forms-r.css.sass +22 -0
  28. data/app/assets/stylesheets/pure/forms/_forms.css.sass +128 -0
  29. data/app/assets/stylesheets/pure/forms.css.sass +2 -0
  30. data/app/assets/stylesheets/pure/grids/_grids-core.css.sass +26 -0
  31. data/app/assets/stylesheets/pure/grids/_grids-r.css.sass +34 -0
  32. data/app/assets/stylesheets/pure/grids/_grids-units.css.sass +93 -0
  33. data/app/assets/stylesheets/pure/grids.css.sass +2 -0
  34. data/app/assets/stylesheets/pure/menus/_menus-core.css.sass +99 -0
  35. data/app/assets/stylesheets/pure/menus/_menus-paginator.css.sass +24 -0
  36. data/app/assets/stylesheets/pure/menus/_menus-r.css.sass +8 -0
  37. data/app/assets/stylesheets/pure/menus/_menus.css.sass +65 -0
  38. data/app/assets/stylesheets/pure/menus.css.sass +2 -0
  39. data/app/assets/stylesheets/pure/tables/_tables.css.sass +68 -0
  40. data/app/assets/stylesheets/pure/tables.css.sass +2 -0
  41. data/lib/pure/sass/version.rb +5 -0
  42. data/lib/pure/sass.rb +7 -0
  43. data/pure-sass.gemspec +31 -0
  44. data/spec/assets_spec.rb +21 -0
  45. data/spec/spec_helper.rb +1 -0
  46. metadata +218 -0
@@ -0,0 +1,128 @@
1
+ .pure-form
2
+ input, select
3
+ padding: 0.5em 0.6em
4
+ display: inline-block
5
+ border: 1px solid #ccc
6
+ font-size: 0.8em
7
+ box-shadow: inset 0 1px 3px #ddd
8
+ border-radius: 4px
9
+ -webkit-transition: 0.3s linear border
10
+ -moz-transition: 0.3s linear border
11
+ -ms-transition: 0.3s linear border
12
+ -o-transition: 0.3s linear border
13
+ transition: 0.3s linear border
14
+ -moz-box-sizing: border-box
15
+ -webkit-box-sizing: border-box
16
+ box-sizing: border-box
17
+ -webkit-font-smoothing: antialiased
18
+ input:focus, select:focus
19
+ outline: 0
20
+ outline: thin dotted \9
21
+ /* IE6-9
22
+ border-color: #129FEA
23
+ .pure-checkbox, .pure-radio
24
+ margin: 0.5em 0
25
+ display: block
26
+ input[disabled], select[disabled], textarea[disabled], input[readonly], select[readonly], textarea[readonly]
27
+ cursor: not-allowed
28
+ background-color: #eaeded
29
+ color: #cad2d3
30
+ border-color: transparent
31
+ input:focus:invalid, textarea:focus:invalid, select:focus:invalid
32
+ color: #b94a48
33
+ border: 1px solid #ee5f5b
34
+ input:focus:invalid:focus, textarea:focus:invalid:focus
35
+ border-color: #e9322d
36
+ select
37
+ &:focus:invalid:focus
38
+ border-color: #e9322d
39
+ border: 1px solid #ccc
40
+ background-color: white
41
+ &[multiple]
42
+ height: auto
43
+ label
44
+ margin: 0.5em 0 0.2em
45
+ color: #999
46
+ font-size: 90%
47
+ fieldset
48
+ margin: 0
49
+ padding: 0.35em 0 0.75em
50
+ border: 0
51
+ legend
52
+ display: block
53
+ width: 100%
54
+ padding: 0.3em 0
55
+ margin-bottom: 0.3em
56
+ font-size: 125%
57
+ color: #333
58
+ border-bottom: 1px solid #e5e5e5
59
+ &.pure-form-stacked
60
+ input[type='text'], select, label
61
+ display: block
62
+
63
+ .pure-form-aligned
64
+ input, textarea, select, .pure-help-inline
65
+ display: inline-block
66
+ *display: inline
67
+ /* IE7 inline-block hack
68
+ *zoom: 1
69
+ vertical-align: middle
70
+ .pure-control-group
71
+ margin-bottom: 0.5em
72
+ label
73
+ text-align: right
74
+ display: inline-block
75
+ vertical-align: middle
76
+ width: 10em
77
+ margin: 0 1em 0 0
78
+ .pure-controls
79
+ margin: 1.5em 0 0 10em
80
+
81
+ /* aligned Forms
82
+
83
+ /* Rounded Inputs
84
+
85
+ .pure-form
86
+ .pure-input-rounded
87
+ border-radius: 20px
88
+ padding-left: 1em
89
+ .pure-group
90
+ fieldset
91
+ margin-bottom: 10px
92
+ input
93
+ display: block
94
+ padding: 10px
95
+ margin: 0
96
+ border-radius: 0
97
+ position: relative
98
+ top: -1px
99
+ &:focus
100
+ z-index: 2
101
+ &:first-child
102
+ top: 1px
103
+ border-radius: 4px 4px 0 0
104
+ &:last-child
105
+ top: -2px
106
+ border-radius: 0 0 4px 4px
107
+ button
108
+ margin: 0.35em 0
109
+ .pure-input-1
110
+ width: 100%
111
+ .pure-input-2-3
112
+ width: 66%
113
+ .pure-input-1-2
114
+ width: 50%
115
+ .pure-input-1-3
116
+ width: 33%
117
+ .pure-input-1-4
118
+ width: 25%
119
+ .pure-help-inline
120
+ display: inline-block
121
+ padding-left: 0.3em
122
+ color: #666
123
+ vertical-align: middle
124
+ font-size: 90%
125
+
126
+ /* Grouped Inputs
127
+
128
+ /* Inline help for forms
@@ -0,0 +1,2 @@
1
+ //= require ./_defaults
2
+ //= require_tree ./forms
@@ -0,0 +1,26 @@
1
+ .pure-g
2
+ letter-spacing: -0.31em
3
+ /* Webkit: collapse white-space between units
4
+ *letter-spacing: normal
5
+ /* reset IE < 8
6
+ *word-spacing: -0.43em
7
+ /* IE < 8: collapse white-space between units
8
+ text-rendering: optimizespeed
9
+ /* Webkit: fixes text-rendering: optimizeLegibility
10
+
11
+ /* Opera as of 12 on Windows needs word-spacing.
12
+ * The ".opera-only" selector is used to prevent actual prefocus styling
13
+ * and is not required in markup.
14
+
15
+ .opera-only :-o-prefocus, .pure-g
16
+ word-spacing: -0.43em
17
+
18
+ .pure-u
19
+ display: inline-block
20
+ zoom: 1
21
+ *display: inline
22
+ /* IE < 8: fake inline-block
23
+ letter-spacing: normal
24
+ word-spacing: normal
25
+ vertical-align: top
26
+ text-rendering: auto
@@ -0,0 +1,34 @@
1
+ .pure-g-r
2
+ letter-spacing: -0.31em
3
+ *letter-spacing: normal
4
+ *word-spacing: -0.43em
5
+
6
+ /* Opera as of 12 on Windows needs word-spacing.
7
+ * The ".opera-only" selector is used to prevent actual prefocus styling
8
+ * and is not required in markup.
9
+
10
+ .opera-only :-o-prefocus
11
+ word-spacing: -0.43em
12
+
13
+ .pure-g-r
14
+ word-spacing: -0.43em
15
+ img
16
+ max-width: 100%
17
+
18
+ @media (min-width: 980px)
19
+ .pure-visible-phone, .pure-visible-tablet, .pure-hidden-desktop
20
+ display: none
21
+
22
+ @media (max-width: 480px)
23
+ .pure-g-r > [class^="pure-u"]
24
+ width: 100%
25
+
26
+ @media (max-width: 767px)
27
+ .pure-g-r > [class^="pure-u"]
28
+ width: 100%
29
+ .pure-hidden-phone, .pure-visible-desktop
30
+ display: none
31
+
32
+ @media (min-width: 768px) and (max-width: 979px)
33
+ .pure-hidden-tablet, .pure-visible-desktop
34
+ display: none
@@ -0,0 +1,93 @@
1
+ .pure-u-1, .pure-u-1-2, .pure-u-1-3, .pure-u-2-3, .pure-u-1-4, .pure-u-3-4, .pure-u-1-5, .pure-u-2-5, .pure-u-3-5, .pure-u-4-5, .pure-u-1-6, .pure-u-5-6, .pure-u-1-8, .pure-u-3-8, .pure-u-5-8, .pure-u-7-8, .pure-u-1-12, .pure-u-5-12, .pure-u-7-12, .pure-u-11-12, .pure-u-1-24, .pure-u-5-24, .pure-u-7-24, .pure-u-11-24, .pure-u-13-24, .pure-u-17-24, .pure-u-19-24, .pure-u-23-24
2
+ display: inline-block
3
+ zoom: 1
4
+ *display: inline
5
+ /* IE < 8: fake inline-block
6
+ letter-spacing: normal
7
+ word-spacing: normal
8
+ vertical-align: top
9
+ text-rendering: auto
10
+
11
+ .pure-u-1
12
+ display: block
13
+
14
+ .pure-u-1-2
15
+ width: 50%
16
+
17
+ .pure-u-1-3
18
+ width: 33.33333%
19
+
20
+ .pure-u-2-3
21
+ width: 66.66666%
22
+
23
+ .pure-u-1-4
24
+ width: 25%
25
+
26
+ .pure-u-3-4
27
+ width: 75%
28
+
29
+ .pure-u-1-5
30
+ width: 20%
31
+
32
+ .pure-u-2-5
33
+ width: 40%
34
+
35
+ .pure-u-3-5
36
+ width: 60%
37
+
38
+ .pure-u-4-5
39
+ width: 80%
40
+
41
+ .pure-u-1-6
42
+ width: 16.656%
43
+
44
+ .pure-u-5-6
45
+ width: 83.33%
46
+
47
+ .pure-u-1-8
48
+ width: 12.5%
49
+
50
+ .pure-u-3-8
51
+ width: 37.5%
52
+
53
+ .pure-u-5-8
54
+ width: 62.5%
55
+
56
+ .pure-u-7-8
57
+ width: 87.5%
58
+
59
+ .pure-u-1-12
60
+ width: 8.3333%
61
+
62
+ .pure-u-5-12
63
+ width: 41.6666%
64
+
65
+ .pure-u-7-12
66
+ width: 58.3333%
67
+
68
+ .pure-u-11-12
69
+ width: 91.6666%
70
+
71
+ .pure-u-1-24
72
+ width: 4.1666%
73
+
74
+ .pure-u-5-24
75
+ width: 20.8333%
76
+
77
+ .pure-u-7-24
78
+ width: 29.1666%
79
+
80
+ .pure-u-11-24
81
+ width: 45.8333%
82
+
83
+ .pure-u-13-24
84
+ width: 54.1666%
85
+
86
+ .pure-u-17-24
87
+ width: 70.8333%
88
+
89
+ .pure-u-19-24
90
+ width: 79.1666%
91
+
92
+ .pure-u-23-24
93
+ width: 95.8333%
@@ -0,0 +1,2 @@
1
+ //= require ./_defaults
2
+ //= require_tree ./grids
@@ -0,0 +1,99 @@
1
+ .pure-menu
2
+ ul
3
+ position: absolute
4
+ visibility: hidden
5
+ &.pure-menu-open
6
+ visibility: visible
7
+ z-index: 2
8
+ width: 100%
9
+ ul
10
+ left: -10000px
11
+ list-style: none
12
+ margin: 0
13
+ padding: 0
14
+ top: -10000px
15
+ z-index: 1
16
+ > ul
17
+ position: relative
18
+
19
+ .pure-menu-open > ul
20
+ left: 0
21
+ top: 0
22
+ visibility: visible
23
+
24
+ .pure-menu
25
+ li
26
+ position: relative
27
+ a, .pure-menu-heading
28
+ display: block
29
+ color: inherit
30
+ line-height: 1.5em
31
+ padding: 5px 20px
32
+ text-decoration: none
33
+ white-space: nowrap
34
+ &.pure-menu-horizontal >
35
+ .pure-menu-heading
36
+ display: inline-block
37
+ margin: 0
38
+ zoom: 1
39
+ *display: inline
40
+ vertical-align: middle
41
+ ul
42
+ display: inline-block
43
+ zoom: 1
44
+ *display: inline
45
+ vertical-align: middle
46
+ li a
47
+ padding: 5px 20px
48
+
49
+ .pure-menu-can-have-children > .pure-menu-label
50
+ &:after
51
+ content: '\25B8'
52
+ float: right
53
+ font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'DejaVu Sans', sans-serif
54
+ /* These specific fonts have the Unicode char we need.
55
+ margin-right: -20px
56
+ margin-top: -1px
57
+ padding-right: 30px
58
+
59
+ .pure-menu-separator
60
+ background-color: #dfdfdf
61
+ display: block
62
+ height: 1px
63
+ font-size: 0
64
+ margin: 7px 2px
65
+ overflow: hidden
66
+
67
+ .pure-menu-hidden
68
+ display: none
69
+
70
+ /* FIXED MENU
71
+
72
+ .pure-menu-fixed
73
+ position: fixed
74
+ top: 0
75
+ left: 0
76
+ width: 100%
77
+
78
+ /* HORIZONTAL MENU CODE
79
+
80
+ /* Initial menus should be inline-block so that they are horizontal
81
+
82
+ .pure-menu-horizontal
83
+ li
84
+ display: inline-block
85
+ zoom: 1
86
+ *display: inline
87
+ vertical-align: middle
88
+ li
89
+ display: block
90
+ > .pure-menu-children > .pure-menu-can-have-children > .pure-menu-label
91
+ &:after
92
+ content: "\25BE"
93
+ padding-right: 30px
94
+
95
+ /* Submenus should still be display:block;
96
+
97
+ /* Content after should be down arrow
98
+
99
+ /*Add extra padding to elements that have the arrow so that the hover looks nice
@@ -0,0 +1,24 @@
1
+ .pure-paginator
2
+ list-style: none
3
+ margin: 0
4
+ padding: 0
5
+ li
6
+ display: inline-block
7
+ *display: inline
8
+ /* IE 7 inline-block hack
9
+ *zoom: 1
10
+ margin: 0 -0.35em 0 0
11
+ .pure-button
12
+ border-radius: 0
13
+ padding: 0.8em 1.4em
14
+ vertical-align: top
15
+ height: 1.1em
16
+ &:focus
17
+ outline-style: none
18
+ .prev, .next
19
+ color: #C0C1C3
20
+ text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.45)
21
+ .prev
22
+ border-radius: 2px 0 0 2px
23
+ .next
24
+ border-radius: 0 2px 2px 0
@@ -0,0 +1,8 @@
1
+ /* RESPONSIVE
2
+
3
+ @media (max-width: 480px)
4
+ .pure-menu-horizontal
5
+ width: 100%
6
+ .pure-menu-children li
7
+ display: block
8
+ border-bottom: 1px solid block
@@ -0,0 +1,65 @@
1
+ /* MAIN MENU STYLING
2
+
3
+ .pure-menu
4
+ &.pure-menu-open
5
+ background: #ffffff
6
+ /* Old browsers
7
+ border: 1px solid #b7b7b7
8
+ &.pure-menu-horizontal
9
+ li .pure-menu-children
10
+ background: #ffffff
11
+ /* Old browsers
12
+ border: 1px solid #b7b7b7
13
+ border: none
14
+ .pure-menu-heading
15
+ border: none
16
+ a
17
+ border: 1px solid transparent
18
+ border-left: none
19
+ border-right: none
20
+ color: #777
21
+ .pure-menu-can-have-children > li
22
+ &:after
23
+ color: #777
24
+ &:hover:after
25
+ color: #fff
26
+ li
27
+ a:hover
28
+ background: #eee
29
+ &.pure-menu-disabled a:hover
30
+ background: #fff
31
+ color: #bfbfbf
32
+ .pure-menu-disabled > a
33
+ background-image: none
34
+ border-color: transparent
35
+ cursor: default
36
+ color: #bfbfbf
37
+ .pure-menu-can-have-children.pure-menu-disabled > a:after
38
+ color: #bfbfbf
39
+ .pure-menu-heading
40
+ color: #565d64
41
+ text-transform: uppercase
42
+ font-size: 90%
43
+ margin-top: 0.5em
44
+ border-bottom-width: 1px
45
+ border-bottom-style: solid
46
+ border-bottom-color: #dfdfdf
47
+ .pure-menu-selected a
48
+ color: #000
49
+ &.pure-menu-open.pure-menu-fixed
50
+ border: none
51
+ border-bottom: 1px solid #b7b7b7
52
+
53
+ /* remove borders for horizontal menus
54
+
55
+ /* LINK STYLES
56
+
57
+ /* HOVER STATES
58
+
59
+ /* DISABLED STATES
60
+
61
+ /* HEADINGS
62
+
63
+ /* ACTIVE MENU ITEM
64
+
65
+ /* FIXED MENU
@@ -0,0 +1,2 @@
1
+ //= require ./_defaults
2
+ //= require_tree ./menus
@@ -0,0 +1,68 @@
1
+ /*
2
+ ** CSS TABLES
3
+ ** ==========
4
+ ** Simple CSS for HTML Tables
5
+ ** Author: tilomitra
6
+
7
+ /* foundational CSS
8
+
9
+ .pure-table
10
+ /* Remove spacing between table cells (from Normalize.css)
11
+ border-collapse: collapse
12
+ border-spacing: 0
13
+ empty-cells: show
14
+ border: 1px solid #cbcbcb
15
+ caption
16
+ color: #000
17
+ font: italic 85%/1 arial, sans-serif
18
+ padding: 1em 0
19
+ text-align: center
20
+ td, th
21
+ border-left: 1px solid #cbcbcb
22
+ /* inner column border
23
+ border-width: 0 0 0 1px
24
+ font-size: inherit
25
+ margin: 0
26
+ overflow: visible
27
+ /*to make ths where the title is really long work
28
+ padding: 6px 12px
29
+ /* cell padding
30
+ td:first-child, th:first-child
31
+ border-left-width: 0
32
+ thead
33
+ background: #e0e0e0
34
+ color: #000
35
+ text-align: left
36
+ vertical-align: bottom
37
+ white-space: nowrap
38
+ td
39
+ background-color: transparent
40
+
41
+ /*
42
+ *striping:
43
+ * even - #fff (white)
44
+ * odd - #edf5ff (light blue)
45
+
46
+ .pure-table-odd td, .pure-table-striped tr:nth-child(2n-1) td
47
+ background-color: #f2f2f2
48
+
49
+ /* nth-child selector for modern browsers
50
+
51
+ /* BORDERED TABLES
52
+
53
+ .pure-table-bordered
54
+ td
55
+ border-bottom: 1px solid #cbcbcb
56
+ tbody > tr:last-child td
57
+ border-bottom-width: 0
58
+
59
+ .pure-table-horizontal
60
+ tbody > tr:last-child td
61
+ border-bottom-width: 0
62
+ td, th
63
+ border-width: 0 0 1px 0
64
+ border-bottom: 1px solid #cbcbcb
65
+ tbody > tr:last-child td
66
+ border-bottom-width: 0
67
+
68
+ /* HORIZONTAL BORDERED TABLES
@@ -0,0 +1,2 @@
1
+ //= require ./_defaults
2
+ //= require_tree ./tables
@@ -0,0 +1,5 @@
1
+ module Pure
2
+ module Sass
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
data/lib/pure/sass.rb ADDED
@@ -0,0 +1,7 @@
1
+ require "pure/sass/version"
2
+
3
+ module Pure
4
+ module Sass
5
+ # Your code goes here...
6
+ end
7
+ end
data/pure-sass.gemspec ADDED
@@ -0,0 +1,31 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'pure/sass/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "pure-sass"
8
+ spec.version = Pure::Sass::VERSION
9
+ spec.authors = ["James Harton", "Mathew Hartley"]
10
+ spec.email = ["james@resistor.io", "matt@route66.sytes.net"]
11
+ spec.description = "Yahoo's purecss ported to SASS"
12
+ spec.summary = "Yahoo's purecss ported to SASS"
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+
22
+ %w[ sass ].each do |gem|
23
+ spec.add_dependency gem
24
+ end
25
+
26
+ %w[ rake rspec guard guard-rspec guard-sass guard-bundler ].each do |gem|
27
+ spec.add_development_dependency gem
28
+ end
29
+ spec.add_development_dependency "bundler", "~> 1.3"
30
+ spec.add_development_dependency "sprockets", "~> 2.0"
31
+ end
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+
3
+ describe Sprockets do
4
+ let(:path) { File.expand_path('../../app/assets/stylesheets/', __FILE__) }
5
+ let(:environment) { Sprockets::Environment.new.tap { |e| e.append_path path } }
6
+
7
+ subject { environment }
8
+
9
+ %w[ all base buttons defaults forms grids menus tables ].each do |mod|
10
+ describe "pure/#{mod}" do
11
+ subject { environment["pure/#{mod}"] }
12
+ its(:logical_path) { should eq("pure/#{mod}.css")}
13
+ end
14
+
15
+ describe "pure/_#{mod}" do
16
+ subject { environment["pure/_#{mod}"] }
17
+ its(:logical_path) { should eq("pure/_#{mod}.css")}
18
+ end
19
+ end
20
+
21
+ end
@@ -0,0 +1 @@
1
+ require 'sprockets'