global.css 1.6 KB

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