File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 250250 perspective : $perspective ;
251251}
252252
253+ // List mixins
254+ @mixin wysiwyg__list ($type : ul) {
255+ padding-left : 0 ;
256+ margin : $base-spacing 0 $base-spacing $half-base-spacing ;
257+
258+ #{$type } {
259+ margin-top : $half-base-spacing ;
260+ margin-bottom : $half-base-spacing ;
261+ }
262+
263+ li {
264+ margin : 0 0 $half-base-spacing ;
265+ }
266+
267+ @if $type == ul {
268+ list-style : disc inside none ;
269+ }
270+
271+ @if $type == ol {
272+ list-style : decimal inside none ;
273+ }
274+ }
275+
253276// Title mixins
254277@mixin title ($size : md) {
255278 font-weight : 700 ;
Original file line number Diff line number Diff line change 4343 .editor-post-title__input {
4444 font-family : $customfont-2 ;
4545 }
46+ }
47+
48+ .block-library-list {
49+ ul {
50+ @include wysiwyg__list ();
51+ }
52+ ol {
53+ @include wysiwyg__list (ol);
54+ }
4655}
Original file line number Diff line number Diff line change 1818 }
1919
2020 ul :not ([class ]) {
21- list-style : disc inside none ;
22- margin : 0 0 $base-spacing ;
23-
24- li {
25- margin : 0 0 $half-base-spacing ;
26- }
21+ @include wysiwyg__list ();
2722 }
2823
2924 ol :not ([class ]) {
30- list-style : decimal inside none ;
31- margin : 0 0 $base-spacing ;
32-
33- li {
34- margin : 0 0 $half-base-spacing ;
35- }
25+ @include wysiwyg__list (ol);
3626 }
3727
3828 img {
You can’t perform that action at this time.
0 commit comments