Add dark-mode support (#24)

* add dark-mode support

* make improvements as suggested by riggraz

* fix some dark theme styles

Co-authored-by: Riccardo Graziosi <riccardo.graziosi97@gmail.com>
This commit is contained in:
Ruben Waterman
2020-07-17 17:51:34 +01:00
committed by GitHub
parent 59d1c4ba7d
commit 08de979b45
16 changed files with 198 additions and 8 deletions

View File

@@ -156,7 +156,7 @@ class NewPost extends React.Component<Props, State> {
{ showForm ? 'Cancel' : 'Submit feedback' }
</Button>
:
<a href="/users/sign_in" className="btn btn-dark">
<a href="/users/sign_in" className="btn">
Log in / Sign up
</a>
}

View File

@@ -68,10 +68,11 @@ const Comment = ({
{ 'Post update: ' + (isPostUpdate ? 'yes' : 'no') }
</a>
<Separator />
<a href={`/admin/comments/${id}/edit`} data-turbolinks="false">Edit</a>
<a href={`/admin/comments/${id}/edit`} className="commentLink" data-turbolinks="false">Edit</a>
<Separator />
<a
href={`/admin/comments/${id}`}
className="commentLink"
data-method="delete"
data-confirm="Are you sure?"
data-turbolinks="false">Delete</a>