您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

layout.html 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. {% import "components.html" as components %}
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="UTF-8" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <title>Microblog Admin</title>
  8. <style>
  9. * {
  10. box-sizing: border-box;
  11. margin: 0;
  12. padding: 0;
  13. }
  14. body {
  15. background: #aab5a9;
  16. color: #000;
  17. font-family: Verdana, Geneva, Tahoma, sans-serif;
  18. font-size: 12px;
  19. }
  20. a {
  21. color: #000;
  22. }
  23. a:hover {
  24. text-decoration: none;
  25. }
  26. .btn {
  27. cursor: pointer;
  28. padding: 0.15em 0.3em;
  29. }
  30. .container {
  31. margin: auto;
  32. max-width: 800px;
  33. padding: 1em;
  34. }
  35. .header {
  36. margin: 1em 0;
  37. }
  38. .form__field {
  39. margin: 1em 0;
  40. }
  41. .form__label {
  42. display: block;
  43. margin-bottom: 0.5em;
  44. }
  45. .form__textarea,
  46. .form__text-field {
  47. font-family: Verdana, Geneva, Tahoma, sans-serif;
  48. font-size: 12px;
  49. padding: 0.25em;
  50. width: 100%;
  51. }
  52. .form__textarea {
  53. height: 200px;
  54. resize: vertical;
  55. }
  56. .post:not(:last-child) {
  57. margin: 3em 0;
  58. }
  59. .post__heading {
  60. background: white;
  61. border: 1px solid #383e37;
  62. display: flex;
  63. font-size: 12px;
  64. font-style: italic;
  65. justify-content: space-between;
  66. margin-bottom: 1em;
  67. padding: 0.5em;
  68. }
  69. .post__title {
  70. flex: 1;
  71. text-align: right;
  72. }
  73. .post__link {
  74. font-style: normal;
  75. font-weight: normal;
  76. }
  77. .post__body {
  78. border-top: none;
  79. padding: 0.5em;
  80. }
  81. .error {
  82. color: #942626;
  83. text-align: center;
  84. }
  85. .error__heading {
  86. margin: 2em 0 1em;
  87. }
  88. .error__message {
  89. font-size: 18px;
  90. }
  91. @media (max-width: 500px) {
  92. .form__button {
  93. width: 100%;
  94. }
  95. }
  96. </style>
  97. </head>
  98. <body>
  99. <div class="container">
  100. <header class="header">
  101. {% if logged_in %}
  102. <form action="/logout" method="POST">
  103. <input class="btn" type="submit" value="Log out" />
  104. </form>
  105. {% endif %}
  106. </header>
  107. {% block content %} {% endblock %}
  108. </div>
  109. </body>
  110. </html>