Skip to content

Instantly share code, notes, and snippets.

@Chuloo
Created March 29, 2022 23:42
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 Chuloo/0edc8d42d8c69221b6cac39eafa93204 to your computer and use it in GitHub Desktop.
Save Chuloo/0edc8d42d8c69221b6cac39eafa93204 to your computer and use it in GitHub Desktop.
Single comment box
<template>
<div class="comment">
<div class="comment__flex">
<p>I found this article helpful</p>
<div class="comment__flex-btn">
<button class="update">Update</button>
<button class="del">Delete</button>
</div>
</div>
</div>
</template>
<style>
.message {
margin-bottom: 2em;
}
.comment {
margin: 1em 0 2em;
border-bottom: 1px solid #ccc;
}
.comment__flex-btn {
margin: 1em 0;
}
button + button {
margin-left: 1em;
}
button {
padding: 0.75em 1em;
border: unset;
}
.del {
background: #f93943;
color: #000807;
}
.update {
background: #7eb2dd;
color: #000807;
}
textarea {
width: 100%;
}
.open {
margin: 1em 0;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment