Skip to content

Instantly share code, notes, and snippets.

@xliudaxia
Created July 15, 2022 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xliudaxia/3f9fd74fc2e14f68e477181a03007f93 to your computer and use it in GitHub Desktop.
Save xliudaxia/3f9fd74fc2e14f68e477181a03007f93 to your computer and use it in GitHub Desktop.
Collapse Componet style
.wrapper {
display: flex;
justify-content: center;
width: 100%;
height: 100vh;
background-color: rgb(228, 239, 239);
padding-top: 40vh;
}
.pannel {
width: 400px;
text-align: left;
}
.heading {
background-color: #bfa;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
color: #000;
font-size: 20px;
line-height: 20px;
border: 1px solid rgb(212, 240, 205);
padding: 10px 20px;
display: flex;
align-items: center;
justify-content: space-between;
cursor: pointer;
}
.content {
font-size: 20px;
background: #fff;
border: 1px solid #fff;
border-top: none;
padding: 0 20px;
color: #000000;
overflow: hidden;
}
.contentInner {
padding: 20px 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment