From 96be0b5510e2afe9e531b57367700d9eb835dfca Mon Sep 17 00:00:00 2001
From: droplet <droplet@591932.no-reply.drupal.org>
Date: Mon, 3 Oct 2011 17:09:13 +0800
Subject: [PATCH] Clean up the CSS for Taxonomy module

---
 modules/taxonomy/taxonomy.admin.css |    6 ++++++
 modules/taxonomy/taxonomy.admin.inc |    2 +-
 modules/taxonomy/taxonomy.css       |   13 -------------
 modules/taxonomy/taxonomy.module    |    2 --
 4 files changed, 7 insertions(+), 16 deletions(-)
 create mode 100644 modules/taxonomy/taxonomy.admin.css
 delete mode 100644 modules/taxonomy/taxonomy.css

diff --git a/modules/taxonomy/taxonomy.admin.css b/modules/taxonomy/taxonomy.admin.css
new file mode 100644
index 0000000..a238171
--- /dev/null
+++ b/modules/taxonomy/taxonomy.admin.css
@@ -0,0 +1,6 @@
+tr.taxonomy-term-divider-top {
+  border-bottom: none;
+}
+tr.taxonomy-term-divider-bottom {
+  border-top: 1px dotted #CCC;
+}
diff --git a/modules/taxonomy/taxonomy.admin.inc b/modules/taxonomy/taxonomy.admin.inc
index 2440a28..c50ac73 100644
--- a/modules/taxonomy/taxonomy.admin.inc
+++ b/modules/taxonomy/taxonomy.admin.inc
@@ -558,7 +558,7 @@ function theme_taxonomy_overview_terms($variables) {
     drupal_add_tabledrag('taxonomy', 'depth', 'group', 'term-depth', NULL, NULL, FALSE);
     drupal_add_js(drupal_get_path('module', 'taxonomy') . '/taxonomy.js');
     drupal_add_js(array('taxonomy' => array('backStep' => $back_step, 'forwardStep' => $forward_step)), 'setting');
-    drupal_add_css(drupal_get_path('module', 'taxonomy') . '/taxonomy.css');
+    drupal_add_css(drupal_get_path('module', 'taxonomy') . '/taxonomy.admin.css');
   }
   drupal_add_tabledrag('taxonomy', 'order', 'sibling', 'term-weight');
 
diff --git a/modules/taxonomy/taxonomy.css b/modules/taxonomy/taxonomy.css
deleted file mode 100644
index 36cd641..0000000
--- a/modules/taxonomy/taxonomy.css
+++ /dev/null
@@ -1,13 +0,0 @@
-
-tr.taxonomy-term-preview {
-  background-color: #EEE;
-}
-tr.taxonomy-term-divider-top {
-  border-bottom: none;
-}
-tr.taxonomy-term-divider-bottom {
-  border-top: 1px dotted #CCC;
-}
-.taxonomy-term-description {
-  margin: 5px 0 20px;
-}
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 7921b79..01e0739 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -745,8 +745,6 @@ function taxonomy_term_view($term, $view_mode = 'full', $langcode = NULL) {
     );
   }
 
-  $build['#attached']['css'][] = drupal_get_path('module', 'taxonomy') . '/taxonomy.css';
-
   // Allow modules to modify the structured term.
   $type = 'taxonomy_term';
   drupal_alter(array('taxonomy_term_view', 'entity_view'), $build, $type);
-- 
1.7.6

