radfusion/public/ck.css
2025-01-11 17:32:41 +06:00

120 lines
3.0 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@media print {
body {
margin: 0 !important;
}
}
.main-container {
font-family: 'Inter';
width: fit-content;
margin-left: auto;
margin-right: auto;
}
.fixed-container {
min-height: 600px;
min-width: 300px;
/*height: 800px;*/
height: 100%;
width: 100%;
}
.ck-content {
font-family: 'Inter';
line-height: 1.6;
word-break: break-word;
}
.editor-container_classic-editor .editor-container__editor {
min-width: 300px;
}
.editor_container__word-count .ck-word-count {
color: var(--ck-color-text);
display: flex;
height: 20px;
gap: var(--ck-spacing-small);
justify-content: flex-end;
font-size: var(--ck-font-size-base);
line-height: var(--ck-line-height-base);
font-family: var(--ck-font-face);
padding: var(--ck-spacing-small) var(--ck-spacing-standard);
}
.editor-container_include-word-count.editor-container_classic-editor .editor_container__word-count {
border: 1px solid var(--ck-color-base-border);
border-radius: var(--ck-border-radius);
border-top-left-radius: 0;
border-top-right-radius: 0;
border-top: none;
}
.editor-container_include-word-count.editor-container_classic-editor .editor-container__editor .ck-editor .ck-editor__editable {
border-radius: 0;
}
/* Let's give the editor some space and limits using a border. */
.ck-editor {
margin: 0 0 1em;
border: 1px solid hsla(0, 0%, 0%, 0.1);
border-radius: 4px;
}
/* Adding internal spacing, border and background to the toolbar. */
.ck-editor .btn-toolbar {
padding: .5rem;
background: #f7f7f9;
border-bottom: 1px solid hsla(0, 0%, 0%, 0.1);
}
/* Tweaking the editable area for better readability. */
.ck-editor .ck-editor__editable {
padding: 2em 2em 1em;
overflow: auto;
height: 100%;
min-height: 500px;
}
/* When in readonly mode, the editable should fade out. */
.ck-editor .ck-editor__editable.ck-read-only {
background: #fafafa;
color: hsl(0, 0%, 47%);
}
/* Make sure the headings dropdown button does not change its size
as different headings are selected */
.ck-editor .dropdown-toggle span {
display: inline-block;
width: 100px;
text-align: left;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: bottom;
}
/* Make the headings dropdown items visually distinctive. */
.ck-editor .heading-item_heading1 { font-size: 1.5em; }
.ck-editor .heading-item_heading2 { font-size: 1.3em; }
.ck-editor .heading-item_heading3 { font-size: 1.1em; }
.ck-editor [class*="heading-item_"] {
line-height: 22px;
padding: 10px;
}
.ck-editor [class*="heading-item_heading"] {
font-weight: bold;
}
/* Give the basic styles buttons some iconlike shape */
.ck-editor #bold { font-weight: bold; }
.ck-editor #italic { font-style: italic; }
.ck-editor #underline { text-decoration: underline; }
/* https://github.com/ckeditor/ckeditor5/issues/903 */
.ck-editor .ck-content > :first-child {
margin-top: 0;
}