WordPress.org

Plugin Directory

Changeset 594933


Ignore:
Timestamp:
09/05/12 13:47:30 (20 months ago)
Author:
tommcfarlin
Message:
  • Updating styles for images in comments to max sure they fit properly within the comment container
  • Adding a donate link
Location:
comment-images/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • comment-images/trunk/README.txt

    r587444 r594933  
    55Requires at least: 3.4.1 
    66Tested up to: 3.4.1 
    7 Stable tag: 1.4 
     7Stable tag: 1.5 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    5959== Changelog == 
    6060 
     61= 1.5 = 
     62* Updating styles for images in comments to max sure they fit properly within the comment container 
     63* Adding a donate link 
     64 
    6165= 1.4 = 
    6266* Resolving a bug that prevents comment images that are uploaded back-to-back from properly displaying. 
  • comment-images/trunk/css/less/plugin.less

    r585139 r594933  
    1 @width: 100%; 
     1/* --- Variables --- */ 
     2 
     3@width:     100%; 
     4@height:    100%; 
     5 
     6/* --- Styles --- */ 
    27 
    38#comment-image-wrapper { 
     
    712 
    813    label { 
    9         display: block; 
    10         width: @width !important; 
    11     } 
     14        display:    block; 
     15        width:      @width !important; 
     16    } // label 
    1217 
    1318    #comment-image-error { 
    14         display: none; 
    15         color: #b94a48; 
    16         text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); 
    17         background-color: #f2dede; 
    18         padding: 8px 35px 8px 14px; 
    19         margin-bottom: 18px; 
     19        display:            none; 
     20        color:              #b94a48; 
     21        text-shadow:        0 1px 0 rgba(255, 255, 255, 0.5); 
     22        background-color:   #f2dede; 
     23        padding:            8px 35px 8px 14px; 
     24        margin-bottom:      18px; 
    2025        .font(); 
    2126        .border(); 
    22     }    
     27    } // #comment-image-error 
    2328 
    2429    .comment-image { 
    2530         
    26         width: @width; 
     31        width:  @width; 
    2732         
    2833        img { 
    29             width: @width; 
    30         } 
     34            max-width:  @width; 
     35            max-height: @height; 
     36        } // img 
    3137         
    32     } 
     38    } // .comment-image 
    3339 
    34 } 
     40} // #comment-image-wrapper 
    3541 
    36 /* --- Parametric Mixins --- */ 
     42/* --- Mixins --- */     
    3743 
    3844.border () { 
    39   border: 1px solid #eed3d7; 
    40   -webkit-border-radius: 4px; 
    41  -moz-border-radius: 4px; 
    42   border-radius: 4px; 
    43 } 
     45    border:                     1px solid #eed3d7; 
     46    -webkit-border-radius:  4px; 
     47    -moz-border-radius:         4px; 
     48    border-radius:          4px; 
     49} // .border 
    4450 
    4551.font () { 
    46     font-family: Arial, Sans-serif; 
    47     font-weight: normal; 
    48     font-size: 12px; 
    49 } 
     52    font-family:    Arial, Sans-serif; 
     53    font-weight:    normal; 
     54    font-size:      12px; 
     55} // .font 
  • comment-images/trunk/css/plugin.css

    r585139 r594933  
    1 #comment-image-wrapper{width:100%;clear:both;}#comment-image-wrapper label{display:block;width:100% !important;} 
    2 #comment-image-wrapper #comment-image-error{display:none;color:#b94a48;text-shadow:0 1px 0 rgba(255, 255, 255, 0.5);background-color:#f2dede;padding:8px 35px 8px 14px;margin-bottom:18px;font-family:Arial,Sans-serif;font-weight:normal;font-size:12px;border:1px solid #eed3d7;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;} 
    3 #comment-image-wrapper .comment-image{width:100%;}#comment-image-wrapper .comment-image img{width:100%;} 
     1/* --- Variables --- */ 
     2/* --- Styles --- */ 
     3#comment-image-wrapper { 
     4  width: 100%; 
     5  clear: both; 
     6} 
     7#comment-image-wrapper label { 
     8  display: block; 
     9  width: 100% !important; 
     10} 
     11#comment-image-wrapper #comment-image-error { 
     12  display: none; 
     13  color: #b94a48; 
     14  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); 
     15  background-color: #f2dede; 
     16  padding: 8px 35px 8px 14px; 
     17  margin-bottom: 18px; 
     18  font-family: Arial, Sans-serif; 
     19  font-weight: normal; 
     20  font-size: 12px; 
     21  border: 1px solid #eed3d7; 
     22  -webkit-border-radius: 4px; 
     23  -moz-border-radius: 4px; 
     24  border-radius: 4px; 
     25} 
     26#comment-image-wrapper .comment-image { 
     27  width: 100%; 
     28} 
     29#comment-image-wrapper .comment-image img { 
     30  max-width: 100%; 
     31  max-height: 100%; 
     32} 
     33/* --- Mixins --- */ 
  • comment-images/trunk/plugin.php

    r587444 r594933  
    22/* 
    33Plugin Name: Comment Images 
    4 Plugin URI: http://tommcfarlin.com/comment-images 
     4Donate URI: http://tommcfarlin.com/donate/ 
     5Plugin URI: http://tommcfarlin.com/comment-images/ 
    56Description: Allow your readers easily to attach an image to their comment. 
    6 Version: 1.4 
     7Version: 1.5 
    78Author: Tom McFarlin 
    8 Author URI: http://tommcfarlin.com 
     9Author URI: http://tommcfarlin.com/ 
    910Author Email: tom@tommcfarlin.com 
    1011License: 
Note: See TracChangeset for help on using the changeset viewer.