you could spare

  • two css files
  • one clearfix
  • one extra class

by putting widgets into a inline object instead of a div

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

loominade’s picture

plus: it also works without css

loominade’s picture

Status: Active » Needs review
yannickoo’s picture

Means we can delete following two css files after applying the patch:

  • widgets.css
  • widgets-rtl.css
TomDude48’s picture

Category: bug » feature

Thanks for the patch. I want to research this more. I am moving it to a feature request.

yannickoo’s picture

Status: Needs review » Needs work
+++ b/widgets.moduleundefined
@@ -1156,8 +1155,13 @@ function theme_widgets_set_view($variables) {
+	        $pre = "<$tag id=\"widgets-element-" . $element['name'] . '" class="widgets widgets-element widgets-element-' . $style . ' widgets-style-' . $style . '">';

Oh, there is a tabulator and whitespaces.

+++ b/widgets.moduleundefined
@@ -1156,8 +1155,13 @@ function theme_widgets_set_view($variables) {
+	        $post = "</$tag>";          		¶

Same here.

+++ b/widgets.moduleundefined
@@ -1156,8 +1155,13 @@ function theme_widgets_set_view($variables) {
+	        $post = "</$tag>";          		¶

And whitespaces with tabulator.

yannickoo’s picture

Status: Needs work » Needs review
FileSize
2.04 KB

Fixed #5.

yannickoo’s picture

Title: don't use float » HTML inline objects instead of floating them in CSS
Assigned: loominade » Unassigned