Team:Calgary/StyleSheets/Reset

From 2013.igem.org

(Difference between revisions)
Line 5: Line 5:
---Purpose---
---Purpose---
-
CSS code to perform a browser reset for the iGEM Wiki.
+
CSS code to define content page stylings.
-
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 14: Line 11:
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/Reset?action=raw&ctype=text/css
+
https://2013.igem.org/Team:Calgary/StyleSheets/Content?action=raw&ctype=text/css
***/
***/
-
/*
+
html{
-
Header Removal - Removes header (except important links; e.g. login) and sets wiki to as blank as possible.
+
background: #D8D8D8;
 +
}
-
Code adapted from sections of Calgary 2012:
+
body {
-
https://2012.igem.org/Team:Calgary/static/basicpageglobal.css
+
min-width: 766px;
-
*/
+
}
-
#top-section{
+
 
-
height: 25px;
+
#globalWrapper {
-
margin-bottom: 0;
+
padding-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%;
-
position: fixed;
+
top: 19px;
-
top: 0;
+
background: url(https://static.igem.org/mediawiki/2013/2/2a/2013UCalgaryTopBanner.png) top center;
-
z-index: 10;
+
}
}
-
#header {
+
#Banner h1 {
-
width: 975px;
+
font: 72px/180px Raleway, Arial, sans-serif;
 +
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;
 
}
}
-
#p-logo {
+
#Content h1 {
-
display: none;
+
font-size: 35px;
 +
font-weight: 700;
 +
border-bottom: 3px solid #5A5A5A;
 +
color: #111111;
 +
margin: 0 -20px 30px -20px;
 +
padding-left: 20px;
}
}
-
#search-controls {
+
#Content h1 > i, #Content h1 > em {
-
overflow:hidden;
+
font-size: 35px;
-
display:none;
+
-
background: none;
+
-
position: absolute;
+
-
top: 170px;
+
-
right: 40px;
+
}
}
-
#searchform {
+
#Content h2 {
-
    display: none;
+
font-size: 28px;
 +
font-weight: 600;
 +
color: #333333;
 +
margin-top: 30px;
}
}
-
.left-menu, .right-menu{
+
#Content h2 > i, #Content h2 > em {
-
position: absolute;
+
font-size: 28px;
-
background: none;
+
-
color: black;
+
-
margin-top: 4px;
+
}
}
-
.left-menu a, .left-menu li {
+
#Content h3 {
-
    color: #000000;
+
font-size: 26px;
 +
font-weight: 500;
 +
color: #333333;
 +
padding-left: 20px;
}
}
-
.left-menu ul:hover a {
+
#Content h4 {
-
color: #000000;
+
font-size: 20px;
 +
font-weight: 500;
 +
color: #333333;
 +
padding-left: 20px;
}
}
-
.left-menu ul li, .right-menu ul li a {
+
#Content h3 > i, #Content h3 > em {
-
background: none;
+
font-size: 26px;
 +
}
 +
 
 +
#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;
}
}
-
.left-menu li a:hover, .right-menu li a:hover, .left-menu li:hover, .right-menu li:hover {
+
#Content a {
-
    color: #000000;
+
font: 18px/1.6 'Segoe UI', 'Antic Slab', Georgia, serif;
}
}
-
#top-section div#menubar.left-menu ul li:nth-child(7) {
+
#Content i, #Content em, #Content b, #Content strong {
-
display: none;
+
font-size: 18px;
 +
}
 +
 
 +
