ttrss/css/cdm.less

420 lines
6.2 KiB
Plaintext
Raw Normal View History

2017-11-29 14:00:29 +00:00
.cdm {
.header, .footer {
display : flex;
flex-direction : row;
flex-wrap : nowrap;
2017-11-29 14:00:29 +00:00
}
.header img, .footer img,
.footer i {
2017-11-29 14:00:29 +00:00
margin : 0px 4px;
vertical-align: middle;
2017-11-29 14:00:29 +00:00
}
.header {
2017-11-29 14:00:29 +00:00
> * {
align-self : center;
2018-12-05 10:58:18 +00:00
padding : 4px;
white-space : nowrap;
}
.left, .right {
2018-12-05 10:58:18 +00:00
display : flex;
> * {
align-self : center;
}
i.material-icons {
margin-left : 2px;
padding : 2px;
transition : color 0.2s linear;
2018-12-05 11:11:40 +00:00
user-select: none;
font-size : 21px;
2018-12-05 10:58:18 +00:00
}
}
.titleWrap {
flex-grow : 2;
2017-11-29 14:00:29 +00:00
}
span.updated {
color : @default-text;
2017-11-29 14:00:29 +00:00
font-weight : normal;
font-size : 11px;
white-space : nowrap;
}
input {
margin : 0px 4px;
2017-11-29 14:00:29 +00:00
}
}
.footer {
2017-11-29 14:00:29 +00:00
height : 30px;
padding-left : 5px;
font-weight : normal;
color : @default-text;
2017-11-29 14:00:29 +00:00
clear : both;
> * {
align-self : center;
}
.left {
flex-grow : 2;
2017-11-29 14:00:29 +00:00
}
}
.intermediate {
margin-top : 10px;
margin-left : 10px;
2017-11-29 14:00:29 +00:00
}
.content-inner {
2017-11-29 14:00:29 +00:00
margin : 10px;
line-height : 1.5;
font-size : 16px;
}
.intermediate img,
.intermediate video,
.content-inner img,
.content-inner video {
2017-11-29 14:00:29 +00:00
border-width : 0px;
max-width : 98%;
height : auto;
}
}
.cdm.expanded {
2018-12-04 10:40:47 +00:00
/*margin-top : 4px;
margin-bottom : 4px;*/
2017-11-29 14:00:29 +00:00
2018-12-02 16:04:53 +00:00
.collapse, .excerpt {
display : none;
}
2018-12-05 18:37:33 +00:00
.titleWrap {
white-space : normal;
}
.footer {
border: 0px solid @border-default;
2017-11-29 15:55:12 +00:00
border-bottom-width: 1px;
2017-11-29 14:00:29 +00:00
}
> hr {
margin-top : 0px;
margin-bottom : 0px;
}
}
div.cdm.expanded div.header {
2017-11-29 14:00:29 +00:00
background : transparent ! important;
}
div.cdm.expanded div.header a.title {
2017-11-29 14:00:29 +00:00
font-size : 16px;
color : #999;
font-weight : 600;
transition : color 0.2s, background 0.2s;
2017-11-29 14:00:29 +00:00
text-rendering: optimizelegibility;
2017-11-29 15:55:12 +00:00
font-family : @fonts-ui-bold;
2017-11-29 14:00:29 +00:00
}
div.cdm.expanded.active {
background : white;
}
div.cdm.expanded.active div.header a.title {
color : @color-link;
2017-11-29 14:00:29 +00:00
}
div.cdm.expanded.Unread div.header a.title {
2017-11-29 14:00:29 +00:00
color : black;
}
div.cdm.expanded div.content {
color : @default-text;
2017-11-29 14:00:29 +00:00
}
div.cdm.expanded.Unread div.content {
2017-11-29 14:00:29 +00:00
color : black;
}
div.cdm.active div.content {
2017-11-29 14:00:29 +00:00
color : black;
}
2018-11-30 14:22:30 +00:00
.cdm {
div.feed-title {
border: 0px solid @color-link;
border-bottom-width: 1px;
padding: 5px 3px 5px 5px;
}
2017-11-29 14:00:29 +00:00
2018-11-30 14:22:30 +00:00
div.feed-title a.title {
color: @default-text;
font-weight: bold;
}
2017-11-29 14:00:29 +00:00
2018-11-30 14:22:30 +00:00
div.feed-title a {
color: @default-text;
}
2017-11-29 14:00:29 +00:00
2018-11-30 14:22:30 +00:00
div.feed-title a:hover {
color: @color-link;
}
2017-11-29 14:00:29 +00:00
2018-11-30 14:22:30 +00:00
div.header span.feed {
float: right;
font-weight: normal;
font-style: italic;
}
2017-11-29 14:00:29 +00:00
2018-11-30 14:22:30 +00:00
div.header div.feed, div.header div.feed a {
vertical-align: middle;
color: @default-text;
font-weight: normal;
font-style: italic;
font-size: 11px;
}
2017-11-29 14:00:29 +00:00
2018-11-30 14:22:30 +00:00
div.content-inner p {
/*max-width : 650px;*/
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
}
2017-11-29 14:00:29 +00:00
2018-11-30 14:22:30 +00:00
div.content-inner iframe {
min-width : 50%;
max-width : 98%;
}
2017-11-29 14:00:29 +00:00
2018-11-30 14:22:30 +00:00
div.header span.author {
white-space : nowrap;
color : @default-text;
font-size : 11px;
font-weight : normal;
}
2017-11-29 14:00:29 +00:00
2018-11-30 14:22:30 +00:00
.feed a {
border-radius : 4px;
display : inline-block;
padding : 1px 4px 1px 4px;
}
2017-11-29 14:00:29 +00:00
}
div#floatingTitle {
position : absolute;
z-index : 5;
top : 0px;
right : 0px;
left : 0px;
border: 0px solid @border-default;
2017-11-29 15:55:12 +00:00
border-bottom-width: 1px;
2017-11-29 14:00:29 +00:00
background : white;
color : @default-text;
2018-12-05 13:26:53 +00:00
display : flex;
flex-direction : row;
flex-wrap : nowrap;
2017-11-29 14:00:29 +00:00
box-shadow : 0px 1px 1px -1px rgba(0,0,0,0.1);
> * {
2018-12-05 13:26:53 +00:00
align-self: center;
2017-11-29 14:00:29 +00:00
white-space : nowrap;
2018-12-05 13:26:53 +00:00
padding : 4px;
2017-11-29 14:00:29 +00:00
}
2018-12-05 13:26:53 +00:00
.left, .right {
display : flex;
> * {
align-self : center;
}
i.material-icons {
margin-left : 2px;
font-size : 21px;
2018-12-05 13:26:53 +00:00
padding : 2px;
user-select: none;
}
i.icon-anchor {
2018-12-05 13:26:53 +00:00
margin-left : 0px;
margin-right : 1px; // replaces checkbox which is a bit wider
2018-12-05 13:26:53 +00:00
padding : 0px;
color : #ccc;
cursor : pointer;
2018-12-05 13:26:53 +00:00
}
2017-11-29 14:00:29 +00:00
}
span.author {
color : @default-text;
2017-11-29 14:00:29 +00:00
font-size : 11px;
font-weight : normal;
}
a.title {
font-size : 16px;
color : #999;
transition : color 0.2s, background 0.2s;
2017-11-29 14:00:29 +00:00
font-weight : 600;
text-rendering: optimizelegibility;
2017-11-29 15:55:12 +00:00
font-family : @fonts-ui-bold;
2017-11-29 14:00:29 +00:00
}
div.feed {
2017-11-29 14:00:29 +00:00
padding-right : 10px;
color : @default-text;
2017-11-29 14:00:29 +00:00
font-weight : normal;
font-style : italic;
font-size : 11px;
white-space : nowrap;
}
div.feed a {
2017-11-29 14:00:29 +00:00
border-radius : 4px;
display : inline-block;
padding : 1px 4px 1px 4px;
}
span.updated {
padding-right : 10px;
white-space : nowrap;
color : @default-text;
2017-11-29 14:00:29 +00:00
font-size : 11px;
}
div.feed a {
color : @default-text;
2017-11-29 14:00:29 +00:00
}
2018-12-02 16:04:53 +00:00
.collapse, .excerpt {
2018-11-30 22:23:13 +00:00
display : none;
}
2017-11-29 14:00:29 +00:00
span.titleWrap {
width : 100%;
white-space : normal;
}
2018-11-30 14:22:30 +00:00
.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;
}
}
2017-11-29 14:00:29 +00:00
}
div#floatingTitle.Unread a.title {
color : black;
}
.cdm.expandable {
background-color : @color-panel-bg;
border: 0px solid @border-default;
border-bottom-width: 1px;
> hr {
display : none;
}
div.header span.titleWrap {
white-space : nowrap;
text-overflow : ellipsis;
overflow : hidden;
}
2018-12-02 16:04:53 +00:00
.excerpt {
white-space : nowrap;
font-size : 11px;
color : #999;
font-weight : normal;
cursor : pointer;
}
}
.cdm.expandable.Unread {
background : white;
}
.cdm.expandable.Selected:not(.active) {
background : desaturate(@color-accent, 25%);
a,
.header a.title,
span {
color : white;
}
}
.cdm.expandable.active {
background : white ! important;
}
div.cdm.expandable.active div.header span.titleWrap {
white-space : normal;
}
div.cdm.expandable div.header a.title {
font-weight : 600;
color : @default-text;
font-size : 14px;
transition : color 0.2s, background 0.2s;
text-rendering: optimizelegibility;
font-family : @fonts-ui-bold;
}
div.cdm.expandable.Unread div.header a.title {
color : black;
}
2018-12-02 16:04:53 +00:00
div.cdm.expandable.active {
2018-12-06 12:28:11 +00:00
.collapse i {
color : @color-accent;
cursor : pointer;
}
2018-12-02 16:04:53 +00:00
.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) {
cursor : pointer;
.content, .collapse {
display : none;
}
2018-12-02 16:04:53 +00:00
}