I need to control note’s width by class name.
References. Same idea, but the solutions seem outdated:
How to make a single note set full width or 1000px @OF
How do I change width for a specific Note? @OF
This snippet seems like the right solution:
.custom-wide-page .cm-sizer,
.custom-wide-page .cm-sizer * {
--file-line-width: 1200px;
}
Or, for more flexible control, an SCSS version:
@for $step from 8 through 19 {
$name: $step * 100;
.custom-wide-page-#{$name} .cm-sizer,
.custom-wide-page-#{$name} .cm-sizer * {
--file-line-width: #{$step * 100px};
}
}
Is the .cm-sizer
the correct parent element for targeting?
Does setting --file-line-width
handle everything, or are there other CSS variables that also need adjustment?