news/css/content.css

566 строки
11 KiB
CSS

/**
* ownCloud - News
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
* @author Bernhard Posselt <dev@bernhard-posselt.com>
* @copyright Bernhard Posselt 2014
*/
#app-content #searchresults {
display: none;
}
#app-content .no-feeds-available {
text-align: center;
color: #333;
font-size: 16pt;
min-height: 100%;
height: 100%;
width: 100%;
display: table;
}
#app-content .no-feeds-available p {
vertical-align: middle;
display: table-cell;
}
#articles,
#app-content-wrapper {
height: 100%;
}
/**
* Podcast settings
*/
#app-content .podcast {
height: 30px;
z-index: 10000;
background-color: #111;
}
#app-content .podcast audio {
display: block;
float: left;
width: calc(100% - 60px);
height: 30px;
border-radius: 0;
}
#app-content .podcast button,
#app-content .podcast a {
display: block;
float: left;
height: 30px;
width: 30px;
border: 0;
border-radius: 0;
margin: 0;
background-color: #111;
background-color: transparent;
background-repeat: no-repeat;
background-position: center;
}
#app-content .podcast-close {
background-size: 25px;
background-image: url('../img/close.svg');
}
#app-content .podcast-download {
transform: rotate(270deg);
background-size: 20px;
background-image: url('../img/arrow-white.svg');
}
#app-content .podcast audio::-webkit-media-controls-enclosure {
max-width: inherit;
}
#app-content .podcast.fixed {
position: absolute;
right: 0;
left: 0;
}
#notification a {
text-decoration: underline;
color: blue;
}
#notification li {
display: block;
}
/**
* Content styles
*/
#app-content.loading-content {
background: url('../img/loading.gif') no-repeat;
background-position: calc(50% - 16px) calc(50% - 16px);
/* Overrides the snap.js animation making the loading icon to fly in app-content. */
transition:none !important;
-webkit-transition: none !important;
-moz-webkit-transition: none !important;
}
#app-content.loading-content #app-content-wrapper {
display: none;
}
#app-content:not(.explore) #articles:after {
content: '';
display: block;
height: 100%;
background-repeat: no-repeat;
}
#app-content .autopaging: #articles:after {
content: '';
background-image: url('../img/loading.gif');
background-position: calc(50% - 16px) calc(50% - 16px);
/* Overrides the snap.js animation making the loading icon to fly in app-content. */
transition:none !important;
-webkit-transition: none !important;
-moz-webkit-transition: none !important;
}
#app-content .finished-auto-paging #articles:after {
background-image: -o-linear-gradient(top, #eee 0%, #FEFEFE 100%);
background-image: -moz-linear-gradient(top, #eee 0%, #FEFEFE 100%);
background-image: -webkit-linear-gradient(top, #eee 0%, #FEFEFE 100%);
background-image: -ms-linear-gradient(top, #eee 0%, #FEFEFE 100%);
background-image: linear-gradient(to top, #eee 0%, #FEFEFE 100%);
}
/**
*
*/
.pull-to-refresh {
height: 0;
overflow: hidden;
text-align: center;
background-image:-moz-linear-gradient(top, #eee 0%, #fefefe 100%);
background-image:-webkit-linear-gradient(top, #eee 0%, #fefefe 100%);
background-image:-ms-linear-gradient(top, #eee 0%, #fefefe 100%);
background-image:linear-gradient(top, #eee 0%, #fefefe 100%);
}
.pull-to-refresh.show-pull-to-refresh {
transition: all 0.5s ease;
padding-top: 10px;
height: 44px;
}
/**
* Rules for a single feed item
*/
#app-content .only-in-expanded {
display: block;
}
#app-content .compact .only-in-expanded {
display: none;
}
#app-content .only-in-compact {
display: none;
}
#app-content .compact .only-in-compact {
display: block;
}
#app-content .item {
cursor: default;
border-bottom: 1px solid #eee;
background-image: linear-gradient(top, rgb(248,248,248) 0, rgb(255,255,255) 84px);
}
#app-content :not(.compact) .item {
}
#app-content .item:last-child {
border-bottom: 0;
}
/**
* Utils panel
*/
#app-content .utils {
width: 100%;
line-height: 52px;
box-sizing: border-box;
padding: 15px 50px 0 15px;
}
#app-content .compact .utils {
cursor: pointer;
padding-top: 0;
}
#app-content .utils ul {
height: 40px;
list-style-type: none;
display: flex;
margin: 0;
padding: 0;
}
#app-content .open .utils ul {
height: auto;
}
#app-content .utils ul > li {
min-width: 0;
}
#app-content .util-spacer {
width: 20px;
}
#app-content .compact .util-spacer {
width: 19px;
}
#app-content .utils li {
line-height: 40px;
vertical-align: middle;
}
#app-content .utils > ul > li:last-child {
padding-right: 0;
}
#app-content .utils > ul > li:first-child {
padding-left: 0;
}
#app-content .utils .util {
padding: 0 6px;
}
#app-content .utils .article-action-plugins {
}
#app-content .utils button,
#app-content .utils .external {
padding: 0;
margin: 0;
height: 40px;
width: 40px;
border: 0;
float: left;
background-color: transparent;
background-size: 100%;
background-repeat: no-repeat;
background-size: 25px;
background-position: center;
}
#app-content .utils .external,
#app-content .utils .menu button,
#app-content .utils .icon-toggle {
display: inline-block;
opacity: 0.3;
}
#app-content .utils .external:hover,
#app-content .utils .menu button:hover,
#app-content .utils .icon-toggle:hover,
#app-content .utils .icon-toggle.keep-unread {
opacity: 1;
}
#app-content .utils .star {
background-image: url('../img/inactive_star.svg');
}
#app-content .utils .starred,
#app-content .utils .star:hover {
background-image: url('../img/active_star.svg');
}
/**
* Article title
*/
#app-content .utils .title {
width: 100%;
padding-left: 45px;
background-position: 10px 10px;
background-size: 20px 20px;
background-repeat: no-repeat;
}
#app-content .feed-view .utils .title {
background: none !important;
padding-left: 10px;
}
#app-content .utils .title h1 a {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
width: 100%;
display: inline-block;
color: #222;
font-weight: bold;
font-size: 16px;
line-height: 1.5;
padding-top: 8px;
min-height: 40px;
}
#app-content .open .utils .title h1 a {
overflow: auto;
white-space: normal;
}
#app-content .read .utils .title h1 a {
font-weight: normal;
color: #888;
}
#app-content .utils .date {
padding: 0 15px;
margin-right: 25px;
}
/**
* Expanded content
*/
#app-content .heading {
padding: 25px 0 10px 0;
}
#app-content .heading h1 {
font-size: 19px;
margin-right: 182px;
word-wrap: break-word;
}
#app-content .heading a {
font-weight: bold;
color: #222;
}
#app-content .heading a:hover {
text-decoration: underline;
}
#app-content .heading .date {
float: right;
display: inline-block;
font-size: 15px;
}
#app-content .read .heading a {
font-weight: normal !important;
color: #888;
}
#app-content .feed-view .source {
display: none;
}
/**
* Actual content
*/
#app-content .article {
min-height: 69px;
padding: 0 50px 50px 50px;
}
#app-content .compact .article {
display: none;
}
#app-content .open .article {
display: block;
}
/**
* Timestamp
*/
#app-content .subtitle {
color: #aaa;
font-size: 15px;
width: 100%;
padding-bottom: 25px;
}
#app-content .subtitle a {
color: #aaa;
}
#app-content .subtitle a:hover {
text-decoration: underline;
}
#app-content .date {
color: #aaa;
white-space: nowrap;
}
/**
* Author
*/
#app-content .author {
color: #aaa;
font-size: 15px;
}
#app-content .author a {
color: inherit;
}
#app-content .author a:hover {
text-decoration: underline;
}
/**
* Enclosure
*/
#app-content .enclosure {
padding: 20px 0;
max-width: 770px;
margin-bottom: 15px;
}
#app-content .enclosure audio,
#app-content .enclosure video,
#app-content .enclosure img {
width: 100%;
}
#app-content .enclosure video {
background-color: #000;
margin-bottom: 20px;
}
#app-content .enclosure-error {
line-height: 1.5;
height: 40px;
}
/**
* Article body
*/
#app-content .body {
max-width: 770px;
font-size: 14px;
clear: both;
overflow-x: auto;
}
#app-content .body p {
line-height: 1.5;
margin: 7px 0 14px 0;
}
#app-content .body img,
#app-content .body table {
max-width: 100%;
height: auto;
overflow: auto;
word-wrap: break-word;
white-space:normal;
}
#app-content .body > div > img:first-child,
#app-content .body > div > :first-child > img:first-child {
padding: 0 14px 0 0;
float: left;
}
#app-content .body h1,
#app-content .body h2 {
font-size: 17px;
font-weight: bold;
color: #222;
margin: 21px 0 0 0;
}
#app-content .body h3 {
font-size: 15px;
font-weight: bold;
color: #222;
margin: 21px 0 0 0;
text-decoration: underline;
}
#app-content .body h4,
#app-content .body h5,
#app-content .body h6 {
font-weight: bold;
}
#app-content .body > div {
margin: 7px 0;
}
#app-content .body a {
color: #0000ff;
text-decoration: underline;
}
#app-content .body ul {
margin: 7px 0;
padding-left: 14px;
list-style-type: disc;
}
#app-content .body ol {
margin: 7px 0;
padding-left: 21px;
}
#app-content .body ul li {
cursor: default;
line-height: 21px;
}
#app-content .body pre {
padding: 7px 7px 7px 14px;
background-color: #dadada;
border: 1px solid #ccc;
margin: 7px 0 14px 0;
overflow-y: auto;
}
#app-content .body pre::-webkit-scrollbar {
height: 10px;
}
#app-content .body pre::-webkit-scrollbar-thumb {
background: #333;
}
#app-content .body pre::-webkit-scrollbar-track-piece {
background: #ddd;
}
#app-content .body code,
#app-content .body pre {
font-family: monospace;
font-size: 16px;
}
#app-content .body blockquote {
border-left: 1px solid rgb(210,210,210);
margin: 25px 0;
padding: 0 0 0 15px;
font-style: italic;
}
#app-content .body em {
font-style: italic;
opacity: 1;
}