From 5acc93dd34c6bd474ae1bc85f70fa2d41a60f8bd Mon Sep 17 00:00:00 2001 From: MatthewM Date: Thu, 20 Dec 2012 01:19:04 -0500 Subject: [PATCH] Made the table cells for the memo table have no spacing and color the read and unread memos different colors --- .../templates/default/memoserv/memos.html | 17 +++++++++---- .../webcpanel/templates/default/style.css | 25 ++++++++++++++++++- 2 files changed, 36 insertions(+), 6 deletions(-) diff --git a/modules/extra/webcpanel/templates/default/memoserv/memos.html b/modules/extra/webcpanel/templates/default/memoserv/memos.html index 7cff20dbf..4d0024f91 100644 --- a/modules/extra/webcpanel/templates/default/memoserv/memos.html +++ b/modules/extra/webcpanel/templates/default/memoserv/memos.html @@ -77,20 +77,27 @@ Time/Message {FOR I,S,T,TXT,U IN NUMBER,SENDER,TIME,TEXT,UNREAD} - + {IF EQ U YES} + + {ELSE} + + {END IF} {I} {S} {TXT} - - - {IF EQ U YES} + + + Mark as Read   Reply  Delete {ELSE} - Mark as Unread ;  + + + + Mark as Unread   Reply   Delete {END IF} diff --git a/modules/extra/webcpanel/templates/default/style.css b/modules/extra/webcpanel/templates/default/style.css index 94e7a900d..13b4e4759 100644 --- a/modules/extra/webcpanel/templates/default/style.css +++ b/modules/extra/webcpanel/templates/default/style.css @@ -126,8 +126,9 @@ body { td.right a:link, td.right a:visited { color: #000; + background-color: #FFF; border: 1px solid #000; - padding: 1px 4px; + padding: 0px 4px; -webkit-border-radius: 5x; border-radius: 5px; text-decoration: none; @@ -136,6 +137,28 @@ td.right a:link, td.right a:visited { td.right a:hover { color: #00F; } + +table#memoTable { + border-spacing: 0px; + border-collapse: collapse; +} + +table#memoTable tr { + padding: 1px; +} + +tr.read { + background-color: #FFF; +} + +tr.unread { + background-color: #EEE; +} + +tr.read td, tr.unread td { + padding: 2px; +} + /* Modal Window */ #mask { position: absolute;