WordPress.org

Ready to get started?Download WordPress

Forums

My Custom CSS
[resolved] Cross-Site compatibility CSS will not work (7 posts)

  1. nusrc
    Member
    Posted 1 year ago #

    When attempting to alter the following code, it would completly wipe out the background (Setting it to background:0):

    background: #222; /* Show a solid color for older browsers */
    	background: -moz-linear-gradient(#252525, #0a0a0a);
    	background: -o-linear-gradient(#252525, #0a0a0a);
    	background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#252525), to(#0a0a0a)); /* older webkit syntax */
    	background: -webkit-linear-gradient(#252525, #0a0a0a);

    http://wordpress.org/extend/plugins/my-custom-css/

  2. DarkWolf
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry, but my plugin simply insert css in your website. If your css is ok your result is ok ;)
    -
    > As u can see, when u insert code (with body - just for test) it maintain all elements without problem: http://img834.imageshack.us/img834/3415/customcssreport.png
    -
    > but your CSS cause this result in debug (bugmenot - firefox): http://img845.imageshack.us/img845/1394/debugreport.png

  3. nusrc
    Member
    Posted 1 year ago #

    Indeed, your plugin should insert the CSS into the code, but the fact of the matter is that it does not, specifically when designing for different browsers (as I have done here).

    The code is taken directly from the Twenty Eleven theme created by WordPress: http://wordpress.org/extend/themes/twentyeleven

  4. DarkWolf
    Member
    Plugin Author

    Posted 1 year ago #

    My plugin insert code in source... If your code is bad isn't my problem, sorry :/
    See in source code if css is present. If is present my plugin work fine.

  5. nusrc
    Member
    Posted 1 year ago #

    Please try it through your own plugin. You'll see what happens:
    http://imageshack.us/a/img404/492/screenshot20130131at102.jpg

    Once you hit the "Save Stylesheet" button:
    http://imageshack.us/photo/my-images/43/screenshot20130131at102.jpg/

    I'm not sure why you're insisting the code is "bad". It's not my code, it's the code from the WordPress developers. Nor is it "bad": http://alistapart.com/article/css3-bling-in-the-real-world

    Regardless of whether or not the code is "bad", your plugin shouldn't attempt to rip it out or correct it.

  6. nusrc
    Member
    Posted 1 year ago #

    damnit. nm. i'm complaining about the wrong plugin.

  7. DarkWolf
    Member
    Plugin Author

    Posted 1 year ago #

    For "bad code" i intend "not work as you expected" ;)
    -
    Anyway, with my plugin this result can't be possible.
    > http://img834.imageshack.us/img834/3415/customcssreport.png

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags