div+css实现炫酷黑色模拟天气预报手机app u效果代码

代码语言:html

所属分类:布局界面

代码描述:div+css实现炫酷黑色模拟天气预报手机app u效果代码

代码标签: div css 炫酷 黑色 模拟 天气 预报 手机 app ui

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

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

<head>

  <meta charset="UTF-8">

  
  
<style>
::selection {background: rgba(0,0,0,.1);}
::-moz-selection {background: rgba(0,0,0,.1);}
* {
  margin:0;
  padding:0;
  font-family:"Helvetica Neue", "Helvetica", "Arial", sans-serif;
}
html {
  width:100%;
  height:100%;
  /* this is the checkered background */
  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA9QTFRFKioqKysrLCwsLS0tLi4uui0UJgAAAb1JREFUGBkFwQEBwCAIBEA0AU8CARPwJBj2z7Q7GX5VCrhdZvXCMhG+fmnuruyZhmqokDUPB1hzSW47MCGTrQ4Bk1Uua7skOYwNO11MwtaGMCsHCJycyj5wHOn32FshuzPzwVRMOmeeBVyLnM8UUKmeGMhR50tO7L1cqqrT9jJldRIIVVkRcjiXV+GwZrDEl8v5PvJuW36KNRQs2GKxCgtQkhzxcDdWPQJr6WXlEzgcfYdtAM7wmxRowIKPhG9b+WU+Ed1L2T3E2jBeBkWwTTrrtquYzOWkROwF1kc6XCJ6+gkciOGb8LWh8zFbgnwtUOCbngfZvuXeZB0/Zpm8NINDXnTcE8tWdN/whXXk+0juBUPX/TIQDmGRjC0hbHJUAAhfc7C2rySHC6KQqvpmh+nK291hcMhkNs1FV/KS2AaXqe89iAf6xb2+4EfuMFPNDcxOAjtEFpaAr4MKHO95DFE3ePbXn4sBzJmUdY6u4qu7oADnkXJUXb6aqL0U1kOmQN2tv0hGrFg1NykAsGeSvcywL3tGVGGIN3U1BCf7qxGF4/BjEfA4N3KubMBXMZOuOxBzvxR1bMviEAogo8kfp0Fqm+0AiWQAAAAASUVORK5CYII=);
}
.wrapper {
  width:640px;
  height:1136px;
  background:#2d3034;
  background:linear-gradient(
      #2d3034 0%,
      #212527 100%);
  
  position:absolute;
  left:50%;
  margin:15px -320px;
  padding-top:50px;
  box-shadow:0 0 25px #000;
}

.clock {
  width:550px;
  height:295px;
  background:#191b1d;
  background:linear-gradient(
      #191b1d 0%,
      #212527 100%);
  
  position:relative;
  margin:0 auto;
  
  border-radius:15px;
  box-shadow:0 1px 2px rgba(255,255,255,.1);
}
.flipper {
  width:250px;
  height:250px;
  background:#212527;
  background:linear-gradient(
      #1b1d1f 0%,
      #242629 50%,
      #212527 100%);
  
  position:absolute;
  left:15px;
  top:15px;
  
  font-size:192px;
  color:white;
  text-align:center;
  line-height:240px;
  
  border-radius:5px;
  box-shadow:inset 0 1px rgba(255,255,255,.1), /* Top shine */
    0 6px 5px -5px rgba(0,0,0,.5), /* Shadow 1 */
    0 7px 0  -2px rgba(30,30,30,1), /* Flip 1 */
    0 11px 5px -5px rgba(0,0,0,.5), /* Shadow 2 */
    0 13px 0 -4px rgba(30,30,30,.7), /* Flip 2 */
    0 16px 5px -5px rgba(0,0,0,.5), /* Shadow 3 */
    0 20px 0 -8px rgba(30,30,30,.5), /* Flip 3 */
    0 15px 0 5px #000, /* Black border */
    0 0 0 5px #000; /* Black border */
}
.flipper:nth-child(2) {
  right:15px;
  left:auto;
  font-size:128px;
}
.flipper:before, .flipper:after {
  content:"";
  width:5px;
  height:40px;
  background:rgb(30,30,30);
  
  position:absolute;
  top:50%;
  left:0;
  margin-top:-20px;
  
  box-shadow:inset 0 -1px rgba(60,60,60,.4), /* Ridge 1 */
    inset 0 -3px rgb(25,25,25), /* Gradient 1 */
    inset 0 -4px rgba(60,60,60,.5), /* Ridge 2 */
    inset 0 -6px rgb(30,30,30),
    inset 0 -7px rgba(60,60,60,.6), /* Ridge 3 */
    inset 0 -9px rgb(35,35,35),
    inset 0 -10px rgba(60,60,60,.7), /* Ridge 4 */
    inset 0 -12px rgb(40,40,40),
    inset 0 -13px rgba(60,60,60,.8), /* Ridge 5 */
    inset 0 -15px rgb(45,45,45),
    inset 0 -16px rgba(60,60,60,.9), /* Ridge 6 */
    inset 0 -18px rgb(50,50,50),
    inset 0 -19px rgba(60,60,60,1), /* Ridge 7 */
    inset 0 -21px rgb(50,50,50),
    inset 0 -22px rgba(60,60,60,1), /* Ridge 8 */
    inset 0 -24px rgb(50,50,50),
    inset 0 -25px rgba(60,60,60,.9), /* Ridge 9 */
    inset 0 -27px rgb(45,45,45),
    inset 0 -28px rgba(60,60,60,.8), /* Ridge 10 */
    inset 0 -30px rgb(40,40,40),
    inset 0 -31px rgba(60,60,60,.7), /* Ridge 11 */
    inset 0 -33px rgb(35,35,35),
    inset 0 -34px rgba(60,60,60,.6), /* Ridge 12 */
    inset 0 -36px rgb(30,30,30),
    inset 0 -37px rgba(60,60,60,.5), /* Ridge 13 */
    inset 0 -39px rgb(25,25,25),
    0 0 0 2px #000;
  z-index:1;
}
.flipper:after { right:0;left:auto; }

.flipper span:before {
  content:"";
  width:236px;
  height:5px;
  position:absolute;
  left:7px;
  top:50%;
  margin-top:-3px;
  background:#000;
  
  box-shadow:0 0 0 1px #3b3e41;
}



.toggles {
  width:484px;
  height:180px;

  margin:64px auto 32px;
}
.toggle {
  width:80px;
  height:80px;
  background:#212325;
  
  display:inline-block;
  position:relative;
  margin:13px 25px;
  
  font-size:64px;
  color:#787b7e;
  text-align:center;
  
  border-radius:50%;
  box-shadow:0 -5px 5px rgba(255,255,255,.15), /* Highlight */
    0 0 0 5px #1c1e1f, /* Inner shadow */
    0 0 0 8px #000, /* Hole */
    0 20px 20px 5px rgba(0,0,0,.5), /* Shadow */
    0 5px 5px 8px rgba(40,45,47,1), /* Border highlight */
    0 0 0 13px #1a1c1e, /* Border */
    0 1px 1px 12px rgba(255,255,255,.5); /* Sharp highlight */
}
.toggle:first-child { margin-left:0; }
.toggle:last-child { margin-right:0; }
.toggle.on {
  box-shadow:0 -5px 20px rgba(255,255,255,.1), /* Highlight */
    0 0 0 5px #1c1e1f, /* Inner shadow */
    0 0 0 8px #000, /* Hole */
    0 5px 5px 8px rgba(40,45,47,1), /* Border highlight */
    0 0 0 13px #1a1c1e, /* Border */
    0 1px 1px 12px rgba(255,255,255,.5); /* Sharp highlight */
}
.toggle:after {
  content:"";
  height:10px;
  width:10px;
  background:#878787;
  
  position:absolute;
  left:50%;
  top:50%;
  margin:-5px;
  
  border-radius:50%;
  box-shadow:0 0 0 1px #27292b, /* Border */
    0 1px 1px rgba(255,255,255,.5), /* Highlight */
    0 23px 45px #fff, /* Button highlight */
    14px 18px 45px #fff, /* Button highlight */
    -14px 18px 45px #fff, /* Button highlight */
    0 23px 30px rgba(255,255,255,.5); /* Button highlight */
}
.toggle.on:after {
  background:#fce3af;
  
  box-shadow:0 1px 1px rgba(255,255,255,.5), /* Highlight */
    0 0 1px 1px #bb6119, /* Border */
    0 0 15px #ffc000, /* Glow */
    0 23px 45px #ffe6d2, /* Button highlight */
    14px 18px 45px #ffe6d2, /* Button highlight */
    -14px 18px 45px #ffe6d2; /* Button highlight */
}
.toggle span {
  display:block;
  margin-top:-92px;
}



.graph {
  width:540px;
  height:390px;
  background:#181818;
  
  position:relative;
  margin:0 auto;
  
  color:#e19646;
  text-shadow:0 0 10px rgba(225,150,70,.5);
  font-size:32px;
  
  border-radius:7px;
  box-shadow:
    inset 0 1px 2px 1px rgba(255,255,255,.1), /* Shine */
    inset 0 -4px 2px -3px rgba(255,255,255,.1), /* Bot. shine */
    0 -1px 6px 4px #1b1d1f, /* Blurred border */
    2px 2px 0 5px #1b1d1f, /* Border right */
    -2px 2px 0 5px #1b1d1f, /* Border left */
    0 0 0 7px #141516, /* Border shadow */
    0 1px 0 7px rgba(255,255,255,.1);
  overflow:hidden;
}
.graph:after {
  content:"";
  width:400px;
  height:600.........完整代码请登录后点击上方下载按钮下载查看

网友评论0