similiquedicta
Version:
A Plugin Architecture on top of Draft.JS
55 lines (46 loc) • 843 B
CSS
.root {
background: #FFF;
}
.editor {
border: 1px solid #ddd;
cursor: text;
padding: 16px;
border-radius: 2px;
margin-bottom: 10px;
box-shadow: inset 0px 1px 8px -3px #ABABAB;
background: #fefefe;
}
.editor :global(.public-DraftEditor-content) {
min-height: 240px;
}
.stateButton {
border: 1px solid #bbb;
height: 40px;
padding: 0 1.2em;
color: #888;
margin: 0;
border-radius: 20px;
line-height: 1.2em;
cursor: pointer;
margin-right: 10px;
position: relative;
top: -4px;
background-color: #fff;
}
.stateButton:focus {
outline: 0; /* reset for :focus */
}
.stateButton:hover {
background: #f3f3f3;
}
.stateButton:active {
background: #e6e6e6;
}
.pressedStateButton {
composes: stateButton;
background-color: #ededed;
}
.editorButton {
margin-right: 10px;
display: inline-block;
}