style-guide 0.1.0 → 0.2.0
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/.gitignore +1 -0
- data/.travis.yml +1 -1
- data/Gemfile.lock +6 -4
- data/README.md +1 -1
- data/app/assets/javascripts/style_guide/docs.js +7 -152
- data/app/assets/javascripts/style_guide/sidebar.js +18 -0
- data/app/assets/stylesheets/docs.css +153 -0
- data/app/assets/stylesheets/responsive.css +164 -0
- data/app/assets/stylesheets/style_guide/ars-maquette-web.css +35 -0
- data/app/assets/stylesheets/style_guide/example.css +20 -0
- data/app/assets/stylesheets/style_guide/footer.css +23 -0
- data/app/assets/stylesheets/style_guide/header.css +31 -0
- data/app/assets/stylesheets/style_guide/layout.css +69 -0
- data/app/assets/stylesheets/style_guide/navbar.css +141 -0
- data/app/assets/stylesheets/style_guide/sidebar.css +48 -0
- data/app/controllers/style_guide/style_controller.rb +8 -0
- data/app/views/layouts/style_guide/application.html.erb +14 -25
- data/app/views/style_guide/partials/_button_disabled_state.erb +2 -0
- data/app/views/style_guide/partials/_button_element.erb +2 -0
- data/app/views/style_guide/partials/_button_sizes.erb +16 -0
- data/app/views/style_guide/partials/_buttons.erb +51 -167
- data/app/views/style_guide/partials/_code_blocks.erb +12 -0
- data/app/views/style_guide/partials/_code_inline.erb +1 -0
- data/app/views/style_guide/style/_header.erb +3 -0
- data/app/views/style_guide/style/_sidebar.erb +2 -2
- data/app/views/style_guide/style/show.html.erb +18 -0
- data/config/routes.rb +1 -1
- data/lib/style_guide/section.rb +2 -2
- data/lib/style_guide/version.rb +1 -1
- data/spec/controllers/style_guide/style_controller_spec.rb +27 -0
- data/spec/dummy/app/assets/stylesheets/application.css +38 -2
- data/spec/dummy/app/assets/stylesheets/swatches.css +16 -0
- data/spec/dummy/app/views/styles/_00swatches.erb +8 -0
- data/spec/spec_helper.rb +4 -6
- data/style-guide.gemspec +1 -0
- metadata +39 -5
- data/app/assets/stylesheets/style_guide/docs.css +0 -1015
- data/app/views/style_guide/partials/_code.erb +0 -31
- data/app/views/style_guide/style/index.html.erb +0 -23
@@ -1,31 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
<!-- Code
|
4
|
-
================================================== -->
|
5
|
-
<section id="code">
|
6
|
-
<div class="page-header">
|
7
|
-
<h1>Code</h1>
|
8
|
-
</div>
|
9
|
-
|
10
|
-
<h2>Inline</h2>
|
11
|
-
<p>Wrap inline snippets of code with <code><code></code>.</p>
|
12
|
-
<div class="bs-docs-example">
|
13
|
-
For example, <code><section></code> should be wrapped as inline.
|
14
|
-
</div>
|
15
|
-
<pre class="prettyprint linenums">
|
16
|
-
For example, <code><section></code> should be wrapped as inline.
|
17
|
-
</pre>
|
18
|
-
|
19
|
-
<h2>Basic block</h2>
|
20
|
-
<p>Use <code><pre></code> for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.</p>
|
21
|
-
<div class="bs-docs-example">
|
22
|
-
<pre><p>Sample text here...</p></pre>
|
23
|
-
</div>
|
24
|
-
<pre class="prettyprint linenums" style="margin-bottom: 9px;">
|
25
|
-
<pre>
|
26
|
-
&lt;p&gt;Sample text here...&lt;/p&gt;
|
27
|
-
</pre>
|
28
|
-
</pre>
|
29
|
-
<p><span class="label label-info">Heads up!</span> Be sure to keep code within <code><pre></code> tags as close to the left as possible; it will render all tabs.</p>
|
30
|
-
<p>You may optionally add the <code>.pre-scrollable</code> class which will set a max-height of 350px and provide a y-axis scrollbar.</p>
|
31
|
-
</section>
|
@@ -1,23 +0,0 @@
|
|
1
|
-
<!-- Subhead
|
2
|
-
================================================== -->
|
3
|
-
<header class="jumbotron subhead" id="overview">
|
4
|
-
<div class="container">
|
5
|
-
<h1><%= @active.title %></h1>
|
6
|
-
</div>
|
7
|
-
</header>
|
8
|
-
|
9
|
-
<div class="container">
|
10
|
-
<!-- Docs nav
|
11
|
-
================================================== -->
|
12
|
-
<div class="row">
|
13
|
-
<div class="span3 bs-docs-sidebar">
|
14
|
-
<%= render :partial => "sidebar" %>
|
15
|
-
</div>
|
16
|
-
|
17
|
-
<div class="span9">
|
18
|
-
<% @active.partials.each do |partial| %>
|
19
|
-
<%= render :file => partial.path %>
|
20
|
-
<% end %>
|
21
|
-
</div>
|
22
|
-
</div>
|
23
|
-
</div>
|