From c99901fd16d18b27af716f4ec7a4e66df6208ac4 Mon Sep 17 00:00:00 2001
From: cmcnulty <cmcnulty@kznf.com>
Date: Mon, 04 Nov 2013 08:47:22 -0500
Subject: [PATCH] style for focused messages
---
program/steps/mail/func.inc | 7 ++++++-
skins/larry/styles.css | 20 +++++++++++++++++++-
2 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 3c1c2bb..43651ec 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -260,6 +260,8 @@
array_unshift($a_show_cols, 'subject');
if (!in_array('threads', $a_show_cols))
array_unshift($a_show_cols, 'threads');
+ if (!in_array('focus', $a_show_cols))
+ array_unshift($a_show_cols, 'focus');
$_SESSION['skin_path'] = $CONFIG['skin_path'];
@@ -309,6 +311,8 @@
array_unshift($a_show_cols, 'subject');
if (!in_array('threads', $a_show_cols))
array_unshift($a_show_cols, 'threads');
+ if (!in_array('focus', $a_show_cols))
+ array_unshift($a_show_cols, 'focus');
$_SESSION['list_attrib']['columns'] = $a_show_cols;
@@ -336,7 +340,7 @@
return;
// remove 'threads', 'attachment', 'flag', 'status' columns, we don't need them here
- foreach (array('threads', 'attachment', 'flag', 'status', 'priority') as $col) {
+ foreach (array('threads', 'attachment', 'flag', 'status', 'priority', 'focus') as $col) {
if (($key = array_search($col, $a_show_cols)) !== FALSE)
unset($a_show_cols[$key]);
}
@@ -464,6 +468,7 @@
case 'attachment':
case 'priority':
case 'status':
+ case 'focus':
$col_name = '<span class="' . $col .'"> </span>';
break;
case 'threads':
diff --git a/skins/larry/styles.css b/skins/larry/styles.css
index 0d7a500..261618f 100644
--- a/skins/larry/styles.css
+++ b/skins/larry/styles.css
@@ -1296,7 +1296,7 @@
border-left: 0;
}
-.records-table tr.selected td {
+.records-table tr.selected td, .records-table tr.focused > td.focus {
color: #fff !important;
background: #019bc6;
background: -moz-linear-gradient(top, #019bc6 0%, #017cb4 100%);
@@ -1326,7 +1326,25 @@
color: #ccc !important;
}
+.records-table td.focus {
+ /*background: none repeat scroll 0 0 rgba(0, 0, 0, 0);*/
+ width: 2px;
+}
+ .records-table tr.focused > td.focus {
+ border-bottom: 1px solid #017cb4;
+ border-top: 1px double #019bc6;
+ }
+.records-table tr.selected.focused > td.focus {
+ background: none repeat scroll 0 0 white;
+ border-top: none;
+ border-bottom: 1px solid #ddd;
+}
+/*
+.records-table tr.focused > td.focus {
+ background: #019bc6 !important;
+}
+*/
/*** iFrames ***/
#aboutframe {
--
Gitblit v1.9.1