editor.js/src/styles/block.css
JackUait aadbabfa6e refactor: clean up selection tests and remove unused rectangle selection logic
refactor: simplify read-only tests by removing drag-and-drop functionality

test: update sanitisation tests to check for safe attributes in HTML

test: enhance configuration tests to ensure proper toolbox popover visibility

test: adjust keyboard shortcuts tests for inline tool handling and modifier key mapping

test: modify toolbox tests to use more specific selectors for paragraph blocks

test: improve UI module tests to utilize block selection methods directly

chore: remove deprecated drag-and-drop tests and related code

fix: update paste module error messages for clarity on configuration issues
2025-11-18 03:56:47 +03:00

59 lines
995 B
CSS

@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.ce-block {
animation: fade-in 300ms ease;
animation-fill-mode: initial;
&:first-of-type {
margin-top: 0;
}
&--selected &__content {
background: var(--selectionColor);
/**
* Workaround Safari case when user can select inline-fragment with cross-block-selection
*/
& [contenteditable] {
-webkit-user-select: none;
user-select: none;
}
img,
.ce-stub {
opacity: 0.55;
}
}
&--stretched &__content {
max-width: none;
}
&__content {
position: relative;
max-width: var(--content-width);
margin: 0 auto;
transition: background-color 150ms ease;
}
a {
cursor: pointer;
text-decoration: underline;
}
b {
font-weight: bold;
}
i {
font-style: italic;
}
}