diff --git a/src/skins/vector/css/matrix-react-sdk/views/elements/RichText.css b/src/skins/vector/css/matrix-react-sdk/views/elements/RichText.css index 171482a3..3d8d8f3b 100644 --- a/src/skins/vector/css/matrix-react-sdk/views/elements/RichText.css +++ b/src/skins/vector/css/matrix-react-sdk/views/elements/RichText.css @@ -20,3 +20,16 @@ .mx_Markdown_ITALIC { font-style: italic; } + +.mx_Markdown_CODE { + padding: .2em 0; + margin: 0; + font-size: 85%; + background-color: rgba(0,0,0,.04); + border-radius: 3px; +} + +.mx_Markdown_HR { + color: rgba(0, 0, 0, 0.5); + text-decoration: #e7e7e7 double line-through; +} diff --git a/src/skins/vector/css/matrix-react-sdk/views/rooms/MessageComposer.css b/src/skins/vector/css/matrix-react-sdk/views/rooms/MessageComposer.css index b1cd3ce0..45bc39cf 100644 --- a/src/skins/vector/css/matrix-react-sdk/views/rooms/MessageComposer.css +++ b/src/skins/vector/css/matrix-react-sdk/views/rooms/MessageComposer.css @@ -60,6 +60,7 @@ limitations under the License. display: flex; flex-direction: column; min-height: 60px; + justify-content: center; align-items: flex-start; font-size: 14px; margin-right: 6px; @@ -138,19 +139,26 @@ limitations under the License. margin: 0 11px; } -.mx_MessageComposer_formatbar { - display: flex; - - height: 30px; +.mx_MessageComposer_formatbar_wrapper { width: 100%; background-color: #f7f7f7; box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.08); +} + +.mx_MessageComposer_formatbar { + margin: auto; + max-width: 960px; + display: flex; + + height: 30px; box-sizing: border-box; padding-left: 62px; flex-direction: row; align-items: center; + font-size: 10px; + color: #888; } .mx_MessageComposer_formatbar * { @@ -163,6 +171,11 @@ limitations under the License. cursor: pointer; } +.mx_MessageComposer_format_button_disabled { + cursor: not-allowed; + opacity: 0.5; +} + .mx_MessageComposer_formatbar_cancel { margin-right: 22px; } @@ -172,6 +185,8 @@ limitations under the License. } .mx_MessageComposer_input_markdownIndicator { + cursor: pointer; + height: 10px; padding: 4px 4px 4px 0; opacity: 0.8; } diff --git a/src/skins/vector/img/button-text-code-o-n.svg b/src/skins/vector/img/button-text-code-o-n.svg new file mode 100644 index 00000000..8d1439c9 --- /dev/null +++ b/src/skins/vector/img/button-text-code-o-n.svg @@ -0,0 +1,25 @@ + + + + B76754AB-42E6-48D2-9443-80CBC0DE02ED + Created with sketchtool. + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/skins/vector/img/button-text-code.svg b/src/skins/vector/img/button-text-code.svg new file mode 100644 index 00000000..24026cb7 --- /dev/null +++ b/src/skins/vector/img/button-text-code.svg @@ -0,0 +1,25 @@ + + + + 4CAFF494-61AE-4916-AFE8-D1E62F7CF0DE + Created with sketchtool. + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/skins/vector/img/button-text-underline-o-n.svg b/src/skins/vector/img/button-text-underline-o-n.svg new file mode 100644 index 00000000..870be3ce --- /dev/null +++ b/src/skins/vector/img/button-text-underline-o-n.svg @@ -0,0 +1,18 @@ + + + + FD84FF7C-43E4-4312-90AB-5A59AD018377 + Created with sketchtool. + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/skins/vector/img/button-text-underline.svg b/src/skins/vector/img/button-text-underline.svg new file mode 100644 index 00000000..26f44853 --- /dev/null +++ b/src/skins/vector/img/button-text-underline.svg @@ -0,0 +1,18 @@ + + + + 13E7EE68-9B16-4A3D-8F9F-31E4BAB7E438 + Created with sketchtool. + + + + + + + + + + + + + \ No newline at end of file