style.css 1.7 KB

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