react实现折叠便签记事本待办事项代码

代码语言:html

所属分类:其他

代码描述:react实现折叠便签记事本待办事项代码

代码标签: react 折叠 便签 记事本 待办 事项

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

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

<head>

  <meta charset="UTF-8">

  
  
  
  
<style>
@import 'https://fonts.googleapis.com/css?family=Indie+Flower';
@media screen and (min-width: 1px) {
  html {
    font-size: 14px;
  }
}
@media screen and (min-width: 768px) {
  html {
    font-size: 16px;
  }
}
body {
  position: absolute;
  top: 0;
  margin: 0;
  padding-top: 1em;
  color: #1e1e1e;
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
}

h1, h2, p, a {
  margin: 0;
  line-height: 1.48;
}

h1 {
  font-size: 4rem;
  font-family: "Indie Flower";
  color: #e6e6e6;
}

h2 {
  font-size: 1.8rem;
}

p, a, button, input {
  font-size: 1rem;
}

p {
  margin-top: 1em;
}

a {
  text-decoration: none;
  color: #f2590d;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 100vw;
  height: 80vh;
}

@media screen and (min-width: 1px) {
  .container {
    padding: 0;
  }
}
@media screen and (min-width: 768px) {
  .container {
    padding-left: 5vw;
    padding-right: 5vw;
  }
}
@media screen and (min-width: 1366px) {
  .container {
    padding-left: 20vw;
    padding-right: 20vw;
  }
}
button {
  border: none;
  cursor: pointer;
  padding: 1em;
  transition: background-color 0.2s;
}

button:hover {
  color: #f2590d;
}

input {
  background-color: transparent;
  border: none;
  border-bottom: 3px solid #4d4d4d;
  padding: 0.5em 0.5em 0;
  margin-left: 0.5em;
  margin-right: 2em;
}

form p {
  padding: 1em;
  margin: 0;
}

footer {
  color: #e6e6e6;
  text-align: center;
  margin-bottom: 2em;
  font-family: "Indie Flower";
  font-size: 1.2em;
}

footer a {
  font-size: 1.2em;
}

.recipe-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

[role=tablist] {
  padding: 2em;
  margin-bottom: 1em;
  width: 30vw;
  min-width: 40em;
  font-family: "Indie Flower";
  font-size: 1.2em;
}

.recipes {
  perspective: 800px;
}

.recipe {
  background-color: #cccccc;
  overflow: hidden;
  transition: transform 0.5s;
}

.recipe:nth-child(2n) {
  background-color: #bfbfbf;
}

.recipe.is-new {
  transform: rotateX.........完整代码请登录后点击上方下载按钮下载查看

网友评论0