Team:Uppsala/marcus.css

From 2014.igem.org

(Difference between revisions)
Line 36: Line 36:
padding:20px 10px;
padding:20px 10px;
/*setting a width and adding overflow:hidden will clear the floats we're going to apply to figure*/
/*setting a width and adding overflow:hidden will clear the floats we're going to apply to figure*/
-
width:100%;
+
 
overflow:hidden;
overflow:hidden;
 +
float: left;
}
}
/***Position the figures containing the images and captions***/
/***Position the figures containing the images and captions***/
Line 43: Line 44:
float:left; /*places the images in a horizontal line*/
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*/
position:relative; /*allows precise positioning of the tape in step 5- see support section below for more info*/
-
width:800px; /*width of the images*/
+
width:500px; /*width of the images*/
margin:10px 20px; /*space between the images*/
margin:10px 20px; /*space between the images*/
}
}
Line 50: Line 51:
float:left;
float:left;
position:relative;
position:relative;
-
width:800px;
+
width:500px;
margin:10px 20px;
margin:10px 20px;
padding: 6px 8px 10px 8px;
padding: 6px 8px 10px 8px;
Line 69: Line 70:
-webkit-backface-visibility:hidden; /*prevent rotated text being jagged in Chrome and Safari*/
-webkit-backface-visibility:hidden; /*prevent rotated text being jagged in Chrome and Safari*/
}
}
-
#polaroid figure:nth-child(even) {
+
 
 +
#polaroid2 figure {
-webkit-transform:rotate(2deg);
-webkit-transform:rotate(2deg);
-moz-transform: rotate(2deg);
-moz-transform: rotate(2deg);
Line 111: Line 113:
/*Finally position the right strip*/
/*Finally position the right strip*/
figure::after {
figure::after {
-
left: 768px; /*distance from the left edge of the box*/
+
left: 458px; /*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 */
 +
 
 +
#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***/
 +
#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:500px; /*width of the images*/
 +
margin:10px 20px; /*space between the images*/
 +
}
 +
 
 +
#polaroid2 figure{
 +
float:left;
 +
position:relative;
 +
width:500px;
 +
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*/
 +
}
 +
 
 +
#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: 458px; /*distance from the left edge of the box*/
top: -10px; /*distance from the top of the box*/
top: -10px; /*distance from the top of the box*/
width: 70px; /*length of the strip of tape*/
width: 70px; /*length of the strip of tape*/

Revision as of 22:44, 16 October 2014

/* --- 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:500px; /*width of the images*/ margin:10px 20px; /*space between the images*/ }

  1. polaroid figure{

float:left; position:relative; width:500px; 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: 458px; /*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:500px; /*width of the images*/ margin:10px 20px; /*space between the images*/ }

  1. polaroid2 figure{

float:left; position:relative; width:500px; 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: 458px; /*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); }