framous 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,421 @@
1
+ <!DOCTYPE html>
2
+
3
+ <!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
4
+ <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
5
+ <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
6
+ <head>
7
+ <meta charset="utf-8" />
8
+
9
+ <!-- Set the viewport width to device width for mobile -->
10
+ <meta name="viewport" content="width=device-width" />
11
+
12
+ <title>Welcome to Framous</title>
13
+
14
+ <!-- Included CSS Files -->
15
+ <link rel="stylesheet" href="stylesheets/screen.css" media="all">
16
+ <!-- Font Stacks -->
17
+ <link href='http://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
18
+ <link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700' rel='stylesheet' type='text/css'>
19
+ <style type="text/css" media="screen">
20
+ .example {
21
+ border: 1px dashed #ccc;
22
+ margin-bottom: 17px;
23
+ padding: 15px;
24
+ }
25
+ </style>
26
+
27
+ </head>
28
+ <body>
29
+
30
+ <div role="main">
31
+ <article id="main">
32
+ <h1>Styleguide</h1>
33
+ <div id="intro">
34
+ <p>This document is a guide to the mark-up styles used throughout the site from <a href="http://paulrobertlloyd.com/about/styleguide/" title="Styleguide - Paul Robert Lloyd">Styleguide - Paul Robert Lloyd</a>. Parts of this markup guide are attributable to <a href="http://www.mezzoblue.com/">Dave Shea</a>, and licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.0/uk/">Creative Commons License</a>.</p>
35
+ </div>
36
+ <h2 id="sections">Sections</h2>
37
+ <p>The main page header of this guide is an <code>h1</code> element. Any header elements may include links, as depicted in the example.</p>
38
+ <p>The secondary header above is an <code>h2</code> element, which may be used for any form of important page-level header. More than one may be used per page. Consider using an <code>h2</code> unless you need a header level of less importance, or as a sub-header to an existing <code>h2</code> element.</p>
39
+ <h3>Third-Level Header</h3>
40
+ <p>The header above is an <code>h3</code> element, which may be used for any form of page-level header which falls below the <code>h2</code> header in a document hierarchy.</p>
41
+ <h4>Fourth-Level Header</h4>
42
+ <p>The header above is an <code>h4</code> element, which may be used for any form of page-level header which falls below the <code>h3</code> header in a document hierarchy.</p>
43
+ <h5>Fifth-Level Header</h5>
44
+ <p>The header above is an <code>h5</code> element, which may be used for any form of page-level header which falls below the <code>h4</code> header in a document hierarchy.</p>
45
+ <h6>Sixth-Level Header</h6>
46
+ <p>The header above is an <code>h6</code> element, which may be used for any form of page-level header which falls below the <code>h5</code> header in a document hierarchy.</p>
47
+ <h2 id="grouping">Grouping content</h2>
48
+ <h3>Paragraphs</h3>
49
+ <p>All paragraphs are wrapped in <code>p</code> tags. Additionally, <code>p</code> elements can be wrapped with a <code>blockquote</code> element <em>if the <code>p</code> element is indeed a quote</em>. Historically, <code>blockquote</code> has been used purely to force indents, but this is now achieved using CSS. Reserve <code>blockquote</code> for quotes.</p>
50
+ <h3>Horizontal rule</h3>
51
+ <p>The <code>hr</code> element represents a paragraph-level thematic break, e.g. a scene change in a story, or a transition to another topic within a section of a reference book. The following extract from <cite>Pandora’s Star</cite> by Peter F. Hamilton shows two paragraphs that precede a scene change and the paragraph that follows it:</p>
52
+ <div class="example">
53
+ <p>Dudley was ninety-two, in his second life, and fast approaching time for another rejuvenation. Despite his body having the physical age of a standard fifty-year-old, the prospect of a long degrading campaign within academia was one he regarded with dread. For a supposedly advanced civilization, the Intersolar Commonwearth could be appallingly backward at times, not to mention cruel.</p>
54
+ <p><i>Maybe it won’t be that bad</i>, he told himself. The lie was comforting enough to get him through the rest of the night’s shift.</p>
55
+ <hr>
56
+ <p>The Carlton AllLander drove Dudley home just after dawn. Like the astronomer, the vehicle was old and worn, but perfectly capable of doing its job. It had a cheap diesel engine, common enough on a semi-frontier world like Gralmond, although its drive array was a thoroughly modern photoneural processor. With its high suspension and deep-tread tyres it could plough along the dirt track to the observatory in all weather and seasons, including the metre-deep snow of Gralmond’s winters.</p>
57
+ </div> <!-- example -->
58
+ <h3>Pre-formatted text</h3>
59
+ <p>The <code>pre</code> element represents a block of pre-formatted text, in which structure is represented by typographic conventions rather than by elements. Such examples are an e-mail (with paragraphs indicated by blank lines, lists indicated by lines prefixed with a bullet), fragments of computer code (with structure indicated according to the conventions of that language) or displaying <abbr title="American Standard Code for Information Interchange">ASCII</abbr> art. Here’s an example showing the printable characters of <abbr>ASCII</abbr>:</p>
60
+ <div class="example">
61
+ <pre><samp>
62
+ ! " # $ % &amp; ' ( ) * + , - . /
63
+ 0 1 2 3 4 5 6 7 8 9 : ; &lt; = &gt; ?
64
+ @ A B C D E F G H I J K L M N O
65
+ P Q R S T U V W X Y Z [ \ ] ^ _
66
+ ` a b c d e f g h i j k l m n o
67
+ p q r s t u v w x y z { | } ~
68
+ </samp></pre>
69
+ </div> <!-- example -->
70
+ <h3>Blockquotes</h3>
71
+ <p>The <code>blockquote</code> element represents a section that is being quoted from another source.</p>
72
+ <div class="example">
73
+ <blockquote cite="http://hansard.millbanksystems.com/commons/1947/nov/11/parliament-bill#column_206">
74
+ <p>Many forms of Government have been tried, and will be tried in this world of sin and woe. No one pretends that democracy is perfect or all-wise. Indeed, it has been said that democracy is the worst form of government except all those other forms that have been tried from time to time.</p>
75
+ </blockquote>
76
+ <p>Winston Churchill, in <cite><a href="http://hansard.millbanksystems.com/commons/1947/nov/11/parliament-bill#column_206">a speech to the House of Commons</a></cite>. 11th November 1947</p>
77
+ </div> <!-- example -->
78
+ <p>Additionally, you might wish to cite the source, as in the above example. The correct method involves including the <code>cite</code> attribute on the <code>blockquote</code> element, but since no browser makes any use of that information, it’s useful to link to the source also.</p>
79
+ <h3>Ordered list</h3>
80
+ <p>The <code>ol</code> element denotes an ordered list, and various numbering schemes are available through the CSS (including 1,2,3… a,b,c… i,ii,iii… and so on). Each item requires a surrounding <code>&lt;li&gt;</code> and <code>&lt;/li&gt;</code> tag, to denote individual items within the list (as you may have guessed, <code>li</code> stands for list item).</p>
81
+ <div class="example">
82
+ <ol>
83
+ <li>This is an ordered list.</li>
84
+ <li>
85
+ This is the second item, which contains a sub list
86
+ <ol>
87
+ <li>This is the sub list, which is also ordered.</li>
88
+ <li>It has two items.</li>
89
+ </ol>
90
+ </li>
91
+ <li>This is the final item on this list.</li>
92
+ </ol>
93
+ </div> <!-- example -->
94
+ <h3>Unordered list</h3>
95
+ <p>The <code>ul</code> element denotes an unordered list (ie. a list of loose items that don’t require numbering, or a bulleted list). Again, each item requires a surrounding <code>&lt;li&gt;</code> and <code>&lt;/li&gt;</code> tag, to denote individual items. Here is an example list showing the constituent parts of the British Isles:</p>
96
+ <div class="example">
97
+ <ul>
98
+ <li>
99
+ United Kingdom of Great Britain and Northern Ireland:
100
+ <ul>
101
+ <li>England</li>
102
+ <li>Scotland</li>
103
+ <li>Wales</li>
104
+ <li>Northern Ireland</li>
105
+ </ul>
106
+ </li>
107
+ <li>Republic of Ireland</li>
108
+ <li>Isle of Man</li>
109
+ <li>
110
+ Channel Islands:
111
+ <ul>
112
+ <li>Bailiwick of Guernsey</li>
113
+ <li>Bailiwick of Jersey</li>
114
+ </ul>
115
+ </li>
116
+ </ul>
117
+ </div> <!-- example -->
118
+ <p>Sometimes we may want each list item to contain block elements, typically a paragraph or two.</p>
119
+ <div class="example">
120
+ <ul>
121
+ <li>
122
+ <p>The British Isles is an archipelago consisting of the two large islands of Great Britain and Ireland, and many smaller surrounding islands.</p>
123
+ </li>
124
+ <li>
125
+ <p>Great Britain is the largest island of the archipelago. Ireland is the second largest island of the archipelago and lies directly to the west of Great Britain.</p>
126
+ </li>
127
+ <li>
128
+ <p>The full list of islands in the British Isles includes over 1,000 islands, of which 51 have an area larger than 20 km<sup>2</sup>.</p>
129
+ </li>
130
+ </ul>
131
+ </div> <!-- example -->
132
+ <h3>Definition list</h3>
133
+ <p>The <code>dl</code> element is for another type of list called a definition list. Instead of list items, the content of a <code>dl</code> consists of <code>dt</code> (Definition Term) and <code>dd</code> (Definition description) pairs. Though it may be called a “definition list”, <code>dl</code> can apply to other scenarios where a parent/child relationship is applicable. For example, it may be used for marking up dialogues, with each <code>dt</code> naming a speaker, and each <code>dd</code> containing his or her words.</p>
134
+ <div class="example">
135
+ <dl>
136
+ <dt>This is a term.</dt>
137
+ <dd>This is the definition of that term, which both live in a <code>dl</code>.</dd>
138
+ <dt>Here is another term.</dt>
139
+ <dd>And it gets a definition too, which is this line.</dd>
140
+ <dt>Here is term that shares a definition with the term below.</dt>
141
+ <dt>Here is a defined term.</dt>
142
+ <dd><code>dt</code> terms may stand on their own without an accompanying <code>dd</code>, but in that case they <em>share</em> descriptions with the next available <code>dt</code>. You may not have a <code>dd</code> without a parent <code>dt</code>.</dd>
143
+ </dl>
144
+ </div> <!-- example -->
145
+ <h3>Figures</h3>
146
+ <p>Figures are usually used to refer to images:</p>
147
+ <div class="example">
148
+ <figure>
149
+ <img src="http://lorempixum.com/680/400/abstract/?r" alt="Example image">
150
+ <figcaption>
151
+ <h4>Figure Heading</h4>
152
+ <p>This is a placeholder image, with supporting caption.</p>
153
+ </figcaption>
154
+ </figure>
155
+ </div> <!-- example -->
156
+ <p>Here, a part of a poem is marked up using figure:</p>
157
+ <div class="example">
158
+ <figure>
159
+ <p>‘Twas brillig, and the slithy toves<br>
160
+ Did gyre and gimble in the wabe;<br>
161
+ All mimsy were the borogoves,<br>
162
+ And the mome raths outgrabe.</p>
163
+ <figcaption>
164
+ <p><cite>Jabberwocky</cite> (first verse). Lewis Carroll, 1832-98</p>
165
+ </figcaption>
166
+ </figure>
167
+ </div> <!-- example -->
168
+ <h2 id="text">Text-level Semantics</h2>
169
+ <p>There are a number of inline <abbr title="HyperText Markup Language">HTML</abbr> elements you may use anywhere within other elements.</p>
170
+ <h3>Links and anchors</h3>
171
+ <p>The <code>a</code> element is used to hyperlink text, be that to another page, a named fragment on the current page or any other location on the web. Example:</p>
172
+ <div class="example">
173
+ <p><a href="/">Go to the home page</a> or <a href="#banner">return to the top of this page</a>.</p>
174
+ </div> <!-- example -->
175
+ <h3>Stressed emphasis</h3>
176
+ <p>The <code>em</code> element is used to denote text with stressed emphasis, i.e., something you’d pronounce differently. Where italicizing is required for stylistic differentiation, the <code>i</code> element may be preferable. Example:</p>
177
+ <div class="example">
178
+ <p>You simply <em>must</em> try the negitoro maki!</p>
179
+ </div> <!-- example -->
180
+ <h3>Strong importance</h3>
181
+ <p>The <code>strong</code> element is used to denote text with strong importance. Where bolding is used for stylistic differentiation, the <code>b</code> element may be preferable. Example:</p>
182
+ <div class="example">
183
+ <p><strong>Don’t</strong> stick nails in the electrical outlet.</p>
184
+ </div> <!-- example -->
185
+ <h3>Small print</h3>
186
+ <p>The <small>small</small> element is used to represent disclaimers, caveats, legal restrictions, or copyrights (commonly referred to as ‘small print’). It can also be used for attributions or satisfying licensing requirements. Example:</p>
187
+ <div class="example">
188
+ <p><small>Copyright © 1922-2011 Acme Corporation. All Rights Reserved.</small></p>
189
+ </div> <!-- example -->
190
+ <h3>Strikethrough</h3>
191
+ <p>The <code>s</code> element is used to represent content that is no longer accurate or relevant. When indicating document edits i.e., marking a span of text as having been removed from a document, use the <code>del</code> element instead. Example:</p>
192
+ <div class="example">
193
+ <p><s>Recommended retail price: £3.99 per bottle</s><br><strong>Now selling for just £2.99 a bottle!</strong></p>
194
+ </div> <!-- example -->
195
+ <h3>Citations</h3>
196
+ <p>The <code>cite</code> element is used to represent the title of a work (e.g. a book, essay, poem, song, film, TV show, sculpture, painting, musical, exhibition, etc). This can be a work that is being quoted or referenced in detail (i.e. a citation), or it can just be a work that is mentioned in passing. Example:</p>
197
+ <div class="example">
198
+ <p><cite>Universal Declaration of Human Rights</cite>, United Nations, December 1948. Adopted by General Assembly resolution 217 A (III).</p>
199
+ </div> <!-- example -->
200
+ <h3>Inline quotes</h3>
201
+ <p>The <code>q</code> element is used for quoting text inline. Example showing nested quotations:</p>
202
+ <div class="example">
203
+ <p>John said, <q>I saw Lucy at lunch, she told me <q>Mary wants you to get some ice cream on your way home</q>. I think I will get some at Ben and Jerry’s, on Gloucester Road.</q></p>
204
+ </div> <!-- example -->
205
+ <h3>Definition</h3>
206
+ <p>The <code>dfn</code> element is used to highlight the first use of a term. The <code>title</code> attribute can be used to describe the term. Example:</p>
207
+ <div class="example">
208
+ <p>Bob’s <dfn title="Dog">canine</dfn> mother and <dfn title="Horse">equine</dfn> father sat him down and carefully explained that he was an <dfn title="A mutation that combines two or more sets of chromosomes from different species">allopolyploid</dfn> organism.</p>
209
+ </div> <!-- example -->
210
+ <h3>Abbreviation</h3>
211
+ <p>The <code>abbr</code> element is used for any abbreviated text, whether it be acronym, initialism, or otherwise. Generally, it’s less work and useful (enough) to mark up only the first occurrence of any particular abbreviation on a page, and ignore the rest. Any text in the <code>title</code> attribute will appear when the user’s mouse hovers the abbreviation (although notably, this does not work in Internet Explorer for Windows). Example abbreviations:</p>
212
+ <div class="example">
213
+ <p><abbr title="British Broadcasting Corportation">BBC</abbr>, <abbr title="HyperText Markup Language">HTML</abbr>, and <abbr title="Staffordshire">Staffs.</abbr></p>
214
+ </div> <!-- example -->
215
+ <h3>Time</h3>
216
+ <p>The <code>time</code> element is used to represent either a time on a 24 hour clock, or a precise date in the proleptic Gregorian calendar, optionally with a time and a time-zone offset. Example:</p>
217
+ <div class="example">
218
+ <p>Queen Elizabeth II was proclaimed sovereign of each of the Commonwealth realms on <time datetime="1952-02-6">6</time> and <time datetime="1952-02-7">7 February 1952</time>, after the death of her father, King George VI.</p>
219
+ </div> <!-- example -->
220
+ <h3>Code</h3>
221
+ <p>The <code>code</code> element is used to represent fragments of computer code. Useful for technology-oriented sites, not so useful otherwise. Example:</p>
222
+ <div class="example">
223
+ <p>When you call the <code>activate()</code> method on the <code>robotSnowman</code> object, the eyes glow.</p>
224
+ </div> <!-- example -->
225
+ <p>Used in conjunction with the <code>pre</code> element:</p>
226
+ <div class="example">
227
+ <pre><code>function getJelly() {
228
+ echo $aDeliciousSnack;
229
+ }</code></pre>
230
+ </div> <!-- example -->
231
+ <p>Shown with line numbers:</p>
232
+ <div class="example">
233
+ <ol class="code">
234
+ <li><code>&lt;?php </code></li>
235
+ <li class="tab1"><code>echo 'Hello World!';</code></li>
236
+ <li><code>?&gt;</code></li>
237
+ </ol>
238
+ </div> <!-- example -->
239
+ <h3>Variable</h3>
240
+ <p>The <code>var</code> element is used to denote a variable in a mathematical expression or programming context, but can also be used to indicate a placeholder where the contents should be replaced with your own value. Example:</p>
241
+ <div class="example">
242
+ <p>If there are <var>n</var> pipes leading to the ice cream factory then I expect at <em>least</em> <var>n</var> flavours of ice cream to be available for purchase!</p>
243
+ </div> <!-- example -->
244
+ <h3>Sample output</h3>
245
+ <p>The <code>samp</code> element is used to represent (sample) output from a program or computing system. Useful for technology-oriented sites, not so useful otherwise. Example:</p>
246
+ <div class="example">
247
+ <p>The computer said <samp>Too much cheese in tray two</samp> but I didn’t know what that meant.</p>
248
+ </div> <!-- example -->
249
+ <h3>Keyboard entry</h3>
250
+ <p>The <code>kbd</code> element is used to denote user input (typically via a keyboard, although it may also be used to represent other input methods, such as voice commands). Example:</p><p>
251
+ </p>
252
+ <div class="example">
253
+ <p>To take a screenshot on your Mac, press <kbd>⌘ Cmd</kbd> + <kbd>⇧ Shift</kbd> + <kbd>3</kbd>.</p>
254
+ </div> <!-- example -->
255
+ <h3>Superscript and subscript text</h3>
256
+ <p>The <code>sup</code> element represents a superscript and the sub element represents a <code>sub</code>. These elements must be used only to mark up typographical conventions with specific meanings, not for typographical presentation. As a guide, only use these elements if their absence would change the meaning of the content. Example:</p>
257
+ <div class="example">
258
+ <p>The coordinate of the <var>i</var>th point is (<var>x<sub><var>i</var></sub></var>, <var>y<sub><var>i</var></sub></var>). For example, the 10th point has coordinate (<var>x<sub>10</sub></var>, <var>y<sub>10</sub></var>).</p>
259
+ <p>f(<var>x</var>, <var>n</var>) = log<sub>4</sub><var>x</var><sup><var>n</var></sup></p>
260
+ </div> <!-- example -->
261
+ <h3>Italicised</h3>
262
+ <p>The <code>i</code> element is used for text in an alternate voice or mood, or otherwise offset from the normal prose. Examples include taxonomic designations, technical terms, idiomatic phrases from another language, the name of a ship or other spans of text whose typographic presentation is typically italicised. Example:</p>
263
+ <div class="example">
264
+ <p>There is a certain <i lang="fr">je ne sais quoi</i> in the air.</p>
265
+ </div>
266
+ <h3>Emboldened</h3>
267
+ <p>The <code>b</code> element is used for text stylistically offset from normal prose without conveying extra importance, such as key words in a document abstract, product names in a review, or other spans of text whose typographic presentation is typically emboldened. Example:</p>
268
+ <div class="example">
269
+ <p>You enter a small room. Your <b>sword</b> glows brighter. A <b>rat</b> scurries past the corner wall.</p>
270
+ </div>
271
+ <h3>Marked or highlighted text</h3>
272
+ <p>The <code>mark</code> element is used to represent a run of text marked or highlighted for reference purposes. When used in a quotation it indicates a highlight not originally present but added to bring the reader’s attention to that part of the text. When used in the main prose of a document, it indicates a part of the document that has been highlighted due to its relevance to the user’s current activity. Example:</p>
273
+ <div class="example">
274
+ <p>I also have some <mark>kitten</mark>s who are visiting me these days. They’re really cute. I think they like my garden! Maybe I should adopt a <mark>kitten</mark>.</p>
275
+ </div>
276
+ <h3 id="edits">Edits</h3>
277
+ <p>The <code>del</code> element is used to represent deleted or retracted text which still must remain on the page for some reason. Meanwhile its counterpart, the <code>ins</code> element, is used to represent inserted text. Both <code>del</code> and <code>ins</code> have a <code>datetime</code> attribute which allows you to include a timestamp directly in the element. Example inserted text and usage:</p>
278
+ <div class="example">
279
+ <p>She bought <del datetime="2005-05-30T13:00:00">two</del> <ins datetime="2005-05-30T13:00:00">five</ins> pairs of shoes.</p>
280
+ </div>
281
+ <h2 id="tables">Tabular data</h2>
282
+ <p>Tables should be used when displaying tabular data. The <code>thead</code>, <code>tfoot</code> and <code>tbody</code> elements enable you to group rows within each a table.</p>
283
+ <p>If you use these elements, you must use every element. They should appear in this order: <code>thead</code>, <code>tfoot</code> and <code>tbody</code>, so that browsers can render the foot before receiving all the data. You must use these tags within the table element.</p>
284
+ <div class="example">
285
+ <table>
286
+ <thead>
287
+ <tr>
288
+ <th scope="col">Ingredients</th>
289
+ <th scope="col">Serves 12</th>
290
+ <th scope="col">Serves 24</th>
291
+ </tr>
292
+ </thead>
293
+ <tbody>
294
+ <tr>
295
+ <td>Milk</td>
296
+ <td>1 quart</td>
297
+ <td>2 quart</td>
298
+ </tr>
299
+ <tr>
300
+ <td>Cinnamon Sticks</td>
301
+ <td>2</td>
302
+ <td>1</td>
303
+ </tr>
304
+ <tr>
305
+ <td>Vanilla Bean, Split</td>
306
+ <td>1</td>
307
+ <td>2</td>
308
+ </tr>
309
+ <tr>
310
+ <td>Cloves</td>
311
+ <td>5</td>
312
+ <td>10</td>
313
+ </tr>
314
+ <tr>
315
+ <td>Mace</td>
316
+ <td>10 blades</td>
317
+ <td>20 blades</td>
318
+ </tr>
319
+ <tr>
320
+ <td>Egg Yolks</td>
321
+ <td>12</td>
322
+ <td>24</td>
323
+ </tr>
324
+ <tr>
325
+ <td>Cups Sugar</td>
326
+ <td>1 ½ cups</td>
327
+ <td>3 cups</td>
328
+ </tr>
329
+ <tr>
330
+ <td>Dark Rum</td>
331
+ <td>1 ½ cups</td>
332
+ <td>3 cups</td>
333
+ </tr>
334
+ <tr>
335
+ <td>Brandy</td>
336
+ <td>1 ½ cups</td>
337
+ <td>3 cups</td>
338
+ </tr>
339
+ <tr>
340
+ <td>Vanilla</td>
341
+ <td>1 tbsp</td>
342
+ <td>2 tbsp</td>
343
+ </tr>
344
+ <tr>
345
+ <td>Half-and-half or Light Cream</td>
346
+ <td>1 quart</td>
347
+ <td>2 quart</td>
348
+ </tr>
349
+ </tbody>
350
+ </table>
351
+ </div> <!-- example -->
352
+ <h2 id="forms">Forms</h2>
353
+ <p>Forms can be used when you wish to collect data from users. The <code>fieldset</code> element enables you to group related fields within a form, and each one should contain a corresponding <code>legend</code>. The <code>label</code> element ensures field descriptions are associated with their corresponding form widgets.</p>
354
+ <div class="example">
355
+ <form action="">
356
+ <fieldset>
357
+ <label for="name">Name</label>
358
+ <input type="text" id="name" class="form-text" placeholder="John Doe"/>
359
+ <p class="form-help">This is help text under the form field.</p>
360
+ </fieldset>
361
+
362
+ <fieldset>
363
+ <label for="email">Email</label>
364
+ <input type="email" id="email" class="form-text" placeholder="john@doe.com"/>
365
+ </fieldset>
366
+
367
+ <fieldset>
368
+ <label for="gender">Gender</label>
369
+ <select id="gender">
370
+ <option>Male</option>
371
+ <option>Female</option>
372
+ <option>Cylon</option>
373
+ </select>
374
+ </fieldset>
375
+
376
+ <fieldset class="radio">
377
+ <label for="notifications">Notifications</label>
378
+ <ul>
379
+ <li><label><input type="radio" name="notifications" /> Send me email</label></li>
380
+ <li><label><input type="radio" name="notifications" /> Don't send me email</label></li>
381
+ <li><label><input type="radio" name="notifications" /> Send me flowers</label></li>
382
+ </ul>
383
+ </fieldset>
384
+
385
+ <fieldset>
386
+ <label for="url">URL</label>
387
+ <input type="url" id="url" class="form-text" placeholder="http://yourdomain.com" />
388
+ </fieldset>
389
+
390
+ <fieldset>
391
+ <label for="bio">Bio</label>
392
+ <textarea id="bio" placeholder="Hey you, tell us something funny !"></textarea>
393
+ </fieldset>
394
+
395
+ <fieldset class="check">
396
+ <label><input type="checkbox" /> I accept the terms of service and lorem ipsum.</label>
397
+ </fieldset>
398
+
399
+ <fieldset class="form-actions">
400
+ <input type="submit" value="Submit" />
401
+ </fieldset>
402
+ </form>
403
+ </div> <!-- example -->
404
+ </article>
405
+ <aside role="complementary">
406
+ <h3>Articles</h3>
407
+ <p>You can also learn more about baseline grids and vertical rhythm in these great articles:</p>
408
+ <ul>
409
+ <li><a href="http://www.alistapart.com/articles/settingtypeontheweb" title="Setting Type on the Web to a Baseline" target="_blank">Setting Type on the Web to a Baseline</a> Grid by Wilson Miner</li>
410
+ <li><a href="http://24ways.org/2006/compose-to-a-vertical-rhythm/" title="Compose to a Vertical Rhythm" target="_blank">Compose to a Vertical Rhythm</a> by Richard Rutter</li>
411
+ </ul>
412
+ <h3>External Links</h3>
413
+ <ul>
414
+ <li><a href="http://modularscale.com/" title="Modular Scale" target="_blank">Modular Scale</a></li>
415
+ <li><a href="http://drewish.com/tools/vertical-rhythm" title="CSS with vertical rhythm" target="_blank">CSS with vertical rhythm</a></li>
416
+ </ul>
417
+ </aside>
418
+ </div>
419
+
420
+ </body>
421
+ </html>
@@ -1,5 +1,9 @@
1
1
  stylesheet 'screen.scss', :media => 'screen, projection'
2
- stylesheet '_base.scss'
2
+ stylesheet '_reset.scss', :media => 'screen, projection'
3
+ stylesheet '_base.scss', :media => 'screen, projection'
4
+ stylesheet '_print.scss', :media => 'print'
5
+
6
+ html 'index.html'
3
7
 
4
8
  description "Framous: A light HTML & SCSS rapid prototyping toolkit for web development."
5
9
 
@@ -1,15 +1,71 @@
1
1
  //
2
- // Framous
2
+ // Screen.scss
3
3
  //
4
4
 
5
+ @charset "utf-8";
6
+
5
7
  // Basic settings that can be easily overridden from _base.scss
6
8
  @import "base";
7
9
 
10
+ // Reset Normalize.css
11
+ @import "reset";
12
+
13
+ // Comment out this import if you are customizing you imports below
14
+ @import "framous";
15
+
8
16
  // A semantic, fluid grid framework
9
17
  // Based on http://neat.bourbon.io/ & http://susy.oddbird.net/
10
- // Comment this if you don't need "framous-grid"
11
- @import "framous-grid";
18
+ // @import "framous/grid/framous-grid";
12
19
 
13
20
  // Fundamental HTML elements styled and enhanced with extensible classes.
14
- // Comment this if you don't need "framous-base"
15
- @import "framous-base";
21
+ // @import "modular-scale";
22
+ // @import "framous/base/settings";
23
+ // @import "framous/base/typography";
24
+ // @import "framous/base/forms";
25
+ // @import "framous/base/tables";
26
+ // @import "framous/base/icons";
27
+
28
+ // Library of some sass mixins
29
+ // @import "framous/mixins/framous-mixins";
30
+
31
+ // Print styles
32
+ @import "print";
33
+
34
+ //
35
+ // Core Layout : Example
36
+ //
37
+
38
+ body {
39
+ div[role=main] {
40
+ position: relative;
41
+ margin: 0 auto;
42
+ @include outer-container;
43
+
44
+ article#main {
45
+ @include span-columns(8);
46
+ }
47
+ aside[role="complementary"] {
48
+ @include span-columns(4);
49
+
50
+ h3 {
51
+ @include adjust-font-size-to(ms(1));
52
+ color: $grey-dark-set;
53
+ font-family: $open-sans;
54
+ }
55
+ }
56
+ }
57
+ }
58
+
59
+ @include breakpoint($small) {
60
+ body {
61
+ div[role=main] {
62
+ margin: 0 $gutter/4;
63
+ article#main {
64
+ @include fill-parent;
65
+ }
66
+ aside[role="complementary"] {
67
+ @include fill-parent;
68
+ }
69
+ }
70
+ }
71
+ }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: framous
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alec Hance
@@ -62,15 +62,27 @@ files:
62
62
  - LICENSE.txt
63
63
  - README.md
64
64
  - lib/framous.rb
65
- - stylesheets/_framous-base.scss
66
- - stylesheets/_framous-grid.scss
67
- - stylesheets/framous/_functions.scss
68
- - stylesheets/framous/_grid.scss
69
- - stylesheets/framous/_settings.scss
65
+ - stylesheets/_framous.scss
66
+ - stylesheets/framous/base/_forms.scss
67
+ - stylesheets/framous/base/_framous-base.scss
68
+ - stylesheets/framous/base/_icons.scss
69
+ - stylesheets/framous/base/_modular-scale.scss
70
+ - stylesheets/framous/base/_settings.scss
71
+ - stylesheets/framous/base/_table.scss
72
+ - stylesheets/framous/base/_tables.scss
73
+ - stylesheets/framous/base/_typography.scss
74
+ - stylesheets/framous/grid/_framous-grid.scss
70
75
  - stylesheets/framous/grid/_functions.scss
71
76
  - stylesheets/framous/grid/_grid.scss
72
77
  - stylesheets/framous/grid/_settings.scss
78
+ - stylesheets/framous/mixins/_framous-mixins.scss
79
+ - stylesheets/framous/mixins/_hidpi-media-query.scss
80
+ - stylesheets/framous/mixins/_linear-gradient.scss
81
+ - stylesheets/framous/mixins/_position.scss
73
82
  - templates/project/_base.scss
83
+ - templates/project/_print.scss
84
+ - templates/project/_reset.scss
85
+ - templates/project/index.html
74
86
  - templates/project/manifest.rb
75
87
  - templates/project/screen.scss
76
88
  homepage: http://github.com/alechance/framous
@@ -1,4 +0,0 @@
1
- //
2
- // Framous-base.scss
3
- // Fundamental HTML elements styled and enhanced with extensible classes.
4
- //
@@ -1,39 +0,0 @@
1
- //
2
- // Functions & Mixins
3
- //
4
-
5
- //
6
- // Flexible grid
7
- //
8
-
9
- @function flex-grid($columns, $container-columns: $fg-max-columns) {
10
- $width: $columns * $fg-column + ($columns - 1) * $fg-gutter;
11
- $container-width: $container-columns * $fg-column + ($container-columns - 1) * $fg-gutter;
12
- @return percentage($width / $container-width);
13
- }
14
-
15
- // Flexible gutter
16
- @function flex-gutter($container-columns: $fg-max-columns, $gutter: $fg-gutter) {
17
- $container-width: $container-columns * $fg-column + ($container-columns - 1) * $fg-gutter;
18
- @return percentage($gutter / $container-width);
19
- }
20
-
21
- //
22
- // Container Span
23
- //
24
-
25
- @function container-span($span: $span) {
26
- @if length($span) == 3 {
27
- $container-columns: nth($span, 3);
28
- @return $container-columns;
29
- }
30
-
31
- @else if length($span) == 2 {
32
- $container-columns: nth($span, 2);
33
- @return $container-columns;
34
- }
35
-
36
- @else {
37
- @return $grid-columns;
38
- }
39
- }