global.css 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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 (max-width:90em)
  16. {
  17. html
  18. {
  19. font-size: 0.95em;
  20. }
  21. }
  22. @media (min-width:90em)
  23. {
  24. html
  25. {
  26. font-size: 1.05em;
  27. }
  28. }
  29. html
  30. {
  31. /* color: #280b22; */
  32. color: #000;
  33. background: #eaeaea;
  34. font-family: sans-serif;
  35. line-height: 1.4;
  36. }
  37. hr {
  38. color: #eee;
  39. }
  40. code,pre, #TOC, a:hover, img
  41. {
  42. background: #cfcfcf;
  43. border-radius:0.25em;
  44. }
  45. header img
  46. {
  47. background: none;
  48. }
  49. a
  50. {
  51. color: #081717;
  52. }
  53. img,video,iframe,pre
  54. {
  55. max-width: 100%;
  56. overflow: auto;
  57. }
  58. .title>*, header ul>li, .nav ul>li,
  59. #footer ul>li, .h:hover>*
  60. {
  61. display: inline;
  62. margin: 0.7%;
  63. text-align :center;
  64. }
  65. .title>*, span.date
  66. {
  67. display: block;
  68. }
  69. html, ul, #TOC
  70. {
  71. padding: 1em;
  72. }
  73. .date, .author, .h a
  74. {
  75. display: none;
  76. }
  77. @media (min-width:60em)
  78. {
  79. .title-logo{display:none; background:none;}
  80. div.title,h1.title {
  81. background:url("/favicon.ico") no-repeat;
  82. background-size:auto 99%;
  83. min-height:2em
  84. }
  85. div.title {background-position:right}
  86. h1.title {padding:0 4em; font-size:2.5em; font-weight:normal;}
  87. #TOC
  88. {
  89. float: left;
  90. margin: 1em;
  91. min-width: 25%;
  92. }
  93. }
  94. .f, .f *
  95. {
  96. position: fixed;
  97. max-width: 100%;
  98. max-height: 100%;
  99. top: 50%;
  100. left: 50%;
  101. }
  102. .f *
  103. {
  104. transform: translate(-50%, -50%);
  105. }
  106. .f
  107. {
  108. display: none;
  109. top: 0;
  110. left: 0;
  111. width: 100%;
  112. height: 100%;
  113. background: rgba(0, 0, 0, 0.8);
  114. }
  115. *:focus + .f
  116. {
  117. display: block;
  118. }
  119. img
  120. {
  121. cursor: pointer;
  122. }
  123. .l,.r {
  124. max-width:25%;
  125. margin:1em;
  126. }
  127. .r {
  128. float: right;
  129. }
  130. .l {
  131. float: left;
  132. }
  133. .p {
  134. max-width: 13em;
  135. }