vue菜单添加选择删除效果代码
代码语言:html
所属分类:其他
代码描述:vue菜单添加选择删除效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,700,800"); * { padding: 0; margin: 0; box-sizing: border-box; } body { background-color: #2ACA71; font-family: "Open Sans", sans-serif; padding-top: 10px; } .container { background-color: #D9D9D9; margin: 0 auto; width: 340px; box-shadow: 0 0 15px rgba(0, 0, 0, 0.3); } header { background-color: #2ACA71; color: #fff; display: flex; justify-content: center; padding: 25px 15px; border-bottom: 1px solid #ceb7c4; } header h1 { font-weight: 300; } .settings { display: flex; width: 100%; padding: 15px 15px; background-color: #fafafa; color: #6B6B6B; justify-content: space-between; align-items: center; border-bottom: 5px solid #BDBDBD; position: relative; } .settings .full-cart { bottom: -5px; left: 0; position: absolute; content: ""; height: 5px; background-color: #3D6464; transition: all 0.5s; } .settings .full-cart.fulled { background-color: #1d8b4e; height: 6px; } .settings .count-list { display: flex; align-items: center; border-right: 3px solid #6B6B6B; padding-right: 10px; } .settings .count-list svg { height: 20px; width: 20px; margin-right: 5px; } .settings .count-list span { font-size: 1em; } .settings .form-new-item { width: 60%; } .settings .form-new-item input { outline: none; border: none; width: 60%; font-size: 1em; color: #6B6B6B; background-color: #fafafa; } .settings .form-new-item button { background: none; border: none; outline: none; font-size: 1em; font-weight: 700; color: #1BC768; cursor: pointer; border-bottom: 2px solid #BDBDBD; } .content-list { padding: 20px 15px; } .content-list .item { background-color: #fafafa; border: 1px solid #BDBDBD; padding: 20px 15px; display: flex; justify-content: space-between; margin-bottom: 15px; transition: all 0.5s; } .content-list .item.done { background-color: #2ACA71; transition: all 0.5s; } .content-list .full-items { background-color: tomato; justify-content: center; border-width: 0; padding: 0; height: 0; opacity: 0; margin-bottom: 0; } .content-list .full-items.active { border-width: 1; margin-bottom: 15px; padding: 20px 15px; height: 100%; opacity: 1; } .content-list .full-items .item-text h3 { color: #fff; text-align: center; } .content-list .check-item { position: relative; } .content-list .check-item span { display: flex; align-items: center; justify-content: center; padding: 6px 7px; background-color: #2ACA71; color: #fff; } .content-list .check-item svg { height: 20px; width: 20px; } .content-list .check-item svg path { fill: #21a059; transition: all 0.75s; } .content-list .check-item input[type=checkbox] { width: 25px; height: 25px; background-color: #2ACA71; position: absolute; z-index: 1; top: 0; left: calc(50% - 10px); opacity: 0; cursor: pointer; } .content-list .check-item input[type=checkbox]:checked + span svg { transform: scale(1.2); transition: all 0.75s; } .content-list .check-item input[type=checkbox]:checked + span path { fill: #fafafa; transition: all 0.75s; } .content-list .item-text { width: 70%; } .content-list .item-text h3 { text-align: left; color: #5D5D5D; } .content-list .item-action { display: flex; justify-content: center; align-items: center; } .content-list .item-action button { background: none; border: none; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.5s; } .content-list .item-action button.active { opacity: 1; visibility: visible; transition: all 0.5s; } .content-list .item-action button:hover svg { transform: scale(1.2); transition: all 0.5s; } .content-list .item-action svg { transition: all 0.5s; height: 15px; width: 15px; } </style> </head> <body > <main.........完整代码请登录后点击上方下载按钮下载查看
网友评论0