margin-top: 3em;
color: lighten($text-color, 40%);
}
+ div.note {
+ background: #fbf7c1;;
+ padding: 0.2em 0.5em 0.2em 2em;
+ p {
+ margin: 0.5em 0;
+ }
+ }
}
.post-list {
}
div[contenteditable=true]:focus-within {
- outline: none;
- box-shadow: inset 0 0 2px #333;
+ outline: 1px solid gray;
+ outline-offset: 3px;
}
-.style-popup {
+.inline-style-popup,
+.block-style-popup {
background: white;
box-shadow: 0 0 5px #666;
input {
}
}
button {
- padding: 0;
+ padding: 0 0.5em;
height: 2em;
text-align: center;
background: #eee;
color: blue;
text-decoration: underline;
}
+ &.on {
+ background: #444;
+ color: white;
+ }
}
- &.short button {
+ &.inline-style-popup button {
width: 2em;
+ padding: 0;
+ }
+ &.block-style-popup {
+ &.selected button {
+ display: none;
+ &.on {
+ display: block;
+ }
+ }
+ }
+}
+
+button#save {
+ position: sticky;
+ bottom: 10px;
+}
+
+main.post {
+ [contenteditable=true] div.figure {
+ cursor: pointer;
+ }
+ div.figure {
+ text-align: center;
+ line-height: initial;
+ img {
+ max-width: 90%;
+ max-height: 70vh;
+ }
+ span.empty::before {
+ min-height: 50px;
+ margin: 0 auto;
+ display: block;
+ width: 90%;
+ background: #eee;
+ padding: 1rem;
+ font-size: 200px;
+ content: "(image)";
+ color: #aaa;
+ }
}
}