global.css 1.4 KB

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