From 66dbc3f258d627602659059aafb889537c9b614f Mon Sep 17 00:00:00 2001 From: Daniel Saewitz Date: Sat, 4 May 2013 13:15:47 -0400 Subject: [PATCH 1/5] Highlight username in tavernchat --- src/app/helpers.coffee | 4 ++++ styles/app/game-pane.styl | 28 +++++++++++++++++++--------- views/app/game-pane.html | 3 +-- 3 files changed, 24 insertions(+), 11 deletions(-) diff --git a/src/app/helpers.coffee b/src/app/helpers.coffee index 6e6911e1be..e924e15625 100644 --- a/src/app/helpers.coffee +++ b/src/app/helpers.coffee @@ -162,4 +162,8 @@ viewHelpers = (view) -> return false unless messages?.length > 0 messages && messages[0].id != lastMessageSeen + view.fn 'indexOf', (str1, str2) -> + return false unless str1 && str2 + str1.indexOf(str2) != -1 + module.exports = { viewHelpers, removeWhitespace, randomVal, daysBetween, dayMapping, username } diff --git a/styles/app/game-pane.styl b/styles/app/game-pane.styl index fc1c829866..1a9870afb5 100644 --- a/styles/app/game-pane.styl +++ b/styles/app/game-pane.styl @@ -1,20 +1,30 @@ .full-width - width: 100% + width 100% .border-right - border-right: 1px solid #ddd + border-right 1px solid #ddd .game-tabs a - cursor:pointer + cursor pointer .tab-notification - color: #fff; - background-color: #51a351 + color #fff + background-color #51a351 .tavern-pane - position:relative - height:300px + position relative + height 300px + +.tavern-chat + + li + height 60px + line-height 60px + border-bottom 1px solid #ddd + + &.highlight + background #EEE #market-tab - position: relative - height: 500px \ No newline at end of file + position relative + height 500px diff --git a/views/app/game-pane.html b/views/app/game-pane.html index 8bc8760a63..b574c1c813 100644 --- a/views/app/game-pane.html +++ b/views/app/game-pane.html @@ -91,8 +91,7 @@