Index: filefield-rtl.css =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/filefield/filefield-rtl.css,v retrieving revision 1.1 diff -u -r1.1 filefield-rtl.css --- filefield-rtl.css 12 Mar 2009 22:22:25 -0000 1.1 +++ filefield-rtl.css 29 Jun 2010 23:48:00 -0000 @@ -1,15 +1,14 @@ /* $Id: filefield-rtl.css,v 1.1 2009/03/12 22:22:25 quicksketch Exp $ */ .filefield-icon { - float: right; - margin-left: 0.4em; + margin: 0 0 0 2px; } .filefield-element .widget-preview { float: right; - padding-left: 10px; - border-left: 1px solid #CCC; - margin-left: 10px; + padding: 0 0 0 10px; + border-size: 0 0 0 1px; + margin: 0 0 0 10px; } .filefield-element .widget-edit { @@ -20,12 +19,3 @@ .filefield-element div.throbber { padding: 1px 3px 2px 13px; } - -.filefield-generic-edit .filefield-icon { - float: right; - margin-left: 0.7em; -} - -.filefield-generic-edit-description { - margin-left: 6em; -} Index: filefield_formatter.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/filefield/filefield_formatter.inc,v retrieving revision 1.19 diff -u -r1.19 filefield_formatter.inc --- filefield_formatter.inc 29 Jun 2010 21:28:55 -0000 1.19 +++ filefield_formatter.inc 29 Jun 2010 23:48:00 -0000 @@ -143,5 +143,5 @@ $options['attributes']['title'] = $file['filename']; } - return '
'. $icon . l($link_text, $url, $options) .'
'; + return '
'. $icon . l($link_text, $url, $options) .'
'; } Index: filefield.theme.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/filefield/filefield.theme.inc,v retrieving revision 1.10 diff -u -r1.10 filefield.theme.inc --- filefield.theme.inc 28 Apr 2010 16:32:20 -0000 1.10 +++ filefield.theme.inc 29 Jun 2010 23:48:00 -0000 @@ -24,9 +24,8 @@ $dashed_mime = strtr($mime, array('/' => '-', '+' => '-')); if ($icon_url = filefield_icon_url($file)) { - $icon = ''. $mime .' icon'; + return ''. t('@mime icon', array('@mime' => $mime)) .''; } - return '
'. $icon .'
'; } /** Index: filefield.css =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/filefield/filefield.css,v retrieving revision 1.21 diff -u -r1.21 filefield.css --- filefield.css 8 Apr 2009 20:04:52 -0000 1.21 +++ filefield.css 29 Jun 2010 23:48:00 -0000 @@ -1,17 +1,11 @@ /* $Id: filefield.css,v 1.21 2009/04/08 20:04:52 quicksketch Exp $ */ /** - * Overall styles - */ - - -/** * Formatter styles */ .filefield-icon { - float: left; /* RTL */ - margin-right: 0.4em; /* RTL */ + margin: 0 2px 0 0; /* RTL */ } /* End formatter styles. */ @@ -26,9 +20,11 @@ .filefield-element .widget-preview { float: left; /* RTL */ - padding-right: 10px; /* RTL */ - border-right: 1px solid #CCC; /* RTL */ - margin-right: 10px; /* RTL */ + padding: 0 10px 0 0; /* RTL */ + margin: 0 10px 0 0; /* RTL */ + border-width: 0 1px 0 0; /* RTL */ + border-style: solid; + border-color: #CCC; max-width: 30%; } @@ -75,31 +71,3 @@ } /* End general widget form styles. */ - -/** - * Generic file edit widget styles. Not applicable to other widgets that - * might hook into filefield (say, a widget with an image preview). - */ - -.filefield-generic-edit .filefield-icon { - float: left; /* RTL */ - margin-right: 0.7em; /* RTL */ - margin-top: 0.3em; -} - -.filefield-generic-edit-description { - margin-right: 6em; /* RTL */ -} - -/* The text field is made unnecessarily long by node.css - shorten it. */ -.filefield-generic-edit .form-text { - width: 99%; -} - -.filefield-generic-edit .description { - white-space: normal; - margin-bottom: 0; - overflow: auto; /* Indent on line wraps, don't float around the icon. */ -} - -/* End widget form styles. */