uniform-ui 0.5 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -1
  3. data/Gemfile +2 -1
  4. data/Gemfile.lock +12 -0
  5. data/Rakefile +34 -8
  6. data/index.html +587 -406
  7. data/preview/index.html.erb +423 -433
  8. data/preview/preview.scss +42 -0
  9. data/site/index.html +660 -0
  10. data/site/logo.png +0 -0
  11. data/site/preview.css +1 -0
  12. data/site/site/logo.png +0 -0
  13. data/site/site/preview.css +1 -0
  14. data/site/site/uniform.css +1 -0
  15. data/site/uniform.css +1 -0
  16. data/uniform.gemspec +3 -2
  17. data/vendor/assets/stylesheets/uniform/components/{buttons.css.scss → buttons.scss} +66 -33
  18. data/vendor/assets/stylesheets/uniform/components/card.scss +83 -0
  19. data/vendor/assets/stylesheets/uniform/components/form.scss +221 -0
  20. data/vendor/assets/stylesheets/uniform/components/grid.scss +83 -0
  21. data/vendor/assets/stylesheets/uniform/components/{inputs.css.scss → inputs.scss} +57 -29
  22. data/vendor/assets/stylesheets/uniform/components/lists.scss +62 -0
  23. data/vendor/assets/stylesheets/uniform/components/loaders.scss +62 -0
  24. data/vendor/assets/stylesheets/uniform/components/nav.scss +44 -0
  25. data/vendor/assets/stylesheets/uniform/components/row.scss +165 -0
  26. data/vendor/assets/stylesheets/uniform/components/table-container.scss +44 -0
  27. data/vendor/assets/stylesheets/uniform/components/table-form.scss +264 -0
  28. data/vendor/assets/stylesheets/uniform/components/tabs.scss +32 -0
  29. data/vendor/assets/stylesheets/uniform/components/tile.scss +32 -0
  30. data/vendor/assets/stylesheets/uniform/defaults.scss +30 -0
  31. data/vendor/assets/stylesheets/uniform/helpers.scss +128 -0
  32. data/vendor/assets/stylesheets/uniform/mixins/grid-framework.scss +142 -0
  33. data/vendor/assets/stylesheets/uniform/{mixins.css.scss → mixins.scss} +16 -32
  34. data/vendor/assets/stylesheets/uniform/variables.scss +54 -0
  35. data/vendor/assets/stylesheets/{uniform.css.scss → uniform.scss} +4 -1
  36. metadata +44 -13
  37. data/preview/preview.css +0 -1
  38. data/preview/preview.css.scss +0 -3
  39. data/preview/uniform.css +0 -0
  40. data/vendor/assets/stylesheets/uniform/components/loaders.css.scss +0 -149
  41. data/vendor/assets/stylesheets/uniform/helpers.css.scss +0 -31
  42. data/vendor/assets/stylesheets/uniform/variables.css.scss +0 -44
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66e5531a02b5d26fc0ad382afefea509d3723c6b
4
- data.tar.gz: 1f87b2445d11bea0300cf5e79416b6d7988fbb9a
3
+ metadata.gz: 79d1d749ce1b0c36c1f156dc7f58ba414d3dd419
4
+ data.tar.gz: c185d29c4a52493f12c11beee353a50aa5365815
5
5
  SHA512:
