You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

132 lines
1.9 KiB

4 years ago
  1. .index-content {
  2. margin-top: 20px;
  3. }
  4. .framed {
  5. border: 1px solid var(--accent);
  6. padding: 20px;
  7. *:first-child {
  8. margin-top: 0;
  9. }
  10. *:last-child {
  11. margin-bottom: 0;
  12. }
  13. }
  14. .posts {
  15. width: 100%;
  16. }
  17. .post {
  18. width: 100%;
  19. text-align: left;
  20. margin: 20px auto;
  21. padding: 20px 0;
  22. @media (--tablet) {
  23. max-width: 660px;
  24. }
  25. &:not(:last-of-type) {
  26. border-bottom: 1px solid var(--border-color);
  27. }
  28. &-meta {
  29. font-size: 1rem;
  30. margin-bottom: 10px;
  31. color: color-mod(var(--accent) a(70%));
  32. }
  33. &-title {
  34. --border: 3px dotted var(--accent);
  35. position: relative;
  36. color: var(--accent);
  37. margin: 0 0 15px;
  38. padding-bottom: 15px;
  39. border-bottom: var(--border);
  40. &:after {
  41. content: '';
  42. position: absolute;
  43. bottom: 2px;
  44. display: block;
  45. width: 100%;
  46. border-bottom: var(--border);
  47. }
  48. a {
  49. text-decoration: none;
  50. }
  51. }
  52. &-tags {
  53. display: block;
  54. margin-bottom: 20px;
  55. font-size: 1rem;
  56. opacity: .5;
  57. a {
  58. text-decoration: none;
  59. }
  60. }
  61. &-content {
  62. margin-top: 30px;
  63. }
  64. &-cover {
  65. border: 20px solid var(--accent);
  66. background: transparent;
  67. margin: 40px 0;
  68. padding: 20px;
  69. @media (--phone) {
  70. padding: 10px;
  71. border-width: 10px;
  72. }
  73. }
  74. ul {
  75. list-style: none;
  76. li:not(:empty):before {
  77. content: '-';
  78. position: absolute;
  79. left: -20px;
  80. color: var(--accent);
  81. }
  82. }
  83. }
  84. .post--regulation {
  85. h1 {
  86. justify-content: center;
  87. }
  88. h2 {
  89. justify-content: center;
  90. margin-bottom: 10px;
  91. & + h2 {
  92. margin-top: -10px;
  93. margin-bottom: 20px;
  94. }
  95. }
  96. }
  97. .hanchor {
  98. color: color-mod(var(--accent) alpha(90%));
  99. text-decoration: none;
  100. margin-left: 10px;
  101. visibility: hidden;
  102. }
  103. h1:hover a, h2:hover a, h3:hover a, h4:hover a {
  104. visibility: visible;
  105. }
  106. .footnotes {
  107. color: color-mod(var(--color) alpha(50%));
  108. }