minor css fixes (mostly for zoom mode)

master
Andrew Dolgov 6 years ago
parent add558e7e5
commit 07fd4f8d9d

@ -620,13 +620,13 @@ class Article extends Handler_Protected {
} else { } else {
$comments_url = htmlspecialchars($line["link"]); $comments_url = htmlspecialchars($line["link"]);
} }
$entry_comments = "<a class=\"postComments\" $entry_comments = "<a class=\"comments\"
target='_blank' rel=\"noopener noreferrer\" href=\"$comments_url\">$num_comments ". target='_blank' rel=\"noopener noreferrer\" href=\"$comments_url\">$num_comments ".
_ngettext("comment", "comments", $num_comments)."</a>"; _ngettext("comment", "comments", $num_comments)."</a>";
} else { } else {
if ($line["comments"] && $line["link"] != $line["comments"]) { if ($line["comments"] && $line["link"] != $line["comments"]) {
$entry_comments = "<a class=\"postComments\" target='_blank' rel=\"noopener noreferrer\" href=\"".htmlspecialchars($line["comments"])."\">".__("comments")."</a>"; $entry_comments = "<a class=\"comments\" target='_blank' rel=\"noopener noreferrer\" href=\"".htmlspecialchars($line["comments"])."\">".__("comments")."</a>";
} }
} }
@ -720,7 +720,7 @@ class Article extends Handler_Protected {
if (!$entry_comments) $entry_comments = "&nbsp;"; # placeholder if (!$entry_comments) $entry_comments = "&nbsp;"; # placeholder
$rv['content'] .= "<div class='postTags' style='float : right'> $rv['content'] .= "<div class='tags' style='float : right'>
<img src='images/tag.png' <img src='images/tag.png'
class='tagsPic' alt='Tags' title='Tags'>&nbsp;"; class='tagsPic' alt='Tags' title='Tags'>&nbsp;";

@ -634,13 +634,13 @@ class Feeds extends Handler_Protected {
} else { } else {
$comments_url = htmlspecialchars($line["link"]); $comments_url = htmlspecialchars($line["link"]);
} }
$entry_comments = "<a class=\"postComments\" $entry_comments = "<a class=\"comments\"
target='_blank' rel='noopener noreferrer' href=\"$comments_url\">$num_comments ". target='_blank' rel='noopener noreferrer' href=\"$comments_url\">$num_comments ".
_ngettext("comment", "comments", $num_comments)."</a>"; _ngettext("comment", "comments", $num_comments)."</a>";
} else { } else {
if ($line["comments"] && $line["link"] != $line["comments"]) { if ($line["comments"] && $line["link"] != $line["comments"]) {
$entry_comments = "<a class=\"postComments\" target='_blank' rel='noopener noreferrer' href=\"".htmlspecialchars($line["comments"])."\">".__("comments")."</a>"; $entry_comments = "<a class=\"comments\" target='_blank' rel='noopener noreferrer' href=\"".htmlspecialchars($line["comments"])."\">".__("comments")."</a>";
} }
} }

@ -152,14 +152,7 @@ div.cdm.active div.content {
color : black; color : black;
} }
span.cdmExcerpt { .cdm {
white-space : nowrap;
font-size : 11px;
color : #999;
font-weight : normal;
cursor : pointer;
}
div.content div.postEnclosures { div.content div.postEnclosures {
margin-top: 1em; margin-top: 1em;
color: @default-text; color: @default-text;
@ -198,12 +191,6 @@ div.header div.feed, div.header div.feed a {
font-size: 11px; font-size: 11px;
} }
div.cdm .feed a {
border-radius : 4px;
display : inline-block;
padding : 1px 4px 1px 4px;
}
div.content-inner p { div.content-inner p {
/*max-width : 650px;*/ /*max-width : 650px;*/
-webkit-hyphens: auto; -webkit-hyphens: auto;
@ -223,6 +210,13 @@ div.header span.author {
font-weight : normal; font-weight : normal;
} }
.feed a {
border-radius : 4px;
display : inline-block;
padding : 1px 4px 1px 4px;
}
}
div#floatingTitle { div#floatingTitle {
position : absolute; position : absolute;
z-index : 5; z-index : 5;
@ -302,6 +296,29 @@ div#floatingTitle {
display : none; display : none;
} }
.feed-title {
> * {
display : table-cell;
vertical-align : middle;
}
a.title {
width : 100%;
}
a.catchup {
text-align : right;
color : @default-text;
padding-right : 10px;
font-size : 11px;
white-space : nowrap;
}
a.catchup:hover {
color : @color-link;
}
}
} }
div#floatingTitle.Unread a.title { div#floatingTitle.Unread a.title {
@ -333,27 +350,3 @@ div#floatingTitle.Unread a.title {
text-decoration : line-through; text-decoration : line-through;
} }
.feed-title {
> * {
display : table-cell;
vertical-align : middle;
}
a.title {
width : 100%;
}
a.catchup {
text-align : right;
color : @default-text;
padding-right : 10px;
font-size : 11px;
white-space : nowrap;
}
a.catchup:hover {
color : @color-link;
}
}

File diff suppressed because one or more lines are too long

@ -5,6 +5,11 @@ body.ttrss_zoom {
max-width : 800px; max-width : 800px;
background : #f5f5f5; background : #f5f5f5;
div.post {
border : 1px solid #ddd;
background : white;
box-shadow : 0px 1px 1px -1px rgba(0,0,0,0.1);
div.header { div.header {
margin : 10px; margin : 10px;
padding-bottom : 10px; padding-bottom : 10px;
@ -23,7 +28,7 @@ body.ttrss_zoom {
text-align : right; text-align : right;
} }
a.postComments { a.comments {
text-align : right; text-align : right;
} }
@ -33,20 +38,19 @@ body.ttrss_zoom {
margin-bottom : 5px; margin-bottom : 5px;
} }
div.postTags { div.tags {
} }
div.postTags img { div.tags img {
vertical-align : middle; vertical-align : middle;
} }
div.postTitle { div.title {
white-space : normal; white-space : normal;
font-size : 16px; font-size : 16px;
margin-bottom : 5px; margin-bottom : 5px;
} }
} }
p { p {
@ -55,22 +59,16 @@ body.ttrss_zoom {
hyphens: auto; hyphens: auto;
} }
div.post {
border : 1px solid #ddd;
background : white;
box-shadow : 0px 1px 1px -1px rgba(0,0,0,0.1);
}
div.footer { div.footer {
margin-top : 1em; margin-top : 1em;
text-align : center; text-align : center;
} }
div.content { div.content {
font-size : 15px; font-size : 15px;
line-height : 1.5; line-height : 1.5;
padding : 10px; padding : 10px;
border-width : 0px;
img, video { img, video {
max-width : 760px; max-width : 760px;
@ -106,3 +104,5 @@ body.ttrss_zoom {
} }
} }
}

@ -1,5 +1,5 @@
<?php <?php
define('VERSION_STATIC', '18.8'); define('VERSION_STATIC', '18.12');
function get_version() { function get_version() {
date_default_timezone_set('UTC'); date_default_timezone_set('UTC');

Loading…
Cancel
Save