style.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. h1, h2, h3, h4 {
  2. margin: 0;
  3. }
  4. ul {
  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. width: 100px;
  25. }
  26. .site_logo svg,
  27. .site_logo img {
  28. width: 100px;
  29. }
  30. #article_browser a {
  31. text-decoration: none;
  32. }
  33. #article_browser .focused {
  34. grid-area: focused;
  35. align-self: center;
  36. justify-self: center;
  37. margin: 1em;
  38. overflow: hidden;
  39. height: 100%;
  40. background-color: #eee;
  41. display: grid;
  42. }
  43. #article_browser .focused time {
  44. justify-self: end;
  45. }
  46. #article_browser .focused .similar {
  47. margin-top: 3em;
  48. overflow: scroll;
  49. }
  50. #article_browser .focused h2 img {
  51. vertical-align: middle;
  52. }
  53. #article_browser .up {
  54. grid-area: up;
  55. overflow: scroll;
  56. }
  57. #article_browser .before {
  58. grid-area: before;
  59. align-self: center;
  60. }
  61. #article_browser .article-other-time {
  62. height: 100%;
  63. }
  64. #article_browser .after {
  65. grid-area: after;
  66. align-self: center;
  67. }
  68. #article_browser .down {
  69. grid-area: down;
  70. overflow: scroll;
  71. }
  72. #article_browser :not(.focused) ul {
  73. list-style: none;
  74. margin-block-start: 0;
  75. }
  76. /* Styling of articles that are presented left and right of the main article */
  77. .article-other-time {
  78. display: grid;
  79. grid-template-areas:
  80. "relative"
  81. "title"
  82. "absolute";
  83. grid-template-rows: auto 1fr auto;
  84. }
  85. .article-other-time time.relative {
  86. grid-area: relative;
  87. }
  88. .article-other-time .title {
  89. grid-area: title;
  90. align-self: center;
  91. }
  92. .article-other-time time.absolute {
  93. grid-area: absolute;
  94. justify-self: end;
  95. }