h1, h2, h3, h4 { margin: 0; } ul, ol { list-style-type: none; padding: 0; } @media (max-width: 500px) { body { font-size: 0.8em; } } .admin { color: red; } #article_browser { height: 90vh; display: grid; grid-gap: 1em; } @media (max-width: 500px) { #article_browser { grid-template-areas: "up" "before" "focused" "after" "down"; grid-template-rows: 1fr 1fr 50vh 1fr 1fr; grid-gap: 0.2em; } } @media (min-width: 500px) { #article_browser { grid-template-areas: ". up ." "before focused after" ". down ."; grid-template-columns: 1fr 3fr 1fr; grid-template-rows: 1fr 3fr 1fr; } } .site_logo { display: inline-block; padding: 0.1em; } .site_logo svg, .site_logo img { width: min(10vw, 100px); } #article_browser a { text-decoration: none; } #article_browser .focused { grid-area: focused; align-self: center; justify-self: center; overflow: hidden; height: 100%; background-color: #eee; display: grid; } #article_browser .focused time { justify-self: end; } #article_browser .focused .similar { margin-top: 3em; overflow: scroll; } #article_browser .focused h2 img { vertical-align: middle; } #article_browser .focused > .site_logo { width: 100px; } #article_browser .up { grid-area: up; overflow: scroll; } #article_browser .before { grid-area: before; align-self: center; } #article_browser .article-other-time { height: 100%; } #article_browser .after { grid-area: after; align-self: center; } #article_browser .down { grid-area: down; overflow: scroll; } #article_browser :not(.focused) ul { list-style: none; margin-block-start: 0; } /* Styling of articles that are presented left and right of the main article */ .article-other-time { display: grid; grid-template-areas: "relative" "title" "absolute"; grid-template-rows: auto 1fr auto; } @media (max-width: 500px) { .article-other-time { display: grid; grid-template-areas: "relative title"; grid-template-columns: 1fr auto; } } .article-other-time time.relative { grid-area: relative; } .article-other-time .title { grid-area: title; align-self: center; } .article-other-time time.absolute { grid-area: absolute; justify-self: end; } @media (max-width: 500px) { .article-other-time time.absolute { display: none; } } .articles-same-time > ol { display: flex; flex-direction: column; grid-gap: 0.2em; } .article-same-time { display: grid; grid-template-columns: auto 1fr; grid-gap: 0.5em; align-items: center; } .article-same-time h2 { font-size: 1em; font-weight: normal; }