From 2c1a63290f5a11c3a8c789b048fad53777216064 Mon, 8 Aug 2011 11:42:44 +0200
From: Bram Goffings <bramgoffings@gmail.com>
Date: Mon, 8 Aug 2011 11:42:36 +0200
Subject: [PATCH] Block css cleanup



diff --git a/modules/block/block.admin.inc b/modules/block/block.admin.inc
index c91cc80..bfc0457 100644
--- a/modules/block/block.admin.inc
+++ b/modules/block/block.admin.inc
@@ -9,7 +9,7 @@
  * Menu callback for admin/structure/block/demo.
  */
 function block_admin_demo($theme = NULL) {
-  drupal_add_css(drupal_get_path('module', 'block') . '/block.css');
+  drupal_add_css(drupal_get_path('module', 'block') . '/block.base.css');
   return '';
 }
 
@@ -77,7 +77,7 @@
  */
 function block_admin_display_form($form, &$form_state, $blocks, $theme, $block_regions = NULL) {
 
-  drupal_add_css(drupal_get_path('module', 'block') . '/block.css');
+  drupal_add_css(drupal_get_path('module', 'block') . '/block.base.css');
 
   // Get a list of block regions if one was not provided.
   if (!isset($block_regions)) {
diff --git a/modules/block/block.base.css b/modules/block/block.base.css
new file mode 100644
index 0000000..174ac56
--- /dev/null
+++ b/modules/block/block.base.css
@@ -0,0 +1,4 @@
+
+#blocks tr.region-populated {
+  display: none;
+}
diff --git a/modules/block/block.css b/modules/block/block.css
deleted file mode 100644
index 214c8a2..0000000
--- a/modules/block/block.css
+++ /dev/null
@@ -1,36 +0,0 @@
-
-#blocks tr.region-title td {
-  font-weight: bold;
-}
-#blocks tr.region-message {
-  font-weight: normal;
-  color: #999;
-}
-#blocks tr.region-populated {
-  display: none;
-}
-.block-region {
-  background-color: #ff6;
-  margin-top: 4px;
-  margin-bottom: 4px;
-  padding: 3px;
-}
-a.block-demo-backlink,
-a.block-demo-backlink:link,
-a.block-demo-backlink:visited {
-  background-color: #B4D7F0;
-  -moz-border-radius: 0 0 10px 10px;
-  -webkit-border-radius: 0 0 10px 10px;
-  border-radius: 0 0 10px 10px;
-  color: #000;
-  font-family: "Lucida Grande", Verdana, sans-serif;
-  font-size: small;
-  line-height: 20px;
-  left: 20px; /*LTR*/
-  padding: 5px 10px;
-  position: fixed;
-  z-index: 499;
-}
-a.block-demo-backlink:hover {
-  text-decoration: underline;
-}
diff --git a/themes/bartik/css/style.css b/themes/bartik/css/style.css
index 39e7805..efca419 100644
--- a/themes/bartik/css/style.css
+++ b/themes/bartik/css/style.css
@@ -1655,3 +1655,37 @@
 #footer-wrapper .poll .bar .foreground {
   background-color: #ddd;
 }
+
+/* -------- Block module --------- */
+#blocks tr.region-title td {
+  font-weight: bold;
+}
+#blocks tr.region-message {
+  font-weight: normal;
+  color: #999;
+}
+.block-region {
+  background-color: #ff6;
+  margin-top: 4px;
+  margin-bottom: 4px;
+  padding: 3px;
+}
+a.block-demo-backlink,
+a.block-demo-backlink:link,
+a.block-demo-backlink:visited {
+  background-color: #B4D7F0;
+  -moz-border-radius: 0 0 10px 10px;
+  -webkit-border-radius: 0 0 10px 10px;
+  border-radius: 0 0 10px 10px;
+  color: #000;
+  font-family: "Lucida Grande", Verdana, sans-serif;
+  font-size: small;
+  line-height: 20px;
+  left: 20px; /*LTR*/
+  padding: 5px 10px;
+  position: fixed;
+  z-index: 499;
+}
+a.block-demo-backlink:hover {
+  text-decoration: underline;
+}
diff --git a/themes/garland/style.css b/themes/garland/style.css
index 4a5961c..83667fd 100644
--- a/themes/garland/style.css
+++ b/themes/garland/style.css
@@ -1253,3 +1253,39 @@
   background-color: #dfd;
   border-color: #beb;
 }
+
+/**
+ * Block module
+ */
+#blocks tr.region-title td {
+  font-weight: bold;
+}
+#blocks tr.region-message {
+  font-weight: normal;
+  color: #999;
+}
+.block-region {
+  background-color: #ff6;
+  margin-top: 4px;
+  margin-bottom: 4px;
+  padding: 3px;
+}
+a.block-demo-backlink,
+a.block-demo-backlink:link,
+a.block-demo-backlink:visited {
+  background-color: #B4D7F0;
+  -moz-border-radius: 0 0 10px 10px;
+  -webkit-border-radius: 0 0 10px 10px;
+  border-radius: 0 0 10px 10px;
+  color: #000;
+  font-family: "Lucida Grande", Verdana, sans-serif;
+  font-size: small;
+  line-height: 20px;
+  left: 20px; /*LTR*/
+  padding: 5px 10px;
+  position: fixed;
+  z-index: 499;
+}
+a.block-demo-backlink:hover {
+  text-decoration: underline;
+}
diff --git a/themes/seven/style.css b/themes/seven/style.css
index 6ac7861..711d4bc 100644
--- a/themes/seven/style.css
+++ b/themes/seven/style.css
@@ -994,3 +994,38 @@
   -webkit-border-radius: 8px;
   border-radius: 8px;
 }
+
+/* Block module */
+#blocks tr.region-title td {
+  font-weight: bold;
+}
+#blocks tr.region-message {
+  font-weight: normal;
+  color: #999;
+}
+.block-region {
+  background-color: #ff6;
+  margin-top: 4px;
+  margin-bottom: 4px;
+  padding: 3px;
+}
+a.block-demo-backlink,
+a.block-demo-backlink:link,
+a.block-demo-backlink:visited {
+  background-color: #B4D7F0;
+  -moz-border-radius: 0 0 10px 10px;
+  -webkit-border-radius: 0 0 10px 10px;
+  border-radius: 0 0 10px 10px;
+  color: #000;
+  font-family: "Lucida Grande", Verdana, sans-serif;
+  font-size: small;
+  line-height: 20px;
+  left: 20px; /*LTR*/
+  padding: 5px 10px;
+  position: fixed;
+  z-index: 499;
+}
+a.block-demo-backlink:hover {
+  text-decoration: underline;
+}
+
