The UI component of the AiteStory project.
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.

215 lines
2.8 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. body {
  2. padding: 0;
  3. margin: 0;
  4. font-size: 1.25em;
  5. }
  6. #content-wrapper {
  7. position: absolute;
  8. left: 0;
  9. top: 0;
  10. right: 0;
  11. min-height: 100%;
  12. }
  13. /* Main Body */
  14. main {
  15. position: absolute;
  16. top: 0;
  17. left: 18ch;
  18. right: 0;
  19. min-height: 100%;
  20. padding: 0;
  21. margin: 0;
  22. }
  23. /* Page Body */
  24. article {
  25. text-align: left;
  26. padding: 1ch 1em;
  27. font-size: 1em;
  28. line-height: 1.25em;
  29. width: 75ch;
  30. max-width: 95%;
  31. min-height: 100%;
  32. margin-left: auto;
  33. margin-right: auto;
  34. box-sizing: border-box;
  35. }
  36. article.narrow {
  37. width: 50ch;
  38. }
  39. article h1 {
  40. text-align: center;
  41. margin-top: 1em;
  42. margin-bottom: 0.5em;
  43. font-size: 1.75em;
  44. }
  45. article h2 {
  46. margin-top: 1em;
  47. margin-bottom: 0;
  48. }
  49. article h2:nth-child(1), article h2:first-child {
  50. margin-top: 0;
  51. }
  52. article h3, article h4, article h5, article h6 {
  53. margin-top: 0.25em;
  54. margin-bottom: 0;
  55. }
  56. article blockquote {
  57. margin: 0;
  58. padding: 0.5em 1ch;
  59. border: 0.5px solid;
  60. margin-bottom: 1em;
  61. }
  62. article blockquote p:last-of-type {
  63. margin-bottom: 0;
  64. }
  65. article p {
  66. margin-top: 0;
  67. }
  68. /* Front Page */
  69. .page-list {
  70. width: 100%;
  71. border-spacing: 0px;
  72. margin-top: 0.75em;
  73. }
  74. .page-list .spacer {
  75. background: none;
  76. outline: none;
  77. }
  78. .page-list .spacer td {
  79. height: 0.5em;
  80. }
  81. .pl-icon {
  82. text-align: center;
  83. font-size: 2em;
  84. width: 1.5ch;
  85. padding: 0 0.5ch;
  86. outline: 0.5px solid;
  87. }
  88. .pl-content {
  89. padding: 0.25em 0.5em;
  90. padding-top: 0.5em;
  91. text-align: left;
  92. }
  93. .plc-meta {
  94. padding: 0;
  95. margin: 0;
  96. font-size: 0.75em;
  97. }
  98. .plc-meta div {
  99. display: inline-block;
  100. margin-right: 1ch;
  101. }
  102. /* Side Menu */
  103. nav {
  104. position: fixed;
  105. left: 0;
  106. top: 0;
  107. width: 18ch;
  108. height: 100%;
  109. padding: 0;
  110. margin: 0;
  111. overflow-y: auto;
  112. }
  113. nav h1 {
  114. text-align: center;
  115. }
  116. nav a {
  117. display: block;
  118. cursor: pointer;
  119. }
  120. nav ul {
  121. display: block;
  122. padding: 0;
  123. margin: 0;
  124. margin-bottom: 0.5em;
  125. }
  126. nav li {
  127. list-style: none;
  128. padding: 0.1em;
  129. padding-left: 1ch;
  130. font-size: 0.9em;
  131. }
  132. nav .mg-icon {
  133. display: inline-block;
  134. text-align: center;
  135. width: 1ch;
  136. padding: 0em 0.5ch;
  137. }
  138. nav .mg-label {
  139. display: inline-block;
  140. padding: 0 0.5ch;
  141. }
  142. nav .page-property {
  143. text-align: center;
  144. margin-bottom: 1em;
  145. }
  146. /* Mobile weirdness with rgba */
  147. @media screen and (max-width: 900px) {
  148. nav, main {
  149. position: static;
  150. display: block;
  151. margin: auto;
  152. border: none;
  153. width: 100%;
  154. }
  155. nav h1 {
  156. display: none;
  157. }
  158. nav ul {
  159. width: 20ch;
  160. max-width: 95%;
  161. margin: 0.5em auto;
  162. }
  163. main {
  164. min-height: 100%;
  165. position: static;
  166. }
  167. article {
  168. min-height: 100%;
  169. position: static;
  170. }
  171. article h1 {
  172. font-size: 1.333em;
  173. }
  174. }