styleguide_rails 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ![Logo](styleguide_rails/raw/master/illustration/logo.png "Logo")
1
+ ![Logo](illustration/logo.png "Logo")
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="styleguide_rails/raw/master/illustration/screenshot.png" alt="Screenshot" />
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,6 +1,6 @@
1
1
  <a name="<%= widget[:name] %>"></a>
2
2
  <dt>
3
- <%= %|Widget "#{widget[:name].capitalize}"| %>
3
+ <%= widget[:name].titleize %>
4
4
  </dt>
5
5
  <dd class="preview">
6
6
  <%= render :file => widget[:filename] %>
@@ -1 +1 @@
1
- <li><a href="#<%= widget[:name] %>"><%= widget[:name].capitalize %></a></li>
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: #5f6975;
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 #5f6975;
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>
@@ -1,3 +1,3 @@
1
1
  module StyleguideRails
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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-01-22 00:00:00.000000000 Z
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