html5卡片消息,HTML5 交互式个人信息简介卡片

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;

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值