mirror of
https://github.com/silverstripe/silverstripe-simple
synced 2024-10-22 09:05:50 +00:00
Sam Minnee
a9c64c423e
BUG: Fixed simple image styling for full-width images.
The max-width 60% is a nice touch for left-aligned or right-aligned images, but it doesn't suit all images. I've restricted the styling so that this is only applied to img.left and img.right images, which are the classes assigned by the CMS for left-aligned and right-aligned images.
BUGFIX Using typography class, following theme conventions, and more importantly fixing editor alignment of images (fixes #7364)
Using the Simple theme
-
Copy the theme into the
themes/
directory of your SilverStripe project. If you've named it correctly, there should be a directory calledthemes/simple/templates
. -
Add the following to your
mysite/_config.php
file. Remove any existingSSViewer::set_theme
lines.SSViewer::set_theme("simple"); HtmlEditorConfig::get('cms')->setOption('theme_advanced_styles', 'highlight=highlight;no-border=no-border,break=break');
Description
Languages
CSS
80.8%
Scheme
11.7%
JavaScript
7.5%