common.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964
  1. /* Layout */
  2. * {
  3. margin: 0;
  4. padding: 0;
  5. box-sizing: border-box;
  6. }
  7. html {
  8. -webkit-text-size-adjust: 100%;
  9. -ms-text-size-adjust: 100%;
  10. }
  11. body {
  12. font-family: var(--font-family);
  13. text-rendering: optimizeLegibility;
  14. color: var(--body-color);
  15. background: var(--body-background);
  16. }
  17. hr {
  18. border: 0;
  19. height: 0;
  20. border-top: 1px dotted var(--hr-border-color);
  21. padding-bottom: 10px;
  22. }
  23. h1, h2, h3 {
  24. color: var(--title-color);
  25. }
  26. main {
  27. padding-left: 5px;
  28. padding-right: 5px;
  29. margin-bottom: 30px;
  30. }
  31. a {
  32. color: var(--link-color);
  33. }
  34. a:focus {
  35. outline: 0;
  36. color: var(--link-focus-color);
  37. text-decoration: none;
  38. outline: 1px dotted #aaa;
  39. }
  40. a:hover {
  41. color: var(--link-hover-color);
  42. text-decoration: none;
  43. }
  44. /* Header and main menu */
  45. .header {
  46. margin-top: 10px;
  47. margin-bottom: 20px;
  48. }
  49. .header nav ul {
  50. display: none;
  51. }
  52. .header li {
  53. cursor: pointer;
  54. padding-left: 10px;
  55. line-height: 2.1em;
  56. font-size: 1.2em;
  57. border-bottom: 1px dotted var(--header-list-border-color);
  58. }
  59. .header li:hover a {
  60. color: #888;
  61. }
  62. .header a {
  63. font-size: 0.9em;
  64. color: var(--header-link-color);
  65. text-decoration: none;
  66. border: none;
  67. font-weight: 400;
  68. }
  69. .header .active a {
  70. color: var(--header-active-link-color);
  71. font-weight: 500;
  72. }
  73. .header a:hover {
  74. color: var(--header-link-hover-color);
  75. }
  76. .header a:focus {
  77. color: var(--header-link-focus-color);
  78. }
  79. /* Page header and footer*/
  80. .page-header {
  81. margin-bottom: 25px;
  82. }
  83. .page-footer {
  84. margin-bottom: 10px;
  85. }
  86. .page-header h1 {
  87. font-weight: 500;
  88. border-bottom: 1px dotted var(--page-header-title-border-color);
  89. }
  90. .page-header ul,
  91. .page-footer ul {
  92. margin-left: 25px;
  93. }
  94. .page-header li,
  95. .page-footer li {
  96. list-style-type: circle;
  97. line-height: 1.8em;
  98. }
  99. /* Logo */
  100. .logo {
  101. cursor: pointer;
  102. text-align: center;
  103. }
  104. .logo a {
  105. color: var(--logo-color);
  106. letter-spacing: 1px;
  107. }
  108. .logo a:hover {
  109. color: #339966;
  110. }
  111. .logo a span {
  112. color: #339966;
  113. }
  114. .logo a:hover span {
  115. color: var(--logo-hover-color-span);
  116. }
  117. /* Search form */
  118. .search {
  119. text-align: center;
  120. display: none;
  121. }
  122. .search-toggle-switch {
  123. display: none;
  124. }
  125. /* PWA prompt */
  126. #prompt-home-screen {
  127. display: none;
  128. position: fixed;
  129. bottom: 0;
  130. right: 0;
  131. width: 100%;
  132. text-align: center;
  133. background: #000;
  134. opacity: 85%;
  135. }
  136. #btn-add-to-home-screen {
  137. text-decoration: none;
  138. line-height: 30px;
  139. color: #fff;
  140. }
  141. #btn-add-to-home-screen:hover {
  142. color: red;
  143. }
  144. /* Notification - "Toast" */
  145. .toast-wrap {
  146. visibility: hidden;
  147. opacity: 0;
  148. position: fixed;
  149. left: 0;
  150. bottom: 10%;
  151. color: #fff;
  152. width: 100%;
  153. text-align: center;
  154. }
  155. .toast-msg {
  156. background-color: rgba(0,0,0,0.7);
  157. padding: 2px 5px;
  158. border-radius: 5px;
  159. }
  160. .toastAnimate {
  161. animation: toastKeyFrames 2s;
  162. }
  163. @keyframes toastKeyFrames {
  164. 0% {visibility: hidden; opacity: 0;}
  165. 25% {visibility: visible; opacity: 1; z-index: 9999}
  166. 50% {visibility: visible; opacity: 1; z-index: 9999}
  167. 75% {visibility: visible; opacity: 1; z-index: 9999}
  168. 100% {visibility: hidden; opacity: 0; z-index: 0}
  169. }
  170. @media (min-width: 600px) {
  171. body {
  172. margin: auto;
  173. max-width: 750px;
  174. }
  175. .header {
  176. margin-bottom: 0;
  177. }
  178. .logo {
  179. text-align: left;
  180. float: left;
  181. margin-right: 15px;
  182. margin-left: 5px;
  183. }
  184. .header nav ul {
  185. display: block;
  186. }
  187. .header li {
  188. display: inline;
  189. padding: 0;
  190. padding-right: 15px;
  191. line-height: normal;
  192. border: none;
  193. font-size: 1.0em;
  194. }
  195. .page-header ul,
  196. .page-footer ul {
  197. margin-left: 0;
  198. }
  199. .page-header li,
  200. .page-footer li {
  201. display: inline;
  202. padding-right: 15px;
  203. }
  204. /* Search form */
  205. .search {
  206. text-align: right;
  207. display: block;
  208. margin-top: 10px;
  209. margin-right: 5px;
  210. }
  211. .search-toggle-switch {
  212. display: block;
  213. }
  214. .search-form {
  215. display: none;
  216. }
  217. .search-toggle-switch.has-search-query {
  218. display: none;
  219. }
  220. .search-form.has-search-query {
  221. display: block;
  222. }
  223. }
  224. /* Tables */
  225. table {
  226. width: 100%;
  227. border-collapse: collapse;
  228. }
  229. table, th, td {
  230. border: 1px solid var(--table-border-color);
  231. }
  232. th, td {
  233. padding: 5px;
  234. text-align: left;
  235. }
  236. td {
  237. vertical-align: top;
  238. }
  239. th {
  240. background: var(--table-th-background);
  241. color: var(--table-th-color);
  242. font-weight: 400;
  243. }
  244. tr:hover {
  245. color: var(--table-tr-hover-color);
  246. background-color: var(--table-tr-hover-background-color);
  247. }
  248. .column-40 {
  249. width: 40%;
  250. }
  251. .column-25 {
  252. width: 25%;
  253. }
  254. .column-20 {
  255. width: 20%;
  256. }
  257. /* Forms */
  258. fieldset {
  259. border: 1px solid #ddd;
  260. padding: 8px;
  261. }
  262. legend {
  263. font-weight: 500;
  264. padding-left: 3px;
  265. padding-right: 3px;
  266. }
  267. label {
  268. cursor: pointer;
  269. display: block;
  270. }
  271. .radio-group {
  272. line-height: 1.9em;
  273. }
  274. div.radio-group label {
  275. display: inline-block;
  276. }
  277. select {
  278. margin-bottom: 15px;
  279. }
  280. input[type="search"],
  281. input[type="url"],
  282. input[type="password"],
  283. input[type="text"] {
  284. color: var(--input-color);
  285. background: var(--input-background);
  286. border: var(--input-border);
  287. padding: 3px;
  288. line-height: 20px;
  289. width: 250px;
  290. font-size: 99%;
  291. margin-bottom: 10px;
  292. margin-top: 5px;
  293. -webkit-appearance: none;
  294. }
  295. input[type="search"]:focus,
  296. input[type="url"]:focus,
  297. input[type="password"]:focus,
  298. input[type="text"]:focus {
  299. color: var(--input-focus-color);
  300. border-color: var(--input-focus-border-color);
  301. outline: 0;
  302. box-shadow: var(--input-focus-box-shadow);
  303. }
  304. input[type="checkbox"] {
  305. margin-bottom: 15px;
  306. }
  307. ::-moz-placeholder,
  308. ::-ms-input-placeholder,
  309. ::-webkit-input-placeholder {
  310. color: #ddd;
  311. padding-top: 2px;
  312. }
  313. .form-help {
  314. font-size: 0.9em;
  315. color: brown;
  316. margin-bottom: 15px;
  317. }
  318. .form-section {
  319. border-left: 2px dotted #ddd;
  320. padding-left: 20px;
  321. margin-left: 10px;
  322. }
  323. details > summary {
  324. outline: none;
  325. cursor: pointer;
  326. }
  327. .details-content {
  328. margin-top: 15px;
  329. }
  330. /* Buttons */
  331. a.button {
  332. text-decoration: none;
  333. }
  334. .button {
  335. display: inline-block;
  336. -webkit-appearance: none;
  337. -moz-appearance: none;
  338. font-size: 1.1em;
  339. cursor: pointer;
  340. padding: 3px 10px;
  341. border: 1px solid;
  342. border-radius: unset;
  343. }
  344. .button-primary {
  345. border-color: var(--button-primary-border-color);
  346. background: var(--button-primary-background);
  347. color: var(--button-primary-color);
  348. }
  349. .button-primary:hover,
  350. .button-primary:focus {
  351. border-color: var(--button-primary-focus-border-color);
  352. background: var(--button-primary-focus-background);
  353. }
  354. .button-danger {
  355. border-color: #b0281a;
  356. background: #d14836;
  357. color: #fff;
  358. }
  359. .button-danger:hover,
  360. .button-danger:focus {
  361. color: #fff;
  362. background: #c53727;
  363. }
  364. .button:disabled {
  365. color: #ccc;
  366. background: #f7f7f7;
  367. border-color: #ccc;
  368. }
  369. .buttons {
  370. margin-top: 10px;
  371. margin-bottom: 20px;
  372. }
  373. /* Alerts */
  374. .alert {
  375. padding: 8px 35px 8px 14px;
  376. margin-bottom: 20px;
  377. color: var(--alert-color);
  378. background-color: var(--alert-background-color);
  379. border: 1px solid var(--alert-border-color);
  380. border-radius: 4px;
  381. overflow: auto;
  382. }
  383. .alert h3 {
  384. margin-top: 0;
  385. margin-bottom: 15px;
  386. }
  387. .alert-success {
  388. color: var(--alert-success-color);
  389. background-color: var(--alert-success-background-color);
  390. border-color: var(--alert-success-border-color);
  391. }
  392. .alert-error {
  393. color: var(--alert-error-color);
  394. background-color: var(--alert-error-background-color);
  395. border-color: var(--alert-error-border-color);
  396. }
  397. .alert-error h3,
  398. .alert-error a {
  399. color: var(--alert-error-color);
  400. }
  401. .alert-info {
  402. color: var(--alert-info-color);
  403. background-color: var(--alert-info-background-color);
  404. border-color: var(--alert-info-border-color);
  405. }
  406. /* Panel */
  407. .panel {
  408. color: var(--panel-color);
  409. background-color: var(--panel-background);
  410. border: 1px solid var(--panel-border-color);
  411. border-radius: 5px;
  412. padding: 10px;
  413. margin-bottom: 15px;
  414. }
  415. .panel h3 {
  416. font-weight: 500;
  417. margin-top: 0;
  418. margin-bottom: 20px;
  419. }
  420. .panel ul {
  421. margin-left: 30px;
  422. }
  423. /* Modals */
  424. #modal-left {
  425. position: fixed;
  426. top: 0;
  427. left: 0;
  428. bottom: 0;
  429. width: 380px;
  430. overflow: auto;
  431. color: var(--modal-color);
  432. background: var(--modal-background);
  433. box-shadow: var(--modal-box-shadow);
  434. padding: 5px;
  435. padding-top: 30px;
  436. }
  437. #modal-left h3 {
  438. font-weight: 400;
  439. margin: 0;
  440. }
  441. .btn-close-modal {
  442. position: absolute;
  443. top: 0;
  444. right: 0;
  445. font-size: 1.7em;
  446. color: #ccc;
  447. padding:0 .2em;
  448. margin: 10px;
  449. text-decoration: none;
  450. }
  451. .btn-close-modal:hover {
  452. color: #999;
  453. }
  454. /* Keyboard Shortcuts */
  455. .keyboard-shortcuts li {
  456. margin-left: 25px;
  457. list-style-type: square;
  458. color: var(--keyboard-shortcuts-li-color);
  459. font-size: 0.95em;
  460. line-height: 1.45em;
  461. }
  462. .keyboard-shortcuts p {
  463. line-height: 1.9em;
  464. }
  465. /* Login form */
  466. .login-form {
  467. margin: 50px auto 0;
  468. max-width: 280px;
  469. }
  470. /* Counters */
  471. .unread-counter-wrapper,
  472. .error-feeds-counter-wrapper {
  473. font-size: 0.9em;
  474. font-weight: 300;
  475. color: var(--counter-color);
  476. }
  477. /* Category label */
  478. .category {
  479. font-size: 0.75em;
  480. background-color: var(--category-background-color);
  481. border: 1px solid var(--category-border-color);
  482. border-radius: 5px;
  483. margin-left: 0.25em;
  484. padding: 1px 0.4em 1px 0.4em;
  485. white-space: nowrap;
  486. color: var(--category-color);
  487. }
  488. .category a {
  489. color: var(--category-link-color);
  490. text-decoration: none;
  491. }
  492. .category a:hover,
  493. .category a:focus {
  494. color: var(--category-link-hover-color);
  495. }
  496. /* Pagination */
  497. .pagination {
  498. font-size: 1.1em;
  499. display: flex;
  500. align-items: center;
  501. padding-top: 8px;
  502. }
  503. .pagination-bottom {
  504. border-top: 1px dotted var(--pagination-border-color);
  505. margin-bottom: 15px;
  506. margin-top: 50px;
  507. }
  508. .pagination > div {
  509. flex: 1;
  510. }
  511. .pagination-next {
  512. text-align: right;
  513. }
  514. .pagination-prev:before {
  515. content: "« ";
  516. }
  517. .pagination-next:after {
  518. content: " »";
  519. }
  520. .pagination a {
  521. color: var(--pagination-color);
  522. }
  523. .pagination a:hover,
  524. .pagination a:focus {
  525. text-decoration: none;
  526. }
  527. /* List view */
  528. .item {
  529. border: 1px dotted var(--item-border-color);
  530. margin-bottom: 20px;
  531. padding: var(--item-padding);
  532. overflow: hidden;
  533. }
  534. .item.current-item {
  535. border: var(--current-item-border-width) solid var(--current-item-border-color);
  536. padding: 3px;
  537. box-shadow: var(--current-item-box-shadow);
  538. }
  539. .item-title a {
  540. text-decoration: none;
  541. font-weight: var(--item-title-link-font-weight);
  542. }
  543. .item-status-read .item-title a {
  544. color: var(--item-status-read-title-link-color);
  545. }
  546. .item-meta {
  547. display: flex;
  548. flex-flow: row wrap;
  549. justify-content: space-between;
  550. color: var(--item-meta-focus-color);
  551. font-size: 0.8em;
  552. }
  553. .item-meta a {
  554. color: #777;
  555. text-decoration: none;
  556. }
  557. .item-meta a:hover,
  558. .item-meta a:focus {
  559. color: #333;
  560. }
  561. .item-meta ul {
  562. margin-top: 5px;
  563. }
  564. .item-meta li {
  565. display: inline;
  566. }
  567. .item-meta li:after {
  568. content: "|";
  569. color: var(--item-meta-li-color);
  570. }
  571. .item-meta li:last-child:after {
  572. content: "";
  573. }
  574. .items {
  575. overflow-x: hidden;
  576. }
  577. .hide-read-items .item-status-read:not(.current-item) {
  578. display: none;
  579. }
  580. /* Feeds list */
  581. article.feed-parsing-error {
  582. background-color: var(--feed-parsing-error-background-color);
  583. border-color: #aaa;
  584. }
  585. .parsing-error {
  586. font-size: 0.85em;
  587. margin-top: 2px;
  588. color: var(--parsing-error-color);
  589. }
  590. .parsing-error-count {
  591. cursor: pointer;
  592. }
  593. /* Entry view */
  594. .entry header {
  595. padding-bottom: 5px;
  596. border-bottom: 1px dotted var(--entry-header-border-color);
  597. }
  598. .entry header h1 {
  599. font-size: 2.0em;
  600. line-height: 1.25em;
  601. margin: 5px 0 30px 0;
  602. }
  603. .entry header h1 a {
  604. text-decoration: none;
  605. color: var(--entry-header-title-link-color);
  606. }
  607. .entry header h1 a:hover,
  608. .entry header h1 a:focus {
  609. color: #666;
  610. }
  611. .entry-actions {
  612. margin-bottom: 20px;
  613. }
  614. .entry-actions a {
  615. text-decoration: none;
  616. }
  617. .entry-actions li {
  618. display: inline;
  619. }
  620. .entry-actions li:not(:last-child):after {
  621. content: "|";
  622. }
  623. .entry-meta {
  624. font-size: 0.95em;
  625. margin: 0 0 20px;
  626. color: #666;
  627. overflow-wrap: break-word;
  628. }
  629. .entry-website img {
  630. vertical-align: top;
  631. }
  632. .entry-website a {
  633. color: #666;
  634. vertical-align: top;
  635. text-decoration: none;
  636. }
  637. .entry-website a:hover,
  638. .entry-website a:focus {
  639. text-decoration: underline;
  640. }
  641. .entry-date {
  642. font-size: 0.65em;
  643. font-style: italic;
  644. color: #555;
  645. }
  646. .entry-content {
  647. padding-top: 15px;
  648. font-size: 1.2em;
  649. font-weight: 300;
  650. font-family: var(--entry-content-font-family);
  651. color: var(--entry-content-color);
  652. line-height: 1.4em;
  653. overflow-wrap: break-word;
  654. }
  655. .entry-content h1, h2, h3, h4, h5, h6 {
  656. margin-top: 15px;
  657. margin-bottom: 10px;
  658. }
  659. .entry-content iframe,
  660. .entry-content video,
  661. .entry-content img {
  662. max-width: 100%;
  663. }
  664. .entry-content figure {
  665. margin-top: 15px;
  666. margin-bottom: 15px;
  667. }
  668. .entry-content figure img {
  669. border: 1px solid #000;
  670. }
  671. .entry-content figcaption {
  672. font-size: 0.75em;
  673. text-transform: uppercase;
  674. color: #777;
  675. }
  676. .entry-content p {
  677. margin-top: 10px;
  678. margin-bottom: 15px;
  679. }
  680. .entry-content a {
  681. overflow-wrap: break-word;
  682. }
  683. .entry-content a:visited {
  684. color: purple;
  685. }
  686. .entry-content dt {
  687. font-weight: 500;
  688. margin-top: 15px;
  689. color: #555;
  690. }
  691. .entry-content dd {
  692. margin-left: 15px;
  693. margin-top: 5px;
  694. padding-left: 20px;
  695. border-left: 3px solid #ddd;
  696. color: #777;
  697. font-weight: 300;
  698. line-height: 1.4em;
  699. }
  700. .entry-content blockquote {
  701. border-left: 4px solid #ddd;
  702. padding-left: 25px;
  703. margin-left: 20px;
  704. margin-top: 20px;
  705. margin-bottom: 20px;
  706. line-height: 1.4em;
  707. font-family: var(--entry-content-quote-font-family);
  708. }
  709. .entry-content q {
  710. color: var(--entry-content-quote-color);
  711. font-family: var(--entry-content-quote-font-family);
  712. font-style: italic;
  713. }
  714. .entry-content q:before {
  715. content: "“";
  716. }
  717. .entry-content q:after {
  718. content: "”";
  719. }
  720. .entry-content pre {
  721. padding: 5px;
  722. overflow: auto;
  723. overflow-wrap: initial;
  724. border-width: 1px;
  725. border-style: solid;
  726. }
  727. .entry-content pre,
  728. .entry-content code {
  729. color: var(--entry-content-code-color);
  730. background: var(--entry-content-code-background);
  731. border-color: var(--entry-content-code-border-color);
  732. }
  733. .entry-content table {
  734. max-width: 100%;
  735. }
  736. .entry-content ul,
  737. .entry-content ol {
  738. margin-left: 30px;
  739. margin-top: 15px;
  740. margin-bottom: 15px;
  741. }
  742. .entry-content li ul,
  743. .entry-content li ol {
  744. margin-top: 0;
  745. margin-bottom: 0;
  746. }
  747. .entry-content ul {
  748. list-style-type: square;
  749. }
  750. .entry-content strong {
  751. font-weight: 600;
  752. }
  753. details.entry-enclosures {
  754. margin-top: 25px;
  755. }
  756. .entry-enclosures summary {
  757. font-weight: 500;
  758. font-size: 1.2em;
  759. }
  760. .entry-enclosure {
  761. border: 1px dotted var(--entry-enclosure-border-color);
  762. padding: 5px;
  763. margin-top: 10px;
  764. max-width: 100%;
  765. }
  766. .entry-enclosure-download {
  767. font-size: 0.85em;
  768. overflow-wrap: break-word;
  769. }
  770. .enclosure-video video,
  771. .enclosure-image img {
  772. max-width: 100%;
  773. }
  774. /* Confirmation */
  775. .confirm {
  776. font-weight: 500;
  777. color: #ed2d04;
  778. }
  779. .confirm a {
  780. color: #ed2d04;
  781. }
  782. .loading {
  783. font-style: italic;
  784. }
  785. /* Bookmarlet */
  786. .bookmarklet {
  787. border: 1px dashed #ccc;
  788. border-radius: 5px;
  789. padding: 15px;
  790. margin: 15px;
  791. text-align: center;
  792. }
  793. .bookmarklet a {
  794. font-weight: 600;
  795. text-decoration: none;
  796. font-size: 1.2em;
  797. }