div+css实现简约清爽时间日期卡片效果代码

代码语言:html

所属分类:布局界面

代码描述:div+css实现简约清爽时间日期卡片效果代码

代码标签: div css 简约 清爽 时间 日期 卡片

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/reset.min.css">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel='stylesheet' href='//fonts.googleapis.com/css?family=Roboto:400,700|Roboto+Condensed:100,400|Roboto+Slab:100,400'>
  
<style>
html,
body {
  height: 100%;
}
body {
  background: radial-gradient(circle, #8dcded, #0a2c3e);
  font-family: Roboto, sans-serif;
  line-height: 1.5;
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
.cf:before,
.cf:after {
  content: " ";
  display: table;
}
.cf:after {
  clear: both;
}
.cf {
  *zoom: 1;
}
.outer-square {
  position: relative;
  background: #1E8BC3;
  width: 300px;
  overflow: hidden;
  border: 5px solid #fff;
  margin: 30px auto;
}
.outer-square:before {
  content: "";
  display: block;
  padding-top: 100%;
}
.time * {
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  font-family: "Roboto Slab", sans-serif;
}
#do-time {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 1em;
}
.time h2 {
  font-size: 4em;
  font-weight: 400;
  line-height: 1;
  margin-top: 0.25em;
}
.time h2 span {
  font-weight: 100;
}
.time h3 {
  font-size: 1.5em;
  font-weight: 100;
  line-height: 1;
  margin-top: 2em;
}
.time.........完整代码请登录后点击上方下载按钮下载查看

网友评论0