pub / newsplanet

Planet-Style Newsfeed generated with perlanet
git clone https://src.jayvii.de/pub/newsplanet.git
Home | Log | Files | Exports | Refs | README | RSS

custom.css (956B)


      1 /* Always scroll smoothly */
      2 * {
      3   scroll-behavior: smooth;
      4 }
      5 /* Hide linebreaks inside articles */
      6 section > br,
      7 section > p > br
      8 {
      9   display: none;
     10 }
     11 /* Only show first paragraph of article content (typically the summary) */
     12 .article_content > *:nth-child(n + 2) {
     13   display: none;
     14 }
     15 .article_content {
     16   margin-bottom: 1.5em;
     17 }
     18 /* Article content should not be weighted or have any styling */
     19 .article_content > * {
     20   font-size: inherit;
     21   font-weight: normal;
     22   font-style: none;
     23   line-height: inherit;
     24 }
     25 /* Hide iframes and images in case they are not filtered out */
     26 .article_content > iframe,
     27 .article_content > img,
     28 .article_content > * > img,
     29 .article_content > * > iframe
     30 {
     31   display: none;
     32 }
     33 /* inactive class */
     34 .inactive {
     35   opacity: 0.5;
     36 }
     37 .inactive:hover,
     38 .inactive:focus {
     39   opacity: 1.0;
     40 }
     41 /* Span tables across thw whole width */
     42 table {
     43   width: 100%;
     44 }
     45 /* subfeed iframe */
     46 .subfeed {
     47   width: 100%;
     48   height: 200px;
     49   border: none;
     50 }