underoos 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +8 -0
- data/.rvmrc +1 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +143 -0
- data/LICENSE +26 -0
- data/Procfile +1 -0
- data/README.md +13 -0
- data/Rakefile +12 -0
- data/app/assets/javascripts/styleguide.js +132 -0
- data/app/assets/javascripts/underoos.js +18 -0
- data/app/assets/stylesheets/base/_button-btn-mixin.sass +72 -0
- data/app/assets/stylesheets/base/_elements.sass +61 -0
- data/app/assets/stylesheets/base/_forms.sass +362 -0
- data/app/assets/stylesheets/base/_helpers.sass +54 -0
- data/app/assets/stylesheets/base/_normalize.sass +114 -0
- data/app/assets/stylesheets/base/_scaffold.sass +51 -0
- data/app/assets/stylesheets/base/_tables.sass +99 -0
- data/app/assets/stylesheets/base/_transitions.sass +17 -0
- data/app/assets/stylesheets/base/_typography.sass +185 -0
- data/app/assets/stylesheets/components/_accordions.sass +17 -0
- data/app/assets/stylesheets/components/_breadcrumbs.sass +22 -0
- data/app/assets/stylesheets/components/_button-groups.sass +46 -0
- data/app/assets/stylesheets/components/_carets.sass +24 -0
- data/app/assets/stylesheets/components/_carousels.sass +18 -0
- data/app/assets/stylesheets/components/_close.sass +25 -0
- data/app/assets/stylesheets/components/_decals.sass +27 -0
- data/app/assets/stylesheets/components/_dropdowns.sass +85 -0
- data/app/assets/stylesheets/components/_media.sass +33 -0
- data/app/assets/stylesheets/components/_modals.sass +28 -0
- data/app/assets/stylesheets/components/_nav-lists.sass +22 -0
- data/app/assets/stylesheets/components/_navbars.sass +105 -0
- data/app/assets/stylesheets/components/_notifications.sass +108 -0
- data/app/assets/stylesheets/components/_paddles.sass +34 -0
- data/app/assets/stylesheets/components/_pagination.sass +41 -0
- data/app/assets/stylesheets/components/_pills.sass +64 -0
- data/app/assets/stylesheets/components/_popovers.sass +55 -0
- data/app/assets/stylesheets/components/_progress-bars.sass +29 -0
- data/app/assets/stylesheets/components/_tabs.sass +93 -0
- data/app/assets/stylesheets/components/_tooltips.sass +46 -0
- data/app/assets/stylesheets/components/_wells.sass +16 -0
- data/app/assets/stylesheets/layouts/_containers.sass +15 -0
- data/app/assets/stylesheets/layouts/_print.sass +48 -0
- data/app/assets/stylesheets/layouts/_queries.sass +121 -0
- data/app/assets/stylesheets/layouts/_upgrades.sass +64 -0
- data/app/assets/stylesheets/mixins/_arrows.sass +40 -0
- data/app/assets/stylesheets/mixins/_clearfixins.sass +15 -0
- data/app/assets/stylesheets/mixins/_coloring.sass +6 -0
- data/app/assets/stylesheets/mixins/_columns.sass +19 -0
- data/app/assets/stylesheets/mixins/_conversions.sass +25 -0
- data/app/assets/stylesheets/mixins/_font-size.sass +6 -0
- data/app/assets/stylesheets/mixins/_image-tools.sass +13 -0
- data/app/assets/stylesheets/mixins/_ir.sass +9 -0
- data/app/assets/stylesheets/mixins/_mixins.sass +14 -0
- data/app/assets/stylesheets/mixins/_tab-focus.sass +7 -0
- data/app/assets/stylesheets/mixins/_timing-equations.sass +29 -0
- data/app/assets/stylesheets/mixins/_visibility.sass +43 -0
- data/app/assets/stylesheets/polyfills/_box-shadow.sass +7 -0
- data/app/assets/stylesheets/polyfills/_box-sizing.sass +8 -0
- data/app/assets/stylesheets/polyfills/_functions.sass +22 -0
- data/app/assets/stylesheets/polyfills/_inline-block.sass +8 -0
- data/app/assets/stylesheets/polyfills/_opacity.sass +6 -0
- data/app/assets/stylesheets/polyfills/_polyfills.sass +10 -0
- data/app/assets/stylesheets/polyfills/_transition.sass +9 -0
- data/app/assets/stylesheets/polyfills/_user-select.sass +8 -0
- data/app/assets/stylesheets/styleguide.sass +199 -0
- data/app/assets/stylesheets/themes/_default.sass +119 -0
- data/app/assets/stylesheets/underoos.sass +52 -0
- data/app/controllers/underoos/styleguides_controller.rb +79 -0
- data/app/views/shared/_upgrades.html.haml +12 -0
- data/app/views/underoos/styleguides/_assets.haml +42 -0
- data/app/views/underoos/styleguides/_components.haml +42 -0
- data/app/views/underoos/styleguides/_elements.haml +242 -0
- data/app/views/underoos/styleguides/_forms.haml +305 -0
- data/app/views/underoos/styleguides/_layouts.haml +76 -0
- data/app/views/underoos/styleguides/_palettes.haml +18 -0
- data/app/views/underoos/styleguides/_resources.haml +27 -0
- data/app/views/underoos/styleguides/_tables.haml +124 -0
- data/app/views/underoos/styleguides/_typography.haml +284 -0
- data/app/views/underoos/styleguides/_utilities.haml +270 -0
- data/app/views/underoos/styleguides/components/_accordions.haml +83 -0
- data/app/views/underoos/styleguides/components/_breadcrumbs.haml +42 -0
- data/app/views/underoos/styleguides/components/_button-groups.haml +162 -0
- data/app/views/underoos/styleguides/components/_carets.haml +28 -0
- data/app/views/underoos/styleguides/components/_close.haml +20 -0
- data/app/views/underoos/styleguides/components/_decals.haml +40 -0
- data/app/views/underoos/styleguides/components/_dropdowns.haml +189 -0
- data/app/views/underoos/styleguides/components/_media.haml +78 -0
- data/app/views/underoos/styleguides/components/_modals.haml +42 -0
- data/app/views/underoos/styleguides/components/_nav-lists.haml +52 -0
- data/app/views/underoos/styleguides/components/_navbars.haml +144 -0
- data/app/views/underoos/styleguides/components/_navs-showcase.haml +27 -0
- data/app/views/underoos/styleguides/components/_notifications.haml +169 -0
- data/app/views/underoos/styleguides/components/_paddles.haml +68 -0
- data/app/views/underoos/styleguides/components/_pagination.haml +64 -0
- data/app/views/underoos/styleguides/components/_popovers.haml +33 -0
- data/app/views/underoos/styleguides/components/_progress-bars.haml +72 -0
- data/app/views/underoos/styleguides/components/_tabs-pills.haml +241 -0
- data/app/views/underoos/styleguides/components/_tooltips.haml +37 -0
- data/app/views/underoos/styleguides/components/_wells.haml +29 -0
- data/app/views/underoos/styleguides/index.html.haml +259 -0
- data/app/views/underoos/styleguides/partials/_form-template.haml +171 -0
- data/app/views/underoos/styleguides/partials/_table-data.haml +33 -0
- data/app/views/underoos/styleguides/partials/_transitions.haml +136 -0
- data/config.ru +38 -0
- data/config/routes.rb +3 -0
- data/features/generator.feature +78 -0
- data/features/step_definitions/underoos_steps.rb +3 -0
- data/features/support/env.rb +9 -0
- data/lib/generators/underoos/assets_generator.rb +33 -0
- data/lib/underoos.rb +5 -0
- data/lib/underoos/engine.rb +8 -0
- data/lib/underoos/version.rb +3 -0
- data/public/apple-touch-icon-114x114-precomposed.png +0 -0
- data/public/apple-touch-icon-57x57-precomposed.png +0 -0
- data/public/apple-touch-icon-72x72-precomposed.png +0 -0
- data/public/apple-touch-icon-precomposed.png +0 -0
- data/public/apple-touch-icon.png +0 -0
- data/public/favicon.ico +0 -0
- data/script/javascripts +15 -0
- data/underoos.gemspec +29 -0
- data/vendor/assets/javascripts/bootstrap-alert.js +94 -0
- data/vendor/assets/javascripts/bootstrap-button.js +100 -0
- data/vendor/assets/javascripts/bootstrap-collapse.js +138 -0
- data/vendor/assets/javascripts/bootstrap-dropdown.js +92 -0
- data/vendor/assets/javascripts/bootstrap-modal.js +210 -0
- data/vendor/assets/javascripts/bootstrap-popover.js +95 -0
- data/vendor/assets/javascripts/bootstrap-scrollspy.js +125 -0
- data/vendor/assets/javascripts/bootstrap-tab.js +130 -0
- data/vendor/assets/javascripts/bootstrap-tooltip.js +270 -0
- data/vendor/assets/javascripts/bootstrap-transition.js +51 -0
- data/vendor/assets/javascripts/bootstrap-typeahead.js +271 -0
- data/vendor/assets/javascripts/prettify.js +28 -0
- metadata +246 -0
@@ -0,0 +1,284 @@
|
|
1
|
+
|
2
|
+
#type_headings.sg-spy-landing
|
3
|
+
.sg-subsection
|
4
|
+
%h3.sg-subheading Headings & body copy <span>typography.sass</span>
|
5
|
+
%h1 Google hearts h1 headings, but only use one per page.
|
6
|
+
%p=@lorem
|
7
|
+
%br
|
8
|
+
%h2 Got sections? Try using h2 headings.
|
9
|
+
%p=@lorem
|
10
|
+
%br
|
11
|
+
%h3 Good things come in threes, like tacos and h3 headings.
|
12
|
+
%p=@lorem
|
13
|
+
%br
|
14
|
+
%h4 There's nothing clever to say about h4 headings.
|
15
|
+
%p=@lorem
|
16
|
+
%br
|
17
|
+
%h5 Every time you use an h5 heading, Google kills a puppy. A tiny little puppy.
|
18
|
+
%p=@lorem
|
19
|
+
%br
|
20
|
+
%h6 An h6 heading? Google just killed a litter of kittens.
|
21
|
+
%p=@lorem
|
22
|
+
|
23
|
+
|
24
|
+
#type_paragraphs.sg-spy-landing
|
25
|
+
.sg-subsection
|
26
|
+
%h3.sg-subheading Inline paragraph elements <span>typography.sass</span>
|
27
|
+
%table.box.vborder.banded.thead-decorate
|
28
|
+
%thead
|
29
|
+
%tr
|
30
|
+
%th Element
|
31
|
+
%th Usage
|
32
|
+
%tbody
|
33
|
+
%tr
|
34
|
+
%td.html <code><a></code>
|
35
|
+
%td.haml.hidden <code>%a</code>
|
36
|
+
%td The anchor element defines a <a href="http://www.modeset.com/">hyperlink</a>!
|
37
|
+
%tr
|
38
|
+
%td.html <code><em></code>
|
39
|
+
%td.haml.hidden <code>%em</code>
|
40
|
+
%td The em element is used to <em>emphasize</em> text
|
41
|
+
%tr
|
42
|
+
%td.html <code><strong></code>
|
43
|
+
%td.haml.hidden <code>%strong</code>
|
44
|
+
%td The strong element also <strong>emphasizes</strong> text, typically in <strong>bold</strong>
|
45
|
+
%tr
|
46
|
+
%td.html <code><small></code>
|
47
|
+
%td.haml.hidden <code>%small</code>
|
48
|
+
%td The small element renders text well, <small>smaller</small>
|
49
|
+
%tr
|
50
|
+
%td.html <code><sup></code>
|
51
|
+
%td.haml.hidden <code>%sup</code>
|
52
|
+
%td The superscript element is used to display text higher<sup>®</sup> and smaller<sup>™</sup>
|
53
|
+
%tr
|
54
|
+
%td.html <code><sub></code>
|
55
|
+
%td.haml.hidden <code>%sub</code>
|
56
|
+
%td The sub element is used to display text <sub>lower</sub> and <sub>smaller</sub>
|
57
|
+
%tr
|
58
|
+
%td.html <code><address></code>
|
59
|
+
%td.haml.hidden <code>%address</code>
|
60
|
+
%td For contact information related to the author of the document
|
61
|
+
%tr
|
62
|
+
%td.html <code><time></code>
|
63
|
+
%td.haml.hidden <code>%time</code>
|
64
|
+
%td Use for a <time>24-hour</time> clock or a precise date in the <a href="http://en.wikipedia.org/wiki/Gregorian_calendar">Gregorian calendar</a>
|
65
|
+
%tr
|
66
|
+
%td.html <code><abbr></code>
|
67
|
+
%td.haml.hidden <code>%abbr</code>
|
68
|
+
%td <abbr title="For Placement Only">FPO</abbr>. Describes an abbreviated phrase with the <code>title</code> attribute
|
69
|
+
%tr
|
70
|
+
%td.html <code><dfn></code>
|
71
|
+
%td.haml.hidden <code>%dfn</code>
|
72
|
+
%td <dfn title="This is a definition">DFN</dfn>. Describes the definition of a word or term with the <code>title</code> attribute
|
73
|
+
%tr
|
74
|
+
%td.html <code><ins></code>
|
75
|
+
%td.haml.hidden <code>%ins</code>
|
76
|
+
%td The ins element defines text that has been <ins>inserted into a document</ins>
|
77
|
+
%tr
|
78
|
+
%td.html <code><del></code>
|
79
|
+
%td.haml.hidden <code>%del</code>
|
80
|
+
%td The del tag defines text that has been <del>deleted from a document</del>
|
81
|
+
%tr
|
82
|
+
%td.html <code><mark></code>
|
83
|
+
%td.haml.hidden <code>%mark</code>
|
84
|
+
%td The mark element is used for indicating text as <mark>marked or highlighted for reference</mark> purposes
|
85
|
+
|
86
|
+
.sg-subsection
|
87
|
+
.sg-half.pull
|
88
|
+
%h4 Inline elements examples
|
89
|
+
%br
|
90
|
+
%p Yeah, well, <em>listen</em>. You ought to <strong>ditch</strong> the <strong><em>two</em></strong> <a href="http://modeset.com/">geeks</a> you're in the <dfn title="motorized vehicle">car</dfn> with now and get <sub>in with</sub> us. But that's alright, <mark>we'll worry about</mark> that <time>later</time>. I will <small>see you</small> there. All right<sup>™</sup>? <del>Man</del>, <ins>I love</ins> those <abbr title="Hotties">redheads</abbr>.
|
91
|
+
%br
|
92
|
+
%br
|
93
|
+
%p <small>* See <a href="http://dochub.io/#html/">dochub.io</a> for other available elements</small>
|
94
|
+
.sg-half.push
|
95
|
+
%h4 Address examples
|
96
|
+
%br
|
97
|
+
%address
|
98
|
+
<strong>Mr. Address Tag</strong>
|
99
|
+
%br
|
100
|
+
1600 Pennsylvania Ave NW
|
101
|
+
%br
|
102
|
+
Washington D.C. DC 20500
|
103
|
+
%br
|
104
|
+
%br
|
105
|
+
<strong>Email:</strong>
|
106
|
+
%br
|
107
|
+
%a(href="#") president@whitehouse.gov
|
108
|
+
|
109
|
+
.sg-subsection
|
110
|
+
%h3.sg-subheading Blockquotes <span>typography.sass</span>
|
111
|
+
%blockquote
|
112
|
+
%p “Let me tell you what Melba Toast is packin' right here, all right. We got 4:11 Positrac outback, 750 double pumper, Edelbrock intake, bored over 30, 11 to 1 pop-up pistons, turbo-jet 390 horsepower. We're talkin' some f***in' muscle.”
|
113
|
+
%small David Wooderson, <cite title="link to source">Dazed & Confused</cite>
|
114
|
+
.sg-subsection
|
115
|
+
%pre.prettyprint.html
|
116
|
+
= preserve do
|
117
|
+
:escaped
|
118
|
+
<blockquote>
|
119
|
+
<p>“Let me...”</p>
|
120
|
+
<small>Author<cite title="resource">source...</cite></small>
|
121
|
+
</blockquote>
|
122
|
+
%pre.prettyprint.haml.hidden
|
123
|
+
= preserve do
|
124
|
+
:escaped
|
125
|
+
%blockquote
|
126
|
+
%p “Let me...”
|
127
|
+
%small
|
128
|
+
Author,
|
129
|
+
%cite(title="resource") source...
|
130
|
+
|
131
|
+
#type_rules.sg-spy-landing
|
132
|
+
.sg-subsection
|
133
|
+
%h3.sg-subheading Rules <span>typography.sass</span>
|
134
|
+
%h4 Horizontal
|
135
|
+
.sg-quarter.pull
|
136
|
+
%code.html(style="line-height:5em") <hr>
|
137
|
+
%code.haml.hidden(style="line-height:5em") %hr
|
138
|
+
.sg-threequarter.push
|
139
|
+
.well
|
140
|
+
%hr
|
141
|
+
.sg-quarter.pull
|
142
|
+
%code.html(style="line-height:5em") <hr class="dotted">
|
143
|
+
%code.haml.hidden(style="line-height:5em") %hr.dotted
|
144
|
+
.sg-threequarter.push
|
145
|
+
.well
|
146
|
+
%hr.dotted
|
147
|
+
.sg-quarter.pull
|
148
|
+
%code.html(style="line-height:5em") <hr class="dashed">
|
149
|
+
%code.haml.hidden(style="line-height:5em") %hr.dashed
|
150
|
+
.sg-threequarter.push
|
151
|
+
.well
|
152
|
+
%hr.dashed
|
153
|
+
|
154
|
+
#type_lists.sg-spy-landing
|
155
|
+
.sg-subsection
|
156
|
+
%h3.sg-subheading Lists <span>typography.sass</span>
|
157
|
+
.sg-quarter.pull
|
158
|
+
%p <strong>Unordered list:</strong>
|
159
|
+
%p.html(style="margin-bottom:0.5em;") <code><ul></code>
|
160
|
+
%p.haml.hidden(style="margin-bottom:0.5em;") <code>%ul</code>
|
161
|
+
%ul
|
162
|
+
%li Unordered list
|
163
|
+
%li Unordered list
|
164
|
+
%ul
|
165
|
+
%li Nested unordered list
|
166
|
+
%li Nested unordered list
|
167
|
+
%li Nested unordered list
|
168
|
+
%li Unordered list
|
169
|
+
%ol
|
170
|
+
%li Nested ordered list
|
171
|
+
%li Nested ordered list
|
172
|
+
%li Nested ordered list
|
173
|
+
.sg-quarter
|
174
|
+
%p <strong>Ordered list:</strong>
|
175
|
+
%p.html(style="margin-bottom:0.5em;") <code><ol></code>
|
176
|
+
%p.haml.hidden(style="margin-bottom:0.5em;") <code>%ol</code>
|
177
|
+
%ol
|
178
|
+
%li Ordered list
|
179
|
+
%li Ordered list
|
180
|
+
%ol
|
181
|
+
%li Nested unordered list
|
182
|
+
%li Nested unordered list
|
183
|
+
%li Nested unordered list
|
184
|
+
%li Ordered list
|
185
|
+
%ul
|
186
|
+
%li Nested ordered list
|
187
|
+
%li Nested ordered list
|
188
|
+
%li Nested ordered list
|
189
|
+
.sg-quarter
|
190
|
+
%p <strong>Unstyled list:</strong>
|
191
|
+
%p.html(style="margin-bottom:0.5em;") <code><ul class="unstyled"></code>
|
192
|
+
%p.haml.hidden(style="margin-bottom:0.5em;") <code>%ul.unstyled</code>
|
193
|
+
%ul.unstyled
|
194
|
+
%li Unordered list
|
195
|
+
%li Unordered list
|
196
|
+
%ul
|
197
|
+
%li Nested unordered list
|
198
|
+
%li Nested unordered list
|
199
|
+
%li Nested unordered list
|
200
|
+
%li Unordered list
|
201
|
+
%ol
|
202
|
+
%li Nested ordered list
|
203
|
+
%li Nested ordered list
|
204
|
+
%li Nested ordered list
|
205
|
+
.sg-quarter.push
|
206
|
+
%p <strong>Definition list:</strong>
|
207
|
+
%p.html(style="margin-bottom:0.5em;") <code><dl></code>
|
208
|
+
%p.haml.hidden(style="margin-bottom:0.5em;") <code>%dl</code>
|
209
|
+
%dl
|
210
|
+
%dt Definition Term
|
211
|
+
%dd Definition Description #{@lorem_tiny}
|
212
|
+
%dt Definition Term
|
213
|
+
%dd Definition Description #{@lorem_tiny}
|
214
|
+
%dt Definition Term
|
215
|
+
%dd Definition Description #{@lorem_tiny}
|
216
|
+
|
217
|
+
#type_code.sg-spy-landing
|
218
|
+
.sg-subsection
|
219
|
+
%h3.sg-subheading Code styles <span>typography.sass</span>
|
220
|
+
%h4 Inline elements
|
221
|
+
%table.box.vborder.banded.thead-decorate
|
222
|
+
%thead
|
223
|
+
%tr
|
224
|
+
%th Element
|
225
|
+
%th Usage
|
226
|
+
%tbody
|
227
|
+
%tr
|
228
|
+
%td.html <code><code></code>
|
229
|
+
%td.haml.hidden <code>%code</code>
|
230
|
+
%td The <code>code</code> tag is used to show inline code
|
231
|
+
%tr
|
232
|
+
%td.html <code><kbd></code>
|
233
|
+
%td.haml.hidden <code>%kbd</code>
|
234
|
+
%td The <kbd>kbd</kbd> tag defines keyboard text
|
235
|
+
%tr
|
236
|
+
%td.html <code><samp></code>
|
237
|
+
%td.haml.hidden <code>%samp</code>
|
238
|
+
%td The <samp>samp</samp> tag defines sample computer code
|
239
|
+
|
240
|
+
.sg-subsection
|
241
|
+
.sg-half.pull
|
242
|
+
%h4 The basic block
|
243
|
+
%p Use the <code>pre</code> element for multiline code blocks.
|
244
|
+
%pre.html
|
245
|
+
= preserve do
|
246
|
+
:escaped
|
247
|
+
<!-- basic block -->
|
248
|
+
<pre>
|
249
|
+
<section>
|
250
|
+
<h1>Heading</h1>
|
251
|
+
<p>Some Copy...</p>
|
252
|
+
</section>
|
253
|
+
</pre>
|
254
|
+
%pre.haml.hidden
|
255
|
+
= preserve do
|
256
|
+
:escaped
|
257
|
+
<!-- basic block -->
|
258
|
+
%pre
|
259
|
+
%section
|
260
|
+
%h1 Heading
|
261
|
+
%p Some Copy...
|
262
|
+
.sg-half.push
|
263
|
+
%h4 Google's Prettify
|
264
|
+
%p Add the <code>.prettyprint</code> class for basic syntax highlighting.
|
265
|
+
%pre.prettyprint.html
|
266
|
+
= preserve do
|
267
|
+
:escaped
|
268
|
+
<!-- make it pretty -->
|
269
|
+
<pre class="prettyprint">
|
270
|
+
<section>
|
271
|
+
<h1>Heading</h1>
|
272
|
+
<p>Some Copy...</p>
|
273
|
+
</section>
|
274
|
+
</pre>
|
275
|
+
%pre.prettyprint.haml.hidden
|
276
|
+
= preserve do
|
277
|
+
:escaped
|
278
|
+
<!-- make it pretty -->
|
279
|
+
%pre.prettyprint
|
280
|
+
%section
|
281
|
+
%h1 Heading
|
282
|
+
%p Some Copy...
|
283
|
+
|
284
|
+
|
@@ -0,0 +1,270 @@
|
|
1
|
+
|
2
|
+
#utils_helpers.sg-spy-landing
|
3
|
+
.sg-subsection
|
4
|
+
%h3.sg-subheading Helpers <span>helpers.sass</span>
|
5
|
+
%table.box.vborder.banded.thead-decorate
|
6
|
+
%thead
|
7
|
+
%tr
|
8
|
+
%th Class
|
9
|
+
%th Usage
|
10
|
+
%tfoot
|
11
|
+
%tr
|
12
|
+
%td(colspan="2") All helper classes (except <code>.pull-left|right</code>) are also available as mixins
|
13
|
+
%tbody
|
14
|
+
%tr
|
15
|
+
%td <code>.clearfixer</code>
|
16
|
+
%td The <a href="http://nicolasgallagher.com/micro-clearfix-hack/">micro clearfix</a> from Nicolas Gallagher
|
17
|
+
%tr
|
18
|
+
%td <code>.clearfix</code>
|
19
|
+
%td The standard clearfix from <a href="http://compass-style.org/reference/compass/utilities/general/clearfix/#mixin-clearfix">Compass</a>, utilizing <code>overflow hidden</code>
|
20
|
+
%tr
|
21
|
+
%td <code>.ir</code>
|
22
|
+
%td For use in image replacement, typically on links
|
23
|
+
%tr
|
24
|
+
%td <code>.hidden</code>
|
25
|
+
%td The opposite of <code>shown</code>, elements are completely hidden from screen readers and browsers
|
26
|
+
%tr
|
27
|
+
%td <code>.shown</code>
|
28
|
+
%td Reverse the effects of <code>hidden</code>
|
29
|
+
%tr
|
30
|
+
%td <code>.visuallyhidden</code>
|
31
|
+
%td Only visually hidden, elements are still available to screen readers, use this class instead of <code>display:none</code>
|
32
|
+
%tr
|
33
|
+
%td <code>.visuallyshown</code>
|
34
|
+
%td Reverse the effects of <code>.visuallyhidden</code>
|
35
|
+
%tr
|
36
|
+
%td <code>.invisible</code>
|
37
|
+
%td Keeps elements in the DOM, but hidden from view and screen readers
|
38
|
+
%tr
|
39
|
+
%td <code>.base-column</code>
|
40
|
+
%td For use by extension for <code>column</code> classes
|
41
|
+
%tr
|
42
|
+
%td <code>.base-column-right</code>
|
43
|
+
%td For use by extension for <code>column</code> classes, floats elements to the right
|
44
|
+
%tr
|
45
|
+
%td <code>.base-row</code>
|
46
|
+
%td For use by extension for <code>row</code> classes
|
47
|
+
%tr
|
48
|
+
%td <code>.pull-left</code>
|
49
|
+
%td Floats an element to the left (<em>Gabe, your welcome</em>)
|
50
|
+
%tr
|
51
|
+
%td <code>.pull-right</code>
|
52
|
+
%td Floats an element to the right (<em>may be renamed to: </em><code>.varela</code>)
|
53
|
+
.notification.important.fade.in
|
54
|
+
%p <strong>Pro Tip!</strong> When using <code>visuallyhidden</code> and <code>visuallyshown</code> with <code>box-shadow</code>, you'll need to add <code>clip:initial</code> to get the shadows to reappear
|
55
|
+
|
56
|
+
#utils_transitions.sg-spy-landing
|
57
|
+
.sg-subsection
|
58
|
+
%h3.sg-subheading Transitions <span>transitions.sass</span>
|
59
|
+
%table.box.vborder.banded.thead-decorate
|
60
|
+
%thead
|
61
|
+
%tr
|
62
|
+
%th Class
|
63
|
+
%th Usage
|
64
|
+
%tbody
|
65
|
+
%tr
|
66
|
+
%td <code>.fade</code>
|
67
|
+
%td Transitions an element to an <code>opacity</code> of <code>0</code>
|
68
|
+
%tr
|
69
|
+
%td <code>.fade.in</code>
|
70
|
+
%td Transitions an element to an <code>opacity</code> of <code>1</code>
|
71
|
+
%tr
|
72
|
+
%td <code>.collapse</code>
|
73
|
+
%td Transitions an element to a <code>height</code> of <code>0</code>
|
74
|
+
%tr
|
75
|
+
%td <code>.collapse.in</code>
|
76
|
+
%td Transitions an element to a <code>height</code> of <code>auto</code>
|
77
|
+
|
78
|
+
.sg-subsection
|
79
|
+
%h3.sg-subheading Timing Equations <span>mixins/timing-equations.sass</span>
|
80
|
+
%p Underoos comes packed with a number of cubic-bezier timing properties for use with <code>transition-timing-function</code>. The timing functions are based on the properties included with <a href="http://thoughtbot.com/bourbon/">Bourbon</a>, which are courtesy of <a href="github.com/jaukia/easie">jquery.easie</a>.
|
81
|
+
.notification.important.fade.in
|
82
|
+
%p <strong>Pro Tip!</strong> Hover over the table below to see the results of each cubic-bezier function.
|
83
|
+
.sg-subsection
|
84
|
+
= render :partial => 'underoos/styleguides/partials/transitions'
|
85
|
+
|
86
|
+
#utils_mixins.sg-spy-landing
|
87
|
+
.sg-subsection
|
88
|
+
%h3.sg-subheading Mixins <span>mixins/*.sass</span>
|
89
|
+
%table.box.vborder.banded.thead-decorate
|
90
|
+
%thead
|
91
|
+
%tr
|
92
|
+
%th Mixin
|
93
|
+
%th Parameters
|
94
|
+
%th Usage
|
95
|
+
%tbody
|
96
|
+
%tr
|
97
|
+
%td <code>+arrow_[north|south|east|west]</code>
|
98
|
+
%td <code>$color:#000, $size:5px</code>
|
99
|
+
%td Draws a directional arrow, typically used for pseudo elements
|
100
|
+
%tr
|
101
|
+
%td <code>+clearfixer</code>
|
102
|
+
%td(style="color: #999;") <em>none</em>
|
103
|
+
%td The <a href="http://nicolasgallagher.com/micro-clearfix-hack/">micro clearfix</a> from Nicolas Gallagher
|
104
|
+
%tr
|
105
|
+
%td <code>+clearfix</code>
|
106
|
+
%td(style="color: #999;") <em>none</em>
|
107
|
+
%td The standard clearfix from <a href="http://compass-style.org/reference/compass/utilities/general/clearfix/#mixin-clearfix">Compass</a>, utilizing <code>overflow hidden</code>
|
108
|
+
%tr
|
109
|
+
%td <code>+background-darken-border</code>
|
110
|
+
%td <code>$color, $percentage:20%</code>
|
111
|
+
%td Fill a background and stroke a border with a darkened percentage
|
112
|
+
%tr
|
113
|
+
%td <code>+font-size</code>
|
114
|
+
%td <code>$target_px, $context:$context_px</code>
|
115
|
+
%td Inject <code>font-size</code> for <code>px</code> and <code>rem</code>: <a href="http://snook.ca/archives/html_and_css/font-size-with-rem">more info</a>
|
116
|
+
%tr
|
117
|
+
%td <code>+sharpen-image</code>
|
118
|
+
%td(style="color: #999;") <em>none</em>
|
119
|
+
%td Sharpen an image due to up/down scaling: <a href="http://stitchcss.com/#sharpen_image">stitchcss</a>
|
120
|
+
%tr
|
121
|
+
%td <code>+high-quality-image</code>
|
122
|
+
%td(style="color: #999;") <em>none</em>
|
123
|
+
%td Improve rendering quality on an image: <a href="http://stitchcss.com/#high_quality_image">stitchcss</a>
|
124
|
+
%tr
|
125
|
+
%td <code>+low-quality-image</code>
|
126
|
+
%td(style="color: #999;") <em>none</em>
|
127
|
+
%td Decrease rendering quality in favor of speed: <a href="http://stitchcss.com/#low_quality_image">stitchcss</a>
|
128
|
+
%tr
|
129
|
+
%td <code>+ir</code>
|
130
|
+
%td(style="color: #999;") <em>none</em>
|
131
|
+
%td For use in image replacement, typically on links
|
132
|
+
%tr
|
133
|
+
%td <code>+hidden</code>
|
134
|
+
%td(style="color: #999;") <em>none</em>
|
135
|
+
%td The opposite of <code>shown</code>, elements are completely hidden from screen readers and browsers
|
136
|
+
%tr
|
137
|
+
%td <code>+shown</code>
|
138
|
+
%td(style="color: #999;") <em>none</em>
|
139
|
+
%td Reverse the effects of <code>hidden</code>
|
140
|
+
%tr
|
141
|
+
%td <code>+visuallyhidden</code>
|
142
|
+
%td(style="color: #999;") <em>none</em>
|
143
|
+
%td Only visually hidden, elements are still available to screen readers, use this instead of <code>display:none</code>
|
144
|
+
%tr
|
145
|
+
%td <code>+visuallyshown</code>
|
146
|
+
%td(style="color: #999;") <em>none</em>
|
147
|
+
%td Reverse the effects of <code>visuallyhidden</code>
|
148
|
+
%tr
|
149
|
+
%td <code>+invisible</code>
|
150
|
+
%td(style="color: #999;") <em>none</em>
|
151
|
+
%td Keeps elements in the DOM, but hidden from view and screen readers
|
152
|
+
%tr
|
153
|
+
%td <code>+base-column</code>
|
154
|
+
%td(style="color: #999;") <em>none</em>
|
155
|
+
%td For use by <code>column</code> classes
|
156
|
+
%tr
|
157
|
+
%td <code>+base-column-right</code>
|
158
|
+
%td(style="color: #999;") <em>none</em>
|
159
|
+
%td For use by <code>column</code> classes, floats elements to the right
|
160
|
+
%tr
|
161
|
+
%td <code>+base-row</code>
|
162
|
+
%td(style="color: #999;") <em>none</em>
|
163
|
+
%td For use by <code>row</code> classes
|
164
|
+
%tr
|
165
|
+
%td <code>+tab-focus</code>
|
166
|
+
%td(style="color: #999;") <em>none</em>
|
167
|
+
%td Resets default outlines for webkit on focusable elements
|
168
|
+
|
169
|
+
.notification.important.fade.in
|
170
|
+
%p <strong>Pro Tip!</strong> See the Helpers section for classes using these mixins which can be used for extension
|
171
|
+
|
172
|
+
#utils_functions.sg-spy-landing
|
173
|
+
.sg-subsection
|
174
|
+
%h3.sg-subheading Functions <span>mixins/conversions.sass</span>
|
175
|
+
%table.box.vborder.banded.thead-decorate
|
176
|
+
%thead
|
177
|
+
%tr
|
178
|
+
%th Function
|
179
|
+
%th Parameters
|
180
|
+
%th Usage
|
181
|
+
%tfoot
|
182
|
+
%tr
|
183
|
+
%td(colspan="3") All functions return a value
|
184
|
+
%tbody
|
185
|
+
%tr
|
186
|
+
%td <code>to_em</code>
|
187
|
+
%td <code>$target_px, $context:$base_font_size</code>
|
188
|
+
%td Convert target <code>px</code> value to <code>em</code> in context constraints of the base font size
|
189
|
+
%tr
|
190
|
+
%td <code>to_rem</code>
|
191
|
+
%td <code>$target_px, $context:$context_px</code>
|
192
|
+
%td Convert target <code>px</code> value to <code>rem</code> in context constraints of the user's base font size
|
193
|
+
%tr
|
194
|
+
%td <code>to_percent</code>
|
195
|
+
%td <code>$target_px, $context:$base_width</code>
|
196
|
+
%td Convert target <code>px</code> value to <code>percentage</code> in context constraints of the container's width
|
197
|
+
%tr
|
198
|
+
%td <code>vertical_pixel</code>
|
199
|
+
%td <code>$target_px</code>
|
200
|
+
%td Returns the vertical rhythm in <code>px</code> calculated from the <code>$base_vertical</code> setting
|
201
|
+
%tr
|
202
|
+
%td <code>vertical_em</code>
|
203
|
+
%td <code>$target_px</code>
|
204
|
+
%td Returns the vertical rhythm in <code>em</code> calculated from the <code>$base_vertical</code> setting
|
205
|
+
%tr
|
206
|
+
%td <code>vertical_percent</code>
|
207
|
+
%td <code>$target_px</code>
|
208
|
+
%td Returns the vertical rhythm in <code>percent</code> calculated from the <code>$base_vertical</code> setting
|
209
|
+
.notification.warning.fade.in
|
210
|
+
%p <strong>Warning!</strong> Define <code>$context_px</code>, <code>$base_font_size</code>, <code>$base_width</code> and <code>$base_vertical</code> prior to the functions being loaded.
|
211
|
+
.notification.important.fade.in
|
212
|
+
%p <strong>Important!</strong> When calculating vertical rhythm, always pass in what the expected pixel value is for the element.
|
213
|
+
|
214
|
+
#utils_polyfill.sg-spy-landing
|
215
|
+
.sg-subsection
|
216
|
+
%h3.sg-subheading Polyfills <span>polyfill/*.sass</span>
|
217
|
+
%p Most projects benefit greatly from using a library like <a href="http://compass-style.org/">Compass</a> or <a href="http://thoughtbot.com/bourbon/">Bourbon</a>. Underoos is not designed to replace these libraries, but rather sit on top of them. There may be times when using one of these libraries isn't an option, so Underoos provides a few simple polyfill mixins in it's place.
|
218
|
+
%table.box.vborder.banded.thead-decorate
|
219
|
+
%thead
|
220
|
+
%tr
|
221
|
+
%th Mixin
|
222
|
+
%th Parameters
|
223
|
+
%th Usage
|
224
|
+
%tfoot
|
225
|
+
%tr
|
226
|
+
%td(colspan="3") The mixins above provided by either Compass, Bourbon or the polyfills are all interchangeable to allow Underoos to be as agnostic as possible.
|
227
|
+
%tbody
|
228
|
+
%tr
|
229
|
+
%td <code>+border-radius</code>
|
230
|
+
%td <code>$radii</code>
|
231
|
+
%td Draws rounded corners on an element (also includes mixins for individual corners and sides)
|
232
|
+
%tr
|
233
|
+
%td <code>+box-shadow</code>
|
234
|
+
%td <code>$shadow-1:none, $shadow-n:false, ...</code>
|
235
|
+
%td Draws an outer or inset shadow around an element (supports up to 9 shadow parameters)
|
236
|
+
%tr
|
237
|
+
%td <code>+box-sizing</code>
|
238
|
+
%td <code>$type:border-box</code>
|
239
|
+
%td Changes the box model used for calculating an elements width and height
|
240
|
+
%tr
|
241
|
+
%td <code>+box-sizing</code>
|
242
|
+
%td <code>$type:border-box</code>
|
243
|
+
%td Changes the box model used for calculating an elements width and height
|
244
|
+
%tr
|
245
|
+
%td <code>+inline-block</code>
|
246
|
+
%td(style="color: #999;") <em>none</em>
|
247
|
+
%td Adds support for <code>display:inline-block</code> down to IE7
|
248
|
+
%tr
|
249
|
+
%td <code>+opacity</code>
|
250
|
+
%td <code>$alpha:1</code>
|
251
|
+
%td Provides cross browser opacity, values are between<code>0-1</code>
|
252
|
+
%tr
|
253
|
+
%td <code>+transition</code>
|
254
|
+
%td <code>$transition-1:all 0.25s, $transition-n:false, ...</code>
|
255
|
+
%td Adds vendor prefixes for transitions (supports up to 9 transition parameters)
|
256
|
+
%tr
|
257
|
+
%td <code>+user-select</code>
|
258
|
+
%td <code>$type:none</code>
|
259
|
+
%td Define whether an element is selectable
|
260
|
+
%tr
|
261
|
+
%td <code>combine</code>
|
262
|
+
%td <code>$value-1:none, $value-n:false, ...</code>
|
263
|
+
%td A function used to <em>combine</em> and normalize multiple parameters for a polyfill (supports up to 9 values)
|
264
|
+
.notification.important.fade.in
|
265
|
+
%p <strong>Pro Tip!</strong> To include all polyfills in a project: <code>@import polyfills/polyfills</code>
|
266
|
+
.notification.warning.fade.in
|
267
|
+
%p <strong>Warning!</strong> The <code>combine</code> function for mixin values only accepts 9 values, this is inline with the Bourbon library (Compass supports 10!)
|
268
|
+
.notification.danger.fade.in
|
269
|
+
%p <strong>Danger!</strong> If a project uses Compass or Bourbon, make sure not to import these polyfills
|
270
|
+
|