pure-sass 0.0.2 → 0.0.3

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 (71) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +4 -0
  3. data/.ruby-gemset +1 -0
  4. data/.ruby-version +1 -0
  5. data/Guardfile +1 -0
  6. data/README.md +10 -1
  7. data/Rakefile +72 -10
  8. data/app/assets/stylesheets/pure/all.css.scss +7 -0
  9. data/app/assets/stylesheets/pure/base/normalize-context.css.scss +233 -0
  10. data/app/assets/stylesheets/pure/base/{normalize.css.sass → normalize.css.scss} +307 -204
  11. data/app/assets/stylesheets/pure/base.css.scss +2 -0
  12. data/app/assets/stylesheets/pure/buttons/buttons-core.css.scss +27 -0
  13. data/app/assets/stylesheets/pure/buttons/buttons-theme.css.scss +110 -0
  14. data/app/assets/stylesheets/pure/buttons/buttons.css.scss +83 -0
  15. data/app/assets/stylesheets/pure/buttons.css.scss +3 -0
  16. data/app/assets/stylesheets/pure/defaults.css.scss +44 -0
  17. data/app/assets/stylesheets/pure/forms/{forms-core.css.sass → forms-core.css.scss} +91 -74
  18. data/app/assets/stylesheets/pure/forms/forms-r.css.scss +31 -0
  19. data/app/assets/stylesheets/pure/forms/forms-theme.css.scss +362 -0
  20. data/app/assets/stylesheets/pure/forms/forms.css.scss +167 -0
  21. data/app/assets/stylesheets/pure/forms.css.scss +4 -0
  22. data/app/assets/stylesheets/pure/grids/grids-core.css.scss +24 -0
  23. data/app/assets/stylesheets/pure/grids/grids-r.css.scss +54 -0
  24. data/app/assets/stylesheets/pure/grids/grids-units.css.scss +147 -0
  25. data/app/assets/stylesheets/pure/grids.css.scss +3 -0
  26. data/app/assets/stylesheets/pure/lists/lists-theme.css.scss +241 -0
  27. data/app/assets/stylesheets/pure/menus/menus-core.css.scss +111 -0
  28. data/app/assets/stylesheets/pure/menus/menus-paginator.css.scss +31 -0
  29. data/app/assets/stylesheets/pure/menus/menus-r.css.scss +14 -0
  30. data/app/assets/stylesheets/pure/menus/menus.css.scss +78 -0
  31. data/app/assets/stylesheets/pure/menus.css.scss +4 -0
  32. data/app/assets/stylesheets/pure/tables/tables-theme.css.scss +72 -0
  33. data/app/assets/stylesheets/pure/tables/tables.css.scss +82 -0
  34. data/app/assets/stylesheets/pure/tables.css.scss +2 -0
  35. data/lib/pure/sass/default_translation.rb +28 -0
  36. data/lib/pure/sass/translation.rb +24 -0
  37. data/lib/pure/sass/version.rb +1 -1
  38. data/lib/pure/sass.rb +2 -0
  39. data/pure-sass.gemspec +2 -1
  40. data/spec/acceptance/sass_spec.rb +10 -0
  41. data/spec/fixtures/buttons.css.handlebars +110 -0
  42. data/spec/fixtures/form.css.handlebars +362 -0
  43. data/spec/fixtures/list.css.handlebars +241 -0
  44. data/spec/fixtures/table.css.handlebars +72 -0
  45. data/spec/lib/pure/sass/default_translation_spec.rb +18 -0
  46. data/spec/lib/pure/sass/translation_spec.rb +19 -0
  47. data/spec/sass_importer.rb +14 -0
  48. data/spec/spec_helper.rb +2 -1
  49. metadata +78 -28
  50. data/app/assets/stylesheets/pure/all.css.sass +0 -7
  51. data/app/assets/stylesheets/pure/base/normalize-context.css.sass +0 -152
  52. data/app/assets/stylesheets/pure/base.css.sass +0 -2
  53. data/app/assets/stylesheets/pure/buttons/buttons-core.css.sass +0 -23
  54. data/app/assets/stylesheets/pure/buttons/buttons.css.sass +0 -103
  55. data/app/assets/stylesheets/pure/buttons.css.sass +0 -2
  56. data/app/assets/stylesheets/pure/defaults.css.sass +0 -0
  57. data/app/assets/stylesheets/pure/forms/forms-r.css.sass +0 -22
  58. data/app/assets/stylesheets/pure/forms/forms.css.sass +0 -128
  59. data/app/assets/stylesheets/pure/forms.css.sass +0 -3
  60. data/app/assets/stylesheets/pure/grids/grids-core.css.sass +0 -26
  61. data/app/assets/stylesheets/pure/grids/grids-r.css.sass +0 -34
  62. data/app/assets/stylesheets/pure/grids/grids-units.css.sass +0 -93
  63. data/app/assets/stylesheets/pure/grids.css.sass +0 -3
  64. data/app/assets/stylesheets/pure/menus/menus-core.css.sass +0 -99
  65. data/app/assets/stylesheets/pure/menus/menus-paginator.css.sass +0 -24
  66. data/app/assets/stylesheets/pure/menus/menus-r.css.sass +0 -8
  67. data/app/assets/stylesheets/pure/menus/menus.css.sass +0 -65
  68. data/app/assets/stylesheets/pure/menus.css.sass +0 -4
  69. data/app/assets/stylesheets/pure/tables/tables.css.sass +0 -68
  70. data/app/assets/stylesheets/pure/tables.css.sass +0 -1
  71. data/spec/assets_spec.rb +0 -21
@@ -1,68 +0,0 @@
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
@@ -1 +0,0 @@
1
- @import "tables/tables"
data/spec/assets_spec.rb DELETED
@@ -1,21 +0,0 @@
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