Team:Tsinghua-A/css/buttonhome.css
From 2013.igem.org
(Created page with " .ch-grid { margin: 20px 0 0 0; padding: 0; list-style: none; display: block; text-align: center; width: 100%; } .ch-grid:after, .ch-item:before { c...") |
|||
Line 1: | Line 1: | ||
- | |||
.ch-grid { | .ch-grid { | ||
margin: 20px 0 0 0; | margin: 20px 0 0 0; | ||
Line 40: | Line 39: | ||
.ch-img-1 { | .ch-img-1 { | ||
- | background-image: url(https://static.igem.org/mediawiki/2013/ | + | background-image: url(https://static.igem.org/mediawiki/2013/d/d4/00001.jpg); |
} | } | ||
Revision as of 07:05, 27 September 2013
.ch-grid {
margin: 20px 0 0 0; padding: 0; list-style: none; display: block; text-align: center; width: 100%;
}
.ch-grid:after, .ch-item:before {
content: ; display: table;
}
.ch-grid:after {
clear: both;
}
.ch-grid li {
width: 220px; height: 220px; display: inline-block; margin: 20px;
}
.ch-item { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; position: relative; cursor: default; box-shadow: inset 0 0 0 16px rgba(255,255,255,0.6), 0 1px 2px rgba(0,0,0,0.1); transition: all 0.4s ease-in-out;
}
.ch-img-1 {
background-image: url();
}
.ch-img-2 {
background-image: url();
}
.ch-img-3 {
background-image: url();
}
.ch-img-4 {
background-image: url();
}
.ch-img-5 {
background-image: url();
}
.ch-img-6 {
background-image: url();
}
.ch-img-7 {
background-image: url();
}
.ch-img-8 {
background-image: url();
} .ch-info {
position: absolute; background: rgba(63,147,147, 0.8); width: inherit; height: inherit; border-radius: 50%; overflow: hidden; opacity: 0; transition: all 0.4s ease-in-out; transform: scale(0);
}
.ch-info h3 {
color: #fff; text-transform: uppercase; letter-spacing: 2px; font-size: 22px; margin: 0 30px; padding: 45px 0 0 0; height: 140px; font-family: 'Open Sans', Arial, sans-serif; text-shadow: 0 0 1px #fff, 0 1px 2px rgba(0,0,0,0.3);
}
.ch-info p {
color: #fff; padding: 10px 5px; font-style: italic; margin: 0 30px; font-size: 12px; border-top: 1px solid rgba(255,255,255,0.5); opacity: 0; transition: all 1s ease-in-out 0.4s;
}
.ch-info p a {
display: block; color: rgba(255,255,255,0.7); font-style: normal; font-weight: 700; text-transform: uppercase; font-size: 9px; letter-spacing: 1px; padding-top: 4px; font-family: 'Open Sans', Arial, sans-serif;
}
.ch-info p a:hover {
color: rgba(255,242,34, 0.8);
}
.ch-item:hover {
box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 1px 2px rgba(0,0,0,0.1);
}
.ch-item:hover .ch-info {
transform: scale(1); opacity: 1;
}
.ch-item:hover .ch-info p {
opacity: 1;
}
.wrapper-dropdown-2 {
/* Size and position */ position: relative; /* Enable absolute positioning for children and pseudo elements */ width: 200px; margin: 0 auto; padding: 10px 15px; /* Styles */ background: #fff; border-left: 5px solid grey; cursor: pointer; outline: none;
}
.wrapper-dropdown-2:after {
content: ""; width: 0; height: 0; position: absolute; right: 16px; top: 50%; margin-top: -3px; border-width: 6px 6px 0 6px; border-style: solid; border-color: grey transparent;
}
.wrapper-dropdown-2 .dropdown {
/* Size & position */ position: absolute; top: 100%; left: -5px; right: 0px; /* Styles */ background: white; transition: all 0.3s ease-out; list-style: none; /* Hiding */ opacity: 0; pointer-events: none;
}
.wrapper-dropdown-2 .dropdown li a {
display: block; text-decoration: none; color: #333; border-left: 5px solid; padding: 10px; transition: all 0.3s ease-out;
}
.wrapper-dropdown-2 .dropdown li:nth-child(1) a {
border-left-color: #00ACED;
}
.wrapper-dropdown-2 .dropdown li:nth-child(2) a {
border-left-color: #4183C4;
}
.wrapper-dropdown-2 .dropdown li:nth-child(3) a {
border-left-color: #3B5998;
}
.wrapper-dropdown-2 .dropdown li i {
margin-right: 5px; color: inherit; vertical-align: middle;
}
/* Hover state */
.wrapper-dropdown-2 .dropdown li:hover a {
color: grey;
}
.wrapper-dropdown-2.active:after {
border-width: 0 6px 6px 6px;
}
.wrapper-dropdown-2.active .dropdown {
opacity: 1; pointer-events: auto;
}