Team:Calgary/StyleSheets/Reset

From 2013.igem.org

(Difference between revisions)
 
Line 5: Line 5:
---Purpose---
---Purpose---
-
CSS code to define content page stylings.
+
CSS code to perform a browser reset for the iGEM Wiki.
 +
Removes most header elements (Except necessary links; e.g. login)
 +
and sets all pre-defined styles to a minimal, text editor-esque style.
 +
Other CSS style sheets should be added to customise web page.
-------------
-------------
Line 11: Line 14:
Wm. Keith van der Meulen
Wm. Keith van der Meulen
University of Calgary iGEM 2013
University of Calgary iGEM 2013
-
https://2013.igem.org/Team:Calgary/StyleSheets/Content?action=raw&ctype=text/css
+
https://2013.igem.org/Team:Calgary/StyleSheets/Reset?action=raw&ctype=text/css
***/
***/
-
html{
+
/*
-
background: #D8D8D8;
+
Header Removal - Removes header (except important links; e.g. login) and sets wiki to as blank as possible.
-
}
+
-
body {
+
Code adapted from sections of Calgary 2012:
-
min-width: 766px;
+
https://2012.igem.org/Team:Calgary/static/basicpageglobal.css
-
}
+
*/
-
 
+
#top-section{
-
#globalWrapper {
+
height: 25px;
-
padding-bottom: 0;
+
margin-bottom: 0;
-
}
+
border: none;
-
 
+
background: #737373;
-
#bodyContent {
+
-
background: #D8D8D8;
+
-
text-align: center;
+
-
}
+
-
 
+
-
#contentSub{
+
-
    display: none;
+
-
}
+
-
 
+
-
#Banner {
+
-
display: none;
+
-
position: relative;
+
-
height: 180px;
+
width: 100%;
width: 100%;
-
top: 19px;
+
position: fixed;
-
background: url(https://static.igem.org/mediawiki/2013/2/2a/2013UCalgaryTopBanner.png) top center;
+
top: 0;
 +
z-index: 10;
}
}
-
#Banner h1 {
+
#header {
-
font: 72px/180px Raleway, Arial, sans-serif;
+
width: 975px;
-
font-weight: 900;
+
-
color: #231F20;
+
-
}
+
-
 
+
-
#Banner i {
+
-
font-size: 72px;
+
-
}
+
-
 
+
-
#Content {
+
-
position: relative;
+
-
top: 108px;
+
-
height: 100%;
+
-
width: 100%;
+
-
max-width: 1200px;
+
-
background: #E7E7E7;
+
-
display: inline-block;
+
-
padding: 30px 50px;
+
-
box-shadow: 0px 8px 10px #888, -10px 8px 15px #888, 10px 8px 15px #888;
+
-
margin-bottom: 20px;
+
-
}
+
-
 
+
-
#Content img {
+
-
margin: 4px 20px 12px 20px;
+
-
}
+
-
 
+
-
#Content h1, #Content h2, #Content h3, #Content h4, #Content h5, #Content h6 {
+
-
font-family: 'Raleway', Helvetica, Arial, sans-serif;
+
-
line-height: 1.6;
+
text-align: left;
text-align: left;
 +
margin-left: auto;
 +
margin-right: auto;
 +
margin-bottom: 0;
}
}
-
#Content h1 {
+
#p-logo {
-
font-size: 35px;
+
display: none;
-
font-weight: 700;
+
-
border-bottom: 3px solid #5A5A5A;
+
-
color: #111111;
+
-
margin: 0 -20px 30px -20px;
+
-
padding-left: 20px;
+
}
}
-
#Content h1 > i, #Content h1 > em {
+
#search-controls {
-
font-size: 35px;
+
overflow:hidden;
 +
display:none;
 +
background: none;
 +
position: absolute;
 +
top: 170px;
 +
right: 40px;
}
}
-
#Content h2 {
+
#searchform {
-
font-size: 28px;
+
    display: none;
-
font-weight: 600;
+
-
color: #333333;
+
-
margin-top: 30px;
+
}
}
-
#Content h2 > i, #Content h2 > em {
+
.left-menu, .right-menu{
-
font-size: 28px;
+
position: absolute;
 +
background: none;
 +
color: black;
 +
margin-top: 4px;
}
}
-
#Content h3 {
+
.left-menu a, .left-menu li {
-
font-size: 26px;
+
    color: #000000;
-
font-weight: 500;
+
-
color: #333333;
+
-
padding-left: 20px;
+
}
}
-
#Content h4 {
+
.left-menu ul:hover a {
-
font-size: 20px;
+
color: #000000;
-
font-weight: 500;
+
-
color: #333333;
+
-
padding-left: 20px;
+
}
}
-
#Content h3 > i, #Content h3 > em {
+
.left-menu ul li, .right-menu ul li a {
-
font-size: 26px;
+
background: none;
-
}
+
-
 
