Team:UCLondon/Templates/bottom-contentv2

From 2012e.igem.org

(Difference between revisions)
Line 105: Line 105:
.triangle-isosceles {
.triangle-isosceles {
   position:relative;
   position:relative;
-
  padding:15px;
+
padding:15px;
-
  margin:1em 0 3em;
+
margin:1em 0 3em;
-
  color:#000;
+
border:5px solid #5a8f00;
-
  border:rgb(56, 90, 79) solid 3px;
+
color:#333;
-
 
+
background:#fff;
-
  /* css3 */
+
/* css3 */
-
  -moz-border-radius:10px;
+
-webkit-border-radius:10px;
-
  -webkit-border-radius:10px;
+
-moz-border-radius:10px;
-
  border-radius:10px;
+
border-radius:10px;
-
  background:-moz-linear-gradient(top, #f9d835, #f3961c);
+
-
  background:linear-gradient(top, #f9d835, #f3961c);
+
}
}
Line 121: Line 119:
.triangle-isosceles:before {
.triangle-isosceles:before {
   content:"";
   content:"";
-
  display:block; /* reduce the damage in FF3.0 */
+
position:absolute;
-
  position:absolute;
+
bottom:-20px; /* value = - border-top-width - border-bottom-width */
-
  bottom:-15px;
+
left:40px; /* controls horizontal position */
-
  left:50px;
+
    border-width:20px 20px 0;
-
  width:0;
+
border-style:solid;
-
  border-width:15px 15px 0;
+
    border-color:#5a8f00 transparent;
-
  border-style:solid;
+
    /* reduce the damage in FF3.0 */
-
  border-color: rgb(56, 90, 79) transparent;
+
    display:block;
 +
    width:0;
}
}
Line 134: Line 133:
.triangle-isosceles:after {
.triangle-isosceles:after {
   content:"";
   content:"";
-
  display:block; /* reduce the damage in FF3.0 */
+
position:absolute;
-
  position:absolute;
+
bottom:-13px; /* value = - border-top-width - border-bottom-width */
-
  bottom:-13px;
+
left:47px; /* value = (:before left) + (:before border-left) - (:after border-left) */
-
  left:50px;
+
border-width:13px 13px 0;
-
  width:0;
+
border-style:solid;
-
  border-width:10px 10px 0;
+
border-color:#fff transparent;
-
  border-style:solid;
+
    /* reduce the damage in FF3.0 */
-
  border-color: rgb(255, 255, 255) transparent;
+
    display:block;
 +
    width:0;
}
}

Revision as of 00:07, 19 September 2012