rich-text-editor-lib
Version:
A reusable and responsive rich text editor React component.
58 lines (55 loc) • 1.37 kB
CSS
/* List styles for contenteditable */
[contenteditable] ul {
list-style-type: disc ;
margin-left: 1.5em;
padding-left: 1.5em;
}
[contenteditable] ol {
list-style-type: decimal ;
margin-left: 1.5em;
padding-left: 1.5em;
}
/* Link styles for contenteditable */
[contenteditable] a {
color: #00f0ff ;
text-decoration: underline ;
cursor: pointer;
word-break: break-all;
}
[contenteditable] a:hover {
color: #00bfff ;
text-decoration: underline;
}
/* Autofill fix */
input:-webkit-autofill {
transition: background-color 9999s ease-in-out 0s;
-webkit-text-fill-color: white ;
}
/* For rendering output (optional, if you use .rich-text-content) */
.rich-text-content ul {
list-style-type: disc ;
margin-left: 1.5em;
padding-left: 1em;
}
.rich-text-content ol {
list-style-type: decimal ;
margin-left: 1.5em;
padding-left: 1em;
}
.rich-text-content ul ul,
.rich-text-content ol ul {
list-style-type: circle ;
}
.rich-text-content li {
margin-bottom: 0.25em;
}
.rich-text-content a {
color: #00F0FF ;
cursor: pointer;
text-decoration: underline;
transition: color 0.2s;
}
.rich-text-content a:hover {
color: #00c0cc ;
text-decoration: underline;
}