locker_kit 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +37 -0
  4. data/app/assets/javascripts/locker_kit/application.js +13 -0
  5. data/app/assets/stylesheets/locker_kit.scss +26 -0
  6. data/app/assets/stylesheets/locker_kit/application.css +15 -0
  7. data/app/assets/stylesheets/locker_kit/base/_config.scss +58 -0
  8. data/app/assets/stylesheets/locker_kit/base/_forms.scss +42 -0
  9. data/app/assets/stylesheets/locker_kit/base/_links.scss +13 -0
  10. data/app/assets/stylesheets/locker_kit/base/_mixins.scss +34 -0
  11. data/app/assets/stylesheets/locker_kit/base/_normalize.scss +396 -0
  12. data/app/assets/stylesheets/locker_kit/base/_print.scss +95 -0
  13. data/app/assets/stylesheets/locker_kit/base/_type.scss +87 -0
  14. data/app/assets/stylesheets/locker_kit/base/_utilities.scss +24 -0
  15. data/app/assets/stylesheets/locker_kit/base/body_styles.scss +16 -0
  16. data/app/assets/stylesheets/locker_kit/components/_navbar.scss +37 -0
  17. data/app/assets/stylesheets/locker_kit/components/_ui-card.scss +16 -0
  18. data/app/assets/stylesheets/locker_kit/components/_well.scss +34 -0
  19. data/app/assets/stylesheets/locker_kit/components/_widget.scss +19 -0
  20. data/app/assets/stylesheets/locker_kit/layouts/base.scss +34 -0
  21. data/app/assets/stylesheets/locker_kit/pygments.scss +68 -0
  22. data/app/assets/stylesheets/locker_kit/styleguide.scss +88 -0
  23. data/app/controllers/locker_kit/application_controller.rb +6 -0
  24. data/app/controllers/locker_kit/styleguide/base_controller.rb +10 -0
  25. data/app/controllers/locker_kit/styleguide/components_controller.rb +7 -0
  26. data/app/controllers/locker_kit/styleguide/layouts_controller.rb +8 -0
  27. data/app/helpers/locker_kit/application_helper.rb +11 -0
  28. data/app/views/layouts/locker_kit/_header.html.erb +7 -0
  29. data/app/views/layouts/locker_kit/_side_nav.html.erb +19 -0
  30. data/app/views/layouts/locker_kit/_top_nav_bar.html.erb +10 -0
  31. data/app/views/layouts/locker_kit/application.html.erb +17 -0
  32. data/app/views/layouts/locker_kit/layout_examples.html.erb +23 -0
  33. data/app/views/locker_kit/styleguide/base/body_copy.html.erb +101 -0
  34. data/app/views/locker_kit/styleguide/base/colors.html.erb +17 -0
  35. data/app/views/locker_kit/styleguide/base/forms.html.erb +55 -0
  36. data/app/views/locker_kit/styleguide/base/headings.html.erb +25 -0
  37. data/app/views/locker_kit/styleguide/base/links.html.erb +13 -0
  38. data/app/views/locker_kit/styleguide/base/lists.html.erb +44 -0
  39. data/app/views/locker_kit/styleguide/components/navbar.html.erb +50 -0
  40. data/app/views/locker_kit/styleguide/components/well.html.erb +59 -0
  41. data/app/views/locker_kit/styleguide/layouts/centered_small.html.erb +39 -0
  42. data/app/views/locker_kit/styleguide/layouts/locker.html.erb +52 -0
  43. data/config/routes.rb +28 -0
  44. data/lib/locker_kit.rb +4 -0
  45. data/lib/locker_kit/engine.rb +13 -0
  46. data/lib/locker_kit/version.rb +3 -0
  47. data/lib/tasks/locker_kit_tasks.rake +4 -0
  48. data/test/dummy/README.rdoc +28 -0
  49. data/test/dummy/Rakefile +6 -0
  50. data/test/dummy/app/assets/javascripts/application.js +13 -0
  51. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  52. data/test/dummy/app/assets/stylesheets/styleguide.scss +0 -0
  53. data/test/dummy/app/controllers/application_controller.rb +5 -0
  54. data/test/dummy/app/helpers/application_helper.rb +2 -0
  55. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  56. data/test/dummy/bin/bundle +3 -0
  57. data/test/dummy/bin/rails +4 -0
  58. data/test/dummy/bin/rake +4 -0
  59. data/test/dummy/bin/setup +29 -0
  60. data/test/dummy/config.ru +4 -0
  61. data/test/dummy/config/application.rb +26 -0
  62. data/test/dummy/config/boot.rb +5 -0
  63. data/test/dummy/config/database.yml +25 -0
  64. data/test/dummy/config/environment.rb +5 -0
  65. data/test/dummy/config/environments/development.rb +41 -0
  66. data/test/dummy/config/environments/production.rb +77 -0
  67. data/test/dummy/config/environments/test.rb +42 -0
  68. data/test/dummy/config/initializers/assets.rb +11 -0
  69. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  70. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  71. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  72. data/test/dummy/config/initializers/inflections.rb +16 -0
  73. data/test/dummy/config/initializers/mime_types.rb +4 -0
  74. data/test/dummy/config/initializers/session_store.rb +3 -0
  75. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  76. data/test/dummy/config/locales/en.yml +23 -0
  77. data/test/dummy/config/routes.rb +4 -0
  78. data/test/dummy/config/secrets.yml +22 -0
  79. data/test/dummy/db/development.sqlite3 +0 -0
  80. data/test/dummy/db/test.sqlite3 +0 -0
  81. data/test/dummy/log/development.log +34011 -0
  82. data/test/dummy/public/404.html +67 -0
  83. data/test/dummy/public/422.html +67 -0
  84. data/test/dummy/public/500.html +66 -0
  85. data/test/dummy/public/favicon.ico +0 -0
  86. data/test/dummy/tmp/cache/assets/development/sass/04c25abe538d740770dc57f0bc99c57bfb9d893b/base.scssc +0 -0
  87. data/test/dummy/tmp/cache/assets/development/sass/1c982e9e357d042808eb40b8aba6ae6c7d85b403/_config.scssc +0 -0
  88. data/test/dummy/tmp/cache/assets/development/sass/1c982e9e357d042808eb40b8aba6ae6c7d85b403/_forms.scssc +0 -0
  89. data/test/dummy/tmp/cache/assets/development/sass/1c982e9e357d042808eb40b8aba6ae6c7d85b403/_links.scssc +0 -0
  90. data/test/dummy/tmp/cache/assets/development/sass/1c982e9e357d042808eb40b8aba6ae6c7d85b403/_mixins.scssc +0 -0
  91. data/test/dummy/tmp/cache/assets/development/sass/1c982e9e357d042808eb40b8aba6ae6c7d85b403/_normalize.scssc +0 -0
  92. data/test/dummy/tmp/cache/assets/development/sass/1c982e9e357d042808eb40b8aba6ae6c7d85b403/_print.scssc +0 -0
  93. data/test/dummy/tmp/cache/assets/development/sass/1c982e9e357d042808eb40b8aba6ae6c7d85b403/_type.scssc +0 -0
  94. data/test/dummy/tmp/cache/assets/development/sass/1c982e9e357d042808eb40b8aba6ae6c7d85b403/_utilities.scssc +0 -0
  95. data/test/dummy/tmp/cache/assets/development/sass/1c982e9e357d042808eb40b8aba6ae6c7d85b403/_variables.scssc +0 -0
  96. data/test/dummy/tmp/cache/assets/development/sass/1c982e9e357d042808eb40b8aba6ae6c7d85b403/body_styles.scssc +0 -0
  97. data/test/dummy/tmp/cache/assets/development/sass/48aca46cc4025326b9b5b1957de890441ce64f23/locker_kit.scssc +0 -0
  98. data/test/dummy/tmp/cache/assets/development/sass/8f1c3463f4fbd3ca810d5502e43339ba5cd36985/_navbar.scssc +0 -0
  99. data/test/dummy/tmp/cache/assets/development/sass/8f1c3463f4fbd3ca810d5502e43339ba5cd36985/_ui-card.scssc +0 -0
  100. data/test/dummy/tmp/cache/assets/development/sass/8f1c3463f4fbd3ca810d5502e43339ba5cd36985/_well.scssc +0 -0
  101. data/test/dummy/tmp/cache/assets/development/sass/8f1c3463f4fbd3ca810d5502e43339ba5cd36985/_widget.scssc +0 -0
  102. data/test/dummy/tmp/cache/assets/development/sass/c977669eb5330d310df3a7a4620988dcbe00d39c/pygments.scssc +0 -0
  103. data/test/dummy/tmp/cache/assets/development/sass/c977669eb5330d310df3a7a4620988dcbe00d39c/styleguide.scssc +0 -0
  104. data/test/dummy/tmp/cache/assets/development/sass/d60cb54163a01f9dde191aee03e10cf0dab38c91/styleguide.scssc +0 -0
  105. data/test/dummy/tmp/cache/assets/development/sass/d8a589a1c20f32882862cac6c238751d7f39e5e2/sprockets-octicons.scssc +0 -0
  106. data/test/dummy/tmp/cache/assets/development/sprockets/1173e509d17f7a3706741d0832238ee0 +0 -0
  107. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  108. data/test/dummy/tmp/cache/assets/development/sprockets/1e3bcc1264e96c96c640d98cb7c5d191 +0 -0
  109. data/test/dummy/tmp/cache/assets/development/sprockets/20ddd85221f85cd3ba7ff96f63d706da +0 -0
  110. data/test/dummy/tmp/cache/assets/development/sprockets/2bd69b46958f010e4365dc9f5381e02f +0 -0
  111. data/test/dummy/tmp/cache/assets/development/sprockets/2cd351c7ee96b365f27beb00c7ff9eb8 +0 -0
  112. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  113. data/test/dummy/tmp/cache/assets/development/sprockets/2fa87e81557ca7a5c9944388cf229dfa +0 -0
  114. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  115. data/test/dummy/tmp/cache/assets/development/sprockets/3f3bcd9651e7826e8390f40e1b5b8c53 +0 -0
  116. data/test/dummy/tmp/cache/assets/development/sprockets/3fcf5e62de3690143743c8ed45b0e8dd +0 -0
  117. data/test/dummy/tmp/cache/assets/development/sprockets/4b30a256940679580ca1043379a081e9 +0 -0
  118. data/test/dummy/tmp/cache/assets/development/sprockets/50e29d62f8dc2a0cdf2010173a132302 +0 -0
  119. data/test/dummy/tmp/cache/assets/development/sprockets/52e2f8c931d0a797e4bc765637830c40 +0 -0
  120. data/test/dummy/tmp/cache/assets/development/sprockets/5e989de141d42cf88bb8934bfd74a3a1 +0 -0
  121. data/test/dummy/tmp/cache/assets/development/sprockets/6372ad07abce965721d97cc18510d8a7 +0 -0
  122. data/test/dummy/tmp/cache/assets/development/sprockets/6ca4d0be9555778d16245cc27cb7aae5 +0 -0
  123. data/test/dummy/tmp/cache/assets/development/sprockets/87cab5925c6073796746cb35cdbf23e2 +0 -0
  124. data/test/dummy/tmp/cache/assets/development/sprockets/8c9fb025237e181603a7a019e0016d4e +0 -0
  125. data/test/dummy/tmp/cache/assets/development/sprockets/990990a53d0e47f2fcf8395e95ac8117 +0 -0
  126. data/test/dummy/tmp/cache/assets/development/sprockets/9d4dd787b3039856436c84f5e98ff86b +0 -0
  127. data/test/dummy/tmp/cache/assets/development/sprockets/ba15e5dc70970da0390b68e37aa27113 +0 -0
  128. data/test/dummy/tmp/cache/assets/development/sprockets/ba241e318cd26986f118054baad3d9f1 +0 -0
  129. data/test/dummy/tmp/cache/assets/development/sprockets/bb9a79e50e1a3cf5ad6c55cdb083a5d3 +0 -0
  130. data/test/dummy/tmp/cache/assets/development/sprockets/c3ad8be3403058e5b2d0c2cfcd707a84 +0 -0
  131. data/test/dummy/tmp/cache/assets/development/sprockets/c81153e58e296e073152f29659c6b038 +0 -0
  132. data/test/dummy/tmp/cache/assets/development/sprockets/cd5543cd37208d0ed26caee95b3db8bf +0 -0
  133. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  134. data/test/dummy/tmp/cache/assets/development/sprockets/d2bb620e99ee3dffac5d16b7c36b989f +0 -0
  135. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  136. data/test/dummy/tmp/cache/assets/development/sprockets/dc9a6afcd1d8f8af292e8bf436bd8554 +0 -0
  137. data/test/dummy/tmp/cache/assets/development/sprockets/e00181a4c76f9e24a3c03ee77e67e107 +0 -0
  138. data/test/dummy/tmp/cache/assets/development/sprockets/ec00e9e1bd60727d575e90ace670c4b6 +0 -0
  139. data/test/dummy/tmp/cache/assets/development/sprockets/f184b7bbbbeb381c2b163c99efa4d0a3 +0 -0
  140. data/test/dummy/tmp/cache/assets/development/sprockets/f2bb20b648f6e9d4e68015f71051553a +0 -0
  141. data/test/dummy/tmp/cache/assets/development/sprockets/f69ff96ed1de235c73899373c1ad340e +0 -0
  142. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  143. data/test/dummy/tmp/cache/assets/development/sprockets/f9da7383a788fbf20b6ac16b1f2a8ad6 +0 -0
  144. data/test/dummy/tmp/cache/assets/development/sprockets/fe447ecb0f7c4ffa93ca2caa9cb13229 +0 -0
  145. data/test/dummy/tmp/pids/server.pid +1 -0
  146. data/test/integration/navigation_test.rb +10 -0
  147. data/test/locker_kit_test.rb +7 -0
  148. data/test/test_helper.rb +16 -0
  149. metadata +362 -0
@@ -0,0 +1,88 @@
1
+ *, *:before, *:after {
2
+ -webkit-box-sizing: border-box;
3
+ -moz-box-sizing: border-box;
4
+ box-sizing: border-box;
5
+ }
6
+
7
+
8
+ body, html {
9
+ height: 100%;
10
+ width: 100%;
11
+ background-color: #f5f2eb;
12
+ margin: 0;
13
+ }
14
+
15
+ .styleguide {
16
+ display: flex;
17
+
18
+ .styleguide-nav {
19
+ width: 190px;
20
+ min-width: 190px;
21
+ padding: 12px;
22
+
23
+ ul {
24
+ margin: 12px 0 6px 0;
25
+ padding: 0;
26
+ list-style: none;
27
+ color: #888;
28
+ }
29
+
30
+ li {
31
+ list-style: none;
32
+ }
33
+ }
34
+
35
+ .styleguide-content {
36
+ background-color: #fff;
37
+ max-width: 550px;
38
+ width: 550px;
39
+ flex-grow: 1;
40
+ padding: 36px;
41
+ margin: 12px;
42
+ border-radius: 2px;
43
+ border: 1px solid #E1DED3;
44
+ }
45
+
46
+ .styleguide-layout-examples {
47
+ border-left: 1px solid #E1dED3;
48
+ border-right: 1px solid #E1dED3;
49
+ flex-grow: 1;
50
+ padding: 12px;
51
+ display: flex;
52
+ }
53
+
54
+ .styleguide-layout-code {
55
+ width: 290px;
56
+ min-width: 290px;
57
+ padding: 12px;
58
+
59
+ .side-code-snippet {
60
+ background-color: #fff;
61
+ padding: 0 6px;
62
+ border-radius: 2px;
63
+ border: 1px solid #E1DED3;
64
+ }
65
+ }
66
+
67
+ .bg {
68
+ width: 100px;
69
+ height: 100px;
70
+ display: inline-block;
71
+ @include bg-colors($ui-colors);
72
+ }
73
+ .dl-example {
74
+ background-color: #fff;
75
+ padding: 12px 0;
76
+ }
77
+
78
+ .dl-code {
79
+ background-color: #fff;
80
+ margin-bottom: 24px;
81
+ padding: 6px;
82
+ background-color: #f8f8f8;
83
+ }
84
+
85
+ .dl-spacer {
86
+ margin: 12px 0;
87
+ }
88
+ }
@@ -0,0 +1,6 @@
1
+ module LockerKit
2
+ class ApplicationController < ActionController::Base
3
+ layout "locker_kit/application"
4
+
5
+ end
6
+ end
@@ -0,0 +1,10 @@
1
+ module LockerKit
2
+ class Styleguide::BaseController < ApplicationController
3
+ def headings; end
4
+ def body_copy; end
5
+ def lists; end
6
+ def links; end
7
+ def forms; end
8
+ def colors; end
9
+ end
10
+ end
@@ -0,0 +1,7 @@
1
+ module LockerKit
2
+ class Styleguide::ComponentsController < ApplicationController
3
+ def navbar; end
4
+ def widget; end
5
+ def well; end
6
+ end
7
+ end
@@ -0,0 +1,8 @@
1
+ module LockerKit
2
+ class Styleguide::LayoutsController < ApplicationController
3
+ layout "locker_kit/layout_examples"
4
+
5
+ def centered_small; end
6
+ def locker; end
7
+ end
8
+ end
@@ -0,0 +1,11 @@
1
+ module LockerKit
2
+ module ApplicationHelper
3
+ def block_code(code, lexer)
4
+ Pygments.highlight(code, lexer: lexer).html_safe
5
+ end
6
+
7
+ def octicon(code)
8
+ content_tag :span, '', class: "octicon octicon-#{code.to_s.dasherize}"
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,7 @@
1
+ <title>LockerKit</title>
2
+ <link href='https://fonts.googleapis.com/css?family=Roboto+Slab:400,300' rel='stylesheet' type='text/css'>
3
+ <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,400italic' rel='stylesheet' type='text/css'>
4
+ <link href='http://fonts.googleapis.com/css?family=Source+Code+Pro:400,600' rel='stylesheet' type='text/css'>
5
+ <%= stylesheet_link_tag "locker_kit/application", media: "all" %>
6
+ <%= javascript_include_tag "locker_kit/application" %>
7
+ <%= csrf_meta_tags %>
@@ -0,0 +1,19 @@
1
+ <nav class="styleguide-nav">
2
+ <ul>Base</ul>
3
+ <li><%= link_to "Headings", headings_styleguide_base_index_path %></li>
4
+ <li><%= link_to "Body Copy", body_copy_styleguide_base_index_path %></li>
5
+ <li><%= link_to "Lists", lists_styleguide_base_index_path %></li>
6
+ <li><%= link_to "Links", links_styleguide_base_index_path %></li>
7
+ <li><%= link_to "Forms", forms_styleguide_base_index_path %></li>
8
+ <li><%= link_to "Colors", colors_styleguide_base_index_path %></li>
9
+ </ul>
10
+ <ul>Components</ul>
11
+ <li><%= link_to "Navbar", navbar_styleguide_components_path %></li>
12
+ <li><%= link_to "Well", well_styleguide_components_path %></li>
13
+ <li><%= link_to "Widget", widget_styleguide_components_path %></li>
14
+ </ul>
15
+ <ul>Layouts</ul>
16
+ <li><%= link_to "Centered Small", centered_small_styleguide_layouts_path %></li>
17
+ <li><%= link_to "Locker", locker_styleguide_layouts_path %></li>
18
+ </ul>
19
+ </nav>
@@ -0,0 +1,10 @@
1
+ <nav class='navbar navbar-brand'>
2
+ </div>
3
+ <div class='navbar-right'>
4
+ <%= link_to 'Base', '#' %>
5
+ <%= link_to 'Components', '#' %>
6
+ <%= link_to 'Ruby' %>
7
+ <%= link_to 'Javascript' %>
8
+ <%= link_to 'SCSS' %>
9
+ </div>
10
+ </nav>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <%= render "layouts/locker_kit/header" %>
5
+ </head>
6
+ <body>
7
+ <%= render "layouts/locker_kit/top_nav_bar" %>
8
+
9
+ <div class="styleguide">
10
+ <%= render "layouts/locker_kit/side_nav" %>
11
+
12
+ <div class="styleguide-content">
13
+ <%= yield %>
14
+ </div>
15
+ </div>
16
+ </body>
17
+ </html>
@@ -0,0 +1,23 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <%= render "layouts/locker_kit/header" %>
5
+ </head>
6
+ <body>
7
+ <%= render "layouts/locker_kit/top_nav_bar" %>
8
+
9
+ <div class="styleguide full-height">
10
+ <%= render "layouts/locker_kit/side_nav" %>
11
+
12
+ <div class="styleguide-layout-examples">
13
+ <%= yield %>
14
+ </div>
15
+
16
+ <div class="styleguide-layout-code">
17
+ <div class="side-code-snippet">
18
+ <%= yield :side_code %>
19
+ </div>
20
+ </div>
21
+ </div>
22
+ </body>
23
+ </html>
@@ -0,0 +1,101 @@
1
+ <h1>Body Copy</h1>
2
+ <p>
3
+ The default font-size is 14px. All p tags recieve half their line height in
4
+ bottom margin.
5
+ </p>
6
+
7
+ <div class="dl-example">
8
+ <p>
9
+ Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque
10
+ penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id
11
+ dolor id nibh ultricies vehicula.
12
+ </p>
13
+
14
+ <p>
15
+ Cum sociis natoque penatibus et magnis dis parturient montes, nascetur
16
+ ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla. Duis mollis,
17
+ est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec
18
+ elit. Donec ullamcorper nulla non metus auctor fringilla.
19
+ </p>
20
+
21
+ <p>
22
+ Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit
23
+ non mi porta gravida at eget metus. Duis mollis, est non commodo luctus, nisi
24
+ erat porttitor ligula, eget lacinia odio sem nec elit.
25
+ </p>
26
+
27
+ </div>
28
+ <div class="dl-code">
29
+ <%= block_code <<-CODE, "html"
30
+ <p>...</p>
31
+ CODE
32
+ %>
33
+ </div>
34
+
35
+ <h2>Utilities</h2>
36
+ <p>Basic styling to HTMLs default tags.</p>
37
+
38
+ <h3>Small Text</h3>
39
+ <p>For de-emphasizing inline or blocks of text, use the small tag to set text at 85%
40
+ of the parent.</p>
41
+ <div class="dl-example">
42
+ <small>This is a small line of text and is not very important</small>
43
+ </div>
44
+ <div class="dl-code">
45
+ <%= block_code <<-CODE, "html"
46
+ <small>This is a small line of text...</small>
47
+ CODE
48
+ %>
49
+ </div>
50
+
51
+
52
+ <h3>Bold</h3>
53
+ <p>For emphasizing a snippet of text with a heavier font-weight.</p>
54
+ <div class="dl-example">
55
+ <p>This snippet of <strong>text is rendered as bold text</strong></p>
56
+ </div>
57
+ <div class="dl-code">
58
+ <%= block_code <<-CODE, "html"
59
+ <strong>This is a bold line of text...</strong>
60
+ CODE
61
+ %>
62
+ </div>
63
+
64
+ <h3>Italics</h3>
65
+ <p>For emphasizing a snippet of text with italics.</p>
66
+ <div class="dl-example">
67
+ <p>The following snippet of <em>text is rendered as italic text</em></p>
68
+ </div>
69
+ <div class="dl-code">
70
+ <%= block_code <<-CODE, "html"
71
+ <em>This is an italic line of text...</em>
72
+ CODE
73
+ %>
74
+ </div>
75
+
76
+ <h3>Muted Text</h3>
77
+ <div class="dl-example">
78
+ <p>The following snippet of <span class="muted">text is rendered as muted text</span></p>
79
+ </div>
80
+ <div class="dl-code">
81
+ <%= block_code <<-CODE, "html"
82
+ <span class="muted">This is a muted line of text...</span>
83
+ CODE
84
+ %>
85
+ </div>
86
+
87
+ <h3>Alignment classes</h3>
88
+ <p>Easily realign text to componenets with text alignment classes.</p>
89
+ <div class="dl-example">
90
+ <p class="text-left">Left aligned text.</p>
91
+ <p class="text-center">Center aligned text.</p>
92
+ <p class="text-right">Right aligned text.</p>
93
+ </div>
94
+ <div class="dl-code">
95
+ <%= block_code <<-CODE, "html"
96
+ <p class="text-left">... </p>
97
+ <p class="text-center">... </p>
98
+ <p class="text-right">... </p>
99
+ CODE
100
+ %>
101
+ </div>
@@ -0,0 +1,17 @@
1
+ <h1>Colors</h1>
2
+ <h2>Primary</h2>
3
+ <p>All of our regular colors and how to use them</p>
4
+ <div class="dl-example">
5
+ <div class="bg bg--default"> Default </div>
6
+ <div class="bg bg--success"> Success </div>
7
+ <div class="bg bg--error"> error </div>
8
+ <div class="bg bg--warning"> warning </div>
9
+ <div class="bg bg--info"> info </div>
10
+ </div>
11
+
12
+ <div class="dl-code">
13
+ <%= block_code <<-CODE, "html"
14
+ <div class="bg bg--{ui-color}"> </div>
15
+ CODE
16
+ %>
17
+ </div>
@@ -0,0 +1,55 @@
1
+ <h1>Forms</h1>
2
+ <h2>Text Fields</h2>
3
+ <p>
4
+ Use the .form-group class on inputs to give them some default styling. By
5
+ default, all inputs with this class are given 100% widths. Use the .form-group
6
+ class to give proper spacing between elements.
7
+ </p>
8
+ <div class="dl-example">
9
+ <div class="form-group">
10
+ <%= label_tag :email %>
11
+ <%= text_field_tag :email, "", class: "input-form" %>
12
+ </div>
13
+ <div class="form-group">
14
+ <%= label_tag :placeholder %>
15
+ <%= text_field_tag :email, "", class: "input-form", placeholder: "placeholder text" %>
16
+ </div>
17
+ <div class="form-group">
18
+ <%= label_tag :focus_state %>
19
+ <%= text_field_tag :email, "Focused State", class: "input-form focused" %>
20
+ </div>
21
+ <div class="form-group">
22
+ <%= label_tag :error_state %>
23
+ <%= text_field_tag :email, "Errored State", class: "input-form errored" %>
24
+ </div>
25
+ </div>
26
+ <div class="dl-code">
27
+ <%= block_code <<-CODE, "erb"
28
+ <div class="form-group">
29
+ <%= label_tag :email %\>
30
+ <%= text_field_tag :email, "", class: "input-form" %\>
31
+ </div>
32
+ CODE
33
+ %>
34
+ </div>
35
+
36
+ <h2>Submit Groups</h2>
37
+
38
+ <h3>Submit Split</h3>
39
+ <p>Splits the submit and anything else into two columns</p>
40
+ <div class="dl-example">
41
+ <div class="form-group submit-split">
42
+ <%= submit_tag "Submit" %>
43
+ <%= link_to "Forgot Password?", "#", class: "text-right" %>
44
+ </div>
45
+ </div>
46
+ <div class="dl-code">
47
+ <%= block_code <<-CODE, "erb"
48
+ <div class="form-group">
49
+ <%= label_tag :email %\>
50
+ <%= text_field_tag :email, "", class: "input-form" %\>
51
+ </div>
52
+ CODE
53
+ %>
54
+ </div>
55
+ </div>
@@ -0,0 +1,25 @@
1
+ <h1>Headings</h1>
2
+ <p>
3
+ Here is the default set of headings. They use Roboto Slab.
4
+ </p>
5
+
6
+ <div class="dl-example">
7
+ <h1>H1 Heading</h1>
8
+ <h2>H2 Heading</h2>
9
+ <h3>H3 Heading</h3>
10
+ <h4>H4 Heading</h4>
11
+ <h5>H5 Heading</h5>
12
+ <h6>H6 Heading</h6>
13
+ </div>
14
+
15
+ <div class="dl-code">
16
+ <%= block_code <<-CODE, "html"
17
+ <h1>H1 Heading</h1>
18
+ <h2>H2 Heading</h2>
19
+ <h3>H3 Heading</h3>
20
+ <h4>H4 Heading</h4>
21
+ <h5>H5 Heading</h5>
22
+ <h6>H6 Heading</h6>
23
+ CODE
24
+ %>
25
+ </div>
@@ -0,0 +1,13 @@
1
+ <h1>Links</h1>
2
+
3
+ <div class="dl-example">
4
+ <div><%= link_to "A link to somewhere", "#" %></div>
5
+ <div><%= link_to "On Hover", "#", class: "link-on-hover" %></div>
6
+ </div>
7
+ <div class="dl-code">
8
+ <%= block_code <<-CODE, "erb"
9
+ <%= link_to "A link to somewhere", "#" %\>
10
+ <%= link_to "On Hover", "#", class: "link-on-hover" %\>
11
+ CODE
12
+ %>
13
+ </div>