From 6723bee7897febd73fd154929d9fd26a68bb77a2 Mon Sep 17 00:00:00 2001 From: Jakob Date: Mon, 24 Feb 2020 21:10:54 +0100 Subject: [PATCH] added style for forms --- threadr/style.css | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/threadr/style.css b/threadr/style.css index bdd9cf2..5370b27 100644 --- a/threadr/style.css +++ b/threadr/style.css @@ -299,4 +299,45 @@ div.dropdown { .dropdown:hover:not(.active) { background-color: #8bd3dd; +} + +input[type=text], select { + width: 100%; + padding: 12px 20px; + margin: 8px 0; + display: inline-block; + border: 1px solid #ccc; + border-radius: 4px; + box-sizing: border-box; +} + +input[type=password], select { + width: 100%; + padding: 12px 20px; + margin: 8px 0; + display: inline-block; + border: 1px solid #ccc; + border-radius: 4px; + box-sizing: border-box; +} + +input[type=submit] { + width: 100%; + background-color: #4CAF50; + color: white; + padding: 14px 20px; + margin: 8px 0; + border: none; + border-radius: 4px; + cursor: pointer; +} + +input[type=submit]:hover { + background-color: #45a049; +} + +div.form { + border-radius: 5px; + background-color: #f2f2f2; + padding: 20px; } \ No newline at end of file