style.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. h1, h2, h3, h4 {
  2. margin: 0;
  3. }
  4. ul, ol {
  5. list-style-type: none;
  6. padding: 0;
  7. }
  8. @media (max-width: 500px) {
  9. body {
  10. font-size: 0.8em;
  11. }
  12. }
  13. .admin {
  14. color: red;
  15. }
  16. #article_browser {
  17. height: 90vh;
  18. display: grid;
  19. grid-gap: 1em;
  20. }
  21. @media (max-width: 500px) {
  22. #article_browser {
  23. grid-template-areas: "up"
  24. "before"
  25. "focused"
  26. "after"
  27. "down";
  28. grid-template-rows: 1fr 1fr 50vh 1fr 1fr;
  29. grid-gap: 0.2em;
  30. }
  31. }
  32. @media (min-width: 500px) {
  33. #article_browser {
  34. grid-template-areas: ". up ."
  35. "before focused after"
  36. ". down .";
  37. grid-template-columns: 1fr 3fr 1fr;
  38. grid-template-rows: 1fr 3fr 1fr;
  39. }
  40. }
  41. .site_logo {
  42. display: inline-block;
  43. padding: 0.1em;
  44. }
  45. .site_logo svg,
  46. .site_logo img {
  47. width: min(10vw, 100px);
  48. }
  49. #article_browser a {
  50. text-decoration: none;
  51. }
  52. #article_browser .focused {
  53. grid-area: focused;
  54. align-self: center;
  55. justify-self: center;
  56. overflow: hidden;
  57. height: 100%;
  58. background-color: #eee;
  59. display: grid;
  60. }
  61. #article_browser .focused time {
  62. justify-self: end;
  63. }
  64. #article_browser .focused .similar {
  65. margin-top: 3em;
  66. overflow: scroll;
  67. }
  68. #article_browser .focused h2 img {
  69. vertical-align: middle;
  70. }
  71. #article_browser .focused > .site_logo {
  72. width: 100px;
  73. }
  74. #article_browser .up {
  75. grid-area: up;
  76. overflow: scroll;
  77. }
  78. #article_browser .before {
  79. grid-area: before;
  80. align-self: center;
  81. }
  82. #article_browser .article-other-time {
  83. height: 100%;
  84. }
  85. #article_browser .after {
  86. grid-area: after;
  87. align-self: center;
  88. }
  89. #article_browser .down {
  90. grid-area: down;
  91. overflow: scroll;
  92. }
  93. #article_browser :not(.focused) ul {
  94. list-style: none;
  95. margin-block-start: 0;
  96. }
  97. /* Styling of articles that are presented left and right of the main article */
  98. .article-other-time {
  99. display: grid;
  100. grid-template-areas:
  101. "relative"
  102. "title"
  103. "absolute";
  104. grid-template-rows: auto 1fr auto;
  105. }
  106. @media (max-width: 500px) {
  107. .article-other-time {
  108. display: grid;
  109. grid-template-areas:
  110. "relative title";
  111. grid-template-columns: 1fr auto;
  112. }
  113. }
  114. .article-other-time time.relative {
  115. grid-area: relative;
  116. }
  117. .article-other-time .title {
  118. grid-area: title;
  119. align-self: center;
  120. }
  121. .article-other-time time.absolute {
  122. grid-area: absolute;
  123. justify-self: end;
  124. }
  125. @media (max-width: 500px) {
  126. .article-other-time time.absolute {
  127. display: none;
  128. }
  129. }
  130. .articles-same-time > ol {
  131. display: flex;
  132. flex-direction: column;
  133. grid-gap: 0.2em;
  134. }
  135. .article-same-time {
  136. display: grid;
  137. grid-template-columns: auto 1fr;
  138. grid-gap: 0.5em;
  139. align-items: center;
  140. }
  141. .article-same-time h2 {
  142. font-size: 1em;
  143. font-weight: normal;
  144. }