• Resolved maxellinger

    (@maxellinger)


    I’m only trying to style an expanded menu inside of a sidebar. I’m using standard AMP elements, including amp-accordion. The inline style that gets added by the plugin is automatically removing the styles that would allow this, for example:

    section.menu-section[expanded] {
    background: green;
    }

    The plugin isn’t stripping out any other content.

    I am getting this error which I frankly do not know how to read. These percentages mean nothing to me. 10% of what?

    The style[amp-custom] element is populated with:
    505 B (10%): link#dashicons-css[rel=stylesheet][href=https://localhost/vumc/wp-includes/css/dashicons.min.css?ver=5.2.2][type=text/css][media=all]
    75 B (24%): link#amp-default-css[rel=stylesheet][href=https://localhost/vumc/wp-content/plugins/amp/assets/css/amp-default.css?ver=1.2.2][type=text/css][media=all]
    1132 B: link#onepress-amp-css[rel=stylesheet][href=https://localhost/vumc/wp-content/themes/onepress-child/assets/css/amp.css?ver=2.42][type=text/css][media=all]
    0 B: style[amp-custom=]
    Total included size: 1,712 bytes (26% of 6,456 total after tree shaking)

    The following stylesheets are too large to be included in style[amp-custom]:
    210 B: style#admin-bar-inline-css[type=text/css]
    Total excluded size: 210 bytes (100% of 210 total after tree shaking)

    Total combined size: 1,922 bytes (28% of 6,666 total after tree shaking)

    • This topic was modified 5 years, 2 months ago by maxellinger.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin is stripping CSS attribute selector’ is closed to new replies.