uniform-ui 0.5 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/Gemfile +2 -1
- data/Gemfile.lock +12 -0
- data/Rakefile +34 -8
- data/index.html +587 -406
- data/preview/index.html.erb +423 -433
- data/preview/preview.scss +42 -0
- data/site/index.html +660 -0
- data/site/logo.png +0 -0
- data/site/preview.css +1 -0
- data/site/site/logo.png +0 -0
- data/site/site/preview.css +1 -0
- data/site/site/uniform.css +1 -0
- data/site/uniform.css +1 -0
- data/uniform.gemspec +3 -2
- data/vendor/assets/stylesheets/uniform/components/{buttons.css.scss → buttons.scss} +66 -33
- data/vendor/assets/stylesheets/uniform/components/card.scss +83 -0
- data/vendor/assets/stylesheets/uniform/components/form.scss +221 -0
- data/vendor/assets/stylesheets/uniform/components/grid.scss +83 -0
- data/vendor/assets/stylesheets/uniform/components/{inputs.css.scss → inputs.scss} +57 -29
- data/vendor/assets/stylesheets/uniform/components/lists.scss +62 -0
- data/vendor/assets/stylesheets/uniform/components/loaders.scss +62 -0
- data/vendor/assets/stylesheets/uniform/components/nav.scss +44 -0
- data/vendor/assets/stylesheets/uniform/components/row.scss +165 -0
- data/vendor/assets/stylesheets/uniform/components/table-container.scss +44 -0
- data/vendor/assets/stylesheets/uniform/components/table-form.scss +264 -0
- data/vendor/assets/stylesheets/uniform/components/tabs.scss +32 -0
- data/vendor/assets/stylesheets/uniform/components/tile.scss +32 -0
- data/vendor/assets/stylesheets/uniform/defaults.scss +30 -0
- data/vendor/assets/stylesheets/uniform/helpers.scss +128 -0
- data/vendor/assets/stylesheets/uniform/mixins/grid-framework.scss +142 -0
- data/vendor/assets/stylesheets/uniform/{mixins.css.scss → mixins.scss} +16 -32
- data/vendor/assets/stylesheets/uniform/variables.scss +54 -0
- data/vendor/assets/stylesheets/{uniform.css.scss → uniform.scss} +4 -1
- metadata +44 -13
- data/preview/preview.css +0 -1
- data/preview/preview.css.scss +0 -3
- data/preview/uniform.css +0 -0
- data/vendor/assets/stylesheets/uniform/components/loaders.css.scss +0 -149
- data/vendor/assets/stylesheets/uniform/helpers.css.scss +0 -31
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79d1d749ce1b0c36c1f156dc7f58ba414d3dd419
|
4
|
+
data.tar.gz: c185d29c4a52493f12c11beee353a50aa5365815
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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 '
|
11
|
+
environment.append_path 'vendor/assets/stylesheets'
|
11
12
|
environment.append_path 'preview'
|
12
13
|
environment.css_compressor = :scss
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
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
|
-
|
19
|
-
|
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('./
|
23
|
-
file << environment['preview.
|
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
|