uniform-ui 0.6 → 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +27 -0
  3. data/CNAME +1 -0
  4. data/Gemfile +0 -4
  5. data/Gemfile.lock +1 -11
  6. data/README.md +2 -3
  7. data/Rakefile +34 -24
  8. data/index.html +240 -1160
  9. data/preview/{_tables.html.erb → alerts.html.erb} +0 -0
  10. data/preview/buttons.html.erb +62 -0
  11. data/preview/cards.html.erb +23 -0
  12. data/preview/colors.html.erb +22 -0
  13. data/preview/{_tabs.html.erb → dropdown.html.erb} +0 -0
  14. data/preview/form.html.erb +233 -0
  15. data/preview/grid.html.erb +304 -0
  16. data/preview/helpers.html.erb +225 -0
  17. data/preview/index.html.erb +74 -50
  18. data/preview/{_tiles.html.erb → labels.html.erb} +0 -0
  19. data/preview/layout.html.erb +63 -0
  20. data/preview/loaders.html.erb +83 -0
  21. data/preview/modal.html.erb +1 -0
  22. data/preview/nav.html.erb +77 -0
  23. data/preview/preview.scss +39 -10
  24. data/preview/rows.html.erb +36 -0
  25. data/preview/select.html.erb +1 -0
  26. data/preview/tables.html.erb +1 -0
  27. data/preview/tabs.html.erb +17 -0
  28. data/preview/tiles.html.erb +1 -0
  29. data/preview/tooltip.erb +1 -0
  30. data/site/alerts.html +157 -0
  31. data/site/alerts.html copy +133 -0
  32. data/site/buttons.html +286 -0
  33. data/site/cards.html +177 -0
  34. data/site/colors.html +275 -0
  35. data/site/dropdown.html +157 -0
  36. data/site/dropdown.html copy +141 -0
  37. data/site/form.html +369 -0
  38. data/site/grid.html +716 -0
  39. data/site/helpers.html +1008 -0
  40. data/site/index.html +208 -617
  41. data/site/labels.html +157 -0
  42. data/site/layout.html +313 -0
  43. data/site/loaders.html +233 -0
  44. data/site/modal.html +157 -0
  45. data/site/nav.html +229 -0
  46. data/site/preview.css +1 -1
  47. data/site/preview.js +59 -0
  48. data/site/rows.html +190 -0
  49. data/site/select.html +157 -0
  50. data/site/tables.html +157 -0
  51. data/site/tabs.html +171 -0
  52. data/site/tiles.html +157 -0
  53. data/site/tiles.html copy +109 -0
  54. data/site/tooltip +157 -0
  55. data/site/uniform.css +1 -1
  56. data/uniform.gemspec +2 -8
  57. data/vendor/assets/stylesheets/uniform.scss +4 -4
  58. data/vendor/assets/stylesheets/uniform/base.scss +2 -0
  59. data/vendor/assets/stylesheets/uniform/components/alert.scss +27 -0
  60. data/vendor/assets/stylesheets/uniform/components/buttons.scss +135 -86
  61. data/vendor/assets/stylesheets/uniform/components/card.scss +69 -67
  62. data/vendor/assets/stylesheets/uniform/components/dropdown.scss +69 -0
  63. data/vendor/assets/stylesheets/uniform/components/form.scss +268 -85
  64. data/vendor/assets/stylesheets/uniform/components/grid.scss +214 -72
  65. data/vendor/assets/stylesheets/uniform/components/label.scss +63 -0
  66. data/vendor/assets/stylesheets/uniform/components/loaders.scss +38 -18
  67. data/vendor/assets/stylesheets/uniform/components/modal.scss +51 -0
  68. data/vendor/assets/stylesheets/uniform/components/nav.scss +171 -54
  69. data/vendor/assets/stylesheets/uniform/components/row.scss +69 -101
  70. data/vendor/assets/stylesheets/uniform/components/select.scss +98 -0
  71. data/vendor/assets/stylesheets/uniform/components/table.scss +83 -0
  72. data/vendor/assets/stylesheets/uniform/components/tabs.scss +39 -26
  73. data/vendor/assets/stylesheets/uniform/components/tile.scss +15 -27
  74. data/vendor/assets/stylesheets/uniform/components/tooltip.scss +46 -0
  75. data/vendor/assets/stylesheets/uniform/defaults.scss +85 -19
  76. data/vendor/assets/stylesheets/uniform/helpers.scss +82 -81
  77. data/vendor/assets/stylesheets/uniform/helpers/colors.scss +37 -0
  78. data/vendor/assets/stylesheets/uniform/helpers/margin.scss +44 -0
  79. data/vendor/assets/stylesheets/uniform/helpers/padding.scss +74 -0
  80. data/vendor/assets/stylesheets/uniform/helpers/sizes.scss +31 -0
  81. data/vendor/assets/stylesheets/uniform/helpers/text.scss +121 -0
  82. data/vendor/assets/stylesheets/uniform/mixins.scss +25 -48
  83. data/vendor/assets/stylesheets/uniform/variables.scss +10 -28
  84. metadata +61 -85
  85. data/preview/_buttons.html.erb +0 -59
  86. data/preview/_cards.html.erb +0 -82
  87. data/preview/_colors.html.erb +0 -12
  88. data/preview/_forms.html.erb +0 -196
  89. data/preview/_grid.html.erb +0 -49
  90. data/preview/_helpers.html.erb +0 -158
  91. data/preview/_inputs.html.erb +0 -93
  92. data/preview/_installation.html.erb +0 -4
  93. data/preview/_lists.html.erb +0 -53
  94. data/preview/_loaders.html.erb +0 -72
  95. data/preview/_nav.html.erb +0 -46
  96. data/preview/_philosophy.html.erb +0 -33
  97. data/preview/_rows.html.erb +0 -35
  98. data/preview/_uniform.html.erb +0 -4
  99. data/site/site/logo.png +0 -0
  100. data/site/site/preview.css +0 -1
  101. data/site/site/uniform.css +0 -1
  102. data/vendor/assets/stylesheets/uniform/components/inputs.scss +0 -131
  103. data/vendor/assets/stylesheets/uniform/components/lists.scss +0 -62
  104. data/vendor/assets/stylesheets/uniform/components/table-container.scss +0 -44
  105. data/vendor/assets/stylesheets/uniform/components/table-form.scss +0 -159
  106. data/vendor/assets/stylesheets/uniform/mixins/grid-framework.scss +0 -142
