File tree Expand file tree Collapse file tree 1 file changed +91
-1
lines changed Expand file tree Collapse file tree 1 file changed +91
-1
lines changed Original file line number Diff line number Diff line change 456456
457457/* patches */
458458
459- main > article figure img , main > figure img {
459+ /* main > article figure img, main > figure img {
460460 width: 100%;
461+ } */
462+
463+ /* Classic Editor TinyMCE WYSIWYG editor image alignment */
464+ /* TODO: port in alignleft and alignright rules here as well? */
465+ main figure : has (img .aligncenter ) {
466+ width : 100% ;
467+ margin-left : 0 ;
468+ }
469+
470+ /* Classic Editor TinyMCE WYSIWYG editor image alignment, previous theme's markukp */
471+ /* presently <figure> */
472+ div [id ^= "attachment_" ] {
473+ width : 120% ;
474+ margin : 0 ;
475+ margin-left : -10% ;
476+ margin-bottom : 3em ;
477+ padding : 0 ;
478+ float : none;
479+ }
480+
481+ /* presently <img> */
482+ div [id ^= "attachment_" ] img [class ^= "wp-image" ]: not ([width ]) {
483+ width : 100% ;
484+ }
485+
486+ /* presently <span class="attribution> */
487+ div [id ^= "attachment_" ] p [id ^= "caption-attachment-" ] {
488+ display : block;
489+ margin-top : 1em ;
490+ font-size : 1em ;
491+ }
492+
493+ div [id ^= "attachment_" ].alignleft {
494+ margin-top : 2em ;
495+ margin-right : 2em ;
496+ margin-left : -10% ;
497+ width : 50% ;
498+ float : left;
499+ }
500+
501+ div [id ^= "attachment_" ].alignleft : after {
502+ display : block;
503+ content : '' ;
504+ height : 3em ;
505+ clear : both;
506+ }
507+
508+ div [id ^= "attachment_" ].aligncenter {
509+ width : 100% ;
510+
511+ margin-left : 0 ;
512+ }
513+
514+ div [id ^= "attachment_" ].alignright {
515+ margin-top : 2em ;
516+ margin-right : -10% ;
517+ margin-left : 2em ;
518+ width : 50% ;
519+ float : right;
520+ }
521+
522+ div [id ^= "attachment_" ].alignright : after {
523+ display : block;
524+ content : '' ;
525+ height : 2em ;
526+ clear : both;
527+ }
528+
529+ main .content div [id ^= "attachment_" ].alignleft {
530+ margin-left : 0 ;
531+ width : 40% ;
532+ }
533+
534+ main .content div [id ^= "attachment_" ].alignright {
535+ margin-right : 0 ;
536+ width : 40% ;
537+ }
538+
539+ main .content figure : has (img .alignleft ), .blog-post main figure : has (img .alignleft ) {
540+ margin-right : 2em ;
541+ margin-left : 0 ;
542+ width : 40% ;
543+ float : left;
544+ }
545+
546+ main .content figure : has (img .alignright ), .blog-post main figure : has (img .alignright ) {
547+ margin-right : 0 ;
548+ margin-left : 2em ;
549+ width : 40% ;
550+ float : right;
461551}
You can’t perform that action at this time.
0 commit comments