aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorTreer <treer.git@the-bordello.com>2016-04-28 23:48:50 +1000
committerTreer <treer.git@the-bordello.com>2016-04-30 01:13:34 +1000
commit9d079e5d2b3dad4e9d0ce962ba2cd8a815a297db (patch)
tree3b914d80747697e2dbcd3dcd0cecb0281d01a182 /view
parentb664af748e32f6e8f3d451e95fd8cb65940eca17 (diff)
downloadvolse-hubzilla-9d079e5d2b3dad4e9d0ce962ba2cd8a815a297db.tar.gz
volse-hubzilla-9d079e5d2b3dad4e9d0ce962ba2cd8a815a297db.tar.bz2
volse-hubzilla-9d079e5d2b3dad4e9d0ce962ba2cd8a815a297db.zip
Add definition lists to bbcode
Diffstat (limited to 'view')
-rw-r--r--view/js/autocomplete.js2
-rw-r--r--view/theme/redbasic/css/style.css21
2 files changed, 22 insertions, 1 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js
index 21ce2d150..ca51230df 100644
--- a/view/js/autocomplete.js
+++ b/view/js/autocomplete.js
@@ -265,7 +265,7 @@ function string2bb(element) {
$.fn.bbco_autocomplete = function(type) {
if(type=='bbcode') {
- var open_close_elements = ['bold', 'italic', 'underline', 'overline', 'strike', 'superscript', 'subscript', 'quote', 'code', 'open', 'spoiler', 'map', 'nobb', 'list', 'ul', 'ol', 'li', 'table', 'tr', 'th', 'td', 'center', 'color', 'font', 'size', 'zrl', 'zmg', 'rpost', 'qr', 'observer'];
+ var open_close_elements = ['bold', 'italic', 'underline', 'overline', 'strike', 'superscript', 'subscript', 'quote', 'code', 'open', 'spoiler', 'map', 'nobb', 'list', 'ul', 'ol', 'dl', 'li', 'table', 'tr', 'th', 'td', 'center', 'color', 'font', 'size', 'zrl', 'zmg', 'rpost', 'qr', 'observer'];
var open_elements = ['observer.baseurl', 'observer.address', 'observer.photo', 'observer.name', 'observer.webname', 'observer.url', '*', 'hr', ];
var elements = open_close_elements.concat(open_elements);
diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css
index 290a1a697..e1076a79f 100644
--- a/view/theme/redbasic/css/style.css
+++ b/view/theme/redbasic/css/style.css
@@ -1827,6 +1827,27 @@ nav .badge.mail-update:hover {
margin-top:-3px;
}
+dl.bb-dl > dt {
+ /* overriding the default dl style from bootstrap, as bootstrap's
+ style of a bold unindented line followed by a plain unindented
+ line is already acheivable in bbcode without dl */
+ font-weight: normal;
+}
+dl.dl-terms-monospace > dt { font-family: monospace; }
+dl.dl-terms-bold > dt { font-weight: bold; }
+dl.dl-terms-italic > dt { font-style: italic; }
+dl.dl-terms-underline > dt { text-decoration: underline; }
+dl.dl-terms-large > dt { font-size: 120%; }
+dl.bb-dl:not(.dl-horizontal) > dd {
+ display: block;
+ margin-left: 2em;
+}
+dl.bb-dl > dd > li {
+ /* adding some indent so bullet-list items will line up better with
+ dl descriptions if someone wants to be impure and combine them */
+ margin-left: 1em;
+}
+
.bootstrap-tagsinput .tag:before {
/* Copied from icon-asterisk, is there a better way to do it? */
font-family: FontAwesome;