diff --git a/r2/r2/public/static/compact/unread.png b/r2/r2/public/static/compact/unread.png new file mode 100644 index 000000000..c691921dd Binary files /dev/null and b/r2/r2/public/static/compact/unread.png differ diff --git a/r2/r2/public/static/css/compact.scss b/r2/r2/public/static/css/compact.scss index 3368ec236..b9c002605 100644 --- a/r2/r2/public/static/css/compact.scss +++ b/r2/r2/public/static/css/compact.scss @@ -141,54 +141,56 @@ button.button { /*Options expando*/ -.link .options_expando, .comment .options_expando { - background: hsl(210,35%,20%); - margin: 35px -5px -1px; - border-top: 1px solid hsl(210,35%,10%); - display: none; - @include box-orient(horizontal); - @include box-align(center); - @include box-pack(center); - @include box-shadow(inset 0px 3px 8px hsla(0,0%,0%,.8)); - text-shadow: 0px -1px 0px hsla(0,0%,0%,.8); +.link, .comment, .message { + .options_expando { + background: hsl(210,35%,20%); + margin: 35px -5px -1px; + border-top: 1px solid hsl(210,35%,10%); + display: none; + @include box-orient(horizontal); + @include box-align(center); + @include box-pack(center); + @include box-shadow(inset 0px 3px 8px hsla(0,0%,0%,.8)); + text-shadow: 0px -1px 0px hsla(0,0%,0%,.8); - a { - display: block; - color: white; - text-decoration: none; - font-size: 11px; - padding: 10px; - width: 40px; - text-align: center; - border-right: 1px solid hsl(210,35%,10%); - border-left: 1px solid hsl(210,35%,30%); - @include transition(all, 100ms, ease-in); + a { + display: block; + color: white; + text-decoration: none; + font-size: 11px; + padding: 10px; + width: 40px; + text-align: center; + border-right: 1px solid hsl(210,35%,10%); + border-left: 1px solid hsl(210,35%,30%); + @include transition(all, 100ms, ease-in); - &:active { - background-color: hsl(210,35%,30%); - border-left: 1px solid hsl(210,35%,40%); - } + &:active { + background-color: hsl(210,35%,30%); + border-left: 1px solid hsl(210,35%,40%); + } - &:hover { - background-color: hsl(210,25%,20%); - @include box-shadow(inset 0px 3px 8px hsla(0,0%,0%,.8)); - border-left: 1px solid hsl(210,35%,40%); - padding: { - top: 15px; - bottom: 5px; + &:hover { + background-color: hsl(210,25%,20%); + @include box-shadow(inset 0px 3px 8px hsla(0,0%,0%,.8)); + border-left: 1px solid hsl(210,35%,40%); + padding: { + top: 15px; + bottom: 5px; + } + } + + &:first-child { + border-left: none; + } + &:last-child { + border-right: none; } } - &:first-child { - border-left: none; + &.expanded { + @include display-box; } - &:last-child { - border-right: none; - } - } - - &.expanded { - @include display-box; } } .comment .options_expando { @@ -196,7 +198,7 @@ button.button { } .email-icon, .report-icon, .save-icon, .unsave-icon, .domain-icon, .edit-icon, .reply-icon, .permalink-icon, -.collapse-icon, .context-icon, .parent-icon { +.collapse-icon, .context-icon, .parent-icon, .unread-icon { display: block; width: 24px; height: 24px; @@ -239,6 +241,9 @@ button.button { .parent-icon { background-image: url('/static/compact/context.png'); /* SPRITE */ } +.unread-icon { + background-image: url('/static/compact/unread.png'); /* SPRITE */ +} /*Toolbar*/ #topbar { diff --git a/r2/r2/templates/message.compact b/r2/r2/templates/message.compact index 9e3883dff..9986ce400 100644 --- a/r2/r2/templates/message.compact +++ b/r2/r2/templates/message.compact @@ -70,36 +70,26 @@ author = updated_author % dict(author = author, subreddit = subreddit) %>
-
- -
- - - ${unsafe(taglinetext % dict(when = thing.timesince, author= u"%s" % author, dest = u"%s" % (thing.to.name if thing.to else "")))}
+ ${unsafe(safemarkdown(thing.body))} +