Mercurial Hosting > freedit
changeset 50:0d99cec5142c
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 17 Nov 2022 22:00:59 -0700 |
parents | f225e82b2bf8 |
children | 78b2d6995244 |
files | src/bbcode/bbcode.css src/bbcode/bbcode.js |
diffstat | 2 files changed, 11 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/src/bbcode/bbcode.css Thu Nov 17 16:46:21 2022 -0700 +++ b/src/bbcode/bbcode.css Thu Nov 17 22:00:59 2022 -0700 @@ -1,40 +1,41 @@ -div[bbcode] * { +div[bbcode_editor] * { box-sizing: border-box; } -div[bbcode] textarea { +div[bbcode_editor] textarea { font: inherit; padding: 7px; border-color: #DDDDDD; width: 100%; } -div[bbcode] input[type="file"] { +div[bbcode_editor] input[type="file"] { display: none; } -div[bbcode] button:hover { +div[bbcode_editor] button:hover { cursor: pointer; } -div[bbcode] div[buttons] { +div[bbcode_editor] div[buttons] { display: flex; justify-content: flex-end; } -div[bbcode] div[buttons] button { +div[bbcode_editor] div[buttons] button { border: 0; background-color: transparent; border-radius: 4px; } -div[bbcode] div[buttons] button:hover { +div[bbcode_editor] div[buttons] button:hover { background-color: lightgrey; } -div[bbcode] div[buttons] button[checked] { +div[bbcode_editor] div[buttons] button[checked] { background-color: lightblue; } -div[bbcode] div[buttons] img { +div[bbcode_editor] div[buttons] img { height: 24px; } + div[from_bbcode] { white-space: pre-wrap; line-height: 1.4;
--- a/src/bbcode/bbcode.js Thu Nov 17 16:46:21 2022 -0700 +++ b/src/bbcode/bbcode.js Thu Nov 17 22:00:59 2022 -0700 @@ -38,7 +38,7 @@ let save = options.save; let cancel = options.cancel; let html = `\ - <div bbcode> + <div bbcode_editor> <textarea name=bbcode>${content}</textarea> <div buttons> <button type=button bold title="Bold"><img src="/bbcode/icons/format_bold.svg"></button>