Skip to content

Instantly share code, notes, and snippets.

@SinusMedii
Created April 28, 2012 12:17
Show Gist options
  • Select an option

  • Save SinusMedii/2518595 to your computer and use it in GitHub Desktop.

Select an option

Save SinusMedii/2518595 to your computer and use it in GitHub Desktop.
CSS: Basisvorlage CSS styles.css
/* Basisvorlage CSS
www.projektname.ch
Letzte Aenderung: 00.00.20xx
*/
/* Farbschema
----------------------------------------------------------------------------------------------------------- */
/*
Farbton (Element): #xxxxxx;;
Farbton (Element): #xxxxxx;
Farbton (Element): #xxxxxx;
Farbton (Element): #xxxxxx;
Farbton (Element): #xxxxxx;
*/
/* Import von CSS-Files ----------------------------------------------------------------------------------- */
@import url(navigation.css);
@import url(content.css);
@import url(styles_rte.css);
/* Import von Schriften ----------------------------------------------------------------------------------- */
@font-face {
font-family: 'UbuntuRegular';
src: url('../fonts/Ubuntu-R-webfont.eot');
src: url('../fonts/Ubuntu-R-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/Ubuntu-R-webfont.woff') format('woff'),
url('../fonts/Ubuntu-R-webfont.ttf') format('truetype'),
url('../fonts/Ubuntu-R-webfont.svg#UbuntuRegular') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'UbuntuItalic';
src: url('../fonts/Ubuntu-RI-webfont.eot');
src: url('../fonts/Ubuntu-RI-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/Ubuntu-RI-webfont.woff') format('woff'),
url('../fonts/Ubuntu-RI-webfont.ttf') format('truetype'),
url('../fonts/Ubuntu-RI-webfont.svg#UbuntuItalic') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'UbuntuBold';
src: url('../fonts/Ubuntu-B-webfont.eot');
src: url('../fonts/Ubuntu-B-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/Ubuntu-B-webfont.woff') format('woff'),
url('../fonts/Ubuntu-B-webfont.ttf') format('truetype'),
url('../fonts/Ubuntu-B-webfont.svg#UbuntuBold') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'UbuntuBoldItalic';
src: url('../fonts/Ubuntu-BI-webfont.eot');
src: url('../fonts/Ubuntu-BI-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/Ubuntu-BI-webfont.woff') format('woff'),
url('../fonts/Ubuntu-BI-webfont.ttf') format('truetype'),
url('../fonts/Ubuntu-BI-webfont.svg#UbuntuBoldItalic') format('svg');
font-weight: normal;
font-style: normal;
}
/* Reset Reloaded, Eric Meyer, http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/ --------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
background-repeat: no-repeat;
}
/* remember to define focus styles! */
:focus {
outline: 0;
}
body {
line-height: 1;
color: black;
background: #B1CFE7 url(../images/BodyBG.jpg) repeat-x;
}
ol, ul {
list-style: none;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
border-collapse: separate;
border-spacing: 0;
}
caption, th, td {
text-align: left;
font-weight: normal;
}
td, td img {
vertical-align: top;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: "";
}
blockquote, q {
quotes: "" "";
}
/* Globals und Typo --------------------------------------------------------------------------------------- */
/* Scrollbars erzwingen */
html {
height: 100%;
margin-bottom: 1px;
}
body {
/* Wahlweise Linienhintergrund
Linienhintergrund abgestimmt auf eine Schriftgröße von 12px.
background: transparent url(bilder/line-height.gif) top left;
*/
font-size: 75%;
}
/*
html>body {
font-size: 12px;
}
*/
a { /* !Link Schrift+Farbe Definieren */
font: 1em/1.5em Arial, Tahoma, Verdana, sans-serif;
color: #a71403;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:acitve {
text-decoration: none;
}
/* Vertikaler Rhythmus basierend auf 12px Basisgröße für den Fließtext ----------------------------------- */
p, ul, ol, .suchtabelle td {
font-family: Arial, Helvetica, Geneva, sans-serif;
font-size: 1.083em;
line-height: 1.5em;
margin-bottom: 1.5em;
}
h1 {
font-family: Arial, Helvetica, Geneva, sans-serif;
font-size: 1.33em;
line-height: 1.5em;
margin-top: -0.4em;
margin-bottom: 0.5em;
}
h2 {
font-family: Arial, Helvetica, Geneva, sans-serif;
font-size: 1.25em;
line-height: 1.5em;
margin-bottom: 0.6em;
}
h3 {
font-family: Arial, Helvetica, Geneva, sans-serif;
font-size: 1.17em;
line-height: 1.5em;
margin-bottom: 0.7em;
}
h4 {
font-family: Arial, Helvetica, Geneva, sans-serif;
font-size: 1.083em;
line-height: 1.5em;
margin-bottom: 0.8em;
}
/* Bilder und verlinkte Bilder ohne Rahmen -------------------------------------------------------------- */
img, a img {
border: 0;
}
/* Links- bzw. Rechtsausrichtung für Elemente ----------------------------------------------------------- */
.links {
float: left;
margin: 0 0.5em 0.5em 0;
}
.rechts {
float: right;
margin: 0 0 0.5em 0.5em;
}
/* Layoutelemente --------------------------------------------------------------------------------------- */
#wrapper {
margin: 0 auto;
width: 960px;
/* Wahlweise Grid-Hintergrund */
/*background: transparent url(../images/grid.png) top left no-repeat;*/
}
#header {
clear: both;
width: 960px;
height: 175px;
background: #FEBE7E;
}
#logo {
width: 230px;
height: 145px;
float: left;
}
#metalogo {
width: 230px;
height: 30px;
float: left;
}
#headerbild {
width: 730px;
height: 145px;
float: left;
}
#metanavigation { /* ! Background-Image ersetzen */
width: 730px;
height: 30px;
text-align: right;
background: url(../images/Metanavigation.jpg) top left no-repeat;
float: left;
}
#spacecontent {
width: 960px;
height: 30px;
float: left;
}
#wrapcontent {
width: 960px;
clear: both;
}
#nav_holder {
width: 230px;
float: left;
}
#navigation {
width: 200px;
margin-left: 10px;
}
#content_left_holder {
width: 500px;
float: left;
}
#content_left {
width: 460px;
margin: 0px 20px;
}
#content_right_holder {
width: 230px;
float: left;
}
#content_right {
width: 200px;
margin-left: 20px;
margin-right: 10px;
}
#wrapcontent, #nav_holder, #content_left, #content_right { min-height: 430px; }
* html #wrapcontent, * html #nav_holder, * html #content_left, * html #content_right { height: 430px; }
#footer {
clear: both;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment