summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
Diffstat (limited to 'modules/node')
-rw-r--r--modules/node/node.css37
-rw-r--r--modules/node/node.module4
2 files changed, 41 insertions, 0 deletions
diff --git a/modules/node/node.css b/modules/node/node.css
new file mode 100644
index 000000000..95eb73496
--- /dev/null
+++ b/modules/node/node.css
@@ -0,0 +1,37 @@
+/* $Id$ */
+
+.node-unpublished, .comment-unpublished {
+ background-color: #fff4f4;
+}
+.preview .node, .preview .comment {
+ background-color: #ffffea;
+}
+#node-admin-filter ul {
+ list-style-type: none;
+ padding: 0;
+ margin: 0;
+ width: 100%;
+}
+#node-admin-buttons {
+ float: left;
+ margin-left: 0.5em;
+ clear: right;
+}
+td.revision-current {
+ background: #ffc;
+}
+.node-form .form-text {
+ display: block;
+ width: 95%;
+}
+.node-form .standard {
+ clear: both;
+}
+.node-form textarea {
+ display: block;
+ width: 95%;
+}
+.node-form .attachments fieldset {
+ float: none;
+ display: block;
+}
diff --git a/modules/node/node.module b/modules/node/node.module
index 8cd0c694e..c05e8dc3e 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1074,6 +1074,10 @@ function node_menu($may_cache) {
}
}
else {
+ // Add the CSS for this module
+ // We put this in !$may_cache so it's only added once per request
+ drupal_add_css(drupal_get_path('module', 'node') .'/node.css');
+
if (arg(0) == 'node' && is_numeric(arg(1))) {
$node = node_load(arg(1));
if ($node->nid) {