css实现台历备忘录天气等ui交互效果代码
代码语言:html
所属分类:布局界面
代码描述:css实现台历备忘录天气等ui交互效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css">
<style>
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,900|Dosis:300,400,600,700,800|Droid+Sans:400,700|Lato:300,400,700,900|PT+Sans:400,700|Ubuntu:300,400,500,700|Open+Sans:400,300,600,700|Roboto:400,300,500,700,900|Roboto+Condensed:400,300,700|Open+Sans+Condensed:300,700|Play:400,700|Maven+Pro:400,500,700,900&subset=latin,latin-ext);
* {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
html {
background-color: #1d1f20;
font-size: 16px;
font-family: "Open Sans";
font-weight: 300;
color: White;
text-rendering: optimizeLegibility !important;
-webkit-font-smoothing: antialiased !important;
}
body {
overflow: hidden;
}
.page {
display: none;
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
width: 800px;
height: 480px;
margin: auto auto;
background: Black;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
-moz-box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.8);
-webkit-box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.8);
box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.8);
-moz-user-select: -moz-none;
-ms-user-select: none;
-webkit-user-select: none;
user-select: none;
overflow: hidden;
}
.page .bg {
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
width: 800px;
height: 480px;
margin: auto auto;
background-image: url("//repo.bfw.wiki/bfwrepo/image/5d653d54ed035.png");
background-size: cover;
-webkit-filter: blur(0px);
-moz-filter: blur(0px);
-o-filter: blur(0px);
-ms-filter: blur(0px);
filter: blur(0px);
}
.page .overlay {
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
width: 800px;
height: 480px;
margin: auto auto;
background-color: rgba(0, 233, 233, 0.1);
}
.panel {
background-color: rgba(0, 0, 0, 0.4);
text-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}
.page-home .panel-time {
position: absolute;
top: 30px;
width: 380px;
-moz-border-radius: 0px 5px 5px 0px;
-webkit-border-radius: 0px;
border-radius: 0px 5px 5px 0px;
}
.page-home .panel-time .time {
font-size: 7.0rem;
line-height: 8.0rem;
text-align: center;
}
.page-home .panel-time .date {
background-color: rgba(0, 233, 233, 0.6);
font-size: 1.5rem;
line-height: 2.5rem;
text-align: center;
-moz-border-radius: 0px 0px 5px 0px;
-webkit-border-radius: 0px;
border-radius: 0px 0px 5px 0px;
}
.page-home .panel-weather {
position: absolute;
top: 30px;
width: 380px;
right: 0px;
text-align: center;
cursor: pointer;
-moz-border-radius: 5px 0px 0px 5px;
-webkit-border-radius: 5px;
border-radius: 5px 0px 0px 5px;
background-color: rgba(0, 0, 0, 0.3);
}
.page-home .panel-weather .location {
background-color: rgba(0, 233, 233, 0.6);
font-size: 1.1rem;
line-height: 1.5rem;
-moz-border-radius: 5px 0px 0px 0px;
-webkit-border-radius: 5px;
border-radius: 5px 0px 0px 0px;
}
.page-home .panel-weather .icon {
display: inline-block;
font-size: 3.0rem;
line-height: 4.0rem;
margin-right: 40px;
}
.page-home .panel-weather img {
width: 150px;
margin-right: 50px;
}
.page-home .panel-weather .temp {
display: inline-block;
vertical-align: top;
font-size: 5.0rem;
line-height: 6.5rem;
font-weight: 400;
}
.page-home .panel-weather .temp .degree {
font-size: 2rem;
line-height: 4rem;
vertical-align: top;
}
.page-home .panel-weather .text {
font-weight: 400;
font-size: 1.4rem;
line-height: 2.5rem;
}
.page-home .panel-calendar {
position: absolute;
top: 220px;
width: 380px;
height: 120px;
overflow: hidden;
cursor: pointer;
background-color: initial;
}
.page-home .panel-calendar ul {
padding: 0px 20px;
}
.page-home .panel-calendar ul li {
padding: 0;
margin: 8px 0px;
background-color: rgba(0, 0, 0, 0.5);
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
.page-home .panel-calendar ul li .time, .page-home .panel-calendar ul li .title {
display: inline-block;
font-size: 1.0rem;
line-height: 1.2rem;
padding: 2px 6px;
}
.page-home .panel-calendar ul li .time {
width: 120px;
text-align: center;
font-weight: 300;
background-color: rgba(0, 233, 233, 0.6);
-moz-border-radius: 4px 0 0 4px;
-webkit-border-radius: 4px;
border-radius: 4px 0 0 4px;
}
.page-home .panel-tasks {
position: absolute;
top: 210px;
right: 0px;
width: 300px;
height: 140px;
overflow: hidden;
cursor: pointer;
background-color: initial;
}
.page-home .panel-tasks ul {
padding-right: 30px;
}
.page-home .panel-tasks ul li {
padding: 0;
margin: 8px 0px;
background-color: rgba(0, 0, 0, 0.5);
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
.page-home .panel-tasks ul li .check, .page-home .panel-tasks ul li .title, .page-home .panel-tasks ul li .plus {
display: inline-block;
font-size: 1.0rem;
line-height: 20px;
vertical-align: middle;
}
.page-home .panel-tasks ul li .title {
padding: 2px 6px;
}
.page-home .panel-tasks ul li .check {
position: relative;
margin: 0px 0px 0px 2px;
width: 20px;
height: 20px;
border: 2px solid rgba(0, 233, 233, 0.6);
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
border-radius: 20px;
}
.page-home .panel-tasks ul li.checked .check:after {
content: '\f00c';
position: absolute;
font-family: FontAwesome;
font-size: 0.9rem;
top: -2px;
left: 1px;
}
.page-home .panel-tasks ul li .plus {
width: 20px;
height: 20px;
}
.page-home .panel-tasks ul li.other .title {
font-style: italic;
color: #cccccc;
font-size: 0.9rem;
}
.page-home .panel-functions {
position: absolute;
width: 100%;
bottom: 0px;
padding: 20px 0px;
display: -webkit-flex;
display: flex;
align-items: center;
justify-content: space-around;
}
.page-home .panel-functions .icon {
margin: 0px 20px;
font-size: 45px;
width: 87px;
height: 87px;
padding: 15px;
text-align: center;
cursor: pointer;
border: 6px solid rgba(0, 233, 233, 0.6);
-moz-border-radius: 87px;
-webkit-border-radius: 87px;
border-radius: 87px;
}
.page-home .panel-functions .icon .title {
font-size: 1.0rem;
text-align: center;
text-transform: uppercase;
display: none;
}
.page-weather .bg {
background-image: url("//repo.bfw.wiki/bfwrepo/image/5d653d54ed035.png");
}
.page-weather .panel-now {
position: absolute;
top: 10px;
left: 20px;
width: 400px;
height: 200px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
.page-weather .panel-now .mainInfo {
text-align: center;
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}
.page-weather .panel-now .mainInfo .icon {
display: block;
font-size: 4.0rem;
line-height: 6.0rem;
}
.page-weather .panel-now .mainInfo img {
display: block;
margin: auto;
height: 120px;
padding-right: 20px;
}
.page-weather .panel-now .mainInfo .temp {
display: block;
font-size: 3.0rem;
line-height: 4.0rem;
margin-bottom: 6px;
margin-top: -10px;
}
.page-weather .panel-now .mainInfo .temp .value {
font-weight: 600;
}
.page-weather .panel-now .mainInfo .temp .separator {
margin: 0 3px;
opacity: 0.4;
}
.page-weather .panel-now .mainInfo .temp .degree {
margin-left: 5px;
font-size: 1.5rem;
line-height: 2.5rem;
font-weight: 300;
vertical-align: top;
}
.page-weather .panel-now .row {
display: -webkit-flex;
display: flex;
align-items: center;
justify-content: space-around;
}
.page-weather .panel-now .row .info {
flex: 1;
text-align: center;
}
.page-weather .panel-now .row .info i {
margin-right: 10px;
color: #ff6f4d;
}
.page-weather .panel-now .row .info .value {
font-weight: 600;
}
.page-weather .panel-location {
position: absolute;
top: 10px;
right: 20px;
width: 200px;
height: 100px;
text-align: right;
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
background-color: initial;
}
.page-weather .panel-location .icon {
display: inline-block;
text-align: center;
font-size: 3.0rem;
line-height: 4.0rem;
}
.page-weather .panel-location .title {
display: inline-block;
text-align: center;
font-size: 1.0rem;
line-height: 1.2rem;
margin-right: 10px;
}
.page-weather .panel-location .title span {
display: block;
}
.page-weather .panel-today {
position: absolute;
top: 220px;
left: 20px;
width: 400px;
height: 100px;
background-color: rgba(0, 0, 0, 0.5);
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
display: -webkit-flex;
display: flex;
align-items: center;
justify-content: space-around;
justify-content: space-between;
}
.page-weather .panel-today .box {
flex: 1;
height: 100%;
border-right: 2px solid rgba(0, 0, 0, 0.3);
}
.page-weather .panel-today .box .title {
background-color: rgba(0, 0, 0, 0.2);
font-size: 0.9rem;
line-height: 1.3rem;
font-weight: 600;
text-align: center;
color: #ff6f4d;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}
.page-weather .panel-today .box .icon {
display: block;
font-size: 2.0rem;
line-height: 4.0rem;
font-weight: 400;
text-align: center;
text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
}
.page-weather .panel-today .box img {
display: block;
height: 50px;
margin-left: 20px;
}
.page-weather .panel-today .box .temp {
font-size: 1.1rem;
line-height: 2.0rem;
font-weight: 300;
text-align: center;
}
.page-weather .panel-today .box .temp .value {
font-weight: 600;
}
.page-weather .panel-today .box .temp .degree {
margin-left: 2px;
font-size: 0.7rem;
line-height: 1.8rem;
font-weight: 300;
vertical-align: top;
}
.page-weather .panel-forecast {
position: absolute;
bottom: 0;
width: 100%;
height: 150px;
background-color: rgba(0, 0, 0, 0.5);
display: -webkit-flex;
display: flex;
align-items: center;
justify-content: space-around;
justify-content: space-between;
}
.page-weather .panel-forecast .box {
flex: 1;
height: 100%;
border-right: 2px solid rgba(0, 0, 0, 0.3);
}
.page-weather .panel-forecast .box .title {
background-color: rgba(0, 0, 0, 0.2);
font-size: 1.5rem;
line-height: 2.0rem;
font-weight: 600;
text-align: center;
text-transform: uppercase;
color: #ff6f4d;
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}
.page-weather .panel-forecast ..........完整代码请登录后点击上方下载按钮下载查看
















网友评论0