Author: ornicar2
Date: 2010-01-26 01:36:14 +0100 (Tue, 26 Jan 2010)
New Revision: 27174

Modified:
   plugins/dmWidgetGalleryPlugin/lib/dmWidgetContentGalleryForm.php
   plugins/dmWidgetGalleryPlugin/web/css/form.css
Log:
[Diem][dmWidgetGalleryPlugin]
- removed useless line in dmWidgetContentGalleryForm
- improved CSS performances (by reducing selectors depth and specifying more 
tags)

Modified: plugins/dmWidgetGalleryPlugin/lib/dmWidgetContentGalleryForm.php
===================================================================
--- plugins/dmWidgetGalleryPlugin/lib/dmWidgetContentGalleryForm.php    
2010-01-26 00:32:18 UTC (rev 27173)
+++ plugins/dmWidgetGalleryPlugin/lib/dmWidgetContentGalleryForm.php    
2010-01-26 00:36:14 UTC (rev 27174)
@@ -15,8 +15,6 @@
 
   public function configure()
   {
-    $mediaConfig = $this->getValueOrDefault('medias');
-    
     $this->widgetSchema['media_id'] = new sfWidgetFormDoctrineChoice(array(
       'model'    => 'DmMedia',
       'multiple' => true

Modified: plugins/dmWidgetGalleryPlugin/web/css/form.css
===================================================================
--- plugins/dmWidgetGalleryPlugin/web/css/form.css      2010-01-26 00:32:18 UTC 
(rev 27173)
+++ plugins/dmWidgetGalleryPlugin/web/css/form.css      2010-01-26 00:36:14 UTC 
(rev 27174)
@@ -1,21 +1,21 @@
-.dm_widget_content_gallery_form .medias_list {
+div.dm_widget_content_gallery_form .medias_list {
   min-height: 100px;
   max-height: 250px;
   overflow-y: auto;
 }
 
-.dm_widget_content_gallery_form .dm_help.no_margin {
+div.dm_widget_content_gallery_form .dm_help.no_margin {
   margin-left: 0;
 }
 
-.dm_widget_content_gallery_form .drop_zone .media_element {
+div.dm_widget_content_gallery_form li.media_element {
   padding: 3px;
   border-bottom: 1px solid #D3D3D3;
   height: 40px;
   position: relative;
 }
 
-.dm_widget_content_gallery_form .drop_zone .media_element 
.delete_media_element {
+div.dm_widget_content_gallery_form li.media_element .delete_media_element {
        width: 9px;
        height: 8px;
        position: absolute;
@@ -23,42 +23,42 @@
        cursor: pointer;
 }
 
-.dm_widget_content_gallery_form .drop_zone .media_element:hover {
+div.dm_widget_content_gallery_form li.media_element:hover {
   background: #F0F4FC;
 }
 
-.dm_widget_content_gallery_form .drop_zone .media_element img {
+div.dm_widget_content_gallery_form li.media_element img {
   position: absolute;
   top: 3px;
   left: 0;
   cursor: move;
 }
 
-.dm_widget_content_gallery_form .drop_zone .media_element .wrap {
+div.dm_widget_content_gallery_form li.media_element .wrap {
   margin: 2px 0 2px 110px;
 }
 
-.dm_widget_content_gallery_form .drop_zone .media_element label {
+div.dm_widget_content_gallery_form li.media_element label {
   float: left;
   width: 15%;
 }
 
-.dm_widget_content_gallery_form .drop_zone .media_element input {
+div.dm_widget_content_gallery_form li.media_element input {
   border: 1px solid #FFF;
   background: none;
   width: 78%
 }
 
-.dm_widget_content_gallery_form .drop_zone .media_element input:hover,
-.dm_widget_content_gallery_form .drop_zone .media_element input:active {
+div.dm_widget_content_gallery_form li.media_element input:hover,
+div.dm_widget_content_gallery_form li.media_element input:active {
   background: #FFF;
 }
 
 
-.dm_widget_content_gallery_form .drop_zone .media_element 
input.droppable_active {
+div.dm_widget_content_gallery_form li.media_element input.droppable_active {
   background: url(../../../dm/core/images/default_bg_yellow.png) repeat-x 
scroll 50% 50%;
 }
 
-.dm_widget_content_gallery_form .drop_zone .media_element 
input.droppable_hover {
+div.dm_widget_content_gallery_form li.media_element input.droppable_hover {
   background: url(../../../dm/core/images/default_bg_green.png) repeat-x 
scroll 50% 50%;
 }
\ No newline at end of file

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to