Template:Team:HokkaidoU Japan/Team/style.css

From 2011.igem.org

(Difference between revisions)
Line 11: Line 11:
     min-height: 150px;
     min-height: 150px;
     margin: 10px 0;
     margin: 10px 0;
-
     padding: 10px;
+
     padding: 10px 30px;
     border: 1px double #e4e4e4;
     border: 1px double #e4e4e4;
     -webkit-border-radius: 4px;
     -webkit-border-radius: 4px;
Line 19: Line 19:
     color: #ababab;
     color: #ababab;
     overflow: hidden;
     overflow: hidden;
 +
}
 +
.hokkaidou-profile:nth-child(odd){
 +
    text-align: right;
}
}
.hokkaidou-profile:hover,
.hokkaidou-profile:hover,
Line 38: Line 41:
}
}
.hokkaidou-profile:nth-child(odd) h3:before {
.hokkaidou-profile:nth-child(odd) h3:before {
-
     left: 10px;
+
     left: 30px;
}
}
.hokkaidou-profile:nth-child(even) h3:before {
.hokkaidou-profile:nth-child(even) h3:before {
-
     right: 10px;
+
     right: 30px;
}
}
.hokkaidou-profile:nth-child(odd) h3,
.hokkaidou-profile:nth-child(odd) h3,
.hokkaidou-profile:nth-child(odd) p {
.hokkaidou-profile:nth-child(odd) p {
-
     margin-left: 170px;
+
     margin-left: 130px;
}
}
.hokkaidou-profile:nth-child(even) h3,
.hokkaidou-profile:nth-child(even) h3,
.hokkaidou-profile:nth-child(even) p {
.hokkaidou-profile:nth-child(even) p {
-
     margin-right: 170px;
+
     margin-right: 130px;
}
}

Revision as of 03:20, 6 October 2011