A tiny self-hostable "microjournaling" web app. Helps fill the void when abstaining from social media by encouraging journaling small thoughts throughout the day. # Requirements - web host with PHP
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

journal.css 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. :root {
  2. background-color: white;
  3. color: black;
  4. }
  5. :root, input, textarea {
  6. font-family: Garamond, Times New Roman, serif;
  7. line-height: 1.25;
  8. font-size: 12pt;
  9. }
  10. body {
  11. margin: 0;
  12. padding: 0;
  13. }
  14. a {
  15. color: #d83;
  16. text-decoration: none;
  17. }
  18. .top-nav {
  19. position: fixed;
  20. top: 0;
  21. left: 0;
  22. right: 0;
  23. height: 2em;
  24. text-align: center;
  25. background-color: white;
  26. box-shadow: 0 0.25rem 0.25rem rgba(0, 0, 0, 0.25);
  27. }
  28. .title {
  29. display: inline-block;
  30. font-size: 1.2rem;
  31. line-height: 1.2rem;
  32. font-weight: bold;
  33. padding-top: 0.4rem;
  34. }
  35. .menu-container {
  36. position: absolute;
  37. top: 0;
  38. right: 0;
  39. }
  40. .menu-container summary {
  41. list-style-type: none;
  42. text-align: right;
  43. -webkit-user-select: none;
  44. user-select: none;
  45. }
  46. .menu-container summary:hover {
  47. color: #d83;
  48. }
  49. .menu-container summary span {
  50. display: inline-block;
  51. line-height: 1rem;
  52. padding: 0.5rem 0.7rem;
  53. margin: 0;
  54. border-radius: 0.5rem;
  55. }
  56. .menu-container details {
  57. text-align: left;
  58. }
  59. .menu-container details[open] summary span {
  60. background-color: #d83;
  61. color: white;
  62. }
  63. .menu-container ul {
  64. margin: 0;
  65. padding: 0;
  66. list-style-type: none;
  67. border: 1px solid #ccc;
  68. background-color: #eee;
  69. box-shadow: 0 0.25rem 0.25rem rgba(0, 0, 0, 0.25);
  70. }
  71. .menu-container a li {
  72. color: #d83;
  73. }
  74. .menu-container a:hover li {
  75. background-color: #d83;
  76. color: black;
  77. }
  78. .menu-container li {
  79. padding: 0.4em 1em;
  80. }
  81. .menu-container a + a li {
  82. border-top: 1px solid #ccc;
  83. }
  84. summary::-webkit-details-marker {
  85. display: none;
  86. }
  87. .content {
  88. max-width: 66ch;
  89. margin: 2.5em auto 2em auto;
  90. padding: 0.5em;
  91. }
  92. .error {
  93. padding: 1em;
  94. border: 1px solid #400;
  95. background-color: #fcc;
  96. color: #d00;
  97. font-weight: bold;
  98. margin-bottom: 1em;
  99. }
  100. .important {
  101. padding: 1em;
  102. border: 1px solid #886;
  103. background-color: #ffc;
  104. color: black;
  105. margin-bottom: 1em;
  106. }
  107. textarea {
  108. width: 100%;
  109. height: 8em;
  110. font-family: inherit;
  111. margin: 0;
  112. box-sizing: border-box;
  113. }
  114. textarea::placeholder {
  115. font-size: 1rem;
  116. }
  117. .submit-post {
  118. text-align: right;
  119. }
  120. input[type="submit"] {
  121. margin-top: 0.5em;
  122. min-width: 15ch;
  123. }
  124. .post-container {
  125. margin-top: 1.5rem;
  126. }
  127. .post {
  128. margin-top: 0.5em;
  129. margin-bottom: 1em;
  130. }
  131. .post p {
  132. margin: 0 0 1em 0;
  133. }
  134. .post p:last-child {
  135. margin: 0;
  136. }
  137. .post-date {
  138. font-size: 80%;
  139. color: #888;
  140. margin-top: 0.5em;
  141. }
  142. @media(prefers-color-scheme: dark) {
  143. :root, textarea, input, select {
  144. background-color: #222;
  145. color: white;
  146. }
  147. .top-nav {
  148. background-color: #444;
  149. }
  150. .menu-container ul {
  151. border: 1px solid black;
  152. background-color: #444;
  153. }
  154. .menu-container a + a li {
  155. border-top: 1px solid #000;
  156. }
  157. }
  158. @media screen and (max-width: 450px) {
  159. :root {
  160. font-size: 16pt;
  161. }
  162. }