From 07ace53ba2423f1b7e62477549ba62a30e79ff47 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 29 Sep 2024 13:10:56 +0200 Subject: Added edit functionality Added a new edit functionality and page with styling. Other minor changes: - Added assets folder served under /static/ - Created a new template edit.html - grouped ideas.html and edit.html under t_idea - Changed router to use mux and organized routes - Added more checks on empty titles - Added javascript to t_idea/index.html for intuitive button functionality --- assets/main.css | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 assets/main.css (limited to 'assets/main.css') diff --git a/assets/main.css b/assets/main.css new file mode 100644 index 0000000..f6869bb --- /dev/null +++ b/assets/main.css @@ -0,0 +1,70 @@ +body { + margin-left: 1em; +} +.idea { + border: solid 2px black; + border-radius: 5px; + padding: 4px; + margin-bottom: 1em; + width: 50%; +} +.title { + margin-left: 1em; + margin-bottom: 0; + display: inline; +} +.rating { + display: inline; + margin-left: 1em; +} +.text { + margin-left: .5em; + margin-top: .5em; + font-family: monospace; + font-size: 1.25em; +} +.creation { + margin-bottom: .3em; +} +.author { + font-style: italic; +} +.date { + color: #bcbcbc; +} +.error { + color: red; +} +.idea form { + display: inline; +} +textarea[name="text"] { + border: solid 2px black; + border-radius: 5px; + margin-top: .3em; + margin-bottom: .3em; + resize: none; +} +h3 { + margin-bottom: 0; +} +input[type="text"]{ + border-radius: 3px; + border: solid 1px black; +} +input[name="author"] { + margin-bottom: .3em; +} +a.edit { + padding: 1px 6px; + border: 1px buttonborder solid black; + border-radius: 3px; + color: buttontext; + background-color: buttonface; + text-decoration: none; + /*color: black;*/ + /*border: solid 2px black;*/ + /*padding: 4px;*/ + /*border-radius: 2px;*/ + /*text-decoration: none;*/ +} -- cgit v1.2.3