From 8f9629a6b56c778bed0dc4cd7ba1b14a891b0ba5 Mon Sep 17 00:00:00 2001 From: spaghetti Date: Fri, 14 Jul 2017 13:10:14 -0400 Subject: [PATCH] Add BBCode editor toolbar --- design/views/generic/textarea/textarea.phtml | 2 +- static/styles/global.css | 23 ++++++++++++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/design/views/generic/textarea/textarea.phtml b/design/views/generic/textarea/textarea.phtml index d1b7aa0..c4ebe24 100644 --- a/design/views/generic/textarea/textarea.phtml +++ b/design/views/generic/textarea/textarea.phtml @@ -1,4 +1,4 @@
- +
diff --git a/static/styles/global.css b/static/styles/global.css index 6164c6c..1f233c5 100644 --- a/static/styles/global.css +++ b/static/styles/global.css @@ -217,6 +217,7 @@ pre { form textarea, form input { max-width: 100%; + box-sizing: border-box; } textarea { @@ -268,7 +269,27 @@ div#AddArtists a { } #forums #quickpost { - width: 95% + width: 95%; +} + +.bbcode_bar { + list-style: none; + margin: 0px 0px -4px; + box-sizing: border-box; + text-align: center; + display: inline-block; +} +.bbcode_bar > li { + display: inline-block; + margin: 0px; +} +.bbcode_bar > li > a { + display: inline-block; + height: 26px; + line-height: 26px; + cursor: pointer; + min-width: 20px; + margin: 0px 4px; } td.label, .valign_top {