From f18e31811ceafda4c8a83e10b321d9dc048a39f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Wed, 21 May 2025 19:57:08 +0300 Subject: [PATCH] add markup to thread create and topic edit --- sass/style.scss | 9 +++++++-- static/style.css | 8 ++++++-- views/common/bbcode_help.etlua | 11 +++++++++++ views/threads/create.etlua | 31 ++++++++++++++++++------------- views/topics/edit.etlua | 25 +++++++++++++------------ 5 files changed, 55 insertions(+), 29 deletions(-) create mode 100644 views/common/bbcode_help.etlua diff --git a/sass/style.scss b/sass/style.scss index d9d9636..8b66492 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -252,13 +252,18 @@ p { padding: 20px 0; } -input[type="text"], input[type="password"] { +input[type="text"], input[type="password"], textarea, select { border: 1px solid black; border-radius: 3px; padding: 7px 10px; width: 100%; box-sizing: border-box; - background-color: $lighter; + resize: vertical; + background-color: color.scale($accent_color, $lightness: 40%); + + &:focus { + background-color: color.scale($accent_color, $lightness: 60%); + } } .infobox { diff --git a/static/style.css b/static/style.css index 44f4396..0718596 100644 --- a/static/style.css +++ b/static/style.css @@ -244,13 +244,17 @@ p { padding: 20px 0; } -input[type=text], input[type=password] { +input[type=text], input[type=password], textarea, select { border: 1px solid black; border-radius: 3px; padding: 7px 10px; width: 100%; box-sizing: border-box; - background-color: rgb(229.84, 231.92, 227.28); + resize: vertical; + background-color: rgb(217.8, 225.6, 208.2); +} +input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus { + background-color: rgb(230.2, 235.4, 223.8); } .infobox { diff --git a/views/common/bbcode_help.etlua b/views/common/bbcode_help.etlua new file mode 100644 index 0000000..9ce4a25 --- /dev/null +++ b/views/common/bbcode_help.etlua @@ -0,0 +1,11 @@ +
+ Supported babycode tags + +
\ No newline at end of file diff --git a/views/threads/create.etlua b/views/threads/create.etlua index 2f4d205..c79705e 100644 --- a/views/threads/create.etlua +++ b/views/threads/create.etlua @@ -1,13 +1,18 @@ -

New thread

-
- -
- -
-
- -
\ No newline at end of file +<% render("views.common.topnav") -%> +
+

New thread

+
+ +
+ + + + + <% render "views.common.bbcode_help" %> + +
+
diff --git a/views/topics/edit.etlua b/views/topics/edit.etlua index 384245f..4265b1e 100644 --- a/views/topics/edit.etlua +++ b/views/topics/edit.etlua @@ -1,12 +1,13 @@ -

Editing topic <%= topic.name %>

-
-
-
- -
- -
-
"> - -
-Note: to preserve history, you cannot change the topic URL. \ No newline at end of file +<% render("views.common.topnav") -%> +
+

Editing topic <%= topic.name %>

+
+ + + + + + ">Cancel
+ Note: to preserve history, you cannot change the topic URL. +
+