html 列表页面设计,一款HTML5任务列表移动应用界面设计

CSS

语言:

CSSSCSS

确定

@import url('https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300i,700');

html,

body {

height: 100%;

margin: 0;

background-color: #F0EFEA;

font-family: 'Open Sans Condensed', sans-serif;

}

body {

display: flex;

justify-content: center;

align-items: center;

}

#app {

max-width: 300px;

width: calc(40% - 80px);

height: calc(80% - 80px);

background-color: #fff;

box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

padding: 40px;

}

#app header,

#day-field {

display: flex;

justify-content: space-between;

align-items: center;

}

#app header {

margin-top: -10px;

margin-bottom: 20px;

}

#month {

display: flex;

flex-flow: column wrap;

}

#month * {

margin: 0;

paggin: 0;

}

#day {

font-size: 3em;

font-weight: bold;

padding-right: 5px;

}

#week {

font-weight: bold;

}

#app section {

overflow: auto;

height: calc(100% - 80px);

}

#app section article {

padding: 2px;

display: flex;

flex-direction: row-reverse;

justify-content: space-between;

margin-bottom: 20px;

align-items: center;

}

input[type=checkbox] {

display: none;

}

label {

display: block;

border: 2px solid #E0E0E0;

width: 12px;

height: 12px;

border-radius: 100%;

cursor: pointer;

cursor: hand;

}

article span {

padding: 5px;

}

article span:focus {

outline: 1px solid #36E3AA;

}

input[type=checkbox]:checked + label {

border: 2px solid #36E3AA;

background-color: #36E3AA;

}

input[type=checkbox]:checked ~ span {

color: #e0e0e0;

text-decoration: line-through;

}

section footer {

display: flex;

justify-content: center;

}

section footer button {

font-weight: bold;

border: none;

background-color: #36E3AA;

padding: 5px;

font-size: 2em;

color: #fff;

border-radius: 100%;

width: 60px;

height: 60px;

display: flex;

justify-content: center;

align-items: center;

cursor: pointer;

cursor: hand;

margin-top: 14px;

outline: none;

user-select: none;

}

#credits {

position: fixed;

bottom: 0;

width: 100%;

}

#credits img {

border-radius: 100%;

width: 30px;

height: 30px;

margin-left: 10px;

}

#credits span {

display: block;

padding: 10px;

display: flex;

justify-content: flex-end;

align-items: center;

user-select: none;

}

#instructions {

position: fixed;

top: 0;

left: 0;

background-color: #36E3AA;

padding: 0 20px;

font-size: 0.9em;

user-select: none;

}

#instructions a {

color: #000;

}

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值