Fixing starred date in header.

This commit is contained in:
Samuel Clay 2022-02-28 12:20:14 -05:00
parent 1e86c2715e
commit 443925b6b7
3 changed files with 24 additions and 7 deletions

View file

@ -3661,14 +3661,20 @@ body {
.NB-feed-story .NB-feed-story-header .NB-feed-story-starred-date {
font-size: 12px;
background: transparent url('/media/embed/icons/circular/clock.png') no-repeat 0 center;
background-size: 16px;
padding-left: 20px;
/* text-shadow: 1px 1px 0 rgba(255, 255, 255, .5);*/
/* text-shadow: 1px 1px 0 rgba(255, 255, 255, .5);*/
color: #808080;
display: block;
clear: both;
margin: 6px 0;
margin: 6px 0 0;
}
.NB-feed-story .NB-feed-story-header .NB-feed-story-starred-date .NB-icon {
background: transparent url('/media/embed/icons/circular/clock.png') no-repeat 0 center;
background-size: 16px;
width: 16px;
height: 16px;
margin-top: 6px;
display: inline-block;
vertical-align: text-bottom;
}
.NB-theme-size-xs .NB-feed-story-header .NB-feed-story-starred-date {
font-size: 10px;
@ -3682,6 +3688,14 @@ body {
.NB-theme-size-xl .NB-feed-story-header .NB-feed-story-starred-date {
font-size: 14px;
}
.NB-pref-story-position-center .NB-feed-story-header .NB-feed-story-starred-date {
margin: 6px auto 0;
max-width: 700px;
}
.NB-pref-story-position-right .NB-feed-story-header .NB-feed-story-starred-date {
margin: 6px 0 0 auto;
max-width: 700px;
}
.NB-feed-story .NB-feed-story-content {
padding: 12px 0 0;

View file

@ -250,7 +250,10 @@ NEWSBLUR.Views.StoryDetailView = Backbone.View.extend({
<% } %>\
</div>\
<% if (story.get("starred_date")) { %>\
<span class="NB-feed-story-starred-date"><%= story.get("starred_date") %></span>\
<div class="NB-feed-story-starred-date">\
<span class="NB-icon"></span>\
<%= story.get("starred_date") %>\
</div >\
<% } %>\
</div>\
</div>\

View file

@ -27,7 +27,7 @@ DEBUG = True
# `./manage.py collectstatic` first. Turn this on for development so you can see
# changes in your JS/CSS.
DEBUG_ASSETS = False # Make sure to run `./manage.py collectstatic` first
# DEBUG_ASSETS = True
DEBUG_ASSETS = True
# DEBUG_QUERIES controls the output of the database query logs. Can be rather verbose
# but is useful to catch slow running queries. A summary is also useful in cutting