styleguide_rails 0.1.2 → 0.1.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.
- data/README.md +2 -2
- data/lib/generators/styleguide/templates/_widget.html.erb +1 -1
- data/lib/generators/styleguide/templates/_widget_link.html.erb +1 -1
- data/lib/generators/styleguide/templates/styleguide.css +6 -2
- data/lib/generators/styleguide/templates/styleguide.html.erb +1 -0
- data/lib/styleguide_rails/version.rb +1 -1
- metadata +2 -8
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-

|
|
2
2
|
|
|
3
3
|
Adds a [living style
|
|
4
4
|
guide](http://24ways.org/2011/front-end-style-guides/) to your Rails
|
|
@@ -39,7 +39,7 @@ That's it, you're done, you have a styleguide available at
|
|
|
39
39
|
is an example widget already created:
|
|
40
40
|
|
|
41
41
|
<p align="center">
|
|
42
|
-
<img src="
|
|
42
|
+
<img src="illustration/screenshot.png" alt="Screenshot" />
|
|
43
43
|
</p>
|
|
44
44
|
|
|
45
45
|
To add a new widget, create a partial in `app/views/styleguide/widgets`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<li><a href="#<%= widget[:name] %>"><%= widget[:name].
|
|
1
|
+
<li><a href="#<%= widget[:name] %>"><%= widget[:name].titleize %></a></li>
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
background: white;
|
|
3
3
|
padding: 0;
|
|
4
4
|
margin: 0;
|
|
5
|
+
font-family: Sans-Serif;
|
|
5
6
|
}
|
|
6
7
|
#styleguide_rails > nav {
|
|
7
8
|
font-family: Helvetica, sans-serif;
|
|
@@ -81,13 +82,16 @@
|
|
|
81
82
|
font-size: 120%;
|
|
82
83
|
text-align: center;
|
|
83
84
|
color: white;
|
|
84
|
-
background: #
|
|
85
|
+
background: #000;
|
|
85
86
|
}
|
|
86
87
|
#styleguide_rails > dl > dd {
|
|
87
88
|
margin: 0;
|
|
88
89
|
}
|
|
89
90
|
#styleguide_rails > dl > dd.preview {
|
|
90
|
-
border: 1px dashed #
|
|
91
|
+
border-bottom: 1px dashed #CCC;
|
|
92
|
+
border-left: 1px dashed #CCC;
|
|
93
|
+
border-right: 1px dashed #CCC;
|
|
94
|
+
border-top: 1px dashed #FFF;
|
|
91
95
|
}
|
|
92
96
|
#styleguide_rails > dl > dd > div.location {
|
|
93
97
|
font-style: italic;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
<title>Application Style Guide</title>
|
|
5
5
|
<%= stylesheet_link_tag "application", :media => "all" %>
|
|
6
6
|
<%= javascript_include_tag "application" %>
|
|
7
|
+
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
|
|
7
8
|
|
|
8
9
|
<!-- Bypass asset pipeline to protect other pages -->
|
|
9
10
|
<script src="/javascripts/styleguide.js" type="text/javascript"></script>
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: styleguide_rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2013-
|
|
13
|
+
date: 2013-02-13 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rails
|
|
@@ -67,18 +67,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
67
67
|
- - ! '>='
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
69
|
version: '0'
|
|
70
|
-
segments:
|
|
71
|
-
- 0
|
|
72
|
-
hash: -2412295386765068664
|
|
73
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
71
|
none: false
|
|
75
72
|
requirements:
|
|
76
73
|
- - ! '>='
|
|
77
74
|
- !ruby/object:Gem::Version
|
|
78
75
|
version: '0'
|
|
79
|
-
segments:
|
|
80
|
-
- 0
|
|
81
|
-
hash: -2412295386765068664
|
|
82
76
|
requirements: []
|
|
83
77
|
rubyforge_project:
|
|
84
78
|
rubygems_version: 1.8.24
|