#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;
}
}
-
.left-menu ul:hover, .right-menu ul:hover {
+
#Content li {
-
background: #737373;
+
font: 18px/1 'Segoe UI', 'Antic Slab', Georgia, serif;
 +
margin: 4px 0 12px 0;
color: #000000;
color: #000000;
 +
text-align:justify;
 +
text-justify:inter-word;
}
}
-
#content{
+
#Content table {
-
margin-top: -13px;
+
background: none;
-
padding: 0;
+
margin: 4px 20px 12px 20px;
-
border: 0;
+
}
}
-
.firstHeading {
+
#Content td {
-
visibility:hidden;
+
border: 1px solid #000000;
-
display:none;
+
padding: 5px;
}
}
-
#catlinks{
+
#Content figure {
-
display:none;
+
margin-bottom: 20px;
}
}
-
#menubar ul:hover {
+
#Content figcaption {
-
color: transparent;
+
padding: 0 50px;
}
}
-
/*important for background colours*/
+
 
-
.mediawiki{
+
#Content figcaption p, #Content figcaption b, #Content figcaption i, #Content figcaption u, #Content figcaption em, #Content figcaption strong {
-
background: #ffffff;
+
font-family: Arial, sans-serif;
 +
font-size: 14px;
 +
text-indent: 0;
 +
text-align: center;
}
}
-
#footer-box {
+
#Content h3 + p, h3 + p + p, h3 + p + p + p, h3 + p + p + p + p {
-
display: none;
+
padding-left: 40px;
}
}
-
/*End minimal header*/
 
-
/* reset browser styles */
+
#ButtonsSection {
-
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym,
+
overflow: hidden;
-
address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup,
+
width: 100%;
-
tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot,
+
margin: 0 auto;
-
thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu,
+
padding: 10px;
-
nav, output, ruby, section, summary, time, mark, audio, video {
+
text-align: center;
-
margin: 0;
+
-
padding: 0;
+
-
border: 0;
+
-
font-size: 16px;
+
-
vertical-align: baseline;
+
}
}
-
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
+
#ButtonsSection a:hover {
 +
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;
}
}
-
body {
+
#ButtonsSection .Button {
-
line-height: 1.2;
+
background: #4F494A;
 +
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;
}
}
-
table {
+
#ButtonsSection #Button3 {
-
border-collapse: collapse;
+
background: #E68930;
-
border-spacing: 0;
+
}
}
-
ol {  
+
#ButtonsSection #Button3:hover {
-
padding-left: 1.4em;
+
background: #EBA059;
-
list-style: decimal;
+
}
}
-
ul {
+
#ButtonsSection #Button4 {
-
padding-left: 1.4em;
+
background: #EDB74B;
-
list-style: square;
+
}
}
-
blockquote, q {
+
#ButtonsSection #Button4:hover {
-
quotes: none;
+
background: #F0C56E;
}
}
-
blockquote:before, blockquote:after, q:before, q:after {
+
#ButtonsSection #Button5 {
-
content: '';
+
background: #CB1F10;
-
content: none;
+
margin-left: 150px;
}
}
-
* {
+
#ButtonsSection #Button5:hover {
-
box-sizing: border-box;
+
background: #D54B3F;
-
-moz-box-sizing: border-box;
+
}
}
-
/* end reset browser styles */
 

Revision as of 22:50, 26 October 2013

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

---Purpose--- CSS code to define content page stylings.


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

      • /

