Team:Uppsala/marcus.css

From 2014.igem.org

Revision as of 11:10, 17 October 2014 by Amaron (Talk | contribs)

/* --- Killing content --- */

  1. killing_sds_result {

clear: both;

}

  1. killing_left {

float: left;

}

  1. killing_right {

border: 1px solid; float: right;


}

  1. killing_container {

width: 1100px;; border: 1px solid; height: 500px;

}

  1. grid_container {

}

/***Now style the containing div that we gave the id 'polaroid'***/

  1. polaroid{

padding:20px 10px; /*setting a width and adding overflow:hidden will clear the floats we're going to apply to figure*/

overflow:hidden; float: left; } /***Position the figures containing the images and captions***/

  1. polaroid figure{

float:left; /*places the images in a horizontal line*/ position:relative; /*allows precise positioning of the tape in step 5- see support section below for more info*/ width:400px; /*width of the images*/ margin:10px 20px; /*space between the images*/ }

  1. polaroid figure{

float:left; position:relative; width:400px; margin:10px 20px; padding: 6px 8px 10px 8px; -webkit-box-shadow: 4px 4px 8px -4px rgba(0, 0, 0, .75); -moz-box-shadow: 4px 4px 8px -4px rgba(0, 0, 0, .75); box-shadow: 4px 4px 8px -4px rgba(0, 0, 0, .75); background: #eee6d8; background: -webkit-linear-gradient(top, #ede1c9, #fef8e2 20%, #f2ebde 60%); background: -moz-linear-gradient(top, #ede1c9, #fef8e2 20%, #f2ebde 60%); background: -o-linear-gradient(top, #ede1c9, #fef8e2 20%, #f2ebde 60%); background: -ms-linear-gradient(top, #ede1c9, #fef8e2 20%, #f2ebde 60%); background: linear-gradient(top, #ede1c9, #fef8e2 20%, #f2ebde 60%); -webkit-transform:rotate(-1deg); -moz-transform: rotate(-1deg); -o-transform: rotate(-1deg); -ms-transform: rotate(-1deg); transform: rotate(-1deg); -webkit-backface-visibility:hidden; /*prevent rotated text being jagged in Chrome and Safari*/ }

  1. polaroid2 figure {

-webkit-transform:rotate(2deg); -moz-transform: rotate(2deg); -o-transform: rotate(2deg); -ms-transform: rotate(2deg); transform: rotate(2deg); -webkit-backface-visibility:hidden; /*prevent rotated text being jagged in Chrome and Safari*/ -webkit-box-shadow: 4px 4px 8px -4px rgba(0, 0, 0, .75); -moz-box-shadow: 4px 4px 8px -4px rgba(0, 0, 0, .75); box-shadow: -4px 4px 8px -4px rgba(0, 0, 0, .75); }

  1. polaroid figcaption{

text-align: center; font-family: 'Reenie Beanie', cursive; /* Reenie Beanie is available through Google Webfonts */ font-size:1.3em; color: #454f40; letter-spacing: 0.09em; }

figure::before, figure::after{ content: ; /*because there is nothing between the ' ' the content of the pseudo elements will be blank*/ display: block; position: absolute; /*for more info on positioning see the Support section below*/ background-color: rgba(220,212,176,0.85); /*using rgba for the colour lets us give the tape some opacity*/ height: 25px; }


/*Now position the left strip of tape*/ figure::before{ left:-5px; /*distance from the left edge of the box*/ top: -15px; /*distance from the top of the box*/ width: 45px; /*length of the strip of tape*/ /*rotate the tape, in this case 12° anti-clockwise*/ -webkit-transform: rotate(-12deg); -moz-transform: rotate(-12deg); -o-transform: rotate(-12deg); -ms-transform: rotate(-12deg); } /*Finally position the right strip*/ figure::after { left: 358px; /*distance from the left edge of the box*/ top: -10px; /*distance from the top of the box*/ width: 70px; /*length of the strip of tape*/ /*rotate the tape, this time 20° clockwise*/ -webkit-transform: rotate(20deg); -moz-transform: rotate(20deg); -o-transform: rotate(20deg); -ms-transform: rotate(20deg); }


/* Other rotate */

  1. polaroid2{

padding:20px 10px; /*setting a width and adding overflow:hidden will clear the floats we're going to apply to figure*/

overflow:hidden; float: right; } /***Position the figures containing the images and captions***/

  1. polaroid2 figure{

float:left; /*places the images in a horizontal line*/ position:relative; /*allows precise positioning of the tape in step 5- see support section below for more info*/ width:400px; /*width of the images*/ margin:10px 20px; /*space between the images*/ }

  1. polaroid2 figure{

float:left; position:relative; width:400px; margin:10px 20px; padding: 6px 8px 10px 8px; -webkit-box-shadow: 4px 4px 8px -4px rgba(0, 0, 0, .75); -moz-box-shadow: 4px 4px 8px -4px rgba(0, 0, 0, .75); box-shadow: 4px 4px 8px -4px rgba(0, 0, 0, .75); background: #eee6d8; background: -webkit-linear-gradient(top, #ede1c9, #fef8e2 20%, #f2ebde 60%); background: -moz-linear-gradient(top, #ede1c9, #fef8e2 20%, #f2ebde 60%); background: -o-linear-gradient(top, #ede1c9, #fef8e2 20%, #f2ebde 60%); background: -ms-linear-gradient(top, #ede1c9, #fef8e2 20%, #f2ebde 60%); background: linear-gradient(top, #ede1c9, #fef8e2 20%, #f2ebde 60%); -webkit-transform:rotate(2deg); -moz-transform: rotate(2deg); -o-transform: rotate(2deg); -ms-transform: rotate(2deg); transform: rotate(2deg); -webkit-backface-visibility:hidden; /*prevent rotated text being jagged in Chrome and Safari*/ }

  1. polaroid2 figcaption{

text-align: center; font-family: 'Reenie Beanie', cursive; /* Reenie Beanie is available through Google Webfonts */ font-size:1.3em; color: #454f40; letter-spacing: 0.09em; }

figure::before, figure::after{ content: ; /*because there is nothing between the ' ' the content of the pseudo elements will be blank*/ display: block; position: absolute; /*for more info on positioning see the Support section below*/ background-color: rgba(220,212,176,0.85); /*using rgba for the colour lets us give the tape some opacity*/ height: 25px; }


/*Now position the left strip of tape*/ figure::before{ left:-5px; /*distance from the left edge of the box*/ top: -15px; /*distance from the top of the box*/ width: 45px; /*length of the strip of tape*/ /*rotate the tape, in this case 12° anti-clockwise*/ -webkit-transform: rotate(-12deg); -moz-transform: rotate(-12deg); -o-transform: rotate(-12deg); -ms-transform: rotate(-12deg); } /*Finally position the right strip*/ figure::after { left: 358px; /*distance from the left edge of the box*/ top: -10px; /*distance from the top of the box*/ width: 70px; /*length of the strip of tape*/ /*rotate the tape, this time 20° clockwise*/ -webkit-transform: rotate(20deg); -moz-transform: rotate(20deg); -o-transform: rotate(20deg); -ms-transform: rotate(20deg); }