common.css 15 KB

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