2018-01-10 23:38:18 +00:00
|
|
|
$color-editor-chrome: $color-grey-1;
|
|
|
|
|
$color-editor-chrome-text: $color-white;
|
|
|
|
|
$color-editor-chrome-active: $color-white;
|
|
|
|
|
$color-editor-chrome-accent: lighten($color-editor-chrome, 20%);
|
|
|
|
|
|
2018-01-10 21:47:49 +00:00
|
|
|
@import '../../../../node_modules/draft-js/dist/Draft';
|
2018-01-10 23:38:18 +00:00
|
|
|
@import '../../../../node_modules/draftail/lib/index';
|
|
|
|
|
|
|
|
|
|
@import './Tooltip/Tooltip';
|
|
|
|
|
|
|
|
|
|
@import './decorators/TooltipEntity';
|
|
|
|
|
|
|
|
|
|
@import './blocks/MediaBlock';
|
|
|
|
|
@import './blocks/ImageBlock';
|
|
|
|
|
@import './blocks/EmbedBlock';
|
2017-12-05 17:49:17 +00:00
|
|
|
|
|
|
|
|
// Give each block element eg. paragraph some spacing so we don't end up
|
|
|
|
|
// with empty paragraphs in code when user double enters because they think
|
|
|
|
|
// there are no paragraphs.
|
2017-12-05 17:54:27 +00:00
|
|
|
div[data-block='true'] {
|
2018-01-11 14:02:44 +00:00
|
|
|
margin: 0.5rem 0;
|
2017-12-05 17:49:17 +00:00
|
|
|
}
|
|
|
|
|
|
2018-01-11 14:02:44 +00:00
|
|
|
@mixin draftail-richtext-styles {
|
|
|
|
|
h1,
|
|
|
|
|
h2,
|
|
|
|
|
h3,
|
|
|
|
|
h4,
|
|
|
|
|
h5,
|
|
|
|
|
h6 {
|
|
|
|
|
// Overrides for other parts of the Wagtail admin.
|
|
|
|
|
text-transform: none;
|
|
|
|
|
font-family: inherit;
|
|
|
|
|
clear: both;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
h1,
|
|
|
|
|
h2,
|
|
|
|
|
h3 {
|
|
|
|
|
line-height: 1.1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
|
font-size: 2em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
|
font-size: 1.8em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
|
font-size: 1.5em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
h4 {
|
|
|
|
|
font-size: 1.2em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
h5 {
|
|
|
|
|
font-size: 1.1em;
|
|
|
|
|
}
|
2017-12-05 17:49:17 +00:00
|
|
|
}
|
|
|
|
|
|
2018-01-11 14:02:44 +00:00
|
|
|
.DraftEditor-editorContainer {
|
|
|
|
|
@include draftail-richtext-styles;
|
2017-12-05 17:49:17 +00:00
|
|
|
}
|
|
|
|
|
|
2018-01-10 23:38:18 +00:00
|
|
|
.public-DraftEditor-content,
|
|
|
|
|
.public-DraftEditorPlaceholder-root {
|
2018-01-11 13:30:21 +00:00
|
|
|
padding: 0;
|
2018-01-10 23:38:18 +00:00
|
|
|
font-family: $font-serif;
|
|
|
|
|
}
|
2018-01-11 13:30:21 +00:00
|
|
|
|
|
|
|
|
.Draftail-Editor {
|
|
|
|
|
border: 0;
|
|
|
|
|
background-color: initial;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.Draftail-Toolbar {
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
}
|