global.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. /*
  2. * This CSS is released under Creative Commons Zero 1.0 Universal license:
  3. * https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt
  4. */
  5. h1,h2,h3,h4{font-weight:normal; font-size:2em}
  6. .specs
  7. {
  8. float: right;
  9. }
  10. :not(p)
  11. {
  12. max-width: 85em;
  13. margin: 0 auto;
  14. }
  15. @media (min-width:90em)
  16. {
  17. html
  18. {
  19. font-size: 1.05em;
  20. }
  21. }
  22. html
  23. {
  24. background: #fcfcfc;
  25. color: #222;
  26. font-family: sans-serif;
  27. line-height: 1.4;
  28. }
  29. hr{display:none;}
  30. ul,code,pre, #TOC, a:hover
  31. {
  32. background: #e2e2e2;
  33. border-radius:0.3em;
  34. }
  35. #TOC{
  36. min-width:25%;
  37. float:left;
  38. margin-right:1.1em;
  39. margin-bottom:1em;
  40. }
  41. ul{padding-left:1em}
  42. a
  43. {
  44. color: #023595;
  45. }
  46. img,video,iframe,pre
  47. {
  48. max-width: 100%;
  49. overflow: auto;
  50. }
  51. .title>*, header ul>li, .nav ul>li,
  52. #footer ul>li, .h:hover>*
  53. {
  54. display: inline;
  55. margin: 0.7%;
  56. text-align :center;
  57. }
  58. #footer{margin-top:1em}
  59. .title>*, span.date
  60. {
  61. display: block;
  62. }
  63. html, ul, #TOC
  64. {
  65. padding: 1em;
  66. }
  67. .date, .author, .h a
  68. {
  69. display: none;
  70. }
  71. .f, .f *
  72. {
  73. position: fixed;
  74. max-width: 100%;
  75. max-height: 100%;
  76. top: 50%;
  77. left: 50%;
  78. }
  79. .f *
  80. {
  81. transform: translate(-50%, -50%);
  82. }
  83. .f
  84. {
  85. display: none;
  86. top: 0;
  87. left: 0;
  88. width: 100%;
  89. height: 100%;
  90. background: rgba(0, 0, 0, 0.8);
  91. }
  92. *:focus + .f
  93. {
  94. display: block;
  95. }
  96. img
  97. {
  98. cursor: pointer;
  99. }
  100. .l,.r {
  101. max-width:40%;
  102. margin:1em;
  103. }
  104. .r {
  105. float: right;
  106. }
  107. .l {
  108. float: left;
  109. }
  110. .p {
  111. max-width: 13em;
  112. }
  113. span.fcc
  114. {
  115. background: #fcc;
  116. position: fixed;
  117. bottom: 0;
  118. left: 0;
  119. right: 0;
  120. font-size: 0.9em;
  121. }
  122. .fcc p {padding:0; margin: 0}
  123. header ul, #footer ul
  124. {
  125. text-align:center;
  126. margin-top:2em;
  127. margin-bottom:2em;
  128. }
  129. @media (min-width:60em)
  130. {
  131. .title-logo{display:none}
  132. div.title,h1.title {
  133. background:url("/favicon.ico") no-repeat;
  134. background-size:auto 99%;
  135. min-height:2.5em
  136. }
  137. div.title {background-position:right}
  138. h1.title {padding:0 4em; font-size:2.8em; font-weight:normal;}
  139. #TOC
  140. {
  141. float: left;
  142. margin: 1em;
  143. min-width: 25%;
  144. }
  145. }