kf-slate-editor
Version:
Another rich text editor using Slate framework with toolbar support
88 lines (72 loc) • 1.4 kB
Flow
// @flow
import styled from "styled-components";
export const Container = styled.div`
border-radius: 2px 2px 0 0;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px 1px rgba(0, 0, 0, 0.16);
line-height: 0px !important;
background-color: #fff;
.__canner-editor_topToolbarItem,
.__canner-editor_topToolbarItemActive {
display: block;
width: 25px;
margin: 10px;
text-align: center;
float: none;
}
.__canner-editor_topToolbarItemDisabled > * {
stroke: #ccc !important;
cursor: not-allowed;
}
.qlStroke {
stroke: #444;
fill: transparent;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 2;
}
.qlStrokeActive {
stroke: #4f748e;
fill: transparent;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 2;
}
.qlStrokeMitter {
stroke: #444;
fill: transparent;
}
.qlStrokeMitterActive {
stroke: #4f748e;
fill: transparent;
}
.qlFill {
fill: #444;
}
.qlFillActive {
fill: #4f748e;
}
.qlEven {
stroke: #444;
fill: #fff;
}
.qlEvenActive {
stroke: #4f748e;
fill: #fff;
}
.qlColorLabel {
fill: red;
}
.qlTransparent {
opacity: 0.2;
}
.qlThin {
stroke: #444;
fill: transparent;
stroke-width: 1;
}
.qlThinActive {
stroke: #4f748e;
fill: transparent;
stroke-width: 1;
}
`;