To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Changeset 2166

Show
Ignore:
Timestamp:
09/09/10 14:04:51 (17 months ago)
Author:
rickybanister
Message:

touched engines.css and the slideshow selection tools / cropping. Removed the dark box around selected images, restored the crop work area, wrapped the crop button url_for in a json_encode to fix a bug

Location:
plugins/apostrophePlugin/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostrophePlugin/trunk/modules/aMedia/templates/_multipleList.php

    r2089 r2166  
    5858                }); 
    5959                 
    60                 $('#a-media-selection-list-caption').hide(); 
     60                $('.a-media-selection-help').hide(); 
    6161                if (!ids.length) { 
    62       $('#a-media-selection-list-caption').show(); 
     62      $('.a-media-selection-help').show(); 
    6363                } 
    6464 
  • plugins/apostrophePlugin/trunk/modules/aMedia/templates/_selectMultiple.php

    r2122 r2166  
    2121  <div class="a-ui"> 
    2222 
    23         <div id="a-media-selection-list-caption"> 
    24           <h4><?php echo __("Preview your selected image%plural% here.", array('%plural%' => aMediaTools::isMultiple() ? 's':' '), 'apostrophe') ?></h4> 
    25         </div> 
     23        <div id="a-media-selection-wrapper"> 
    2624 
    27         <div id="a-media-selection-wrapper"> 
    28                 <ul id="a-media-selection-list" style="min-height:<?php echo ($thumbHeight = aMediaTools::getSelectedThumbnailHeight()) ? $thumbHeight + 10 : 0 ?>px;"> 
    29                         <?php if($items): ?> 
    30                                 <?php include_partial("aMedia/multipleList", array("items" => $items)) ?> 
    31                         <?php else: ?> 
    32                           <?php if (aMediaTools::isMultiple()): ?> 
    33                                 <li class="a-media-selection-placeholder"><?php echo __('Add images to your slideshow', null, 'apostrophe') ?></li> 
    34                         <?php else: ?> 
    35                           <li class="a-media-selection-placeholder"><?php echo __('Select an image', null, 'apostrophe') ?></li> 
    36                         <?php endif ?> 
    37                         <?php endif ?> 
    38                 </ul> 
     25                        <div class="a-media-selection-help"> 
     26                          <?php if (aMediaTools::isMultiple()): ?> 
     27                                <h4><?php echo __('Add images to your slideshow', null, 'apostrophe') ?></h4> 
     28                        <?php else: ?> 
     29                          <h4><?php echo __('Select an image', null, 'apostrophe') ?></h4> 
     30                        <?php endif ?>           
     31                        </div> 
     32 
     33                        <ul id="a-media-selection-list" style="min-height:<?php echo ($thumbHeight = aMediaTools::getSelectedThumbnailHeight()) ? $thumbHeight + 10 : 0 ?>px;"> 
     34                                        <?php if($items): ?> 
     35                                        <?php include_partial("aMedia/multipleList", array("items" => $items)) ?> 
     36                                        <?php endif ?> 
     37                        </ul> 
    3938 
    4039                <?php echo jq_sortable_element("#a-media-selection-list", array("url" => "aMedia/multipleOrder" )) ?> 
     
    4342                        <?php include_partial("aMedia/multiplePreview", array("items" => $items)) ?> 
    4443                  </ul> 
    45                   <ul class="a-controls a-media-crop-controls" style="display:none;"> 
    46                                 <li><?php echo jq_link_to_function('<span class="icon"></span>'.__('Crop', null, 'apostrophe'), 'aCrop.setCrop('.url_for('aMedia/crop').')', array('class'=>'a-btn save', 'id' => 'a-save-crop', )) ?></li> 
     44                  <ul class="a-ui a-controls a-media-crop-controls" style="display:none;"> 
     45                                <li><?php echo jq_link_to_function('<span class="icon"></span>'.__('Crop', null, 'apostrophe'), 'aCrop.setCrop('.json_encode(url_for('aMedia/crop')).')', array('class'=>'a-btn save', 'id' => 'a-save-crop', )) ?></li> 
    4746                          <li><?php echo jq_link_to_function('<span class="icon"></span>'.__('Cancel', null, 'apostrophe'), 'aCrop.resetCrop()', array('class'=>'a-btn icon a-cancel')) ?></li> 
    4847                  </ul> 
  • plugins/apostrophePlugin/trunk/web/css/a-engines.css

    r2159 r2166  
    373373background-color: #000; 
    374374z-index: 199; 
     375-moz-border-radius: 2px; 
     376-webkit-border-radius: 2px; 
     377border-radius: 2px; 
     378 
    375379} 
    376380 
     
    806810        position: relative; 
    807811        float: left; 
    808         width:680px; 
    809         padding:10px; 
     812        width:700px; 
    810813        margin-bottom: 20px; 
     814/*padding:10px; 
    811815        background-color: #555; 
    812816        -moz-border-radius: 4px; 
     
    815819        box-shadow:inset 0 0 10px #000000; 
    816820  -moz-box-shadow:inset 0 0 10px #000000; 
    817   -webkit-box-shadow:inset 0 0 10px #000000; 
     821  -webkit-box-shadow:inset 0 0 10px #000000;*/ 
    818822} 
    819823 
     
    825829width:690px; 
    826830margin-left: -10px; 
    827 -moz-border-radius: 4px; 
    828 -webkit-border-radius: 4px; 
    829 border-radius: 4px; 
    830 } 
    831  
    832 .a-media-selection-placeholder 
     831} 
     832 
     833.a-ui .a-media-selection-placeholder 
    833834{ 
    834835        margin-left: 10px; 
     
    836837        width: 80px; 
    837838        height: 50px; 
    838         border: 2px dashed #ddd; 
     839        border: 2px dashed #222; 
    839840        padding: 10px; 
    840         color: #fff; 
     841        color: #222; 
    841842} 
    842843 
     
    891892} 
    892893 
    893 #a-media-selection-list-caption { 
    894   display: none; 
    895   position: absolute; 
    896   padding: 45px; 
    897   z-index: 1; 
    898 } 
    899 #a-media-selection-list-caption h4 { 
    900   font-size: 1.2em; 
    901   color: #999; 
    902 } 
    903  
    904894#a-media-selection-preview 
    905895{ 
     
    907897        float:left; 
    908898        width:100%; 
    909         margin:10px 0 0; 
    910899} 
    911900 
     
    924913} 
    925914 
    926 ul.a-media-crop-controls 
     915.a-ui ul.a-media-crop-controls 
    927916{ 
    928917        position: absolute; 
     
    931920} 
    932921 
    933 .a-crop-workspace 
     922.a-ui .a-crop-workspace 
    934923{ 
    935924        overflow: hidden; 
    936925        display: none; 
    937 /*margin: 0 0 10px; 
     926        margin: 10px 0; 
    938927        padding: 10px; 
    939928        background-color: #222; 
     
    943932        box-shadow:inset 0 0 10px #000000; 
    944933  -moz-box-shadow:inset 0 0 10px #000000; 
    945   -webkit-box-shadow:inset 0 0 10px #000000;*/ 
    946 } 
    947  
     934  -webkit-box-shadow:inset 0 0 10px #000000; 
     935} 
    948936 
    949937.a-crop-workspace h4 
     
    959947} 
    960948 
    961 .a-crop-workspace h4 a:hover 
    962 { 
    963         color: ; 
    964 } 
    965949 
    966950