WordPress.org

Ready to get started?Download WordPress

Forums

user files
CSS TO USER FILES, BY TYPE OF FILES (2 posts)

  1. marujobhz
    Member
    Posted 3 years ago #

    HI, I HAVE A SUGGESTION,
    IN THE DASHBOARDWIDGET, OR IN THE PAGE, THE LINKS TO FILES HAVE AN ICON, BY TYPE OF FILES. AN EG. OF CSS:

    <style type="text/css">
    <!--

    /* ICONS for files */

    /* ZIP */
    a[href$='.zip'], a[href$='.rar'], a[href$='.gzip'] {
    background:transparent url(./icons/icon_zip.gif) center left no-repeat;
    display:inline-block;
    padding-left:54px;
    line-height:54px;
    }

    /* PDF */
    a[href$='.pdf'] {
    background:transparent url(./icons/icon_pdf.gif) center left no-repeat;
    display:inline-block;
    padding-left:20px;
    line-height:15px;
    }

    /* Word */
    a[href$='.doc'], a[href$='.rtf'], a[href$='.wps'], a[href$='.txt'] {
    background:transparent url(./icons/icon_doc.gif) center left no-repeat;
    display:inline-block;
    padding-left:20px;
    line-height:15px;
    }

    /* Excel */
    a[href$='.doc'], a[href$='.rtf'], a[href$='.wps'], a[href$='.txt'] {
    background:transparent url(icons/icon_xls.gif) center left no-repeat;
    display:inline-block;
    padding-left:20px;
    line-height:15px;
    }

    /* Images */
    a[href$='.jpg'], a[href$='.gif'], a[href$='.png'], a[href$='.bmp'] {
    background:transparent url(http://www.sintcmg.org/site/wp-content/plugins/user-files/icons/icon_image.gif) center left no-repeat;
    display:inline-block;
    padding-left:20px;
    line-height:15px;
    }

    /* mailto */
    a[href^="mailto:"] {
    background:transparent url(/icons/icon_email.gif) center left no-repeat;
    display:inline-block;
    padding-left:20px;
    line-height:15px;

    -->
    </style>

    http://wordpress.org/extend/plugins/user-files/

  2. Scriptonite
    Member
    Plugin Author

    Posted 3 years ago #

    Working on it for a future release. Hopefully CSS for the tables and files as well as categories and a some minor stupid fixes I missed before. Thanks for the suggestions.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags