css+div实现待办事项ui布局设计代码
代码语言:html
所属分类:布局界面
代码描述:css+div实现待办事项ui布局设计代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link rel='stylesheet' href='https://fonts.googleapis.com/icon?family=Material+Icons'>
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/reset.min.css">
<style>
@charset "UTF-8";
:root {
--primary-color: rgba(0,139,125,1);
}
*, *:before, *:after {
box-sizing: border-box;
outline: none;
}
html {
font-family: "Source Sans Pro", sans-serif;
font-size: 16px;
font-smooth: auto;
font-weight: 300;
line-height: 1.5;
color: #444;
}
button {
cursor: pointer;
}
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
background: var(--primary-color);
transition: background 0.5s ease;
}
.title {
margin: 3.125rem 0 1.25rem;
color: rgba(245, 245, 245, 0.5);
font-size: 1.25rem;
font-weight: bold;
text-transform: uppercase;
}
.theme {
position: fixed;
bottom: 2.5rem;
left: 2.5rem;
margin: 0;
padding: 0.625rem 1.25rem;
border: 0;
font-weight: bold;
text-transform: uppercase;
box-shadow: 0.1875rem 0.1875rem 0 rgba(245, 245, 245, 0.4);
transition: 0.25s;
cursor: pointer;
}
.theme:hover {
box-shadow: 0rem 0rem 0 rgba(245, 245, 245, 0.4);
}
.menu {
position: relative;
display: flex;
align-items: center;
justify-content: flex-start;
width: 31.25rem;
height: 3.125rem;
background-color: white;
border-radius: 0.625rem;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
overflow: hidden;
z-index: 11;
}
.menu .menu-button {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
width: 4.6875rem;
height: 3.125rem;
background-color: white;
border: 0;
border-radius: 0.625rem 0 0 0.625rem;
box-shadow: 0.25rem 0 1.25rem rgba(34, 34, 34, 0.2.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0