The Online Styleguide is a uniformed compendium for project managers, web publisher, designers or developers of how to maintain, update or further develop a website. It gives an insight of formatting, use of space and components accross the online presence. It is devided into three essential parts: Typography, Components and Templates.
debug=true enables development tools classic=true enforces classic website (non-responsive)
1.01 Homepage 25.04.2013
1.02 Artikel - Wochenübersicht 25.04.2013
1.03 Artikel - Archiv 25.04.2013
1.04 Artikel - Detail 25.04.2013
1.05 Events & Leute Uebersicht 25.04.2013
1.06 Filme Übersicht 25.04.2013
1.07 Filme Detail 25.04.2013
1.08 Werbung 25.04.2013
dev = template in development, untested 4.12.03 = date when template finished, tested no flag = template finished, integrated
{tpl} Regular
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
1234567890!@#$%^&*()_+
<p>My text</p>
{tpl} italic
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
1234567890!@#$%^&*()_+
<p><em>My text</em></p>
{tpl} bold
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
1234567890!@#$%^&*()_+
<p><strong>My text</strong></p>
<h1>My title</h6> or class="font-size-32"
<h2>My title</h6> or class="font-size-28"
<h3>My title</h6> or class="font-size-24"
<h4>My title</h6> or class="font-size-20"
<h5>My title</h6> or class="font-size-18"
<h6>My title</h6> or class="font-size-16"
<abbr title="#">My text</abbr>
<b>My text</b>
<cite>My text</cite>
code
element
<code>My text</code>
<del>My text</del>
<dfn>My text</dfn>
<em>My text</em>
<i>My text</i>
<ins>My text</ins>
<kbd>My text</kbd>
<mark>My text</mark>
<s>My text</s>
<samp>My text</samp>
<small>My text</small>
<span>My text</span>
<strong>My text</strong>
<sub>My text</sub>
<sup>My text</sup>
<time>My text</time>
<u>My text</u>
<var>My text</var>
The <wbr>My text<wbr>
<address>My text</address>
<ul><li>My text</li></ul>
<ol><li>My text</li></ol>
<dl><dd>My</dd><dt>- text</dt></dl>
Government of the people, by the people, for the people, shall not perish from the Earth. Abraham Lincoln
<blockquote><p>My text <cite>My cite</cite></p></blockquote>
Build a future where people live in harmony with nature.
We hope they succeed.
<p><q>My text</q> My cite</p>
<div> <p>Sample text here...</p> </div>
<pre>My text</pre>
<hr />
<div class="break"></div>
Leadtext Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
<p class="lead">My text</p>
<h2>My title</h2>
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur.
<div class="grid-12 alpha"><p>My text</p></div>
from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance.
<div class="grid-12 omega"><p>My text</p></div>
100x100.img-left
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer semper egestas nunc in volutpat. Fusce adipiscing velit ac eros tempor iaculis. Phasellus venenatis mollis augue, non posuere odio placerat in. Etiam volutpat ultrices lectus. Fusce eu felis erat. Donec congue interdum elit, sed ornare magna convallis lacinia. In hac habitasse platea dictumst. Mauris volutpat consectetur accumsan.Cras diam justo, sodales quis lobortis sed, lobortis vel mauris. Sed a mollis nunc. Quisque semper condimentum lectus, eget laoreet ipsum auctor et. Quisque sagittis luctus augue, id fringilla enim euismod quis. Nullam blandit, elit at euismod rutrum, tortor nibh posuere mauris, in volutpat diam ante ac dui. Sed velit massa, imperdiet placerat tristique et, consectetur a lorem. Praesent aliquet turpis in quam tempor eu pulvinar nibh luctus.
100x100.img-left
Lorem Ipsum is simply dummy text of the printing and typesetting
industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an
unknown printer took a galley of type and scrambled it to make a type
specimen book. It has survived not only five centuries, but also the
leap into electronic typesetting, remaining essentially unchanged.
It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum
passages, and more recently with desktop publishing software like Aldus PageMaker including
versions of Lorem Ipsum.
Head 1 | Head 2 | Head 3 | Head 4 |
---|---|---|---|
Footer spans full size | |||
Row 1 Cell 1 | Row 1 Cell 2 | Row 1 Cell 3 | Row 1 Cell 4 |
Row 2 Cell 1 | Row 2 Cell 2 | Row 2 Cell 3 | Row 2 Cell 4 |
Row 3 Cell 1 | Row 3 Cell 2 | Row 3 Cell 3 | Row 3 Cell 4 |
Row 4 Cell 1 | Row 4 Cell 2 | Row 4 Cell 3 | Row 4 Cell 4 |
<table></table>
Head 1 | Head 2 | Head 3 | Head 4 | Head 5 |
---|---|---|---|---|
Footer spans full size | ||||
Head 1 Cell 1 | Row 1 Cell 2 | Row 1 Cell 3 | Row 1 Cell 4 | Row 1 Cell 5 |
Head 2 Cell 1 | Row 2 Cell 2 | Row 2 Cell 3 | Row 2 Cell 4 | Row 2 Cell 5 |
Head 3 Cell 1 | Row 3 Cell 2 | Row 3 Cell 3 | Row 3 Cell 4 | Row 3 Cell 5 |
Head 4 Cell 1 | Row 4 Cell 2 | Row 4 Cell 3 | Row 4 Cell 4 | Row 4 Cell 5 |
Head 5 Cell 1 | Row 5 Cell 2 | Row 5 Cell 3 | Row 5 Cell 4 | Row 5 Cell 5 |
<table class="tbl tbl-responsive"></table>
Head |
---|
Row 1 |
Row 2 |
Row 3 |
<table class="tbl tbl-alternate"></table>
Head | Head |
---|---|
Row 1 Cell 1 | Row 1 Cell 2 |
Row 2 Cell 1 | Row 2 Cell 2 |
Row 3 Cell 1 | Row 3 Cell 2 |
<table class="tbl tbl-empty"></table>
.text-success
This is a paragraph.
.text-error
This is a paragraph.
.text-info
This is a paragraph.
.text-warning
This is a paragraph.
.icon
.icon-arrow-left
.icon-reverse icon-arrow-right
.pl-tb-icon .icon-featured
.pl-tb-icon .icon-categories
.pl-tb-icon .icon-tags
.pl-tb-icon .icon-location
.pl-tb-icon .icon-arrow-down
.pl-tb-icon .icon-close
.pl-tb-icon .icon-location-grey
Class | Preview | Description |
---|---|---|
Style | ||
.bold |
Example Text | sets the text-style to bold |
.italic |
Example Text | sets the text-style to italic |
.text-muted |
Example Text | sets the text color to muted state |
.text-info |
Example Text | sets the text color to info state |
.text-success |
Example Text | sets the text color to success state |
.text-warning |
Example Text | sets the text color to warning state |
.text-error |
Example Text | sets the text color to error state |
.lead |
Example Text |
sets the text as lead |
.legal |
Example Text |
sets the text as legal (usually smaller) |
.uppercase |
Example Text |
sets the text-transformation to uppercase |
.lowercase |
Example Text |
sets the text-transformation to lowercase |
Alignment | ||
.align-left |
Example Text |
sets the text-alignment to left |
.align-right |
Example Text |
sets the text-alignment to right |
.align-center |
Example Text |
sets the text-alignment to center |
.align-top |
Example Text | sets the vertical-alignment to top |
.align-bottom |
Example Text | sets the vertical-alignment to bottom |
Floating | ||
.left , .float-left |
Example Text | floats an element left, forces float |
.right , .float-right |
Example Text | floats an element right, forces float |
.no-float |
Example Text | removes floating from an element |
.clearfix |
Example Text | sets clearing to an element |
.clear |
Example Text | sets clearing to an element |
Images | ||
.img |
40x40 | sets the max width of an image to 100% |
.img-left |
40x40 | sets the image-alignment to left and adds padding |
.img-right |
40x40 | sets the image-alignment to right and adds padding |
Spacing | ||
.halfspace |
Example Text |
sets the bottom margin to half of its origin value |
.nospace |
Example Text |
sets the bottom margin to zero |
.break |
Example Text |
class equivalent to the >hr /> tag |
Behaviour | ||
.nowrap |
Example Text |
disallows text breaks |
.offset |
Example Text |
sets the text visibility to offset |
.disable , .disabled |
Example Text |
adds disabled behaviour to applied element |
.inline |
Example Text | forces the element to be inline |
.block |
Example Text | forces the element to be a block |
.relative |
Example Text | forces the element to be relative positioned |
.hidden |
Example Text | forces the element to be hidden |
.visuallyhidden |
Example Text | forces the element to be hidden but readable by screenreaders |
Support | ||
.print |
Example Text | sets the element to be visible only print |
.no-print |
Example Text | sets the element to be visible only on screen |
.no-js |
Example Text | this class will be removed if javascript is enabled |
Resets | ||
.reset-list |
|
strips padding, margin and list-type from list |
Class | Phones 520px and below | Tablet 520px to 860px | Desktop Default |
---|---|---|---|
.visible-phone |
Visible | Hidden | Hidden |
.visible-tablet |
Hidden | Visible | Hidden |
.visible-desktop |
Hidden | Hidden | Visible |
.hidden-phone |
Hidden | Visible | Visible |
.hidden-tablet |
Visible | Hidden | Visible |
.hidden-desktop |
Visible | Visible | Hidden |
Link opening as popup: | Open popup | class="popup" data-width="600" data-height="400" |
E-Mail encryption: | class="mailcrypte" href="#info" data-rel="google.com" |
300 {tpl}
300 {tpl}
300 {tpl}
140 {tpl}
140 {tpl}
140 {tpl}
140 {tpl}
140 {tpl}
140 {tpl}
140 {tpl}
140 {tpl}
620 {tpl}
300 {tpl}
940 {tpl}
300 {tpl}
300 {tpl}
300 {tpl}
300 {tpl}
300 {tpl}
300 {tpl}
300 {tpl}
300 {tpl}
620 {tpl}
<nav class="pagenav"><ol><li>...</li></ol></nav>
<div class="box"><p>Text here</p></div>
Text here
For Python
we are using the PEP 8 style guide.
In addition, the following rules apply:
For HTML
/CSS
we are using the W3Schools
and W3C best practices and guidelines.
In addition, the following rules apply:
namespace-module-addition-addition
namespace_module_addition_addition.ext
We are using the singleton pattern for javascript along with the class.js library and class.js plugins to create reusable plugins and modules.
In addition, the following rules apply:
namespace.module.addition.addition.ext
When developing plugins, the following terms must be fullfilled:
The following requirements could be fullfilled:
1) We support the (A) grading as far as reason and logic permit.
2) When loading HTML and JavaScript, dynamic elements should load without any disturbances, also prior to onload.
3) Wherever possible use HTML5 or CSS3 technologies and provide proper fallbacks.
A plugin should always be wrapped with a class using the plugin namespace:
<div class="plugin-gallery">...</div>