html{ background: #D8D8D8; }

body { min-width: 766px; }

  1. globalWrapper {

padding-bottom: 0; }

  1. bodyContent {

background: #D8D8D8; text-align: center; }

  1. contentSub{
   display: none;

}

  1. Banner {

display: none; position: relative; height: 180px; width: 100%; top: 19px; background: url(2013UCalgaryTopBanner.png) top center; }

  1. Banner h1 {

font: 72px/180px Raleway, Arial, sans-serif; font-weight: 900; color: #231F20; }

  1. Banner i {

font-size: 72px; }

  1. 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; }

  1. Content img {

margin: 4px 20px 12px 20px; }

  1. 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; }

  1. Content h1 {

font-size: 35px; font-weight: 700; border-bottom: 3px solid #5A5A5A; color: #111111; margin: 0 -20px 30px -20px; padding-left: 20px; }

  1. Content h1 > i, #Content h1 > em {

font-size: 35px; }

  1. Content h2 {

font-size: 28px; font-weight: 600; color: #333333; margin-top: 30px; }

  1. Content h2 > i, #Content h2 > em {

font-size: 28px; }

  1. Content h3 {

font-size: 26px; font-weight: 500; color: #333333; padding-left: 20px; }

  1. Content h4 {

font-size: 20px; font-weight: 500; color: #333333; padding-left: 20px; }

  1. Content h3 > i, #Content h3 > em {

font-size: 26px; }

  1. 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; text-align:justify; text-justify:inter-word; }

  1. Content a {

font: 18px/1.6 'Segoe UI', 'Antic Slab', Georgia, serif; }

  1. Content i, #Content em, #Content b, #Content strong {

font-size: 18px; }

  1. Content li a {

line-height: 1; }

  1. Content sub {

vertical-align: sub; font-size: 69%; }

  1. Content sup {

vertical-align: super; font-size: 69%; }

  1. Content span {

font-size: inherit; }

  1. Content .noIndent {

text-indent: 0; }

  1. Content .Blue, #Content .blue {

color: #299D7F; }

  1. Content .Green, #Content .green {

color: #87CA7A; }

  1. Content .Orange, #Content .orange {

color: #E68930; }

  1. Content .Yellow, #Content .yellow {

color: #EDB74B; }

  1. Content ul, #Content ol {

padding-left: 40px; }

  1. Content li {

font: 18px/1 'Segoe UI', 'Antic Slab', Georgia, serif; margin: 4px 0 12px 0; color: #000000; text-align:justify; text-justify:inter-word; }

  1. Content table {

background: none; margin: 4px 20px 12px 20px; }

  1. Content td {

border: 1px solid #000000; padding: 5px; }

  1. Content figure {

margin-bottom: 20px; }

  1. Content figcaption {

padding: 0 50px; }

  1. Content figcaption p, #Content figcaption b, #Content figcaption i, #Content figcaption u, #Content figcaption em, #Content figcaption strong {

font-family: Arial, sans-serif; font-size: 14px; text-indent: 0; text-align: center; }

  1. Content h3 + p, h3 + p + p, h3 + p + p + p, h3 + p + p + p + p {

padding-left: 40px; }

  1. ButtonsSection {

overflow: hidden; width: 100%; margin: 0 auto; padding: 10px; text-align: center; }

  1. ButtonsSection a:hover {

text-decoration: none; }

  1. ButtonsSection .Button {

float: left; margin: 5px; width: 280px; }

  1. ButtonsSection .Button img{

margin: 20px; }

  1. ButtonsSection .Clear {

clear: both; }

  1. ButtonsSection .Wrap {

padding: 5px; margin: auto; width: 580px; display: block; margin: auto; border: 0; padding: 0; }

  1. ButtonsSection .Button {

background: #4F494A; padding: 20px; position: relative; }

  1. ButtonsSection .Button p {

padding-left: 0; text-indent: 0; position: absolute; bottom: 10px; padding-right: 20px; }

  1. ButtonsSection .Button h2 {

margin: 0 0 20px 0; }

  1. ButtonsSection #Button1 {

background: #299D77; }

  1. ButtonsSection #Button1:hover {

background: #53B092; }

  1. ButtonsSection #Button2 {

background: #87CA7A; }

  1. ButtonsSection #Button2:hover {

background: #9FD494; }

  1. ButtonsSection #Button3 {

background: #E68930; }

  1. ButtonsSection #Button3:hover {

background: #EBA059; }

  1. ButtonsSection #Button4 {

background: #EDB74B; }

  1. ButtonsSection #Button4:hover {

background: #F0C56E; }

  1. ButtonsSection #Button5 {

background: #CB1F10; margin-left: 150px; }

  1. ButtonsSection #Button5:hover {

background: #D54B3F; }