tinytinyrss/themes/light/cdm.less

324 lines
4.7 KiB
Plaintext
Raw Normal View History

2017-11-29 15:00:29 +01:00
.cdm {
/*i.material-icons {
color : @color-icon;
}*/
.header, .footer {
display : flex;
flex-direction : row;
flex-wrap : nowrap;
2017-11-29 15:00:29 +01:00
}
.header img, .footer img,
.footer i.material-icons {
2021-03-11 12:32:15 +01:00
margin : 0 4px;
vertical-align: middle;
2017-11-29 15:00:29 +01:00
}
.header-sticky-guard {
height : 0;
}
.header {
2021-03-11 12:32:15 +01:00
position: sticky;
top : 0;
z-index: 3;
align-items : center;
2017-11-29 15:00:29 +01:00
> * {
2018-12-05 11:58:18 +01:00
padding : 4px;
white-space : nowrap;
}
.left, .right {
2018-12-05 11:58:18 +01:00
display : flex;
align-items : center;
2018-12-05 11:58:18 +01:00
i.material-icons {
margin-left : 2px;
padding : 2px;
transition : color 0.2s linear;
2018-12-05 12:11:40 +01:00
user-select: none;
font-size : 21px;
2018-12-05 11:58:18 +01:00
}
}
.titleWrap {
flex-grow : 2;
2017-11-29 15:00:29 +01:00
}
2021-03-11 12:32:15 +01:00
.updated {
color : @default-text;
2017-11-29 15:00:29 +01:00
font-weight : normal;
2021-03-11 12:32:15 +01:00
font-size : @font-size-small;
2017-11-29 15:00:29 +01:00
white-space : nowrap;
}
input {
margin : 0px 4px;
2017-11-29 15:00:29 +01:00
}
2021-03-11 12:32:15 +01:00
.feed {
float: right;
font-weight: normal;
font-style: italic;
a {
border-radius : 4px;
display : inline-block;
padding : 1px 4px 1px 4px;
}
}
.feed, .feed a {
vertical-align: middle;
color: @default-text;
font-weight: normal;
font-style: italic;
font-size: @font-size-small;
}
.author {
white-space : nowrap;
color : @default-text;
font-size : @font-size-small;
font-weight : normal;
}
2017-11-29 15:00:29 +01:00
}
.footer {
2017-11-29 15:00:29 +01:00
height : 30px;
padding-left : 5px;
font-weight : normal;
color : @default-text;
2017-11-29 15:00:29 +01:00
clear : both;
align-items : center;
i.material-icons {
color : @color-icon;
}
.left {
flex-grow : 2;
2017-11-29 15:00:29 +01:00
}
}
.content-inner {
2017-11-29 15:00:29 +01:00
margin : 10px;
line-height : 1.5;
font-size : 16px;
}
2021-04-21 17:47:49 +02:00
.content-inner {
iframe {
max-width : 98%;
width : auto;
height : auto;
}
2021-03-10 09:44:16 +01:00
img,
video {
border-width : 0px;
max-width : 98%;
width : auto;
height : auto;
}
2017-11-29 15:00:29 +01:00
}
2021-03-11 12:32:15 +01:00
&.expanded {
2018-12-05 19:37:33 +01:00
2021-03-11 12:32:15 +01:00
.collapse, .excerpt {
display : none;
}
2017-11-29 15:00:29 +01:00
2021-03-11 12:32:15 +01:00
.titleWrap {
white-space : normal;
}
2017-11-29 15:00:29 +01:00
2021-03-11 12:32:15 +01:00
.footer {
border: 0px solid @border-default;
border-bottom-width: 1px;
}
2017-11-29 15:00:29 +01:00
2021-03-11 12:32:15 +01:00
> hr {
margin-top : 0;
margin-bottom : 0;
}
2017-11-29 15:00:29 +01:00
2021-03-11 12:32:15 +01:00
.header a.title {
font-size : 16px;
color : #999;
font-weight : 600;
transition : color 0.2s, background 0.2s;
text-rendering: optimizelegibility;
font-family : @fonts-ui;
2021-03-11 12:32:15 +01:00
}
2017-11-29 15:00:29 +01:00
2021-03-11 12:32:15 +01:00
&.active,
&.Unread {
.content {
color : black;
}
}
2017-11-29 15:00:29 +01:00
2021-03-11 12:32:15 +01:00
&.active {
.header .title {
color : @color-link;
}
}
2017-11-29 15:00:29 +01:00
2021-03-11 12:32:15 +01:00
&.Unread {
.header .title {
color : black;
}
}
2017-11-29 15:00:29 +01:00
2021-03-11 12:32:15 +01:00
.content {
color : @default-text;
}
}
2017-11-29 15:00:29 +01:00
2021-03-11 12:32:15 +01:00
&.vgrlf .feed {
display : none;
}
2021-03-11 12:32:15 +01:00
.feed-title {
2018-11-30 15:22:30 +01:00
border: 0px solid @color-link;
border-bottom-width: 1px;
padding: 5px 3px 5px 5px;
2017-11-29 15:00:29 +01:00
2021-03-11 12:32:15 +01:00
a.title {
color: @default-text;
font-weight: bold;
}
2017-11-29 15:00:29 +01:00
2021-03-11 12:32:15 +01:00
a {
color: @default-text;
}
2017-11-29 15:00:29 +01:00
2021-03-11 12:32:15 +01:00
a:hover {
color: @color-link;
}
2018-11-30 15:22:30 +01:00
}
2017-11-29 15:00:29 +01:00
2021-04-21 17:47:49 +02:00
.content-inner {
.embed-responsive {
overflow : hidden;
padding-bottom : @embed-responsive-padding;
position : relative;
iframe {
border : 0;
bottom : 0;
height : 100%;
left : 0;
position : absolute;
top : 0;
width : 100%;
}
2020-05-16 04:25:56 +02:00
}
}
2021-03-11 12:32:15 +01:00
&.expandable {
background-color : @color-panel-bg;
border: 0px solid @border-default;
border-bottom-width: 1px;
2021-03-11 12:32:15 +01:00
> hr {
display : none;
}
2018-12-02 17:04:53 +01:00
2021-03-11 12:32:15 +01:00
div.header span.titleWrap {
white-space : nowrap;
text-overflow : ellipsis;
overflow : hidden;
}
2018-12-02 17:04:53 +01:00
2021-03-11 12:32:15 +01:00
.excerpt {
white-space : nowrap;
font-size : @font-size-small;
color : #999;
font-weight : normal;
cursor : pointer;
}
2021-03-11 12:32:15 +01:00
&:not(.active) {
user-select : none;
}
2021-03-11 12:32:15 +01:00
&.Unread {
background : white;
}
2021-03-11 12:32:15 +01:00
&.Selected:not(.active) {
background : desaturate(@color-accent, 25%);
2021-03-11 12:32:15 +01:00
a,
.header a.title,
span {
color : white;
}
}
2021-03-11 12:32:15 +01:00
&.active {
background : white ! important;
}
2021-03-11 12:32:15 +01:00
&.active div.header span.titleWrap {
white-space : normal;
}
2021-03-11 12:32:15 +01:00
.header a.title {
font-weight : 600;
color : @default-text;
2021-03-11 13:07:54 +01:00
font-size : @font-size-content;
2021-03-11 12:32:15 +01:00
transition : color 0.2s, background 0.2s;
text-rendering: optimizelegibility;
font-family : @fonts-ui;
2021-03-11 12:32:15 +01:00
}
2021-03-11 12:32:15 +01:00
&.Unread div.header a.title {
color : black;
}
2021-03-11 12:32:15 +01:00
&.active {
.collapse i.material-icons {
color : @color-accent;
cursor : pointer;
}
2018-12-06 13:28:11 +01:00
2021-03-11 12:32:15 +01:00
.excerpt {
display: none;
}
2018-12-02 17:04:53 +01:00
2021-03-11 12:32:15 +01:00
div.header a.title {
color: @color-link;
font-size: 16px;
font-weight: 600;
text-rendering: optimizelegibility;
font-family: @fonts-ui;
2021-03-11 12:32:15 +01:00
}
}
2021-03-11 12:32:15 +01:00
&:not(.active) {
cursor : pointer;
2021-03-11 12:32:15 +01:00
.content, .collapse {
display : none;
}
}
}
&.expandable.active,
&.expanded {
2021-03-10 10:10:11 +01:00
.header[data-is-stuck] {
box-shadow : 0 1px 1px -1px rgba(0,0,0,0.1);
border: 0 solid @border-default;
border-bottom-width: 1px;
background : @default-bg ! important;
opacity: 0.9;
backdrop-filter: blur(6px);
}
}
}