style_guide 0.0.1
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.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +92 -0
- data/MIT-LICENSE +20 -0
- data/README.md +91 -0
- data/Rakefile +34 -0
- data/app/assets/images/style_guide/.keep +0 -0
- data/app/assets/javascripts/style_guides.js +97 -0
- data/app/assets/javascripts/style_guides_plugins.js +31 -0
- data/app/assets/stylesheets/style.css +116 -0
- data/app/assets/stylesheets/style_guides.css +405 -0
- data/app/controllers/.keep +0 -0
- data/app/controllers/style_guide_controller.rb +16 -0
- data/app/helpers/.keep +0 -0
- data/app/helpers/style_guide_helper.rb +28 -0
- data/app/mailers/.keep +0 -0
- data/app/models/.keep +0 -0
- data/app/views/.keep +0 -0
- data/app/views/layouts/style_guide.html.erb +25 -0
- data/app/views/style_guide/index.html.erb +105 -0
- data/bin/rails +12 -0
- data/config/routes.rb +4 -0
- data/lib/assets/.keep +0 -0
- data/lib/assets/style_guide/doc/base/address.html +1 -0
- data/lib/assets/style_guide/doc/base/blockquote.html +1 -0
- data/lib/assets/style_guide/doc/base/details.html +1 -0
- data/lib/assets/style_guide/doc/base/figure.html +1 -0
- data/lib/assets/style_guide/doc/base/form-buttons.html +1 -0
- data/lib/assets/style_guide/doc/base/form-fields-default.html +1 -0
- data/lib/assets/style_guide/doc/base/form-fields-disabled.html +1 -0
- data/lib/assets/style_guide/doc/base/form-fields-readonly.html +1 -0
- data/lib/assets/style_guide/doc/base/form-fields-with-datalist.html +1 -0
- data/lib/assets/style_guide/doc/base/form-fieldset.html +1 -0
- data/lib/assets/style_guide/doc/base/headings-1.html +1 -0
- data/lib/assets/style_guide/doc/base/headings-2.html +1 -0
- data/lib/assets/style_guide/doc/base/headings-3.html +1 -0
- data/lib/assets/style_guide/doc/base/hr.html +1 -0
- data/lib/assets/style_guide/doc/base/list-definition.html +1 -0
- data/lib/assets/style_guide/doc/base/list-ordered.html +1 -0
- data/lib/assets/style_guide/doc/base/list-unordered.html +1 -0
- data/lib/assets/style_guide/doc/base/media.html +1 -0
- data/lib/assets/style_guide/doc/base/meter-and-progress.html +1 -0
- data/lib/assets/style_guide/doc/base/preformated-text.html +1 -0
- data/lib/assets/style_guide/doc/base/sample-content-block.html +1 -0
- data/lib/assets/style_guide/doc/base/tabular-data.html +1 -0
- data/lib/assets/style_guide/doc/base/text-elements.html +1 -0
- data/lib/assets/style_guide/doc/base/time.html +1 -0
- data/lib/assets/style_guide/doc/patterns/alerts.html +1 -0
- data/lib/assets/style_guide/doc/patterns/breadcrumbs.html +1 -0
- data/lib/assets/style_guide/markup/base/address.html +6 -0
- data/lib/assets/style_guide/markup/base/blockquote.html +5 -0
- data/lib/assets/style_guide/markup/base/details.html +30 -0
- data/lib/assets/style_guide/markup/base/figure.html +12 -0
- data/lib/assets/style_guide/markup/base/form-buttons.html +13 -0
- data/lib/assets/style_guide/markup/base/form-fields-default.html +41 -0
- data/lib/assets/style_guide/markup/base/form-fields-disabled.html +13 -0
- data/lib/assets/style_guide/markup/base/form-fields-readonly.html +9 -0
- data/lib/assets/style_guide/markup/base/form-fields-with-datalist.html +94 -0
- data/lib/assets/style_guide/markup/base/form-fieldset.html +19 -0
- data/lib/assets/style_guide/markup/base/headings-1.html +6 -0
- data/lib/assets/style_guide/markup/base/headings-2.html +8 -0
- data/lib/assets/style_guide/markup/base/headings-3.html +8 -0
- data/lib/assets/style_guide/markup/base/hr.html +1 -0
- data/lib/assets/style_guide/markup/base/list-definition.html +10 -0
- data/lib/assets/style_guide/markup/base/list-ordered.html +18 -0
- data/lib/assets/style_guide/markup/base/list-unordered.html +18 -0
- data/lib/assets/style_guide/markup/base/media.html +36 -0
- data/lib/assets/style_guide/markup/base/meter-and-progress.html +11 -0
- data/lib/assets/style_guide/markup/base/preformated-text.html +18 -0
- data/lib/assets/style_guide/markup/base/sample-content-block.html +17 -0
- data/lib/assets/style_guide/markup/base/tabular-data.html +68 -0
- data/lib/assets/style_guide/markup/base/text-elements.html +23 -0
- data/lib/assets/style_guide/markup/base/time.html +1 -0
- data/lib/assets/style_guide/markup/patterns/alerts.html +16 -0
- data/lib/assets/style_guide/markup/patterns/breadcrumbs.html +6 -0
- data/lib/style_guide/engine.rb +11 -0
- data/lib/style_guide/version.rb +3 -0
- data/lib/style_guide.rb +7 -0
- data/lib/tasks/style_guide_tasks.rake +4 -0
- data/style_guide.gemspec +26 -0
- data/test/controllers/style_guide_controller_test.rb +7 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/mailers/.keep +0 -0
- data/test/dummy/app/models/.keep +0 -0
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +82 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/assets.rb +8 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +56 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/log/.keep +0 -0
- data/test/dummy/log/development.log +3212 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/004eafe024778b45bd76b68aaba4ac15 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/02b9d9c6edce2d06f23d37980b4ee800 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/077546dcfe9730fd178069bbd08aabcd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/12cfd2d3d39780df1fa5a909e8d44377 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/146550a0272c7c23525da1a6bae7129c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1a165ceceb0f8a97466552db5a2e9117 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2cf006db500529f607744ffa0f89471c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/32a1ac63db3780b8a111e5485be56982 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4e4e3e3a5771df9cae4d26bc6baf46c7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/58173999e48afe09e8884356c79609f3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/68e2d01c68da66c13b0d9e1476d859d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7db7b6b32d1463ec5d4d358ad5e016cd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/81de5a8f8e9be0339dc42a8d3478ef61 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8b14c1fcb69f343941b217e79224b573 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a74b3d31d1ee9251adb48ec3f6b692db +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c080f0d6d4225e1a2e99b5f69ab934f8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c5ae04ae7418d8ea47212cf5f39ad45c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cb475082e4e87eebe72cca39328e75fc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e70c6cc21a053bd60db4b0b2751a3842 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f13b97266d7293a648da96110bd0828d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f39c3d50409be057fc18747ecf424bf0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f6d4686b27f2d3d964bf69c90a281e75 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/faf31f12c745fa3dfaa9180a7f6fb546 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fb37ec5c5023032c53cd43bed0105798 +0 -0
- data/test/helpers/style_guide_helper_test.rb +4 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/style_guide_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- metadata +302 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<p>Add your personalized documentation here.</p>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<p>Add your personalized documentation here.</p>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<p>Add your personalized documentation here.</p>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<p>Add your personalized documentation here.</p>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<p>Add your personalized documentation here.</p>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<details open>
|
|
2
|
+
<summary>More info</summary>
|
|
3
|
+
<div>
|
|
4
|
+
<p>Additional information</p>
|
|
5
|
+
<ul>
|
|
6
|
+
<li>Point 1</li>
|
|
7
|
+
<li>Point 2</li>
|
|
8
|
+
</ul>
|
|
9
|
+
</div>
|
|
10
|
+
</details>
|
|
11
|
+
<details>
|
|
12
|
+
<summary>More info</summary>
|
|
13
|
+
<div>
|
|
14
|
+
<p>Additional information</p>
|
|
15
|
+
<ul>
|
|
16
|
+
<li>Point 1</li>
|
|
17
|
+
<li>Point 2</li>
|
|
18
|
+
</ul>
|
|
19
|
+
</div>
|
|
20
|
+
</details>
|
|
21
|
+
<details>
|
|
22
|
+
<summary>More info</summary>
|
|
23
|
+
<div>
|
|
24
|
+
<p>Additional information</p>
|
|
25
|
+
<ul>
|
|
26
|
+
<li>Point 1</li>
|
|
27
|
+
<li>Point 2</li>
|
|
28
|
+
</ul>
|
|
29
|
+
</div>
|
|
30
|
+
</details>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<figure>
|
|
2
|
+
<img src="http://placehold.it/240x240" alt="Image Alt Text">
|
|
3
|
+
<figcaption>Figcaption content</figcaption>
|
|
4
|
+
</figure>
|
|
5
|
+
|
|
6
|
+
<figure>
|
|
7
|
+
<img src="http://placehold.it/240x240" alt="Image Alt Text">
|
|
8
|
+
<figcaption>
|
|
9
|
+
<h4>Figure Title</h4>
|
|
10
|
+
Figcaption content
|
|
11
|
+
</figcaption>
|
|
12
|
+
</figure>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<form>
|
|
2
|
+
<fieldset>
|
|
3
|
+
<p><input type="button" value="Input type button"></p>
|
|
4
|
+
<p><input type="reset" value="Input type reset"></p>
|
|
5
|
+
<p><input type="submit" value="Input type submit"></p>
|
|
6
|
+
<p><input type="submit" value="Input type submit disabled" disabled></p>
|
|
7
|
+
<p><button type="button">Button type button</button></p>
|
|
8
|
+
<p><button type="reset">Button type reset</button></p>
|
|
9
|
+
<p><button type="submit">Button type submit</button></p>
|
|
10
|
+
<p><button type="button" disabled>Button type button disabled</button></p>
|
|
11
|
+
<p><button>Button</button></p>
|
|
12
|
+
</fieldset>
|
|
13
|
+
</form>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<form>
|
|
2
|
+
<fieldset>
|
|
3
|
+
<div><label>Text input</label> <input type="text"></div>
|
|
4
|
+
<div><label>Text input with placeholder</label> <input type="text" placeholder="I'm placeholder text"></div>
|
|
5
|
+
<div><label>Readonly input</label> <input type="text" value="Read only text input" readonly></div>
|
|
6
|
+
<div><label>Disabled input</label> <input type="text" value="Disabled text input" disabled></div>
|
|
7
|
+
<div><label>Required input <span class="required">*</span></label> <input type="text" required></div>
|
|
8
|
+
<div><label>Email input</label> <input type="email"></div>
|
|
9
|
+
<div><label>Search input</label> <input type="search"></div>
|
|
10
|
+
<div><label>Speech recognition input</label> <input type="text" id="speech" name="speech" x-webkit-speech=""></div>
|
|
11
|
+
<div><label>Tel input</label> <input type="tel"></div>
|
|
12
|
+
<div><label>Phone (International)</label> <input name="field_country_code" maxlength="3" /> - <input name="field_city_code" maxlength="4" /> - <input name="field_phone_int" maxlength="8" /></div>
|
|
13
|
+
<div><label>URL input</label> <input type="url" placeholder="http://"></div>
|
|
14
|
+
<div><label>Password input</label> <input type="password" value="password"></div>
|
|
15
|
+
<div><label>Select field</label> <select><option>Option 01</option><option>Option 02</option></select></div>
|
|
16
|
+
<div><label>Multiple select field</label><select multiple size="5"><option>Option 1</option><option>Option 2</option><option>Option 3</option><option>Option 4</option><option>Option 5</option><option>Option 6</option><option>Option 7</option><option>Option 8</option><option>Option 9</option><option>Option 10</option></select></div>
|
|
17
|
+
<div><label>Radio input</label> <input type="radio" name="rad"></div>
|
|
18
|
+
<div><label>Checkbox input</label> <input type="checkbox"></div>
|
|
19
|
+
<div><label><input type="radio" name="rad"> Radio input</label></div>
|
|
20
|
+
<div><label><input type="checkbox"> Checkbox input</label></div>
|
|
21
|
+
<div><label>File input</label> <input type="file"></div>
|
|
22
|
+
<div><label>Textarea</label> <textarea cols="30" rows="5" >Textarea text</textarea></div>
|
|
23
|
+
<div><label>Color input</label> <input type="color" value="#000000"></div>
|
|
24
|
+
<div><label>Number input</label> <input type="number" value="5" min="0" max="10"></div>
|
|
25
|
+
<div><label>Range input</label> <input type="range" id="range" value="0" min="0" max="100"> <output for="range">0</output>
|
|
26
|
+
<script>
|
|
27
|
+
if (document.querySelector) {
|
|
28
|
+
document.querySelector('#range').onchange = function(e) {
|
|
29
|
+
e.target.nextElementSibling.innerText = e.target.value;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
</script>
|
|
33
|
+
</div>
|
|
34
|
+
<div><label>Date input</label> <input type="date"></div>
|
|
35
|
+
<div><label>Month input</label> <input type="month"></div>
|
|
36
|
+
<div><label>Week input</label> <input type="week"></div>
|
|
37
|
+
<div><label>Time input</label> <input type="time"></div>
|
|
38
|
+
<div><label>Datetime input</label> <input type="datetime"></div>
|
|
39
|
+
<div><label>Datetime-local input</label> <input type="datetime-local"></div>
|
|
40
|
+
</fieldset>
|
|
41
|
+
</form>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<form>
|
|
2
|
+
<fieldset>
|
|
3
|
+
<div><label>Disabled text input</label> <input type="text" value="Disabled text input" disabled></div>
|
|
4
|
+
<div><label>Disabled select field</label> <select disabled><option>Option 01</option><option>Option 02</option></select></div>
|
|
5
|
+
<div><label>Disabled file input</label> <input type="file" disabled></div>
|
|
6
|
+
<div><label>Disabled radio input</label> <input type="radio" name="rad" disabled></div>
|
|
7
|
+
<div><label>Disabled checkbox input</label> <input type="checkbox" disabled></div>
|
|
8
|
+
<div><label>Disabled color input</label> <input type="color" value="#000000" disabled></div>
|
|
9
|
+
<div><label>Disabled range input</label> <input type="range" disabled></div>
|
|
10
|
+
<div><label>Disabled number input</label> <input type="number" value="5" min="0" max="10" disabled></div>
|
|
11
|
+
<div><label>Disabled textarea</label> <textarea cols="30" rows="5" disabled>Textarea text</textarea></div>
|
|
12
|
+
</fieldset>
|
|
13
|
+
</form>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<form>
|
|
2
|
+
<fieldset>
|
|
3
|
+
<div><label>Readonly text input</label> <input type="text" value="Readonly text input" readonly></div>
|
|
4
|
+
<div><label>Readonly color input</label> <input type="color" value="#000000" readonly></div>
|
|
5
|
+
<div><label>Readonly range input</label> <input type="range" readonly></div>
|
|
6
|
+
<div><label>Readonly number input</label> <input type="number" value="5" min="0" max="10" readonly></div>
|
|
7
|
+
<div><label>Readonly textarea</label> <textarea cols="30" rows="5" readonly>Textarea text</textarea></div>
|
|
8
|
+
</fieldset>
|
|
9
|
+
</form>
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
<form>
|
|
2
|
+
<fieldset>
|
|
3
|
+
<div>
|
|
4
|
+
<label>Text input with datalist</label>
|
|
5
|
+
<input type="text" value="" list="fav-color" placeholder="Type your favorite color" />
|
|
6
|
+
<datalist id="fav-color">
|
|
7
|
+
<option value="Red"></option>
|
|
8
|
+
<option value="Orange"></option>
|
|
9
|
+
<option value="Yellow"></option>
|
|
10
|
+
<option value="Green"></option>
|
|
11
|
+
<option value="Blue"></option>
|
|
12
|
+
<option value="Purple"></option>
|
|
13
|
+
</datalist>
|
|
14
|
+
</div>
|
|
15
|
+
<div>
|
|
16
|
+
<label>Range input with datalist</label>
|
|
17
|
+
<input id="number_input" type="range" value="0" min="0" max="100" list="number" />
|
|
18
|
+
<output for="number_input">0</output>
|
|
19
|
+
<datalist id="number">
|
|
20
|
+
<option>25</option>
|
|
21
|
+
<option>50</option>
|
|
22
|
+
<option>75</option>
|
|
23
|
+
</datalist>
|
|
24
|
+
<script>
|
|
25
|
+
if (document.querySelector) {
|
|
26
|
+
document.querySelector('#number_input').onchange = function(e) {
|
|
27
|
+
e.target.nextElementSibling.innerText = e.target.value;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
</script>
|
|
31
|
+
</div>
|
|
32
|
+
<div>
|
|
33
|
+
<label>Color input with datalist</label>
|
|
34
|
+
<input type="color" value="#000000" list="color" />
|
|
35
|
+
<datalist id="color">
|
|
36
|
+
<option>#ff0000</option>
|
|
37
|
+
<option>#0000ff</option>
|
|
38
|
+
<option>#00ff00</option>
|
|
39
|
+
<option>#ffff00</option>
|
|
40
|
+
<option>#00ffff</option>
|
|
41
|
+
</datalist>
|
|
42
|
+
</div>
|
|
43
|
+
<div>
|
|
44
|
+
<label>Date input with datalist</label>
|
|
45
|
+
<input type="date" list="days" />
|
|
46
|
+
<datalist id="days">
|
|
47
|
+
<option label="Independence Day">2013-07-04</option>
|
|
48
|
+
<option label="Labor Day">2013-09-02</option>
|
|
49
|
+
<option label="Columbus Day">2013-10-14</option>
|
|
50
|
+
</datalist>
|
|
51
|
+
</div>
|
|
52
|
+
<div>
|
|
53
|
+
<label>Time input with datalist</label>
|
|
54
|
+
<input type="time" list="times" />
|
|
55
|
+
<datalist id="times">
|
|
56
|
+
<option label="Midnight">00:00</option>
|
|
57
|
+
<option>06:00</option>
|
|
58
|
+
<option label="Noon">12:00</option>
|
|
59
|
+
<option>18:00</option>
|
|
60
|
+
</datalist>
|
|
61
|
+
</div>
|
|
62
|
+
<div>
|
|
63
|
+
<label>Datetime-local input with datalist</label>
|
|
64
|
+
<input type="datetime-local" list="datetime-locals" />
|
|
65
|
+
<datalist id="datetime-locals">
|
|
66
|
+
<option label="Santa Visit">2012-12-24T23:59</option>
|
|
67
|
+
<option label="Chrismas party">2012-12-25T18:00</option>
|
|
68
|
+
<option>2012-12-30T00:00</option>
|
|
69
|
+
<option label="Happy New Year">2013-01-01T00:00</option>
|
|
70
|
+
</datalist>
|
|
71
|
+
</div>
|
|
72
|
+
<div>
|
|
73
|
+
<label>Month input with datalist</label>
|
|
74
|
+
<input type="month" list="months" />
|
|
75
|
+
<datalist id="months">
|
|
76
|
+
<option label="End of last century">2000-12</option>
|
|
77
|
+
<option>2010-01</option>
|
|
78
|
+
<option>2011-01</option>
|
|
79
|
+
<option>2012-01</option>
|
|
80
|
+
<option>2013-01</option>
|
|
81
|
+
</datalist>
|
|
82
|
+
</div>
|
|
83
|
+
<div>
|
|
84
|
+
<label>Week input with datalist</label>
|
|
85
|
+
<input type="week" list="weeks" />
|
|
86
|
+
<datalist id="weeks">
|
|
87
|
+
<option label="First week of 2013">2013-W01</option>
|
|
88
|
+
<option label="Second week of 2013">2013-W02</option>
|
|
89
|
+
<option label="13th week of 2013">2013-W13</option>
|
|
90
|
+
<option label="The last week of 2013">2013-W52</option>
|
|
91
|
+
</datalist>
|
|
92
|
+
</div>
|
|
93
|
+
</fieldset>
|
|
94
|
+
</form>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<form>
|
|
2
|
+
<fieldset>
|
|
3
|
+
<legend>Fieldset with legend</legend>
|
|
4
|
+
<p><label>Text Input</label> <input type="text"></p>
|
|
5
|
+
<p><input type="submit" value="Submit"></p>
|
|
6
|
+
</fieldset>
|
|
7
|
+
|
|
8
|
+
<fieldset>
|
|
9
|
+
<p>Fieldset without legend</p>
|
|
10
|
+
<p><label>Text Input</label> <input type="text"></p>
|
|
11
|
+
<p><input type="submit" value="Submit"></p>
|
|
12
|
+
</fieldset>
|
|
13
|
+
|
|
14
|
+
<fieldset>
|
|
15
|
+
<legend>Fieldset with a very, very, very, very, very, long legend that can test the display of word wrapping to see how it looks.</legend>
|
|
16
|
+
<p><label>Text Input</label> <input type="text"></p>
|
|
17
|
+
<p><input type="submit" value="Submit"></p>
|
|
18
|
+
</fieldset>
|
|
19
|
+
</form>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<h1>Heading 1 with <small>small text</small> and a <a href="#">link</a></h1>
|
|
2
|
+
<h2>Heading 2 with <small>small text</small> and a <a href="#">link</a></h2>
|
|
3
|
+
<h3>Heading 3 with <small>small text</small> and a <a href="#">link</a></h3>
|
|
4
|
+
<h4>Heading 4 with <small>small text</small> and a <a href="#">link</a></h4>
|
|
5
|
+
<h5>Heading 5 with <small>small text</small> and a <a href="#">link</a></h5>
|
|
6
|
+
<h6>Heading 6 with <small>small text</small> and a <a href="#">link</a></h6>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<article>
|
|
2
|
+
<h1>Heading 1 (in article) with <small>small text</small> and a <a href="#">link</a></h1>
|
|
3
|
+
<h2>Heading 2 (in article) with <small>small text</small> and a <a href="#">link</a></h2>
|
|
4
|
+
<h3>Heading 3 (in article) with <small>small text</small> and a <a href="#">link</a></h3>
|
|
5
|
+
<h4>Heading 4 (in article) with <small>small text</small> and a <a href="#">link</a></h4>
|
|
6
|
+
<h5>Heading 5 (in article) with <small>small text</small> and a <a href="#">link</a></h5>
|
|
7
|
+
<h6>Heading 6 (in article) with <small>small text</small> and a <a href="#">link</a></h6>
|
|
8
|
+
</article>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<section>
|
|
2
|
+
<h1>Heading 1 (in section) with <small>small text</small> and a <a href="#">link</a></h1>
|
|
3
|
+
<h2>Heading 2 (in section) with <small>small text</small> and a <a href="#">link</a></h2>
|
|
4
|
+
<h3>Heading 3 (in section) with <small>small text</small> and a <a href="#">link</a></h3>
|
|
5
|
+
<h4>Heading 4 (in section) with <small>small text</small> and a <a href="#">link</a></h4>
|
|
6
|
+
<h5>Heading 5 (in section) with <small>small text</small> and a <a href="#">link</a></h5>
|
|
7
|
+
<h6>Heading 6 (in section) with <small>small text</small> and a <a href="#">link</a></h6>
|
|
8
|
+
</section>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<hr>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<ol>
|
|
2
|
+
<li>list item 1</li>
|
|
3
|
+
<li>list item 1
|
|
4
|
+
<ol>
|
|
5
|
+
<li>list item 2</li>
|
|
6
|
+
<li>list item 2
|
|
7
|
+
<ol>
|
|
8
|
+
<li>list item 3</li>
|
|
9
|
+
<li>list item 3</li>
|
|
10
|
+
</ol>
|
|
11
|
+
</li>
|
|
12
|
+
<li>list item 2</li>
|
|
13
|
+
<li>list item 2</li>
|
|
14
|
+
</ol>
|
|
15
|
+
</li>
|
|
16
|
+
<li>list item 1</li>
|
|
17
|
+
<li>list item 1</li>
|
|
18
|
+
</ol>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<ul>
|
|
2
|
+
<li>list item 1</li>
|
|
3
|
+
<li>list item 1
|
|
4
|
+
<ul>
|
|
5
|
+
<li>list item 2</li>
|
|
6
|
+
<li>list item 2
|
|
7
|
+
<ul>
|
|
8
|
+
<li>list item 3</li>
|
|
9
|
+
<li>list item 3</li>
|
|
10
|
+
</ul>
|
|
11
|
+
</li>
|
|
12
|
+
<li>list item 2</li>
|
|
13
|
+
<li>list item 2</li>
|
|
14
|
+
</ul>
|
|
15
|
+
</li>
|
|
16
|
+
<li>list item 1</li>
|
|
17
|
+
<li>list item 1</li>
|
|
18
|
+
</ul>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<h3>Default Image</h3>
|
|
2
|
+
<img src="http://placehold.it/240x240" alt="Dog">
|
|
3
|
+
|
|
4
|
+
<h3>Linked Image</h3>
|
|
5
|
+
<a href="#"><img src="http://placehold.it/240x240" alt="Dog"></a>
|
|
6
|
+
|
|
7
|
+
<h3>Missing Image</h3>
|
|
8
|
+
<img alt="This is an example of a missing image">
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
<h3>Svg</h3>
|
|
12
|
+
<svg width="200px" height="200px">
|
|
13
|
+
<circle cx="100" cy="100" r="100" fill="#ff0000" />
|
|
14
|
+
</svg>
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
<h3>Video</h3>
|
|
18
|
+
<video controls preload poster="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poster.jpg" width="640" height="360">
|
|
19
|
+
<source id="mp4" src="http://media.w3.org/2010/05/bunny/trailer.mp4" type="video/mp4">
|
|
20
|
+
<source id="ogv" src="http://media.w3.org/2010/05/bunny/trailer.ogv" type="video/ogg">
|
|
21
|
+
<p>Your user agent does not support the HTML5 Video element.</p>
|
|
22
|
+
</video>
|
|
23
|
+
|
|
24
|
+
<h3>Missing Video</h3>
|
|
25
|
+
<video controls></video>
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
<h3>Audio</h3>
|
|
29
|
+
<audio controls>
|
|
30
|
+
<source src="http://media.w3.org/2010/07/bunny/04-Death_Becomes_Fur.mp4" type='audio/mp4'>
|
|
31
|
+
<source src="http://media.w3.org/2010/07/bunny/04-Death_Becomes_Fur.oga" type='audio/ogg; codecs=vorbis'>
|
|
32
|
+
<p>Your user agent does not support the HTML5 Audio element.</p>
|
|
33
|
+
</audio>
|
|
34
|
+
|
|
35
|
+
<h3>Missing Audio</h3>
|
|
36
|
+
<audio controls></audio>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<h3>Meter</h3>
|
|
2
|
+
<p><meter value="100" max="100" low="70" high="90">100%</meter> A meter displaying 100%.</p>
|
|
3
|
+
<p><meter value="85" max="100" low="70" high="90">85%</meter> A meter displaying 85%.</p>
|
|
4
|
+
<p><meter value="50" max="100" low="70" high="90">50%</meter> A meter displaying 50%.</p>
|
|
5
|
+
<p><meter value="0" max="100" low="70" high="90">0%</meter> A meter displaying 0%.</p>
|
|
6
|
+
|
|
7
|
+
<h3>Progress</h3>
|
|
8
|
+
<p><progress value="100" max="100">100%</progress> A progress displaying 100%.</p>
|
|
9
|
+
<p><progress value="85" max="100">85%</progress> A progress displaying 85%.</p>
|
|
10
|
+
<p><progress value="50" max="100">50%</progress> A progress displaying 50%.</p>
|
|
11
|
+
<p><progress value="0" max="100">0%</progress> A progress displaying 0%.</p>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<pre>
|
|
2
|
+
P R E F O R M A T T E D T E X T
|
|
3
|
+
! " # $ % & ' ( ) * + , - . /
|
|
4
|
+
0 1 2 3 4 5 6 7 8 9 : ; < = > ?
|
|
5
|
+
@ A B C D E F G H I J K L M N O
|
|
6
|
+
P Q R S T U V W X Y Z [ \ ] ^ _
|
|
7
|
+
` a b c d e f g h i j k l m n o
|
|
8
|
+
p q r s t u v w x y z { | } ~
|
|
9
|
+
</pre>
|
|
10
|
+
|
|
11
|
+
<h3>Pre Code</h3>
|
|
12
|
+
<pre><code><html>
|
|
13
|
+
<head>
|
|
14
|
+
</head>
|
|
15
|
+
<body>
|
|
16
|
+
<div class="main"> <div>
|
|
17
|
+
</body>
|
|
18
|
+
</html></code></pre>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<h1>Hello World</h1>
|
|
2
|
+
|
|
3
|
+
<p>Lorem ipsum dolor sit amet, <a href="#">consectetur</a> adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
4
|
+
|
|
5
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
6
|
+
|
|
7
|
+
<hr>
|
|
8
|
+
|
|
9
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
10
|
+
|
|
11
|
+
<ul>
|
|
12
|
+
<li>In voluptate velit esse cillum</li>
|
|
13
|
+
<li>In voluptate velit esse cillum</li>
|
|
14
|
+
<li>In voluptate velit esse cillum</li>
|
|
15
|
+
</ul>
|
|
16
|
+
|
|
17
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
<h3>Default Table</h3>
|
|
2
|
+
<table>
|
|
3
|
+
<caption>Table Caption</caption>
|
|
4
|
+
<thead>
|
|
5
|
+
<tr>
|
|
6
|
+
<th>thead th</th>
|
|
7
|
+
<th>thead th</th>
|
|
8
|
+
<th>thead th</th>
|
|
9
|
+
</tr>
|
|
10
|
+
</thead>
|
|
11
|
+
<tbody>
|
|
12
|
+
<tr>
|
|
13
|
+
<td>tbody td</td>
|
|
14
|
+
<td>tbody td</td>
|
|
15
|
+
<td>tbody td</td>
|
|
16
|
+
</tr>
|
|
17
|
+
<tr>
|
|
18
|
+
<td>tbody td</td>
|
|
19
|
+
<td>tbody td</td>
|
|
20
|
+
<td>tbody td</td>
|
|
21
|
+
</tr>
|
|
22
|
+
<tr>
|
|
23
|
+
<td>tbody td</td>
|
|
24
|
+
<td>tbody td</td>
|
|
25
|
+
<td>tbody td</td>
|
|
26
|
+
</tr>
|
|
27
|
+
</tbody>
|
|
28
|
+
<tfoot>
|
|
29
|
+
<tr>
|
|
30
|
+
<th>tfoot th</th>
|
|
31
|
+
<th>tfoot th</th>
|
|
32
|
+
<th>tfoot th</th>
|
|
33
|
+
</tr>
|
|
34
|
+
</tfoot>
|
|
35
|
+
</table>
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<h3>Table with side headings</h3>
|
|
40
|
+
<table>
|
|
41
|
+
<caption>Table Caption</caption>
|
|
42
|
+
<thead>
|
|
43
|
+
<tr>
|
|
44
|
+
<th>thead th</th>
|
|
45
|
+
<th>thead th</th>
|
|
46
|
+
<th>thead th</th>
|
|
47
|
+
</tr>
|
|
48
|
+
</thead>
|
|
49
|
+
<tbody>
|
|
50
|
+
<tr>
|
|
51
|
+
<th>tbody th</th>
|
|
52
|
+
<td>tbody td</td>
|
|
53
|
+
<td>tbody td</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr>
|
|
56
|
+
<th>tbody th</th>
|
|
57
|
+
<td>tbody td</td>
|
|
58
|
+
<td>tbody td</td>
|
|
59
|
+
</tr>
|
|
60
|
+
</tbody>
|
|
61
|
+
<tfoot>
|
|
62
|
+
<tr>
|
|
63
|
+
<th>tfoot th</th>
|
|
64
|
+
<td>tfoot td</td>
|
|
65
|
+
<td>tfoot td</td>
|
|
66
|
+
</tr>
|
|
67
|
+
</tfoot>
|
|
68
|
+
</table>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<p>The <a href="#">a element</a> example</p>
|
|
2
|
+
<p>The <abbr>abbr element</abbr> and an <abbr title="Abbreviation">abbr</abbr> element with title examples</p>
|
|
3
|
+
<p>The <b>b element</b> example</p>
|
|
4
|
+
<p>The <cite>cite element</cite> example</p>
|
|
5
|
+
<p>The <code>code element</code> example</p>
|
|
6
|
+
<p>The <em>em element</em> example</p>
|
|
7
|
+
<p>The <del>del element</del> example</p>
|
|
8
|
+
<p>The <dfn>dfn element</dfn> and <dfn title="Title text">dfn element with title</dfn> examples</p>
|
|
9
|
+
<p>The <i>i element</i> example</p>
|
|
10
|
+
<p>The <ins>ins element</ins> example</p>
|
|
11
|
+
<p>The <kbd>kbd element</kbd> example</p>
|
|
12
|
+
<p>The <mark>mark element</mark> example</p>
|
|
13
|
+
<p>The <q>q element</q> example</p>
|
|
14
|
+
<p>The <q>q element <q>inside</q> a q element</q> example</p>
|
|
15
|
+
<p>The <s>s element</s> example</p>
|
|
16
|
+
<p>The <samp>samp element</samp> example</p>
|
|
17
|
+
<p>The <small>small element</small> example</p>
|
|
18
|
+
<p>The <span>span element</span> example</p>
|
|
19
|
+
<p>The <strong>strong element</strong> example</p>
|
|
20
|
+
<p>The <sub>sub element</sub> example</p>
|
|
21
|
+
<p>The <sup>sup element</sup> example</p>
|
|
22
|
+
<p>The <u>u element</u> example</p>
|
|
23
|
+
<p>The <var>var element</var> example</p>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<p>Remember, remember the <time datetime="1605-11-05">5<sup>th</sup> of November</time></p>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!-- Sample pattern, your site's patterns will be different -->
|
|
2
|
+
<div class="alert alert-warning">
|
|
3
|
+
<strong>Warning Message!</strong> Lorem ipsum dolor sit amet, consectetur adipisicing elit.
|
|
4
|
+
</div>
|
|
5
|
+
|
|
6
|
+
<div class="alert alert-error">
|
|
7
|
+
<strong>Error Message!</strong> Numquam quos fuga quam suscipit sapiente perferendis magnam.
|
|
8
|
+
</div>
|
|
9
|
+
|
|
10
|
+
<div class="alert alert-success">
|
|
11
|
+
<strong>Success Message!</strong> Totam officiis dolorum voluptatibus maxime molestiae iste.
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<div class="alert alert-info">
|
|
15
|
+
<strong>Info Message!</strong> Consequatur facere deleniti cumque ducimus maiores nemo.
|
|
16
|
+
</div>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
module StyleGuide
|
|
2
|
+
class Engine < ::Rails::Engine
|
|
3
|
+
initializer 'Style Guide precompile hook', group: :all do |app|
|
|
4
|
+
app.config.assets.precompile += %w( style_guides.css )
|
|
5
|
+
app.config.assets.precompile += %w( style.css )
|
|
6
|
+
app.config.assets.precompile += %w( style_guides.js )
|
|
7
|
+
app.config.assets.precompile += %w( style_guides_plugins.js )
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
end
|
|
11
|
+
end
|
data/lib/style_guide.rb
ADDED
data/style_guide.gemspec
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
$:.push File.expand_path("../lib", __FILE__)
|
|
2
|
+
|
|
3
|
+
# Maintain your gem's version:
|
|
4
|
+
require "style_guide/version"
|
|
5
|
+
|
|
6
|
+
# Describe your gem and declare its dependencies:
|
|
7
|
+
Gem::Specification.new do |s|
|
|
8
|
+
s.name = "style_guide"
|
|
9
|
+
s.version = StyleGuide::VERSION
|
|
10
|
+
s.authors = ["Joshua Schultz"]
|
|
11
|
+
s.email = ["me@joshuaschultz.com"]
|
|
12
|
+
s.homepage = "http://quiet-citadel-4316.herokuapp.com/style_guides/index"
|
|
13
|
+
s.summary = "Rails-based Style Guide Plugin"
|
|
14
|
+
s.description = "Style_Guide is a plugin used to append an automated boilerplate resource to your rails app allowing you to see/show your style guide. This work is largely based off of the idea initiated at https://github.com/bjankord/Style-Guide-Boilerplate"
|
|
15
|
+
s.license = "MIT"
|
|
16
|
+
|
|
17
|
+
s.files = `git ls-files -z`.split("\x0")
|
|
18
|
+
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
19
|
+
s.require_path = 'lib'
|
|
20
|
+
|
|
21
|
+
s.test_files = Dir["test/**/*"]
|
|
22
|
+
|
|
23
|
+
s.add_dependency "rails", "~> 4.1.4"
|
|
24
|
+
s.add_dependency "sqlite3"
|
|
25
|
+
|
|
26
|
+
end
|