+
-
#Content p {
+
-
font: 18px/1.6 'Segoe UI', 'Antic Slab', Georgia, serif;
+
-
margin: 4px 0 12px 0;
+
-
padding-left: 20px;
+
-
text-indent: 50px;
+
color: #000000;
color: #000000;
-
text-align:justify;
 
-
text-justify:inter-word;
 
}
}
-
#Content a {
+
.left-menu li a:hover, .right-menu li a:hover, .left-menu li:hover, .right-menu li:hover {
-
font: 18px/1.6 'Segoe UI', 'Antic Slab', Georgia, serif;
+
    color: #000000;
}
}
-
#Content i, #Content em, #Content b, #Content strong {
+
#top-section div#menubar.left-menu ul li:nth-child(7) {
-
font-size: 18px;
+
display: none;
-
}
+
-
 
+
-
#Content li a {
+
-
line-height: 1;
+
-
}
+
-
 
+
-
#Content sub {
+
-
vertical-align: sub;
+
-
font-size: 69%;
+
-
}
+
-
 
+
-
#Content sup {
+
-
vertical-align: super;
+
-
font-size: 69%;
+
-
}
+
-
 
+
-
#Content span {
+
-
font-size: inherit;
+
-
}
+
-
 
+
-
#Content .noIndent {
+
-
text-indent: 0;
+
-
}
+
-
 
+
-
#Content .Blue, #Content .blue {
+
-
color: #299D7F;
+
-
}
+
-
 
+
-
#Content .Green, #Content .green {
+
-
color: #87CA7A;
+
-
}
+
-
 
+
-
#Content .Orange, #Content .orange {
+
-
color: #E68930;
+
-
}
+
-
 
+
-
#Content .Yellow, #Content .yellow {
+
-
color: #EDB74B;
+
-
}
+
-
 
+
-
#Content ul, #Content ol {
+
-
padding-left: 40px;
+
}
}
-
#Content li {
+
.left-menu ul:hover, .right-menu ul:hover {
-
font: 18px/1 'Segoe UI', 'Antic Slab', Georgia, serif;
+
background: #737373;
-
margin: 4px 0 12px 0;
+
color: #000000;
color: #000000;
-
text-align:justify;
 
-
text-justify:inter-word;
 
}
}
-
#Content table {
+
#content{
-
background: none;
+
margin-top: -13px;
-
margin: 4px 20px 12px 20px;
+
padding: 0;
 +
border: 0;
}
}
-
#Content td {
+
.firstHeading {
-
border: 1px solid #000000;
+
visibility:hidden;
-
padding: 5px;
+
display:none;
}
}
-
#Content figure {
+
#catlinks{
-
margin-bottom: 20px;
+
display:none;
}
}
-
#Content figcaption {
+
#menubar ul:hover {
-
padding: 0 50px;
+
color: transparent;
}
}
-
 
+
/*important for background colours*/
-
#Content figcaption p, #Content figcaption b, #Content figcaption i, #Content figcaption u, #Content figcaption em, #Content figcaption strong {
+
.mediawiki{
-
font-family: Arial, sans-serif;
+
background: #ffffff;
-
font-size: 14px;
+
-
text-indent: 0;
+
-
text-align: center;
+
}
}
-
#Content h3 + p, h3 + p + p, h3 + p + p + p, h3 + p + p + p + p {
+
#footer-box {
-
padding-left: 40px;
+
display: none;
}
}
 +
/*End minimal header*/
-
#ButtonsSection {
+
/* reset browser styles */
-
overflow: hidden;
+
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym,
-
width: 100%;
+
address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup,
-
margin: 0 auto;
+
tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot,
-
padding: 10px;
+
thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu,
-
text-align: center;
+
nav, output, ruby, section, summary, time, mark, audio, video {
 +
margin: 0;
 +
padding: 0;
 +
border: 0;
 +
font-size: 16px;
 +
vertical-align: baseline;
}
}
-
#ButtonsSection a:hover {
+
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
-
text-decoration: none;
+
-
}
+
-
 
+
-
#ButtonsSection .Button {
+
-
float: left;
+
-
margin: 5px;
+
-
width: 280px;
+
-
}
+
-
 
+
-
#ButtonsSection .Button img{
+
-
margin: 20px;
+
-
}
+
-
 
+
-
#ButtonsSection .Clear {
+
-
clear: both;
+
-
}
+
-
 
+
-
#ButtonsSection .Wrap {
+
-
padding: 5px;
+
-
margin: auto;
+
-
width: 580px;
+
display: block;
display: block;
-
margin: auto;
 
-
border: 0;
 
