CSS
语言:
CSSSCSS
确定
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300);
body {
background: #34495e;
}
p {
font-family: Open Sans;
font-weight: 200;
}
.title h1 {
font-family: Open Sans;
font-weight: 200;
color: #64b1d5;
}
.card {
margin: 0 auto;
width: 25em;
}
.top {
background: #f0f4f7;
padding: 0.75em 2em 0em 2em;
border-top-left-radius: 0.6em;
border-top-right-radius: 0.6em;
}
.top:after {
content: '';
position: relative;
height: 0;
width: 0;
border-left: 1em solid transparent;
border-right: 1em solid transparent;
border-top: 1em solid #f0f4f7;
top: 1em;
left: 1em;
z-index: 5;
}
.top .top-text {
margin-top: 0.5em;
font-family: Open Sans;
font-weight: 200;
}
.top .top-text h3 {
font-family: Open Sans;
font-weight: 200;
}
.top .toggle {
color: #4d9cc9;
position: relative;
top: -0.5em;
}
.top .toggle:hover,
.top .toggle:focus {
text-decoration: underline;
}
.top .pic {
position: relative;
top: 0.2em;
height: 5em;
width: 5em;
border-radius: 50%;
}
.middle {
background: #fff;
padding: 1em 1em 0.5em 1em;
display: none;
}
.middle p {
margin-top: 1em;
padding: 0 1em 0 2em;
}
.final {
background: #4d9cc9;
padding: 1em;
border-bottom-left-radius: 0.6em;
border-bottom-right-radius: 0.6em;
-webkit-transition: all 500ms ease-in-out;
transition: all 500ms ease-in-out;
}
.final:hover,
.final:focus {
background: #3986ad;
}
.final .reply {
color: #fff;
display: none;
}
.final .text {
color: #fff;
margin-left: 0.5em;
font-family: Open Sans;
font-weight: 200;
}
.close {
position: relative;
top: 1.75em;
left: 0.75em;
color: #4d9cc9;
}