styleus 0.0.11 → 0.0.12

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b00fd67eed5964751394fa56d6f29f916584122f
4
+ data.tar.gz: 742c3e5aefb49d4f0d302d94e8cccab4d7975989
5
+ SHA512:
6
+ metadata.gz: 57e469ab37dc87461f752af162d0f93a4e521f92416f17adf1621785298ac80b174d48cac86fbdc7f9d1440735b7c3ae6404d03272447137ddc48120c7a9674f
7
+ data.tar.gz: 571ba82c75fd29f65810e137a4535c3deda798852d47a98dc88860e5ccf81dca8337511cc78882e954f5198515883674752e6602571a215eca2ada925d233f86
@@ -1,5 +1,7 @@
1
1
  == styleus
2
2
 
3
+ NOTICE: Further development and maintenance will happen at innoQ projectspace >> https://github.com/innoq/styleus
4
+
3
5
  styleus is a support tool for creating a fast
4
6
  and simple component based html style guide.
5
7
 
@@ -13,9 +13,8 @@
13
13
 
14
14
  @import 'base/layout/main';
15
15
 
16
-
17
16
  @import 'base/components/article';
18
17
  @import 'base/components/option_bar';
19
18
  @import 'base/components/component_index';
20
19
  @import 'base/components/dummy_content';
21
- @import 'base/components/index_documnentation';
20
+ @import 'base/components/documnentation';
@@ -26,12 +26,7 @@
26
26
  }
27
27
  }
28
28
 
29
- .__documentation {
30
- @include floating-text-font;
31
- @include text-content-padding;
32
- margin-bottom: 0.5em;
33
- width: 80%;
34
- }
29
+ .__documentation { width: 90%; }
35
30
 
