aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMark Powers <markppowers0@gmail.com>2019-03-18 21:45:03 -0400
committerMark Powers <markppowers0@gmail.com>2019-03-18 21:45:03 -0400
commit3d682ea13ab9d83f453fa85ea88fc28163c6b259 (patch)
tree6242c313a38e08b52680f29c3807c4f9615fc5bf /src
parenteab2c0e7e62c8aef94686b543578049f664fcd3a (diff)
Fix form styles
Diffstat (limited to 'src')
-rw-r--r--src/css/styles.css38
-rw-r--r--src/html/admin.html4
-rw-r--r--src/html/login.html2
3 files changed, 41 insertions, 3 deletions
diff --git a/src/css/styles.css b/src/css/styles.css
index e3694a8..f9e86ef 100644
--- a/src/css/styles.css
+++ b/src/css/styles.css
@@ -100,6 +100,15 @@ p {
.card img {
width: 400px;
}
+ form input[type=text], input[type=password] {
+ max-width: 600px;
+ }
+ form textarea {
+ max-width: 600px;
+ }
+ form input[type=submit] {
+ margin-left: 0px;
+ }
}
.titlebar {
@@ -158,4 +167,33 @@ p {
.url-table, .ip-table {
width: 30%;
+}
+
+form {
+ width: 85%;
+}
+
+input[type=text], input[type=password] {
+ height:1.5em;
+ width: 100%;
+ display: block;
+ margin-top: 5px;
+}
+
+input[type=submit] {
+ height:2em;
+ width: 50%;
+ margin-top: 5px;
+ margin-left: 25%;
+}
+
+td {
+ padding-right: 10px;
+}
+
+textarea {
+ border-radius: 4px;
+ border: 2px solid var(--background-accent);
+ width: 100%;
+ height: 10em;
} \ No newline at end of file
diff --git a/src/html/admin.html b/src/html/admin.html
index b2b1f64..1087b51 100644
--- a/src/html/admin.html
+++ b/src/html/admin.html
@@ -33,7 +33,7 @@
<div class="form">
<form action="/posts" method="post" enctype="multipart/form-data">
<div>
- <textarea rows="4" cols="50" name="description"></textarea>
+ <textarea name="description"></textarea>
</div>
<div>
<span>Tags: <input type="text" name="tags"/></span>
@@ -84,7 +84,7 @@
<table class="table log-table" v-if="showLogData">
<tr><th>Date</th><th>Session</th><th>Method</th><th>Path</th></tr>
<tr v-for="item in stats.log">
- <td>{{item.createdAt}}</td>
+ <td>{{item.createdAt.substring(0,19)}}</td>
<td>{{item.session.substring(0,10)}}...</td>
<td>{{item.method}}</td>
<td>{{item.url.substring(0, Math.min(30, item.url.length))}}</td>
diff --git a/src/html/login.html b/src/html/login.html
index 58ca2ae..2afe7d3 100644
--- a/src/html/login.html
+++ b/src/html/login.html
@@ -15,7 +15,7 @@
<form action="/login" method="post" enctype="application/x-www-form-urlencoded">
<input type="text" placeholder="Enter Username" name="username" required>
<input type="password" placeholder="Enter Password" name="password" required>
- <input type="submit">
+ <input type="submit" value="Log in">
</form>
</div>
</div>