2018-01-11 15:16:42 +00:00
|
|
|
$editor-z-index: $draftail-editor-z-index;
|
|
|
|
|
|
2018-01-15 03:35:34 +00:00
|
|
|
$draftail-editor-chrome: $color-grey-1;
|
|
|
|
|
$draftail-editor-chrome-text: $color-white;
|
|
|
|
|
$draftail-editor-chrome-active: $color-white;
|
|
|
|
|
$draftail-editor-chrome-accent: lighten($draftail-editor-chrome, 20%);
|
|
|
|
|
|
|
|
|
|
$draftail-editor-border: 0;
|
|
|
|
|
$draftail-editor-padding: 0;
|
2018-01-17 08:43:23 +00:00
|
|
|
$draftail-editor-background: transparent;
|
|
|
|
|
$draftail-toolbar-radius: 3px;
|
2018-01-15 03:35:34 +00:00
|
|
|
|
|
|
|
|
$draftail-editor-font-family: $font-serif;
|
2018-01-10 23:38:18 +00:00
|
|
|
|
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.
|
2018-01-17 08:43:23 +00:00
|
|
|
.Draftail-unstyled,
|
2018-01-15 15:38:54 +00:00
|
|
|
.public-DraftEditorPlaceholder-inner {
|
2018-01-11 14:02:44 +00:00
|
|
|
margin: 0.5rem 0;
|
2017-12-05 17:49:17 +00:00
|
|
|
}
|
|
|
|
|
|
2018-01-17 08:43:23 +00:00
|
|
|
@include draftail-richtext-styles {
|
2018-01-11 14:02:44 +00:00
|
|
|
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
|
|
|
}
|