global.css 1.5 KB

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