miniflux/internal/ui/static/css/common.css

1213 lines
20 KiB
CSS
Raw Normal View History

2017-11-20 06:10:04 +01:00
/* Layout */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
2017-11-20 06:10:04 +01:00
body {
font-family: var(--font-family);
2017-11-20 06:10:04 +01:00
text-rendering: optimizeLegibility;
color: var(--body-color);
background: var(--body-background);
2017-11-20 06:10:04 +01:00
}
2019-08-16 07:08:24 +02:00
hr {
border: 0;
height: 0;
border-top: 1px dotted var(--hr-border-color);
2019-08-16 07:08:24 +02:00
padding-bottom: 10px;
}
h1, h2, h3 {
color: var(--title-color);
}
2017-12-03 02:04:01 +01:00
main {
2017-11-23 01:00:20 +01:00
padding-left: 5px;
padding-right: 5px;
2018-01-06 03:02:43 +01:00
margin-bottom: 30px;
2017-11-20 06:10:04 +01:00
}
a {
color: var(--link-color);
2017-11-20 06:10:04 +01:00
}
a:focus {
outline: 0;
color: var(--link-focus-color);
2017-11-20 06:10:04 +01:00
text-decoration: none;
outline: 1px dotted #aaa;
2017-11-20 06:10:04 +01:00
}
a:hover {
color: var(--link-hover-color);
2017-11-20 06:10:04 +01:00
text-decoration: none;
}
.sr-only {
border: 0 !important;
clip: rect(1px, 1px, 1px, 1px) !important;
-webkit-clip-path: inset(50%) !important;
clip-path: inset(50%) !important;
height: 1px !important;
overflow: hidden !important;
margin: -1px !important;
padding: 0 !important;
position: absolute !important;
width: 1px !important;
white-space: nowrap !important;
}
2024-01-24 08:00:20 +01:00
.skip-to-content-link {
--padding-size: 8px;
--border-size: 1px;
background-color: var(--category-background-color);
color: var(--category-color);
border: var(--border-size) solid var(--category-border-color);
border-radius: 5px;
inset-inline-start: 50%;
padding: var(--padding-size);
position: absolute;
transition: translate 0.3s;
translate: -50% calc(-100% - calc(var(--padding-size) * 2) - calc(var(--border-size) * 2));
}
.skip-to-content-link:focus {
translate: -50% 0;
}
2018-07-05 07:05:19 +02:00
/* Header and main menu */
2017-11-20 06:10:04 +01:00
.header {
margin-top: 10px;
margin-bottom: 20px;
2017-11-20 06:10:04 +01:00
}
.header nav {
display: flex;
2024-01-25 09:36:10 +01:00
align-items: stretch;
flex-direction: column;
}
.header nav button[aria-controls="header-menu"] {
border: none;
background-color: transparent;
display: inline-block;
}
2024-01-25 09:36:10 +01:00
.header nav button[aria-controls="header-menu"] svg {
padding: 5px;
inline-size: 20px;
block-size: 20px;
}
2024-01-25 09:36:10 +01:00
.header nav button[aria-controls="header-menu"][aria-expanded="true"] svg {
rotate: 180deg;
}
2024-01-25 09:36:10 +01:00
.header ul.js-menu-show {
display: initial;
}
2024-01-25 09:36:10 +01:00
.header ul:not(.js-menu-show) {
2017-11-20 06:10:04 +01:00
display: none;
}
.header li {
cursor: pointer;
padding-left: 10px;
line-height: 2.1em;
font-size: 1.2em;
border-bottom: 1px dotted var(--header-list-border-color);
2017-11-20 06:10:04 +01:00
}
.header li a:hover {
2017-11-20 06:10:04 +01:00
color: #888;
}
.header a {
font-size: 0.9em;
color: var(--header-link-color);
2017-11-20 06:10:04 +01:00
text-decoration: none;
border: none;
font-weight: 400;
2017-11-20 06:10:04 +01:00
}
.header .active a {
color: var(--header-active-link-color);
/* Note: Firefox on Windows does not show the link as bold if the value is under 600 */
font-weight: 600;
}
.header a:hover {
color: var(--header-link-hover-color);
2017-11-20 06:10:04 +01:00
}
.header a:focus {
color: var(--header-link-focus-color);
2017-11-20 06:10:04 +01:00
}
/* Page header and footer*/
2017-11-20 06:10:04 +01:00
.page-header {
padding-inline: 5px;
2017-11-20 06:10:04 +01:00
margin-bottom: 25px;
}
.page-footer {
margin-bottom: 10px;
}
2017-11-20 06:10:04 +01:00
.page-header h1 {
font-weight: 500;
border-bottom: 1px dotted var(--page-header-title-border-color);
2017-11-20 06:10:04 +01:00
}
.page-header h1 a {
text-decoration: none;
color: var(--page-header-title-color);
}
.page-header h1 a:hover,
.page-header h1 a:focus {
color: #666;
}
.page-header li,
.page-footer li {
list-style-type: none;
2017-11-23 01:00:20 +01:00
line-height: 1.8em;
2023-01-17 22:57:15 +01:00
white-space: nowrap;
2017-11-20 06:10:04 +01:00
}
2022-02-13 23:27:59 +01:00
.page-header ul a .icon {
padding-bottom: 2px;
}
2018-07-05 07:05:19 +02:00
/* Logo */
2017-11-20 06:10:04 +01:00
.logo {
cursor: pointer;
text-align: center;
2024-01-25 09:36:10 +01:00
display: flex;
justify-content: center;
2017-11-20 06:10:04 +01:00
}
.logo a {
color: var(--logo-color);
2017-11-20 06:10:04 +01:00
letter-spacing: 1px;
2024-01-25 09:36:10 +01:00
display: flex;
align-items: center;
2017-11-20 06:10:04 +01:00
}
.logo a:hover {
color: #339966;
}
.logo a span {
color: #339966;
}
.logo a:hover span {
color: var(--logo-hover-color-span);
2017-11-20 06:10:04 +01:00
}
2018-07-05 07:05:19 +02:00
/* Search form */
.search {
text-align: center;
margin-top: 10px;
margin-right: 5px;
2018-07-05 07:05:19 +02:00
}
2024-01-25 12:25:17 +01:00
.search details[open] svg {
rotate: 180deg;
}
.search details > summary {
list-style: none;
}
.search details > summary::marker, /* Latest Chrome, Edge, Firefox */
.search details > summary::-webkit-details-marker /* Safari */ {
display: none;
}
2018-07-05 07:05:19 +02:00
.search-toggle-switch {
display: none;
}
2020-02-09 20:41:00 +01:00
/* PWA prompt */
#prompt-home-screen {
display: none;
position: fixed;
bottom: 0;
right: 0;
width: 100%;
text-align: center;
background: #000;
opacity: 85%;
}
#btn-add-to-home-screen {
text-decoration: none;
line-height: 30px;
color: #fff;
}
#btn-add-to-home-screen:hover {
color: red;
}
/* Notification - "Toast" */
2021-03-07 20:55:43 +01:00
#toast-wrapper {
visibility: hidden;
opacity: 0;
position: fixed;
left: 0;
bottom: 10%;
color: #fff;
width: 100%;
text-align: center;
2021-03-07 20:02:52 +01:00
}
2021-03-07 20:55:43 +01:00
#toast-msg {
background-color: rgba(0,0,0,0.7);
2021-03-07 20:55:43 +01:00
padding-bottom: 4px;
padding-left: 4px;
padding-right: 5px;
border-radius: 5px;
2020-02-09 20:41:00 +01:00
}
2021-03-07 20:02:52 +01:00
2021-03-07 20:55:43 +01:00
.toast-animate {
animation: toastKeyFrames 2s;
}
@keyframes toastKeyFrames {
0% {visibility: hidden; opacity: 0;}
2020-02-09 20:41:00 +01:00
25% {visibility: visible; opacity: 1; z-index: 9999}
50% {visibility: visible; opacity: 1; z-index: 9999}
75% {visibility: visible; opacity: 1; z-index: 9999}
100% {visibility: hidden; opacity: 0; z-index: 0}
}
2023-06-30 15:22:20 +02:00
@media (min-width: 620px) {
2017-11-20 06:10:04 +01:00
body {
margin: auto;
max-width: 750px;
}
.header {
margin-bottom: 0;
}
2017-11-20 06:10:04 +01:00
.logo {
text-align: left;
float: left;
margin-right: 15px;
2018-07-05 07:05:19 +02:00
margin-left: 5px;
2017-11-20 06:10:04 +01:00
}
.header li {
display: inline;
padding: 0;
padding-right: 15px;
line-height: normal;
border: none;
2017-11-23 07:22:33 +01:00
font-size: 1.0em;
2017-11-20 06:10:04 +01:00
}
2024-01-25 09:36:10 +01:00
.header nav {
align-items: start;
flex-direction: row;
}
.header nav button[aria-controls="header-menu"] svg {
display: none;
}
.header nav button[aria-controls="header-menu"] svg {
rotate: -90deg;
}
.header nav button[aria-controls="header-menu"][aria-expanded="true"] svg {
rotate: 90deg;
}
.header ul:not(.js-menu-show), .header ul.js-menu-show {
display: revert;
}
.page-header li,
.page-footer li {
2017-11-20 06:10:04 +01:00
display: inline;
padding-right: 15px;
}
2018-07-05 07:05:19 +02:00
/* Search form */
.search {
text-align: right;
display: block;
}
.search-toggle-switch {
display: block;
}
.search-form {
display: none;
}
.search-toggle-switch.has-search-query {
display: none;
}
.search-form.has-search-query {
display: block;
}
2017-11-20 06:10:04 +01:00
}
/* Tables */
table {
width: 100%;
border-collapse: collapse;
}
table, th, td {
border: 1px solid var(--table-border-color);
2017-11-20 06:10:04 +01:00
}
th, td {
padding: 5px;
text-align: left;
}
td {
vertical-align: top;
}
th {
background: var(--table-th-background);
color: var(--table-th-color);
font-weight: 400;
2017-11-20 06:10:04 +01:00
}
tr:hover {
color: var(--table-tr-hover-color);
background-color: var(--table-tr-hover-background-color);
2017-11-20 06:10:04 +01:00
}
.column-40 {
width: 40%;
}
.column-25 {
width: 25%;
}
.column-20 {
width: 20%;
}
/* Forms */
fieldset {
border: 1px dotted #ddd;
padding: 8px;
margin-bottom: 20px;
}
legend {
font-weight: 500;
padding-left: 3px;
padding-right: 3px;
}
2017-11-20 06:10:04 +01:00
label {
cursor: pointer;
display: block;
}
.radio-group {
line-height: 1.9em;
}
div.radio-group label {
display: inline-block;
}
select {
margin-bottom: 15px;
}
2018-07-05 07:05:19 +02:00
input[type="search"],
2017-11-20 06:10:04 +01:00
input[type="url"],
input[type="password"],
input[type="text"],
input[type="number"] {
color: var(--input-color);
background: var(--input-background);
border: var(--input-border);
2017-11-20 06:10:04 +01:00
padding: 3px;
line-height: 20px;
2017-11-20 06:10:04 +01:00
width: 250px;
font-size: 99%;
margin-bottom: 10px;
margin-top: 5px;
2023-11-08 20:01:15 +01:00
appearance: none;
2017-11-20 06:10:04 +01:00
}
2018-07-05 07:05:19 +02:00
input[type="search"]:focus,
2017-11-20 06:10:04 +01:00
input[type="url"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[type="number"]:focus {
color: var(--input-focus-color);
border-color: var(--input-focus-border-color);
2017-11-20 06:10:04 +01:00
outline: 0;
box-shadow: var(--input-focus-box-shadow);
2017-11-20 06:10:04 +01:00
}
#form-entries-per-page {
max-width: 80px;
}
2017-12-03 04:32:14 +01:00
input[type="checkbox"] {
2017-12-03 06:12:03 +01:00
margin-bottom: 15px;
2017-12-03 04:32:14 +01:00
}
2020-04-26 05:25:22 +02:00
textarea {
width: 350px;
color: var(--input-color);
background: var(--input-background);
border: var(--input-border);
padding: 3px;
margin-bottom: 10px;
margin-top: 5px;
2023-11-08 20:01:15 +01:00
appearance: none;
2020-04-26 05:25:22 +02:00
}
textarea:focus {
color: var(--input-focus-color);
border-color: var(--input-focus-border-color);
outline: 0;
box-shadow: var(--input-focus-box-shadow);
}
input::placeholder {
color: var(--input-placeholder-color);
2017-11-20 06:10:04 +01:00
padding-top: 2px;
}
.form-label-row {
display: flex;
}
2017-11-20 06:10:04 +01:00
.form-help {
font-size: 0.9em;
color: brown;
margin-bottom: 15px;
}
2017-12-03 06:12:03 +01:00
.form-section {
border-left: 2px dotted #ddd;
padding-left: 20px;
margin-left: 10px;
}
details > summary {
outline: none;
cursor: pointer;
}
.details-content {
margin-top: 15px;
}
2017-11-20 06:10:04 +01:00
/* Buttons */
a.button {
text-decoration: none;
}
.button {
display: inline-block;
2023-11-08 20:01:15 +01:00
appearance: none;
2017-11-20 06:10:04 +01:00
font-size: 1.1em;
cursor: pointer;
padding: 3px 10px;
border: 1px solid;
border-radius: unset;
}
.button-primary {
border-color: var(--button-primary-border-color);
background: var(--button-primary-background);
color: var(--button-primary-color);
2017-11-20 06:10:04 +01:00
}
a.button-primary:hover,
a.button-primary:focus,
2017-11-20 06:10:04 +01:00
.button-primary:hover,
.button-primary:focus {
border-color: var(--button-primary-focus-border-color);
background: var(--button-primary-focus-background);
color: var(--button-primary-color);
2017-11-20 06:10:04 +01:00
}
.button-danger {
border-color: #b0281a;
background: #d14836;
color: #fff;
}
.button-danger:hover,
.button-danger:focus {
color: #fff;
background: #c53727;
}
.button:disabled {
color: #ccc;
background: #f7f7f7;
border-color: #ccc;
}
.buttons {
margin-top: 10px;
margin-bottom: 20px;
}
fieldset .buttons {
margin-bottom: 0;
}
2017-11-20 06:10:04 +01:00
/* Alerts */
.alert {
padding: 8px 35px 8px 14px;
margin-bottom: 20px;
color: var(--alert-color);
background-color: var(--alert-background-color);
border: 1px solid var(--alert-border-color);
2017-11-20 06:10:04 +01:00
border-radius: 4px;
overflow: auto;
}
.alert h3 {
margin-top: 0;
margin-bottom: 15px;
}
.alert-success {
color: var(--alert-success-color);
background-color: var(--alert-success-background-color);
border-color: var(--alert-success-border-color);
2017-11-20 06:10:04 +01:00
}
.alert-error {
color: var(--alert-error-color);
background-color: var(--alert-error-background-color);
border-color: var(--alert-error-border-color);
2017-11-20 06:10:04 +01:00
}
2019-09-22 19:20:55 +02:00
.alert-error h3,
2017-11-20 06:10:04 +01:00
.alert-error a {
color: var(--alert-error-color);
2017-11-20 06:10:04 +01:00
}
.alert-info {
color: var(--alert-info-color);
background-color: var(--alert-info-background-color);
border-color: var(--alert-info-border-color);
2017-11-20 06:10:04 +01:00
}
/* Panel */
.panel {
color: var(--panel-color);
background-color: var(--panel-background);
border: 1px solid var(--panel-border-color);
2017-11-20 06:10:04 +01:00
border-radius: 5px;
padding: 10px;
margin-bottom: 15px;
}
.panel h3 {
font-weight: 500;
margin-top: 0;
margin-bottom: 20px;
}
.panel ul {
margin-left: 30px;
}
/* Modals */
template {
display: none;
}
#modal-left {
position: fixed;
top: 0;
left: 0;
bottom: 0;
width: 380px;
overflow: auto;
color: var(--modal-color);
background: var(--modal-background);
box-shadow: var(--modal-box-shadow);
padding: 5px;
padding-top: 30px;
}
#modal-left h3 {
font-weight: 400;
2018-07-05 07:05:19 +02:00
margin: 0;
}
.btn-close-modal {
position: absolute;
top: 0;
right: 0;
font-size: 1.7em;
color: #ccc;
padding:0 .2em;
margin: 10px;
text-decoration: none;
2023-07-08 00:34:48 +02:00
background-color: transparent;
border: none;
}
.btn-close-modal:hover {
color: #999;
}
/* Keyboard Shortcuts */
.keyboard-shortcuts li {
margin-left: 25px;
list-style-type: square;
color: var(--keyboard-shortcuts-li-color);
font-size: 0.95em;
line-height: 1.45em;
}
.keyboard-shortcuts p {
line-height: 1.9em;
}
2017-11-20 06:10:04 +01:00
/* Login form */
.login-form {
2017-11-23 01:00:20 +01:00
margin: 50px auto 0;
2023-11-05 20:00:34 +01:00
max-width: 300px;
2017-11-20 06:10:04 +01:00
}
/* Counters */
.unread-counter-wrapper,
.error-feeds-counter-wrapper {
font-size: 0.9em;
2017-11-20 06:10:04 +01:00
font-weight: 300;
color: var(--counter-color);
2017-11-20 06:10:04 +01:00
}
/* Category label */
.category {
font-size: 0.75em;
background-color: var(--category-background-color);
border: 1px solid var(--category-border-color);
2017-11-20 06:10:04 +01:00
border-radius: 5px;
margin-left: 0.25em;
padding: 1px 0.4em 1px 0.4em;
white-space: nowrap;
color: var(--category-color);
2017-11-20 06:10:04 +01:00
}
.category a {
color: var(--category-link-color);
2017-11-20 06:10:04 +01:00
text-decoration: none;
}
.category a:hover,
.category a:focus {
color: var(--category-link-hover-color);
2017-11-20 06:10:04 +01:00
}
/* Pagination */
.pagination {
font-size: 1.1em;
display: flex;
align-items: center;
}
.pagination-top {
padding-bottom: 8px;
2017-11-20 06:10:04 +01:00
}
.pagination-bottom {
padding-top: 8px;
}
.pagination-entry-top {
padding-top: 8px;
}
.pagination-entry-bottom {
border-top: 1px dotted var(--pagination-border-color);
2017-11-20 06:10:04 +01:00
margin-bottom: 15px;
margin-top: 50px;
padding-top: 8px;
2017-11-20 06:10:04 +01:00
}
.pagination > div {
flex: 1;
}
.pagination-next {
text-align: right;
}
.pagination-prev:before {
content: "« ";
}
.pagination-next:after {
content: " »";
}
.pagination a {
2021-09-28 14:51:08 +02:00
color: var(--pagination-link-color);
2017-11-20 06:10:04 +01:00
}
.pagination a:hover,
.pagination a:focus {
text-decoration: none;
}
/* List view */
.item {
border: 1px dotted var(--item-border-color);
2017-11-20 06:10:04 +01:00
margin-bottom: 20px;
padding: var(--item-padding);
2017-11-20 06:10:04 +01:00
overflow: hidden;
}
.item.current-item {
border: var(--current-item-border-width) solid var(--current-item-border-color);
2017-11-20 06:10:04 +01:00
padding: 3px;
box-shadow: var(--current-item-box-shadow);
2017-11-20 06:10:04 +01:00
}
.item-title a {
text-decoration: none;
font-weight: var(--item-title-link-font-weight);
2017-11-20 06:10:04 +01:00
}
.item-status-read .item-title a {
color: var(--item-status-read-title-link-color);
2017-11-20 06:10:04 +01:00
}
.item-meta {
color: var(--item-meta-focus-color);
2017-11-20 06:10:04 +01:00
font-size: 0.8em;
}
.item-meta a {
color: #777;
text-decoration: none;
}
.item-meta a:hover,
.item-meta a:focus {
color: #333;
}
.item-meta ul {
margin-top: 5px;
}
.item-meta li {
display: inline-block;
}
.item-meta-info {
font-size: 0.85em;
2017-11-20 06:10:04 +01:00
}
.item-meta-info li:not(:last-child):after {
2017-11-20 06:10:04 +01:00
content: "|";
color: var(--item-meta-li-color);
2017-11-20 06:10:04 +01:00
}
2020-03-22 23:18:12 +01:00
.item-meta-icons li {
margin-right: 8px;
margin-top: 4px;
2020-03-22 23:18:12 +01:00
}
.item-meta-icons li:last-child {
margin-right: 0;
}
.items {
overflow-x: hidden;
touch-action: pan-y;
}
.hide-read-items .item-status-read:not(.current-item) {
2017-11-20 06:10:04 +01:00
display: none;
}
.entry-swipe {
transition-property: transform;
transition-duration: 0s;
transition-timing-function: ease-out;
}
2017-12-27 05:42:43 +01:00
/* Feeds list */
article.feed-parsing-error {
background-color: var(--feed-parsing-error-background-color);
border-style: var(--feed-parsing-error-border-style);
border-color: var(--feed-parsing-error-border-color);
2017-12-27 05:42:43 +01:00
}
article.feed-has-unread {
background-color: var(--feed-has-unread-background-color);
border-style: var(--feed-has-unread-border-style);
border-color: var(--feed-has-unread-border-color);
}
2017-12-27 05:42:43 +01:00
.parsing-error {
font-size: 0.85em;
margin-top: 2px;
color: var(--parsing-error-color);
2017-12-27 05:42:43 +01:00
}
.parsing-error-count {
cursor: pointer;
}
/* Categories list */
article.category-has-unread {
background-color: var(--category-has-unread-background-color);
border-style: var(--category-has-unread-border-style);
border-color: var(--category-has-unread-border-color);
}
2020-03-22 23:18:12 +01:00
/* Icons */
.icon,
.icon-label {
vertical-align: middle;
display: inline-block;
2021-03-07 20:02:52 +01:00
padding-right: 2px;
2020-03-22 23:18:12 +01:00
}
.icon {
width: 16px;
height: 16px;
}
2017-11-20 06:10:04 +01:00
/* Entry view */
.entry header {
padding-bottom: 5px;
border-bottom: 1px dotted var(--entry-header-border-color);
2017-11-20 06:10:04 +01:00
}
.entry header h1 {
font-size: 2.0em;
line-height: 1.25em;
2018-07-05 07:05:19 +02:00
margin: 5px 0 30px 0;
2023-03-31 04:24:16 +02:00
overflow-wrap: break-word;
2017-11-20 06:10:04 +01:00
}
.entry header h1 a {
text-decoration: none;
color: var(--entry-header-title-link-color);
2017-11-20 06:10:04 +01:00
}
.entry header h1 a:hover,
.entry header h1 a:focus {
color: #666;
}
2017-12-03 04:32:14 +01:00
.entry-actions {
margin-bottom: 20px;
}
.entry-actions a {
text-decoration: none;
}
.entry-actions li {
2020-03-22 23:18:12 +01:00
display: inline-block;
margin-right: 15px;
line-height: 1.7em;
}
2017-11-20 06:10:04 +01:00
.entry-meta {
font-size: 0.95em;
margin: 0 0 20px;
color: #666;
overflow-wrap: break-word;
2017-11-20 06:10:04 +01:00
}
2023-06-25 02:44:37 +02:00
.entry-tags {
margin-top: 20px;
margin-bottom: 20px;
}
.entry-tags strong {
font-weight: 600;
}
2017-11-20 06:10:04 +01:00
.entry-website img {
vertical-align: top;
}
.entry-website a {
color: #666;
vertical-align: top;
text-decoration: none;
}
.entry-website a:hover,
.entry-website a:focus {
text-decoration: underline;
}
.entry-date {
font-size: 0.65em;
font-style: italic;
color: #555;
}
.entry-content {
padding-top: 15px;
2017-11-22 05:52:43 +01:00
font-size: 1.2em;
font-weight: var(--entry-content-font-weight);
font-family: var(--entry-content-font-family);
color: var(--entry-content-color);
2017-11-23 01:00:20 +01:00
line-height: 1.4em;
overflow-wrap: break-word;
touch-action: pan-y pinch-zoom;
2017-11-20 06:10:04 +01:00
}
.entry-content h1, h2, h3, h4, h5, h6 {
margin-top: 15px;
2017-11-23 01:00:20 +01:00
margin-bottom: 10px;
2017-11-20 06:10:04 +01:00
}
.entry-content iframe,
.entry-content video,
.entry-content img {
max-width: 100%;
}
2017-12-14 06:30:40 +01:00
.entry-content figure {
margin-top: 15px;
margin-bottom: 15px;
}
2017-11-20 06:10:04 +01:00
.entry-content figure img {
border: 1px solid #000;
}
.entry-content figcaption {
font-size: 0.75em;
text-transform: uppercase;
color: #777;
}
.entry-content p {
2017-11-23 01:00:20 +01:00
margin-top: 10px;
2017-11-20 06:10:04 +01:00
margin-bottom: 15px;
2017-11-23 01:00:20 +01:00
}
.entry-content a {
overflow-wrap: break-word;
2017-11-20 06:10:04 +01:00
}
.entry-content a:visited {
color: var(--link-visited-color);
2017-11-20 06:10:04 +01:00
}
.entry-content dt {
font-weight: 500;
margin-top: 15px;
color: #555;
}
.entry-content dd {
margin-left: 15px;
margin-top: 5px;
padding-left: 20px;
border-left: 3px solid #ddd;
color: #777;
font-weight: 300;
line-height: 1.4em;
}
.entry-content blockquote {
border-left: 4px solid #ddd;
padding-left: 25px;
margin-left: 20px;
margin-top: 20px;
margin-bottom: 20px;
line-height: 1.4em;
font-family: var(--entry-content-quote-font-family);
2017-11-20 06:10:04 +01:00
}
.entry-content q {
color: var(--entry-content-quote-color);
font-family: var(--entry-content-quote-font-family);
2017-11-20 06:10:04 +01:00
font-style: italic;
}
.entry-content q:before {
content: "“";
}
.entry-content q:after {
content: "”";
}
.entry-content pre {
padding: 5px;
overflow: auto;
2017-11-23 01:00:20 +01:00
overflow-wrap: initial;
border-width: 1px;
border-style: solid;
}
.entry-content pre,
.entry-content code {
color: var(--entry-content-code-color);
background: var(--entry-content-code-background);
border-color: var(--entry-content-code-border-color);
2017-11-23 01:00:20 +01:00
}
.entry-content table {
max-width: 100%;
2017-11-20 06:10:04 +01:00
}
.entry-content ul,
.entry-content ol {
margin-left: 30px;
margin-top: 15px;
margin-bottom: 15px;
2017-11-20 06:10:04 +01:00
}
.entry-content li ul,
.entry-content li ol {
margin-top: 0;
margin-bottom: 0;
}
2017-11-20 06:10:04 +01:00
.entry-content ul {
list-style-type: square;
}
.entry-content strong {
font-weight: 600;
}
.entry-content sub,
.entry-content sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
.entry-content sub {
bottom: -0.25em;
}
.entry-content sup {
top: -0.5em;
}
2020-12-21 05:24:01 +01:00
.entry-content abbr {
cursor: pointer;
text-decoration: none;
border-bottom: 1px dashed var(--entry-content-abbr-border-color);
}
details.entry-enclosures {
margin-top: 25px;
}
.entry-enclosures summary {
2017-11-20 06:10:04 +01:00
font-weight: 500;
font-size: 1.2em;
2017-11-20 06:10:04 +01:00
}
.entry-enclosure {
border: 1px dotted var(--entry-enclosure-border-color);
2017-11-20 06:10:04 +01:00
padding: 5px;
margin-top: 10px;
max-width: 100%;
}
.entry-enclosure-download {
font-size: 0.85em;
overflow-wrap: break-word;
2017-11-20 06:10:04 +01:00
}
.enclosure-video video,
.enclosure-image img {
max-width: 100%;
}
/* Confirmation */
.confirm {
font-weight: 500;
color: #ed2d04;
}
.confirm a {
color: #ed2d04;
}
.loading {
font-style: italic;
}
2017-11-22 04:37:47 +01:00
/* Bookmarlet */
.bookmarklet {
border: 1px dashed #ccc;
border-radius: 5px;
padding: 15px;
margin: 15px;
text-align: center;
}
.bookmarklet a {
font-weight: 600;
text-decoration: none;
font-size: 1.2em;
}
.disabled {
opacity: 20%;
}
Add Media Player and resume to last playback position In order to ease podcast listening, the player can be put on top of the feed entry as main content. Use the `Use podcast player` option to enable that. It works on audio and video. Also, when playing audio or video, progression will be saved in order to be able to resume listening later. This position saving is done using the original attachement/enclosures player AND podcast player and do not rely on the podcast player option ti be enabled. Additionally, I made the player fill the width with the entry container to ease seeking and have a bigger video. updateEnclosures now keep existing enclosures based on URL When feeds get updated, enclosures entries are always wiped and re-created. This cause two issue - enclosure progression get lost in the process - enclosure ID changes I used the URL as identifier of an enclosure. Not perfect but hopefully should work. When an enclosure already exist, I simply do nothing and leave the entry as is in the database. If anyone is listening/watching to this enclosure during the refresh, the id stay coherent and progression saving still works. The updateEnclosures function got a bit more complex. I tried to make it the more clear I could. Some optimisation are possible but would make the function harder to read in my opinion. I'm not sure if this is often the case, but some feeds may include tracking or simply change the url each time we update the feed. In those situation, enclosures ids and progression will be lost. I have no idea how to handle this last situation. Use the size instead/alongside url to define the identity of an enclosure ? Translation: english as placeholder for every language except French Aside, I tested a video feed and fixed a few things for it. In fact, the MimeType was not working at all on my side, and found a pretty old stackoverflow discussion that suggest to use an Apple non-standard MimeType for m4v video format. I only did one substitution because I only have one feed to test. Any new video feed can make this go away or evolve depending on the situation. Real video feeds does not tend to be easy to find and test extensively this. Co-authored-by: toastal
2023-04-13 11:46:43 +02:00
audio, video {
Add Media Player and resume to last playback position In order to ease podcast listening, the player can be put on top of the feed entry as main content. Use the `Use podcast player` option to enable that. It works on audio and video. Also, when playing audio or video, progression will be saved in order to be able to resume listening later. This position saving is done using the original attachement/enclosures player AND podcast player and do not rely on the podcast player option ti be enabled. Additionally, I made the player fill the width with the entry container to ease seeking and have a bigger video. updateEnclosures now keep existing enclosures based on URL When feeds get updated, enclosures entries are always wiped and re-created. This cause two issue - enclosure progression get lost in the process - enclosure ID changes I used the URL as identifier of an enclosure. Not perfect but hopefully should work. When an enclosure already exist, I simply do nothing and leave the entry as is in the database. If anyone is listening/watching to this enclosure during the refresh, the id stay coherent and progression saving still works. The updateEnclosures function got a bit more complex. I tried to make it the more clear I could. Some optimisation are possible but would make the function harder to read in my opinion. I'm not sure if this is often the case, but some feeds may include tracking or simply change the url each time we update the feed. In those situation, enclosures ids and progression will be lost. I have no idea how to handle this last situation. Use the size instead/alongside url to define the identity of an enclosure ? Translation: english as placeholder for every language except French Aside, I tested a video feed and fixed a few things for it. In fact, the MimeType was not working at all on my side, and found a pretty old stackoverflow discussion that suggest to use an Apple non-standard MimeType for m4v video format. I only did one substitution because I only have one feed to test. Any new video feed can make this go away or evolve depending on the situation. Real video feeds does not tend to be easy to find and test extensively this. Co-authored-by: toastal
2023-04-13 11:46:43 +02:00
width: 100%;
}
.integration-form summary {
font-weight: 700;
}
.integration-form details {
margin-bottom: 15px;
}
.integration-form details .form-section {
margin-top: 15px;
}
.hidden {
display: none;
}