6
- metadata.gz: ecaf1ec23b2b86308f4384e99f8126de41650b5353ee9e4fcdda40c165feb55af172734551cd914e0f203d17b043d54c555dadd37899ec32fa292172bebbd491
7
- data.tar.gz: 323183d4a2f10910e86537238ddaccef3083961486b9a2deeb1965b9d02effa53693037c15db3266a460556a5b2d68529a122fe1cd47e62eb2c3f5ce863ca93a
6
+ metadata.gz: 855325985f61623bdbc25206db87ffe2aef466d58575cdb4fc649de34c85dbb4dbf15f6b085ec07cd6919ab231107244df1efcc96c419e5c4e4509f77325b2a8
7
+ data.tar.gz: 56f23cc7d0509f18f0dbad3940276b8e289e759d898003f7ea6fadf6e994adb6e2767cf234c201fc60f0a766387548b18a209605ba7b64bd1f8564bfc9d94fcd
data/.gitignore CHANGED
@@ -1 +1,2 @@
1
- .sass-cache/*
1
+ .sass-cache/*
2
+ *.gem
data/Gemfile CHANGED
@@ -8,4 +8,5 @@ gem 'sass'
8
8
  gem 'sprockets-sass'
9
9
  gem 'bourbon'
10
10
  gem 'neat'
11
- gem 'rake'
11
+ gem 'rake'
12
+ gem 'activesupport'
data/Gemfile.lock CHANGED
@@ -2,10 +2,18 @@ GEM
2
2
  remote: http://rubygems.org/
3
3
  remote: https://rubygems.org/
4
4
  specs:
5
+ activesupport (5.0.0.1)
6
+ concurrent-ruby (~> 1.0, >= 1.0.2)
7
+ i18n (~> 0.7)
8
+ minitest (~> 5.1)
9
+ tzinfo (~> 1.1)
5
10
  bourbon (4.2.7)
6
11
  sass (~> 3.4)
7
12
  thor (~> 0.19)
13
+ concurrent-ruby (1.0.2)
8
14
  hike (1.2.3)
15
+ i18n (0.7.0)
16
+ minitest (5.9.0)
9
17
  multi_json (1.12.1)
10
18
  neat (1.8.0)
11
19
  sass (>= 3.3)
@@ -22,12 +30,16 @@ GEM
22
30
  sprockets (~> 2.0)
23
31
  tilt (~> 1.1)
24
32
  thor (0.19.1)
33
+ thread_safe (0.3.5)
25
34
  tilt (1.4.1)
35
+ tzinfo (1.2.2)
36
+ thread_safe (~> 0.1)
26
37
 
27
38
  PLATFORMS
28
39
  ruby
29
40
 
30
41
  DEPENDENCIES
42
+ activesupport
31
43
  bourbon
32
44
  neat
33
45
  rake
data/Rakefile CHANGED
@@ -1,3 +1,4 @@
1
+ require 'active_support/core_ext/string'
1
2
  require 'fileutils'
2
3
  require 'sprockets'
3
4
  require "sprockets-sass"
@@ -7,20 +8,27 @@ Bundler.require(:default)
7
8
 
8
9
  # Setup Sprockets
9
10
  environment = Sprockets::Environment.new
10
- environment.append_path 'lib'
11
+ environment.append_path 'vendor/assets/stylesheets'
11
12
  environment.append_path 'preview'
12
13
  environment.css_compressor = :scss
13
14
 
14
- desc "Compile preview"
15
- task :compile do
16
- FileUtils.rm_f('./uniform.css')
15
+ module Sass::Script::Functions
16
+ def global_variable(name)
17
+ assert_type name, :String, :name
18
+ environment.global_env.var(name.value)
19
+ end
20
+ declare :global_variable, [:string]
21
+ end
17
22
 
18
- File.open('./preview/uniform.css', "w") do |file|
19
- file << environment['uniform.css.scss']
23
+ desc "Compile page"
24
+ task :compile do
25
+
26
+ File.open('./site/uniform.css', "w") do |file|
27
+ file << environment['uniform.scss']
20
28
  end
21
29
 
22
- File.open('./preview/preview.css', "w") do |file|
23
- file << environment['preview.css.scss']
30
+ File.open('./site/preview.css', "w") do |file|
31
+ file << environment['preview.scss']
24
32
  end
25
33
 
26
34
  # Render the test html file
@@ -30,6 +38,24 @@ task :compile do
30
38
 
31
39
  end
32
40
 
41
+ desc "Compile preview"
42
+ task :preview do
43
+
44
+ File.open('./site/site/uniform.css', "w") do |file|
45
+ file << environment['uniform.scss']
46
+ end
47
+
48
+ File.open('./site/site/preview.css', "w") do |file|
49
+ file << environment['preview.scss']
50
+ end
51
+
52
+ # Render the test html file
53
+ File.open('./site/index.html', 'w') do |file|
54
+ file.write(ERB.new(File.read('preview/index.html.erb')).result(binding))
55
+ end
56
+
57
+ end
58
+
33
59
  class UrlGenerator < Sprockets::DirectiveProcessor
34
60
  protected
35
61
  def process_source