bring back excerpts in unexpanded mode
This commit is contained in:
parent
f89924f7a1
commit
ad1b6f0a86
|
@ -536,9 +536,13 @@ class Feeds extends Handler_Protected {
|
|||
|
||||
$tmp_content .= $labels_str;
|
||||
|
||||
$tmp_content .= "<span class='collapse'>
|
||||
<img src=\"images/collapse.png\" onclick=\"return Article.cdmCollapseActive(event)\"
|
||||
title=\"".__("Collapse article")."\"/></span>";
|
||||
if (!get_pref("CDM_EXPANDED")) {
|
||||
$tmp_content .= "<span class='collapse'>
|
||||
<img src=\"images/collapse.png\" onclick=\"return Article.cdmUnsetActive(event)\"
|
||||
title=\"" . __("Collapse article") . "\"/></span>";
|
||||
|
||||
$tmp_content .= "<span class='excerpt'>" . $line["content_preview"] . "</span>";
|
||||
}
|
||||
|
||||
$tmp_content .= "</span>";
|
||||
|
||||
|
|
31
css/cdm.less
31
css/cdm.less
|
@ -103,7 +103,7 @@
|
|||
margin-top : 4px;
|
||||
margin-bottom : 4px;
|
||||
|
||||
.collapse {
|
||||
.collapse, .excerpt {
|
||||
display : none;
|
||||
}
|
||||
|
||||
|
@ -290,7 +290,7 @@ div#floatingTitle {
|
|||
color : @default-text;
|
||||
}
|
||||
|
||||
.collapse {
|
||||
.collapse, .excerpt {
|
||||
display : none;
|
||||
}
|
||||
|
||||
|
@ -373,6 +373,15 @@ div#floatingTitle.Unread a.title {
|
|||
overflow : hidden;
|
||||
max-width : 500px;
|
||||
}
|
||||
|
||||
.excerpt {
|
||||
white-space : nowrap;
|
||||
font-size : 11px;
|
||||
color : #999;
|
||||
font-weight : normal;
|
||||
cursor : pointer;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.cdm.expandable.Unread {
|
||||
|
@ -410,12 +419,18 @@ div.cdm.expandable.Unread div.header a.title {
|
|||
color : black;
|
||||
}
|
||||
|
||||
div.cdm.expandable.active div.header a.title {
|
||||
color: @color-link;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
text-rendering: optimizelegibility;
|
||||
font-family: @fonts-ui-bold;
|
||||
div.cdm.expandable.active {
|
||||
.excerpt {
|
||||
display: none;
|
||||
}
|
||||
|
||||
div.header a.title {
|
||||
color: @color-link;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
text-rendering: optimizelegibility;
|
||||
font-family: @fonts-ui-bold;
|
||||
}
|
||||
}
|
||||
|
||||
div.cdm.expandable:not(.active) {
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue