From 1a63aaca983d7dad62170715ef62cf0745319f99 Mon Sep 17 00:00:00 2001 From: Janne Koschinski <janne@kuschku.de> Date: Sun, 18 Mar 2018 01:55:26 +0100 Subject: [PATCH] Minor UI improvements --- assets/sass/style.sass | 9 +++++++++ templates/image_detail.html | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/assets/sass/style.sass b/assets/sass/style.sass index 91085f6..3be4899 100644 --- a/assets/sass/style.sass +++ b/assets/sass/style.sass @@ -151,6 +151,10 @@ form.upload font-size: 14pt font-weight: normal color: #eee + background: none + border: none + width: 100% + box-sizing: border-box &:not(input):not(textarea):empty display: none & + .image @@ -168,5 +172,10 @@ form.upload font-size: 11pt font-weight: normal color: #eee + background: none + border: none + width: 100% + box-sizing: border-box + font-family: 'Lato', sans-serif &:not(input):not(textarea):empty display: none \ No newline at end of file diff --git a/templates/image_detail.html b/templates/image_detail.html index 00c5b86..9a0a756 100644 --- a/templates/image_detail.html +++ b/templates/image_detail.html @@ -3,7 +3,7 @@ <form class="detail" method="post"> <input type="hidden" name="action" value="update"> {{if .IsMine}} - <input name="title" class="title" value="{{.Image.Title}}"> + <input name="title" class="title" value="{{.Image.Title}}" placeholder="Title"> {{else}} <h2 class="title">{{.Image.Title}}</h2> {{end}} @@ -11,7 +11,7 @@ <img src="/{{.Image.Id}}"> </div> {{if .IsMine}} - <textarea name="description" class="description">{{.Image.Description}}</textarea> + <textarea name="description" class="description" placeholder="Description">{{.Image.Description}}</textarea> {{else}} <div class="description">{{.Image.Description}}</div> {{end}} -- GitLab