-
padding: 0;
 
}
}
-
#ButtonsSection .Button {
+
body {
-
background: #4F494A;
+
line-height: 1.2;
-
padding: 20px;
+
-
position: relative;
+
-
}
+
-
 
+
-
#ButtonsSection .Button p {
+
-
padding-left: 0;
+
-
text-indent: 0;
+
-
position: absolute;
+
-
bottom: 10px;
+
-
padding-right: 20px;
+
-
}
+
-
 
+
-
#ButtonsSection .Button h2 {
+
-
margin: 0 0 20px 0;
+
-
}
+
-
 
+
-
#ButtonsSection #Button1 {
+
-
background: #299D77;
+
-
}
+
-
 
+
-
#ButtonsSection #Button1:hover {
+
-
background: #53B092;
+
-
}
+
-
 
+
-
#ButtonsSection #Button2 {
+
-
background: #87CA7A;
+
-
}
+
-
 
+
-
#ButtonsSection #Button2:hover {
+
-
background: #9FD494;
+
}
}
-
#ButtonsSection #Button3 {
+
table {
-
background: #E68930;
+
border-collapse: collapse;
 +
border-spacing: 0;
}
}
-
#ButtonsSection #Button3:hover {
+
ol {  
-
background: #EBA059;
+
padding-left: 1.4em;
 +
list-style: decimal;
}
}
-
#ButtonsSection #Button4 {
+
ul {
-
background: #EDB74B;
+
padding-left: 1.4em;
 +
list-style: square;
}
}
-
#ButtonsSection #Button4:hover {
+
blockquote, q {
-
background: #F0C56E;
+
quotes: none;
}
}
-
#ButtonsSection #Button5 {
+
blockquote:before, blockquote:after, q:before, q:after {
-
background: #CB1F10;
+
content: '';
-
margin-left: 150px;
+
content: none;
}
}
-
#ButtonsSection #Button5:hover {
+
* {
-
background: #D54B3F;
+
box-sizing: border-box;
 +
-moz-box-sizing: border-box;
}
}
 +
/* end reset browser styles */

Latest revision as of 22:52, 26 October 2013

/*** Name: Wm. Keith van der Meulen Date: Summer 2013 Organization: University of Calgary iGEM Team 2013

---Purpose--- CSS code to perform a browser reset for the iGEM Wiki. Removes most header elements (Except necessary links; e.g. login) and sets all pre-defined styles to a minimal, text editor-esque style. Other CSS style sheets should be added to customise web page.


Cite: Wm. Keith van der Meulen University of Calgary iGEM 2013 https://2013.igem.org/Team:Calgary/StyleSheets/Reset?action=raw&ctype=text/css

      • /

/* Header Removal - Removes header (except important links; e.g. login) and sets wiki to as blank as possible.

Code adapted from sections of Calgary 2012: https://2012.igem.org/Team:Calgary/static/basicpageglobal.css

  • /
  1. top-section{

height: 25px; margin-bottom: 0; border: none; background: #737373; width: 100%; position: fixed; top: 0; z-index: 10; }

  1. header {

width: 975px; text-align: left; margin-left: auto; margin-right: auto; margin-bottom: 0; }

  1. p-logo {

display: none; }

  1. search-controls {

overflow:hidden; display:none; background: none; position: absolute; top: 170px; right: 40px; }

  1. searchform {
   display: none;

}

.left-menu, .right-menu{ position: absolute; background: none; color: black; margin-top: 4px; }

.left-menu a, .left-menu li {

   color: #000000;

}

.left-menu ul:hover a { color: #000000; }

.left-menu ul li, .right-menu ul li a { background: none; color: #000000; }

.left-menu li a:hover, .right-menu li a:hover, .left-menu li:hover, .right-menu li:hover {

   color: #000000;

}

  1. top-section div#menubar.left-menu ul li:nth-child(7) {

display: none; }

.left-menu ul:hover, .right-menu ul:hover { background: #737373; color: #000000; }

  1. content{

margin-top: -13px; padding: 0; border: 0; }

.firstHeading { visibility:hidden; display:none; }

  1. catlinks{

display:none; }

  1. menubar ul:hover {

color: transparent; } /*important for background colours*/ .mediawiki{ background: #ffffff; }

  1. footer-box {

display: none; } /*End minimal header*/

/* reset browser styles */ html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 16px; vertical-align: baseline; }

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }

body { line-height: 1.2; }

table { border-collapse: collapse; border-spacing: 0; }

ol { padding-left: 1.4em; list-style: decimal; }

ul { padding-left: 1.4em; list-style: square; }

blockquote, q { quotes: none; }

blockquote:before, blockquote:after, q:before, q:after { content: ; content: none; }

  • {

box-sizing: border-box; -moz-box-sizing: border-box; } /* end reset browser styles */