like-keditor
Version:
A powerful, extensible, and customizable rich-text editor built on top of [Yoopta](https://yoopta.dev) - [Yoopta Docs](https://yoodocs.space). Comes with built-in support for images, videos, files, markdown export, and more!
249 lines (248 loc) • 6.43 kB
CSS
/* src/components/editor.css */
.yoopta-editor {
width: 100% ;
min-width: 300px ;
min-height: 300px ;
}
.yoopta-placeholder[data-placeholder]::after {
font-size: 1rem ;
color: #6B7280 ;
margin: 0 ;
padding: 0 ;
}
.yoopta-block-actions-plus {
height: 2rem ;
width: 2rem ;
border-radius: 2rem ;
border: 1px solid #6B7280 ;
margin-top: -4px ;
}
.yoopta-block-actions-plus svg {
color: #6B7280 ;
}
.yoopta-block-actions-plus:hover {
background-color: #FFFFFF ;
cursor: pointer;
}
.yoopta-block-actions-drag {
height: 2rem ;
border-radius: 8px ;
margin-top: -4px ;
}
.yoopta-block-actions-drag svg {
color: #6B7280 ;
}
.yoopta-block-actions-drag:hover {
background-color: rgba(0, 0, 0, 0.03) ;
cursor: grab;
}
.yoopta-block-action-buttons {
gap: 0.5rem ;
}
.yoopta-toolbar-root {
background-color: #FFFFFF ;
border-radius: .75rem ;
border: 1px solid rgba(0, 0, 0, 0.03) ;
padding: 1px ;
shadow: none ;
display: flex ;
flex-direction: row ;
align-items: center ;
}
.yoopta-toolbar-root .yoopta-toolbar-group {
margin: 0px ;
padding: 0px ;
display: flex ;
flex-direction: row ;
align-items: center ;
}
.yoopta-toolbar-root .yoopta-toolbar-separator {
margin: 0px ;
display: none ;
}
.yoopta-toolbar-root .yoopta-toolbar-group button {
background-color: #FFFFFF ;
height: 2.5rem ;
border-radius: 0.5rem ;
padding: 8px 12px ;
font-size: 0.875rem;
}
.yoopta-toolbar-root .yoopta-toolbar-group button[aria-pressed=true] {
background-color: rgba(0, 0, 0, 0.03) ;
color: #27272A ;
}
.yoopta-toolbar-root .yoopta-toolbar-group button:hover {
background-color: rgba(0, 0, 0, 0.03) ;
cursor: pointer;
}
.yoopta-toolbar-root .yoopta-toolbar-group .button yoopta-toolbar-color-text {
background-color: #FFFFFF ;
}
.yoo-toolbar-z-50 div {
border-radius: 0.5rem ;
padding: 0.5rem ;
}
.yoo-toolbar-z-50 div div button {
border-radius: 0.3rem ;
padding: 8px 12px ;
font-size: .875rem;
color: #27272A ;
cursor: pointer;
transition: all 0.2s ease-in-out;
}
.yoo-toolbar-z-50 div .yoo-toolbar-grid {
margin: 0 ;
}
.yoo-toolbar-z-50 div .yoo-toolbar-border-t {
border-top: none ;
}
.yoo-toolbar-z-50 div .yoo-toolbar-border-t .yoo-toolbar-mt-2 {
margin: 0 ;
padding: 8px 0px ;
}
.yoo-toolbar-z-50 div .yoo-toolbar-border-t .yoo-toolbar-mt-2 .react-colorful {
display: flex ;
flex-direction: column ;
gap: 1rem ;
padding: 0 ;
}
.yoopta-paragraph {
margin: 0 ;
}
.yoopta-link-tool .yoo-link-tool-bg-\[\#1183ff\] {
border-radius: 0.5rem ;
background-color: rgb(0, 0, 0) ;
min-width: 60px ;
padding: .5rem .75rem ;
}
.yoopta-extended-block-actions {
height: 2rem ;
width: 2rem ;
border-radius: 2rem ;
background-color: #FFFFFF ;
border: 1px solid #6B7280 ;
padding: 0px ;
display: flex ;
flex-direction: row ;
align-items: center ;
justify-content: center ;
}
::selection {
background-color: rgba(0, 0, 0, 0.15);
}
/* src/components/render.css */
#details-container-TdaSo6fg2z *,
#details-container-TdaSo6fg2z *::before,
#details-container-TdaSo6fg2z *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
outline: none;
transition: all 0.2s ease;
}
#details-container-TdaSo6fg2z h1,
#details-container-TdaSo6fg2z h2,
#details-container-TdaSo6fg2z h3,
#details-container-TdaSo6fg2z h4,
#details-container-TdaSo6fg2z h5,
#details-container-TdaSo6fg2z h6 {
font-weight: 600;
line-height: 1.25;
margin-bottom: 0.75rem;
}
#details-container-TdaSo6fg2z h1 {
font-size: 2.25rem;
}
#details-container-TdaSo6fg2z h2 {
font-size: 1.875rem;
}
#details-container-TdaSo6fg2z h3 {
font-size: 1.5rem;
}
#details-container-TdaSo6fg2z h4 {
font-size: 1.25rem;
}
#details-container-TdaSo6fg2z h5 {
font-size: 1.125rem;
}
#details-container-TdaSo6fg2z h6 {
font-size: 1rem;
}
#details-container-TdaSo6fg2z p {
margin-bottom: 1rem;
}
#details-container-TdaSo6fg2z a {
text-decoration: none;
font-weight: 500;
}
#details-container-TdaSo6fg2z a:hover {
text-decoration: underline;
}
#details-container-TdaSo6fg2z ul,
#details-container-TdaSo6fg2z ol {
padding-left: 1.5rem;
margin-bottom: 1rem;
}
#details-container-TdaSo6fg2z li {
margin-bottom: 0.5rem;
}
#details-container-TdaSo6fg2z img {
max-width: 100%;
border-radius: 0.5rem;
margin: 1rem 0;
}
#details-container-TdaSo6fg2z blockquote {
border-left: 4px solid hsl(221.2, 83.2%, 53.3%);
padding-left: 1rem;
margin: 1rem 0;
font-style: italic;
border-radius: 0.25rem;
}
#details-container-TdaSo6fg2z pre,
#details-container-TdaSo6fg2z code {
font-family:
ui-monospace,
SFMono-Regular,
Menlo,
monospace;
font-size: 0.95rem;
border-radius: 0.375rem;
padding: 0.25rem 0.5rem;
overflow-x: auto;
}
#details-container-TdaSo6fg2z table {
width: 100%;
border-collapse: collapse;
margin: 1rem 0;
font-size: 0.95rem;
}
#details-container-TdaSo6fg2z th,
#details-container-TdaSo6fg2z td {
border: 1px solid hsl(214.3, 31.8%, 91.4%);
padding: 0.75rem 1rem;
text-align: left;
}
#details-container-TdaSo6fg2z th {
font-weight: 600;
}
#details-container-TdaSo6fg2z input,
#details-container-TdaSo6fg2z select,
#details-container-TdaSo6fg2z textarea,
#details-container-TdaSo6fg2z button {
font: inherit;
border: 1px solid hsl(214.3, 31.8%, 91.4%);
border-radius: 0.5rem;
padding: 0.5rem 0.75rem;
margin-bottom: 1rem;
}
#details-container-TdaSo6fg2z input:focus,
#details-container-TdaSo6fg2z select:focus,
#details-container-TdaSo6fg2z textarea:focus {
border-color: hsl(221.2, 83.2%, 53.3%);
box-shadow: 0 0 0 2px hsl(221.2, 83.2%, 90%);
}
#details-container-TdaSo6fg2z button {
cursor: pointer;
font-weight: 500;
}
/*# sourceMappingURL=index.css.map */