File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
packages/block-library/src Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 56
56
margin : revert ;
57
57
}
58
58
59
- ul ,
60
- ol {
59
+ // These resets ignore the social links block without increasing
60
+ // specificity as the block library styles include their own reset. This
61
+ // allows the block to have zero specificity styles and remain compatible
62
+ // with global styles for block themes.
63
+ ul :where (:not([class*= " wp-block" ] )),
64
+ ol :where (:not([class*= " wp-block" ] )) {
61
65
margin : revert ;
62
66
padding : revert ;
63
67
list-style-type : revert ;
64
68
box-sizing : border-box ;
65
69
66
70
// Remove bottom margin from nested lists.
67
- ul ,
68
- ol {
71
+ ul : where ( :not([class*= " wp-block " ] )) ,
72
+ ol : where ( :not([class*= " wp-block " ] )) {
69
73
margin : revert ;
70
74
}
71
75
72
- li {
76
+ li : where ( :not([class*= " wp-block " ] )) {
73
77
margin : revert ;
74
78
}
75
79
}
You can’t perform that action at this time.
0 commit comments