From 3fa0254876bbebe0a0bd71ae67d9d59e6cc0d9ca Mon Sep 17 00:00:00 2001 From: movilla Date: Tue, 13 Nov 2012 17:10:30 +0100 Subject: [PATCH] add simple background for unread messages/conversations mobile --- Changelog.md | 1 + app/assets/stylesheets/mobile.css.scss | 20 ++++++++++++++++++-- app/views/notifications/index.mobile.haml | 2 +- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/Changelog.md b/Changelog.md index 1be2e6f7a..9b7cadc5b 100644 --- a/Changelog.md +++ b/Changelog.md @@ -23,6 +23,7 @@ * Add password_confirmation field to registration page. [#3647](https://github.com/diaspora/diaspora/pull/3647) * When posting to Twitter, behaviour changed so that URL to post will only be added to the post when length exceeds 140 chars or post contains uploaded photos. * Remove markdown formatting from post message when posting to Facebook or Twitter. +* Add simple background for unread messages/conversations mobile. [#3724](https://github.com/diaspora/diaspora/pull/3724) ## Bug Fixes diff --git a/app/assets/stylesheets/mobile.css.scss b/app/assets/stylesheets/mobile.css.scss index 3fd01f9a7..39e5d3d89 100644 --- a/app/assets/stylesheets/mobile.css.scss +++ b/app/assets/stylesheets/mobile.css.scss @@ -45,7 +45,7 @@ body { .from { a { - color: #444 !important; + color: #444; font-weight: bold; } margin-bottom: 2px; @@ -787,4 +787,20 @@ textarea#conversation_text { form#new_user.new_user input.btn { white-space: normal; } - + +.unread { + background-color: LightGrey; + .ltr { + font-weight: bold; + } +} + +.read.stream_element { + color: dimGray; + .from { + a { + color: dimGray; + font-weight: bold; + } + } +} diff --git a/app/views/notifications/index.mobile.haml b/app/views/notifications/index.mobile.haml index c19d28b47..41a3f3962 100644 --- a/app/views/notifications/index.mobile.haml +++ b/app/views/notifications/index.mobile.haml @@ -12,7 +12,7 @@ = day %ul.notifications_for_day - notes.each do |note| - .stream_element{:data=>{:guid => note.id}, :class => "#{note.unread ? 'unread' : ''}"} + .stream_element{:data=>{:guid => note.id}, :class => "#{note.unread ? 'unread' : 'read'}"} = person_image_link(note.actors.last)