Skip to content

Commit 402845b

Browse files
authored
feat(rich-text-editor): Moved quill styles to rich text editor textarea and output (#2769)
* feat(rich-text-editor): Moved quill styles to rich text editor textarea and output * feat(rich-text-editor): Syntax changes to CSS
1 parent 396983c commit 402845b

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

ui/components/rich-text-editor/base/_index.scss

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,46 @@
116116
* These are the overrides for both input and output from the RTE.
117117
* We may need to add or adjust these later based on further input.
118118
*/
119+
120+
.slds-rich-text-editor__textarea {
121+
122+
.ql-editor {
123+
white-space: pre-wrap;
124+
word-wrap: break-word;
125+
user-select: text;
126+
127+
.ql-blank:before {
128+
color: #54698d;
129+
content: attr(data-placeholder);
130+
pointer-events: none;
131+
position: absolute;
132+
}
133+
134+
a {
135+
text-decoration: underline;
136+
}
137+
}
138+
139+
.overflow-menu {
140+
z-index: 2;
141+
}
142+
143+
.ql-active {
144+
background-color: rgb(238,241,246);
145+
}
146+
147+
.ql-clipboard {
148+
position: absolute !important;
149+
margin: -1px !important;
150+
border: 0 !important;
151+
padding: 0 !important;
152+
width: 1px !important;
153+
height: 1px !important;
154+
overflow: hidden !important;
155+
clip: rect(0 0 0 0) !important;
156+
}
157+
}
158+
119159
.slds-rich-text-editor__textarea,
120160
.slds-rich-text-editor__output {
121161
line-height: $line-height-text;
@@ -225,4 +265,28 @@
225265
td {
226266
padding: $spacing-x-small;
227267
}
268+
269+
.sans-serif {
270+
font-family: sans-serif;
271+
}
272+
273+
.courier {
274+
font-family: courier;
275+
}
276+
277+
.verdana {
278+
font-family: verdana;
279+
}
280+
281+
.tahoma {
282+
font-family: tahoma;
283+
}
284+
285+
.garamond {
286+
font-family: garamond;
287+
}
288+
289+
.serif {
290+
font-family: serif;
291+
}
228292
}

0 commit comments

Comments
 (0)