style.css 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. /* MegaZeux
  2. *
  3. * Copyright (C) 2018 Alice Rowan <petrifiedrowan@gmail.com>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation; either version 2 of
  8. * the License, or (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  18. */
  19. /**
  20. * style.css: Embeddable formatting CSS for HTML help file generation.
  21. */
  22. body
  23. {
  24. margin: 0px;
  25. }
  26. #helpnav
  27. {
  28. font-family: Arial, Helvetica, sans-serif;
  29. width: 100%;
  30. height: 5em;
  31. padding: .5em;
  32. padding-left: 0px;
  33. padding-right: 0px;
  34. border-bottom: 5px solid;
  35. text-align: center;
  36. /* Floating navigation bar. */
  37. position: fixed;
  38. top: 0;
  39. }
  40. #helpnav h1
  41. {
  42. display: block;
  43. margin: .5em;
  44. padding: 0px;
  45. font-size: 1.5em;
  46. }
  47. .helpnavcentered
  48. {
  49. display: inline;
  50. text-align: center;
  51. }
  52. .helpnavcentered ul
  53. {
  54. padding: 0px;
  55. margin: .25em;
  56. }
  57. .helpnavcentered li
  58. {
  59. display: inline-block;
  60. margin: 1px;
  61. list-style-type: none;
  62. text-align: center;
  63. font-size: .95em;
  64. }
  65. .helpnavcentered li a
  66. {
  67. background-color: #222;
  68. border-color: #222;
  69. border-radius: 4px 4px;
  70. -moz-border-radius: 4px 4px;
  71. padding: 3px 5px;
  72. color: #FFF;
  73. text-decoration: none;
  74. }
  75. .helpnavcentered li a:hover
  76. {
  77. background-color: #666;
  78. border-color: #666;
  79. }
  80. #helpcontainer
  81. {
  82. font-family: 'mzxfont';
  83. width: 512px;
  84. height: auto;
  85. padding: 3px 76px;
  86. margin: auto;
  87. overflow: auto;
  88. white-space: pre;
  89. line-height: 14px;
  90. font-size: 14px;
  91. /* Extra top padding to help fix anchors. */
  92. padding-top: 6em;
  93. }
  94. .helpfile
  95. {
  96. page-break-after: always;
  97. }
  98. .helpfile hr
  99. {
  100. background-color: #000;
  101. height: 2px;
  102. margin: 14px 8px;
  103. border: none;
  104. }
  105. .helpcentered
  106. {
  107. display: block;
  108. text-align: center;
  109. margin: 0px;
  110. }
  111. .helpanchor
  112. {
  113. /* This forces the page to jump above the anchor so it doesn't display
  114. * under the navigation bar. */
  115. padding-top: 8em;
  116. margin-top: -8em;
  117. /* This is a fix for the fix above so the now gigantic anchor doesn't
  118. * cover links up. */
  119. pointer-events: none;
  120. }
  121. .helplink
  122. {
  123. text-decoration: none;
  124. }
  125. .helplink:before
  126. {
  127. padding-right: 8px;
  128. font-family: 'mzxfont';
  129. content: "\E010";
  130. }
  131. @media print
  132. {
  133. #helpnav
  134. {
  135. /* Disable the floating navigation bar in print mode. */
  136. position: absolute;
  137. border-bottom: 3px solid;
  138. }
  139. .helpnavcentered
  140. {
  141. /* Hide navigation buttons when in print mode. */
  142. display: none;
  143. }
  144. }
  145. @media only screen and (max-width: 680px),
  146. only screen and (max-device-width: 1080px)
  147. {
  148. /* Disable big margins on small windows, small displays, or phones. */
  149. #helpcontainer
  150. {
  151. padding: 3px 8px;
  152. padding-top: 6em;
  153. }
  154. }
  155. @media only screen and (max-device-width: 800px)
  156. {
  157. /* Probably a phone. Scale up navigation and text. */
  158. #helpnav
  159. {
  160. height: 7em;
  161. }
  162. #helpnav h1
  163. {
  164. font-size: 2em;
  165. }
  166. .helpnavcentered li
  167. {
  168. font-size: 1.5em;
  169. }
  170. #helpcontainer
  171. {
  172. width: 768px;
  173. line-height: 21px;
  174. font-size: 21px;
  175. }
  176. }
  177. @media only screen and (max-device-width: 1080px)
  178. {
  179. /* Probably a phone. Scale up navigation and text. */
  180. #helpnav
  181. {
  182. height: 8em;
  183. }
  184. #helpnav h1
  185. {
  186. font-size: 2.5em;
  187. }
  188. .helpnavcentered li
  189. {
  190. font-size: 1.75em;
  191. }
  192. #helpcontainer
  193. {
  194. width: 960px;
  195. line-height: 26px;
  196. font-size: 26px;
  197. }
  198. }