haute 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/app/styleguide.html.haml +19 -57
- data/bin/haute +1 -0
- data/haute.gemspec +2 -2
- data/lib/haute/colorblock.rb +1 -5
- data/lib/haute/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
MGUwMjUzNDZkOTI3Zjk2YzE4YTAwZWJlYjE3ZDJiZTQzOGNhNzRhMw==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6350b3aa8eaae09d5fe8daf0d6468cbf7dff6ce0
|
4
|
+
data.tar.gz: 20d87316f80eb094208a40db13e9906dca8f76d3
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
MWE1NWZhOGI2YTk5YTAyZTQyYWFmMTU0MzMxYjQ3MWFkMTI4MGZmZjE4NDQ2
|
11
|
-
NTZlOGY4YTE1ZDBiMmNmN2VhYWJjMjhlNzU1NWVhYjMzY2RmMzA=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MjdlZmQ1ZjdkMWM1Mjk0MDNlM2JkNjM0NGQ3Nzk0YjJiOTM0YzE4YjE2MGJm
|
14
|
-
ZDJhNjNkYmRlOTFmNDc3ZGQxNDE5ODQ1MWI2YzdhMWJlYmQ1YjVjNWE4YTZi
|
15
|
-
ZDdlZGY5OTA2NDVjNjNmNzNkNjhlYmY0Njg2MWQ4NjZlNTU1ZjU=
|
6
|
+
metadata.gz: d03ede2ddd977a6fd322cd848b63c8170ae6c7c8ff6a3df53dc6099362bb7c9164c0d28c7cae27862dd82d8afc0996d0bcee79ad472c7e2a966aba7541b0bf6e
|
7
|
+
data.tar.gz: a2786eb807906a3fff6f7df8943bb21390acbec54900aa8b1146bd96b6e8f5ec00fd13702bfc0cc78ab4216bb16c5743e91734834cbb947f90bc29556b53baef
|
data/app/styleguide.html.haml
CHANGED
@@ -1,66 +1,28 @@
|
|
1
1
|
.styleguide-variables
|
2
2
|
.styleguide-variables-inputs
|
3
|
-
-# .styleguide-row.row.relative.hidden
|
4
|
-
-# .styleguide-delete-row.fa.fa-times-circle
|
5
|
-
-# .col-md-5= text_field_tag "", "", class: "form-control"
|
6
|
-
-# .col-md-5= text_field_tag "", "", class: "form-control"
|
7
|
-
-# .styleguide-color-swatch.col-md-2.hidden
|
8
|
-
|
9
|
-
-# - @styleguide_vars.each do |section|
|
10
|
-
-# - current_section = section[0]
|
11
|
-
-# - section[1].each do |row|
|
12
|
-
-# - if current_section == "Colors"
|
13
|
-
-# .styleguide-row.row.relative{data: {section: section}}
|
14
|
-
-# -# .styleguide-delete-row.fa.fa-times-circle
|
15
|
-
-# .col-md-5= text_field_tag "", row[:var], class: "form-control"
|
16
|
-
-# -# .col-md-5= text_field_tag "", row[:val], class: "form-control"
|
17
|
-
-# - if current_section == "Colors"
|
18
|
-
-# .styleguide-color-swatch.col-md-2{style: "background-color: #{row[:val]};"}
|
19
|
-
-# - elsif current_section == "Fonts"
|
20
|
-
-# .styleguide-text-swatch.col-md-2{style: "font-family: #{row[:val]};"}
|
21
|
-
-# Sample
|
22
3
|
|
23
4
|
.styleguide-example
|
24
5
|
%h3.styleguide-section-header
|
25
6
|
Colors
|
26
|
-
%em _variables.
|
7
|
+
-# %em _variables.scss
|
27
8
|
|
28
9
|
.styleguide-inner
|
29
|
-
-
|
30
|
-
|
31
|
-
%h4.styleguide-subheading
|
32
|
-
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
%span= color[:extra]
|
41
|
-
|
42
|
-
- if secondary_colors.present?
|
43
|
-
.styleguide-color-row.row
|
44
|
-
%h4.styleguide-subheading Secondary Colors
|
45
|
-
- secondary_colors.each do |color|
|
46
|
-
.col-sm-2.no-padding
|
47
|
-
.styleguide-color{style: "background-color: #{color[:val]}"}
|
48
|
-
%pre
|
49
|
-
%code
|
50
|
-
= color[:var]
|
51
|
-
%br
|
52
|
-
= "hex #{color[:val]}"
|
53
|
-
%span= color[:extra]
|
10
|
+
- color_sections.each do |color_section|
|
11
|
+
- if !color_section.first.empty?
|
12
|
+
%h4.styleguide-subheading= "#{color_section.first} Colors"
|
13
|
+
.styleguide-color-row.row.no-margin.omega-sm-5.omega-md-5.omega-lg-5
|
14
|
+
- color_section[1].each do |color|
|
15
|
+
- color_value = color[:val]
|
16
|
+
- if color[:val][0,1] == "$"
|
17
|
+
- variables = color_sections.first[1]
|
18
|
+
- variables.each do |variable|
|
19
|
+
- if "#{variable[:var]};" == color[:val].strip
|
20
|
+
- color_value = variable[:val].tr(';','')
|
54
21
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
%code
|
63
|
-
= color[:var]
|
64
|
-
%br
|
65
|
-
= "hex #{color[:val]}"
|
66
|
-
%span= color[:extra]
|
22
|
+
.col-sm-2.no-padding
|
23
|
+
.styleguide-color{style: "background-color: #{color_value}"}
|
24
|
+
%pre
|
25
|
+
%code
|
26
|
+
= preserve do
|
27
|
+
= "#{color[:var]}\nhex #{color_value}"
|
28
|
+
%span= color[:extra]
|
data/bin/haute
CHANGED
data/haute.gemspec
CHANGED
@@ -8,9 +8,9 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Haute::VERSION
|
9
9
|
spec.authors = ["Andy Richardson"]
|
10
10
|
spec.email = ["andy@kohactive.com"]
|
11
|
-
spec.summary = "Generate
|
11
|
+
spec.summary = "Generate style guides."
|
12
12
|
spec.description = ""
|
13
|
-
spec.homepage = ""
|
13
|
+
spec.homepage = "https://github.com/kohactive/haute"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
data/lib/haute/colorblock.rb
CHANGED
@@ -33,11 +33,7 @@ module Haute
|
|
33
33
|
end
|
34
34
|
file.close
|
35
35
|
|
36
|
-
|
37
|
-
secondary_colors = @styleguide_vars['Secondary']
|
38
|
-
grayscale_colors = @styleguide_vars['Grayscale']
|
39
|
-
|
40
|
-
{primary_colors: primary_colors, secondary_colors: secondary_colors, grayscale_colors: grayscale_colors}
|
36
|
+
{color_sections: @styleguide_vars}
|
41
37
|
end
|
42
38
|
end
|
43
39
|
end
|
data/lib/haute/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haute
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Richardson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kss
|
@@ -56,14 +56,14 @@ dependencies:
|
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
description: ''
|
@@ -92,7 +92,7 @@ files:
|
|
92
92
|
- lib/haute/support.rb
|
93
93
|
- lib/haute/version.rb
|
94
94
|
- source/styleguide.html.haml
|
95
|
-
homepage:
|
95
|
+
homepage: https://github.com/kohactive/haute
|
96
96
|
licenses:
|
97
97
|
- MIT
|
98
98
|
metadata: {}
|
@@ -102,18 +102,18 @@ require_paths:
|
|
102
102
|
- lib
|
103
103
|
required_ruby_version: !ruby/object:Gem::Requirement
|
104
104
|
requirements:
|
105
|
-
- -
|
105
|
+
- - '>='
|
106
106
|
- !ruby/object:Gem::Version
|
107
107
|
version: '0'
|
108
108
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
109
109
|
requirements:
|
110
|
-
- -
|
110
|
+
- - '>='
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: '0'
|
113
113
|
requirements: []
|
114
114
|
rubyforge_project:
|
115
|
-
rubygems_version: 2.
|
115
|
+
rubygems_version: 2.0.14
|
116
116
|
signing_key:
|
117
117
|
specification_version: 4
|
118
|
-
summary: Generate
|
118
|
+
summary: Generate style guides.
|
119
119
|
test_files: []
|