sutty/app/assets/stylesheets/editor.scss

41 lines
662 B
SCSS
Raw Normal View History

2020-11-03 21:16:59 +00:00
.editor {
2020-11-03 21:29:47 +00:00
box-sizing: border-box;
*, *::before, *::after { box-sizing: inherit; }
h1, h2, h3, h4, h5, h6, p {
min-height: 1.4em;
line-height: 1.4;
margin: 0;
}
mark {
background: #f206f9;
padding: 0;
}
.selected {
outline: #f206f9 solid medium;
outline-offset: 1pt;
}
img, video, iframe {
2020-11-03 21:29:47 +00:00
width: 100%;
max-width: 600px;
display: block;
margin: 0 auto;
}
2020-11-03 21:16:59 +00:00
.editor-content {
div[data-align="left"] { text-align: left; }
div[data-align="center"] { text-align: center; }
div[data-align="right"] { text-align: right; }
}
2020-11-05 22:19:02 +00:00
*[data-editor-loading] {
opacity: 0.5;
}
*[data-editor-error] {
filter: grayscale(100%);
}
2020-11-03 21:16:59 +00:00
}