Skip to content

Instantly share code, notes, and snippets.

@cm-sl
Last active September 23, 2022 05:58
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 cm-sl/29f2adf01ec0e522479a55fe59fc3fad to your computer and use it in GitHub Desktop.
Save cm-sl/29f2adf01ec0e522479a55fe59fc3fad to your computer and use it in GitHub Desktop.
<style>
.quick-buy-wrapper {
list-style-type: none;
margin: 0;
padding: 0;
}
.list-view-item {
display: flex;
justify-content: space-between;
width: 100%;
align-items: center;
padding: 0.75em 0;
border-top: 1px solid #ddd;
transition: all 0.3s
}
.list-view-item:hover{
background: #f3f3f3
}
.list-view-name-image {
display: flex;
align-items: center
}
.list-view-image {
width: 70px;
min-width: 70px;
}
.list-view-image img {
display: block;
width: 100%;
height: auto;
}
.list-view-name {
text-align: left;
padding: 0 1em;
}
.list-view-name h3 {
margin: 0;
text-transform: none;
font-weight: normal;
font-size: 17px
}
.list-view-purchase {
width: 70%
}
@media only screen and (max-width: 750px) {
.list-view-item {
align-items: flex-start;
}
.list-view-name-image {
display: block;
width: 30%;
padding: 0 1em 0 0;
}
.list-view-image {
width: 100%;
}
.list-view-image img {
width: 100%;
height: auto;
}
.list-view-name {
text-align: left;
padding: 1em 0 0;
}
.list-view-name h3 {
font-size: 16px
}
}
@media only screen and (max-width: 450px) {
.list-view-item {
align-items: flex-start;
padding: 0.75em 0 1.5em 0;
}
.list-view-name-image {
display: block;
width: 30%;
padding: 1em 1em 0 0;
}
.list-view-name {
text-align: left;
padding: 1em 0 0;
}
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment