Skip to content

Commit 22bf6e7

Browse files
committed
RTE format bar enhancements
1 parent d6a324e commit 22bf6e7

6 files changed

Lines changed: 117 additions & 3 deletions

File tree

‎src/skins/vector/css/matrix-react-sdk/views/elements/RichText.css‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,16 @@
2020
.mx_Markdown_ITALIC {
2121
font-style: italic;
2222
}
23+
24+
.mx_Markdown_CODE {
25+
padding: .2em 0;
26+
margin: 0;
27+
font-size: 85%;
28+
background-color: rgba(0,0,0,.04);
29+
border-radius: 3px;
30+
}
31+
32+
.mx_Markdown_HR {
33+
color: rgba(0, 0, 0, 0.5);
34+
text-decoration: #e7e7e7 double line-through;
35+
}

‎src/skins/vector/css/matrix-react-sdk/views/rooms/MessageComposer.css‎

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ limitations under the License.
6060
display: flex;
6161
flex-direction: column;
6262
min-height: 60px;
63+
justify-content: center;
6364
align-items: flex-start;
6465
font-size: 14px;
6566
margin-right: 6px;
@@ -138,19 +139,26 @@ limitations under the License.
138139
margin: 0 11px;
139140
}
140141

142+
.mx_MessageComposer_formatbar_wrapper {
143+
width: 100%;
144+
background-color: #f7f7f7;
145+
box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.08);
146+
}
147+
141148
.mx_MessageComposer_formatbar {
149+
margin: auto;
150+
max-width: 960px;
142151
display: flex;
143152

144153
height: 30px;
145-
width: 100%;
146-
background-color: #f7f7f7;
147-
box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.08);
148154

149155
box-sizing: border-box;
150156
padding-left: 62px;
151157

152158
flex-direction: row;
153159
align-items: center;
160+
font-size: 10px;
161+
color: #888;
154162
}
155163

156164
.mx_MessageComposer_formatbar * {
@@ -163,6 +171,11 @@ limitations under the License.
163171
cursor: pointer;
164172
}
165173

174+
.mx_MessageComposer_format_button_disabled {
175+
cursor: not-allowed;
176+
opacity: 0.5;
177+
}
178+
166179
.mx_MessageComposer_formatbar_cancel {
167180
margin-right: 22px;
168181
}
@@ -172,6 +185,8 @@ limitations under the License.
172185
}
173186

174187
.mx_MessageComposer_input_markdownIndicator {
188+
cursor: pointer;
189+
height: 10px;
175190
padding: 4px 4px 4px 0;
176191
opacity: 0.8;
177192
}
Lines changed: 25 additions & 0 deletions
Loading
Lines changed: 25 additions & 0 deletions
Loading
Lines changed: 18 additions & 0 deletions
Loading
Lines changed: 18 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)