36
31
  .__code_partials {
37
32
  @include border-radius(3px);
@@ -0,0 +1,26 @@
1
+ .__documentation {
2
+ @include floating-text-font;
3
+ @include text-content-padding;
4
+ margin-bottom: 0.5em;
5
+
6
+ p {
7
+ line-height: 1.5;
8
+
9
+ em {
10
+ font-weight: bold;
11
+ color: #333;
12
+ }
13
+ }
14
+ }
15
+
16
+ .__index.__documentation {
17
+ @include default-side-margin;
18
+ @include floating-text-font;
19
+ margin-top: 2em;
20
+
21
+ h2 {
22
+ font-size: 1.4em;
23
+ font-weight: bold;
24
+ margin-bottom: 0.5em;
25
+ }
26
+ }
@@ -1,22 +1,25 @@
1
1
  // TODO: has to be discovered via js, later.
2
2
  $diagonals_default_size: 100%;
3
3
  $diagonals_multiplier: 2;
4
+ $border_color: #dddddd;
4
5
 
5
6
  .styleus_sample.box {
6
- //@include component;
7
+ @include border-radius(4px);
8
+ @include component;
7
9
  display: block;
8
- border: 1px solid black;
10
+ border: 1px solid $border_color;
9
11
  height: 100px;
10
12
  margin: 3px;
11
13
  width: 100px;
14
+ background: #eeeeee;
15
+
12
16
 
13
17
  & > .diagonal {
14
18
  display: block;
15
19
  height: 1px;
16
20
  position: relative;
17
- //left: -($diagonals_default_size / $diagonals_multiplier);
18
21
  left: 0;
19
22
  top: $diagonals_default_size / $diagonals_multiplier;
20
- background: #000;
23
+ background: $border_color;
21
24
  }
22
25
  }
@@ -2,7 +2,7 @@ require 'styleus_helper'
2
2
 
3
3
  module ExternalHelper
4
4
  def index_documentation(&block)
5
- content_tag('section', class: '__index_documentation', &block).html_safe
5
+ content_tag('section', class: '__index __documentation', &block).html_safe
6
6
  end
7
7
 
8
8
  def documentation(&block)
@@ -9,6 +9,10 @@ module Styleus
9
9
  headline.underscore.gsub(/ /, '_')
10
10
  end
11
11
 
12
+ def to_s
13
+ headline.humanize.pluralize
14
+ end
15
+
12
16
  class << self
13
17
  def components
14
18
  @components ||= []
@@ -3,7 +3,7 @@
3
3
  <h3>Components</h3>
4
4
  <ul>
5
5
  <% Styleus::Component.sections.each do |section, components| %>
6
- <li><%= link_to section.to_s.camelcase, send(:"#{section.to_s.pluralize}_path") %></li>
6
+ <li><%= link_to section.to_s.humanize.pluralize, send(:"#{section.to_s.pluralize}_path") %></li>
7
7
  <% end %>
8
8
  </ul>
9
9
  </nav>
@@ -3,7 +3,7 @@
3
3
  <%= content_tag 'h3', headline if headline %>
4
4
  <ul>
5
5
  <%= content_tag_for(:li, components) do |component| %>
6
- <%= link_to component.headline, anchor: component.id %>
6
+ <%= link_to component.to_s, anchor: component.id %>
7
7
  <% end %>
8
8
  </ul>
9
9
  </nav>
@@ -1,3 +1,3 @@
1
1
  module Styleus
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
metadata CHANGED
@@ -1,62 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: styleus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
5
- prerelease:
4
+ version: 0.0.12
6
5
  platform: ruby
7
6
  authors:
8
7
  - Falk Hoppe
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-12-27 00:00:00.000000000 Z
11
+ date: 2014-05-12 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: 3.2.9
19
+ version: 3.2.18
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
29
- version: 3.2.9
26
+ version: 3.2.18
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: coderay
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: compass-rails
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  description: styleus is a support tool for creating a fast and simple component based
@@ -89,8 +82,8 @@ files:
89
82
  - app/assets/stylesheets/styleus/themes/base/coderay.css.scss
90
83
  - app/assets/stylesheets/styleus/themes/base/components/_article.css.scss
91
84
  - app/assets/stylesheets/styleus/themes/base/components/_component_index.css.scss
85
+ - app/assets/stylesheets/styleus/themes/base/components/_documnentation.css.scss
92
86
  - app/assets/stylesheets/styleus/themes/base/components/_dummy_content.css.scss
93
- - app/assets/stylesheets/styleus/themes/base/components/_index_documnentation.css.scss
94
87
  - app/assets/stylesheets/styleus/themes/base/components/_option_bar.css.scss
95
88
  - app/assets/stylesheets/styleus/themes/base/fonts/raphael.css.scss
96
89
  - app/assets/stylesheets/styleus/themes/base/layout/main.css.scss
@@ -131,26 +124,25 @@ files:
131
124
  - README.rdoc
132
125
  homepage:
133
126
  licenses: []
127
+ metadata: {}
134
128
  post_install_message:
135
129
  rdoc_options: []
136
130
  require_paths:
137
131
  - lib
138
132
  required_ruby_version: !ruby/object:Gem::Requirement
139
- none: false
140
133
  requirements:
141
- - - ! '>='
134
+ - - '>='
142
135
  - !ruby/object:Gem::Version
143
136
  version: '0'
144
137
  required_rubygems_version: !ruby/object:Gem::Requirement
145
- none: false
146
138
  requirements:
147
- - - ! '>='
139
+ - - '>='
148
140
  - !ruby/object:Gem::Version
149
141
  version: '0'
150
142
  requirements: []
151
143
  rubyforge_project:
152
- rubygems_version: 1.8.23
144
+ rubygems_version: 2.0.14
153
145
  signing_key:
154
- specification_version: 3
146
+ specification_version: 4
155
147
  summary: Styleguide Support Tool
156
148
  test_files: []
@@ -1,12 +0,0 @@
1
- .__index_documentation {
2
- @include default-side-margin;
3
- @include floating-text-font;
4
- margin-top: 2em;
5
- padding-left: 0.5em;
6
-
7
- h2 {
8
- font-size: 1.4em;
9
- font-weight: bold;
10
- margin-bottom: 0.5em;
11
- }
12
- }