WordPress.org

Ready to get started?Download WordPress

Forums

Document Attachment Widget
[resolved] Plugin CSS overrides theme styles (4 posts)

  1. Jaidesign
    Member
    Posted 1 year ago #

    Hi,

    One issue: when widget is active it overrides styles set in theme style.css with its own rules.

    this is a bit clumpsy.. I invite the Author to add plugin spescific classses to his plugin styles.

    regards.

    http://wordpress.org/extend/plugins/document-attachment-widget/

  2. Andy Leppard
    Member
    Posted 1 year ago #

    Hi, yeah, I'd like to second this - you just need to prefix your CSS with your plugin-specific class:

    /* Document attachment widget style sheet */
    
    .widget_document_attachments .attachement {
      margin: 0;
      padding: 7px 0;
      list-style: none;
    }
    .widget_document_attachments li {
      padding: 2px 0 2px 25px;
    }
    .widget_document_attachments .powerpoint {
      background: url('../icons/pp_icon.gif') no-repeat 0 0;
    }
    .widget_document_attachments .csv, .widget_document_attachments .txt, .widget_document_attachments .plain {
      background: url('../icons/txt_icon.gif') no-repeat 0 0;
    }
    .widget_document_attachments .msword {
      background: url('../icons/word_icon.gif') no-repeat scroll 0 0;
    }
    .widget_document_attachments .pdf {
      background: url('../icons/pdf_icon.gif') no-repeat 0 0;
    }
    .widget_document_attachments .excel {
      background: url('../icons/excel_icon.gif') no-repeat 0 0;
    }
    .widget_document_attachments .gif {
      background: url('../icons/gif_icon.gif') no-repeat 0 0;
    }
    .widget_document_attachments .png {
      background: url('../icons/png_icon.gif') no-repeat 0 0;
    }
    .widget_document_attachments .jpeg {
      background: url('../icons/jpg_icon.gif') no-repeat 0 0;
    }
    .widget_document_attachments .x-shockwave-flash {
      background: url('../icons/swf_icon.gif') no-repeat 0 0;
    }
    .widget_document_attachments .filesize {
      font-size: 9px;
    }
    .widget_document_attachments .description {
      font-style: italic;
    }
  3. Andy Leppard
    Member
    Posted 1 year ago #

    It's a nice little plugin, but the CSS causes headaches I don't need, so it's disabled for the time being.

    BTW there's a spelling mistake in one of your classes: .attachement

    Keep up the good work!

  4. Geansai
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks Andy for your comments and CSS, this has now been worked into the plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.