Created
March 29, 2022 23:42
-
-
Save Chuloo/0edc8d42d8c69221b6cac39eafa93204 to your computer and use it in GitHub Desktop.
Single comment box
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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