@@ -0,0 +1,225 @@
1
+ <div class="section">
2
+ <h1>Helpers</h1>
3
+ <p>These classes are mostly used as modifieres to base elements or compontents</p>
4
+
5
+ <h3>Breakpoints</h3>
6
+ <p>
7
+ Any helper can have <code>-sm</code>, <code>-md</code>, <code>-lg</code>,
8
+ or <code>-xl</code> added to cause helper to only go into effect for that
9
+ breakpoint.
10
+ </p>
11
+
12
+ <h3>Padding</h3>
13
+ <table class="uniformTable top">
14
+ <tr>
15
+ <th></th>
16
+ <th></th>
17
+ </tr>
18
+ <% [
19
+ ['.pad-tiny', 'padding: 0.25em;'],
20
+ ['.pad-less', 'padding: 0.5em;'],
21
+ ['.pad', 'padding: 1em;'],
22
+ ['.pad-more', 'padding: 2em;'],
23
+ ['.pad-super', 'padding: 4em;'],
24
+ ['.pad-h', 'padding-left: 1em; padding-right: 1em;'],
25
+ ['.pad-h-less', 'padding-left: 0.5em; padding-right: 0.5em;'],
26
+ ['.pad-v', 'padding-top: 1em; padding-bottom: 1em;'],
27
+ ['.pad-v-less', 'padding-top: 0.5em; padding-bottom: 0.5em;'],
28
+ ].each do |klass| %>
29
+ <tr class="middle">
30
+ <td>
31
+ <code><%= klass[0] %></code>
32
+ </td>
33
+ <td>
34
+ <% html_block class: "margin-none" do %>
35
+ <%= klass[1] %>
36
+ <% end %>
37
+ </td>
38
+ </tr>
39
+ <% end %>
40
+ </table>
41
+
42
+ <h3>Margin</h3>
43
+ <table class="uniformTable top">
44
+ <tr>
45
+ <th></th>
46
+ <th></th>
47
+ </tr>
48
+ <% [
49
+ ['.margin-tiny', 'margin-top: 0.25em; margin-bottom:0.25em'],
50
+ ['.margin-less', 'margin-top: 0.5em; margin-bottom: 0.5em'],
51
+ ['.margin', 'margin-top: 1em; margin-bottom: 1em;'],
52
+ ['.margin-more', 'margin-top 2em; margin-bottom: 2em'],
53
+ ['.margin-super', 'margin-top: 4em; margin-bottom: 2em'],
54
+ ['.margin-h', 'margin-left: 1em; margin-right: 1em;'],
55
+ ['.margin-none', 'margin: 0 !important;'],
56
+ ].each do |klass| %>
57
+ <tr class="middle">
58
+ <td>
59
+ <code><%= klass[0] %></code>
60
+ </td>
61
+ <td>
62
+ <% html_block class: "margin-none" do %>
63
+ <%= klass[1] %>
64
+ <% end %>
65
+ </td>
66
+ </tr>
67
+ <% end %>
68
+ </table>
69
+
70
+ <h3>Colors</h3>
71
+ <table class="uniformTable top">
72
+ <tr>
73
+ <th></th>
74
+ <th></th>
75
+ </tr>
76
+ <% [
77
+ ['.text-green', 'color: $green'],
78
+ ['.bg-green', 'background-color: $green'],
79
+ ['.a-green', 'a{ color: $green}'],
80
+ ['.a-hover-green', 'a:hover{ color: $green}'],
81
+ ].each do |klass| %>
82
+ <tr class="middle">
83
+ <td>
84
+ <code><%= klass[0] %></code>
85
+ </td>
86
+ <td>
87
+ <% html_block class: "margin-none" do %>
88
+ <%= klass[1] %>
89
+ <% end %>
90
+ </td>
91
+ </tr>
92
+ <% end %>
93
+ </table>
94
+
95
+ <h3>Sizes</h3>
96
+ <table class="uniformTable top">
97
+ <tr>
98
+ <th></th>
99
+ <th></th>
100
+ </tr>
101
+ <% [
102
+ ['.width-50-p', 'width: 50%'],
103
+ ['.width-50-px', 'width: 50px'],
104
+ ['.width-50-vw', 'width: 50vw'],
105
+ ['.max-width-50-p', 'max-width: 50%'],
106
+ ['.max-width-50-px', 'max-width: 50px'],
107
+ ['.height-50-p', 'height: 50%'],
108
+ ['.height-50-px', 'height: 50px'],
109
+ ['.height-50-vh', 'height: 50vh'],
110
+ ['.max-height-50-px', 'max-height: 50px'],
111
+ ['.min-height-50-vh', 'min-height: 50vh'],
112
+ ].each do |klass| %>
113
+ <tr class="middle">
114
+ <td>
115
+ <code><%= klass[0] %></code>
116
+ </td>
117
+ <td>
118
+ <% html_block class: "margin-none" do %>
119
+ <%= klass[1] %>
120
+ <% end %>
121
+ </td>
122
+ </tr>
123
+ <% end %>
124
+ </table>
125
+
126
+ <h3>Text</h3>
127
+ <table class="uniformTable top">
128
+ <tr>
129
+ <th></th>
130
+ <th></th>
131
+ </tr>
132
+ <% [
133
+ ['.text-caps', 'text-transform: uppercase'],
134
+ ['.text-small-less', 'font-size: 0.9em'],
135
+ ['.text-small', 'font-size: 0.8em'],
136
+ ['.text-large', 'font-size: 1.2em'],
137
+ ['.text-1rem', 'font-size: 1rem'],
138
+ ['.text-larger', 'font-size: 1.4em'],
139
+ ['.text-super', 'font-size: 3em'],
140
+ ['.text-subtle', 'font-size: 90%; opacity: 0.8'],
141
+ ['.text-subtle-more', 'font-size: 80%; opacity: 0.6'],
142
+ ['.text-muted', 'opacity: 0.8'],
143
+ ['.text-muted-more', 'opacity: 0.6'],
144
+ ['.text-left', 'text-align: left !important'],
145
+ ['.text-right', 'text-align: right'],
146
+ ['.text-center', 'text-align: center'],
147
+ ['.text-justify', 'text-align: justify'],
148
+ ['.text-overflow', '@include text-overflow'],
149
+ ['.text-bold', 'font-weight: 700'],
150
+ ['.text-light', 'font-weight: 300'],
151
+ ['.text-lightest', 'font-weight: 100'],
152
+ ['.text-normal', 'font-weight: normal !important'],
153
+ ['.text-middle', 'vertical-align:middle'],
154
+ ['.text-top', 'vertical-align:top'],
155
+ ['.text-tight', 'line-height:1.3'],
156
+ ['.required', 'color:$red'],
157
+ ['.warn:hover', 'color:$red'],
158
+ ['p.large', 'font-size:1.5em; font-weight:300'],
159
+ ['.text-italic', 'font-style: italic'],
160
+ ['.text-no-wrap', 'white-space: nowrap; overflow:hidden'],
161
+ ['.text-no-decoration', 'text-decoration: none; a{text-decoration: none;}'],
162
+ ['.text-height-1', 'line-height: 1'],
163
+ ['.text-warn', '&:hover{color:$red !important;}']
164
+ ].each do |klass| %>
165
+ <tr class="middle">
166
+ <td>
167
+ <code><%= klass[0] %></code>
168
+ </td>
169
+ <td>
170
+ <% html_block class: "margin-none" do %>
171
+ <%= klass[1] %>
172
+ <% end %>
173
+ </td>
174
+ </tr>
175
+ <% end %>
176
+ </table>
177
+
178
+ <h3>Layout</h3>
179
+ <table class="uniformTable top">
180
+ <tr>
181
+ <th></th>
182
+ <th></th>
183
+ </tr>
184
+ <% [
185
+ ['.hidden', 'display:none !important;'],
186
+ ['.round', 'border-radius:50%;'],
187
+ ['.rounded', 'border-radius: 0.25em;'],
188
+ ['.pointer', 'cursor: pointer !important;'],
189
+ ['.cursor-help', 'cursor: help;'],
190
+ ['.handle', 'cursor: hand;'],
191
+ ['.honeypot', "position:absolute !important;\nleft:-999999px !important;\nwidth:1px !important;\ndisplay:block !important;"],
192
+ ['.border-#{$direction}', 'border-#{$direction}: 1px solid $gray-light;'],
193
+ ['.border-dark-#{$direction}', 'border-#{$direction}: 1px solid darken($gray-light, 20);'],
194
+ ['img.disabled', '@include grayscale(1, 0.3)'],
195
+ ['table.fixed', 'table-layout: fixed;'],
196
+ ['.float-right', 'float:right;'],
197
+ ['.float-left', 'float: left;'],
198
+ ['.bleed-fix', 'position:static; overflow:hidden;'],
199
+ ['.clear', 'clear:both;'],
200
+ ['.block ', 'display: block;'],
201
+ ['.inline-block ', 'display:inline-block !important;'],
202
+ ['.align-middle', '@include align-middle;'],
203
+ ['.relative', 'position:relative;'],
204
+ ['ul.raw', 'margin: 0; padding: 0; list-style:none;'],
205
+ ['.text-col-2', 'column-count: 2; column-gap: 5em;'],
206
+ ['button.raw', 'outline: none; appearance: none; border: none; background:none;'],
207
+ ['.overflow-hidden', 'overflow:hidden;'],
208
+ ['.overflow-y', 'overflow-y: auto;'],
209
+ ['img.block', 'display:block; width: 100%;'],
210
+ ['.height-auto', 'height: auto;'],
211
+ ].each do |klass| %>
212
+ <tr class="middle">
213
+ <td>
214
+ <code><%= klass[0] %></code>
215
+ </td>
216
+ <td>
217
+ <% html_block class: "margin-none" do %>
218
+ <%= klass[1] %>
219
+ <% end %>
220
+ </td>
221
+ </tr>
222
+ <% end %>
223
+ </table>
224
+
225
+ </div>
@@ -1,53 +1,77 @@
1
- <!DOCTYPE html>
2
- <head>
3
- <meta http-equiv="Content-type" content="text/html; charset=utf-8">
4
- <title>Uniform</title>
5
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.2.0/normalize.css" type="text/css" media="screen">
6
- <link rel="stylesheet" href="site/preview.css" type="text/css" media="screen" charset="utf-8">
7
- <link rel="stylesheet" href="site/uniform.css" type="text/css" media="screen" title="no title" charset="utf-8">
8
- </head>
9
- <body>
10
- <% sections = [
11
- :uniform,
12
- :installation,
13
- :philosophy,
14
- :colors,
15
- :buttons,
16
- :grid,
17
- :inputs,
18
- :forms,
19
- :loaders,
20
- :cards,
21
- :tiles,
22
- :rows,
23
- :lists,
24
- :tables,
25
- :nav,
26
- :tabs,
27
- :helpers
28
- ] %>
29
- <div class="side-nav">
30
- <div style="padding: 20px; padding-right: 30px">
31
- <img src="site/logo.png" style="width: 100%; height: auto;">
32
- </div>
33
- <div class="uniform-nav vertical">
34
- <ul>
35
- <% sections.each do |section| %>
36
- <li><a href="#<%= section %>"><%= section.to_s.titleize %></a></li>
37
- <% end %>
38
- </ul>
39
- </div>
1
+ <div class="text-center margin-top-more">
2
+ <img src="site/logo.png" width="451" height="101">
3
+ <p class="large">Sass components and helpers for building a UI.</p>
40
4
  </div>
41
- <div class="main-content">
42
- <% sections.each do |section| %>
43
- <a name="<%= section %>"></a>
44
- <div class="section">
45
- <% if section != :uniform %>
46
- <h1><%= section.to_s.titleize %></h1>
47
- <% end %>
48
- <%= ERB.new(File.read("preview/_#{section}.html.erb")).result %>
49
- </div>
5
+ <div class="section">
6
+ <h1>Installation</h1>
7
+ <p>Add to your gem file<br/><code>gem 'uniform-ui'</code></p>
8
+ <p>Execute:<br/><code>$ bundle</code></p>
9
+ <p>Or install it yourself:<br/><code>$ gem install uniform-ui</code></p>
10
+ <p>Include the css library in your asset pipeline.<br/><code>@import 'uniform';</code></p>
11
+ <p>Include the javascript library in your asset pipeline.<br/><code>//= require uniform</code></p>
12
+ <h3>Scope Components</h3>
13
+ <p>Optionally, you can scope the components you want included in your assets.</p>
14
+ <% html_block do %>
15
+ // css
16
+ @import 'uniform';
17
+ // - OR -
18
+ @import 'uniform/base';<% (Dir.foreach(File.join('vendor', 'assets', 'stylesheets', 'uniform')).reject{|x| %w(variables.scss mixins.scss base.scss).include?(x)}.to_a +
19
+ Dir.foreach(File.join('vendor', 'assets', 'stylesheets', 'uniform', 'helpers')).map{|x| "helpers/#{x}"}.to_a +
20
+ Dir.foreach(File.join('vendor', 'assets', 'stylesheets', 'uniform', 'components')).map{|x| "components/#{x}"}.to_a).select{|x| x.split('.').last == "scss"}.each do |x| %>
21
+ @import 'uniform/<%= x.remove('.scss') %>';<% end %>
22
+
23
+ // javascript
24
+ //= require uniform
25
+ // - OR -
26
+ //= require uniform/base
27
+ //= require uniform/select
50
28
  <% end %>
