style.css 2.1 KB

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