29
+
51
30
  </div>
52
- <script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>
53
- </body>
31
+ <div class="section">
32
+ <h1>Philosophy</h1>
33
+ <h3>Don't use ID's</h3>
34
+ <p>Unless you have to, and even then, think twice. HTML Id's make things not
35
+ reusable. There should only be one instance of an id in a document</p>
36
+
37
+ <h3>Use Semanitc Classes Presentationaly :)</h3>
38
+ <p>
39
+ Here's a decent post on OOCSS (Object Oriented CSS) as it relates to
40
+ semantic vs presentational classes:
41
+ <a href="http://blackfalcon.roughdraft.io/5255648-oocss-v-ooscss-sasscast-show-notes">OOCSS v OOSCSS</a>
42
+ <p>
43
+ <strong>TL;DR:</strong> Semantic classes explain what that element is.
44
+ Presentational classes explain what the shoud look like.
45
+ </p>
46
+ <p>
47
+ <code>class="property-list"</code> vs <code>class="ul-list col-sm-4"</code>
48
+ </p>
49
+ <p>
50
+ Some of us don't want to touch css files (preference: presentational),
51
+ and some of us live there (preference: semantic). Honestly, the art of
52
+ good ui development is balancing semantic and presentational classes.
53
+ Each taken to their extreme is bad.
54
+ </p>
55
+ <p>
56
+ Structure html so that the semantic class is first and presentational
57
+ classes follow.
58
+ </p>
59
+ <p><code>class="property-list ul-list col-sm-4"</code></p>
60
+
61
+ <h3>Save the Namespace, save the world</h3>
62
+ <p>Don't make presentational classes that will clash with elements that could mean something else. I'm looking at you Bootsrap!</p>
63
+ <p><code>class="label"</code> should be <code>class="text-label"</code></p>
64
+
65
+ <h3>camelCase vs train-case</h3>
66
+ <p>Use camelCase for class names for components, not train-case or snake_case.</p>
67
+ <p>Use tran-case for class names for helpers or modifiers.</p>
68
+
69
+ <h3>Wrappers and Containers</h3>
70
+ <p>
71
+ Both <code>wrapper</code> and <code>container</code> can be used as class names
72
+ for an element that goes around a component. The difference is nuanced.
73
+ <code>wrapper</code> should be used to wrap a <strong>single</strong> element for a formatting purpose.
74
+ A <code>container</code> should be used to wrap <strong>multiple</strong> elements.
75
+ </p>
76
+
77
+ </div>
File without changes
@@ -0,0 +1,63 @@
1
+ <!DOCTYPE html>
2
+ <head>
3
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8">
4
+ <title>Uniform</title>
5
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.2.0/normalize.css" type="text/css" media="screen">
6
+ <link rel="stylesheet" href="/site/uniform.css" type="text/css" media="screen" title="no title" charset="utf-8">
7
+ <link rel="stylesheet" href="/site/preview.css" type="text/css" media="screen" charset="utf-8">
8
+ </head>
9
+ <body>
10
+ <div class="side-nav">
11
+ <div class="pad">
12
+ <a href="/">
13
+ <img src="/site/logo.png" class="block">
14
+ </a>
15
+ </div>
16
+ <div class="uniformNav vertical">
17
+ <div class="nav">
18
+ <% %>
19
+ <% [
20
+ :helpers,
21
+ :colors,
22
+ :grid,
23
+ :buttons,
24
+ [:tables],
25
+ :cards,
26
+ :rows,
27
+ :form,
28
+ :loaders,
29
+ :nav,
30
+ :tabs,
31
+ [:tiles],
32
+ [:labels],
33
+ [:alerts],
34
+ [:dropdown],
35
+ [:modal],
36
+ [:select],
37
+ [:tooltip]
38
+ ].each do |page| %>
39
+ <% if page.is_a?(Array)
40
+ page = page[0]
41
+ todo = true
42
+ end %>
43
+ <a href="/site/<%= page %>.html">
44
+ <%= page.to_s.titleize %>
45
+ <% if todo %>
46
+ <span class="uniformLabel yellow">todo</span>
47
+ <% end %>
48
+ </a>
49
+ <% end %>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ <div class="main-content overflow-hidden">
54
+ <%= yield %>
55
+ </div>
56
+ <script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>
57
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
58
+ <script
59
+ src="https://code.jquery.com/jquery-1.11.3.min.js"
60
+ integrity="sha256-7LkWEzqTdpEfELxcZZlS6wAx5Ff13zZ83lYO2/ujj7g="
61
+ crossorigin="anonymous"></script>
62
+ <script src="/site/preview.js"></script>
63
+ </body>
@@ -0,0 +1,83 @@
1
+ <div class="section">
2
+ <h1>Loaders</h1>
3
+ <div class="grid">
4
+ <div class="col-6">
5
+ <div class="uniform-loader">
6
+ <div class="uniform-loader-container">
7
+ <span>&bull;</span>
8
+ <span>&bull;</span>
9
+ <span>&bull;</span>
10
+ </div>
11
+ </div>
12
+ </div>
13
+ <div class="col-6">
14
+ <% html_block do %>
15
+ <div class="uniform-loader">
16
+ <div class="uniform-loader-container">
17
+ <span>&bull;</span>
18
+ <span>&bull;</span>
19
+ <span>&bull;</span>
20
+ </div>
21
+ </div>
22
+ <% end %>
23
+ </div>
24
+ </div>
25
+ <div class="grid">
26
+ <div class="col-6">
27
+ <code>.cover</code><br>
28
+ <span style="position:relative; display:inline-block">
29
+ <img src="https://unsplash.it/150/100/?random" style="display:block;" width="150" height="100">
30
+ <div class="uniform-loader cover">
31
+ <div class="uniform-loader-container">
32
+ <span>&bull;</span>
33
+ <span>&bull;</span>
34
+ <span>&bull;</span>
35
+ </div>
36
+ </div>
37
+ </span>
38
+ </div>
39
+ <div class="col-6">
40
+ <% html_block do %>
41
+ <span style="position:relative; display:inline-block">
42
+ <img src="https://unsplash.it/150/100/?random" style="display:block;">
43
+ <div class="uniform-loader cover">
44
+ <div class="uniform-loader-container">
45
+ <span>&bull;</span>
46
+ <span>&bull;</span>
47
+ <span>&bull;</span>
48
+ </div>
49
+ </div>
50
+ </span>
51
+ <% end %>
52
+ </div>
53
+ </div>
54
+ <div class="grid">
55
+ <div class="col-6">
56
+ <code>.cover.light</code><br>
57
+ <span style="position:relative; display:inline-block">
58
+ <img src="https://unsplash.it/150/100/?random" style="display:block;" width="150" height="100">
59
+ <div class="uniform-loader cover light">
60
+ <div class="uniform-loader-container">
61
+ <span>&bull;</span>
62
+ <span>&bull;</span>
63
+ <span>&bull;</span>
64
+ </div>
65
+ </div>
66
+ </span>
67
+ </div>
68
+ <div class="col-6">
69
+ <% html_block do %>
70
+ <span style="position:relative; display:inline-block">
71
+ <img src="https://unsplash.it/150/100/?random" style="display:block;">
72
+ <div class="uniform-loader cover light">
73
+ <div class="uniform-loader-container">
74
+ <span>&bull;</span>
75
+ <span>&bull;</span>
76
+ <span>&bull;</span>
77
+ </div>
78
+ </div>
79
+ </span>
80
+ <% end %>
81
+ </div>
82
+ </div>
83
+ </div>