global.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. html {
  2. background-color: #eee;
  3. padding-bottom:7em;
  4. text-align:left;
  5. }
  6. div.title {
  7. background:url("nowhere");
  8. background-repeat:no-repeat;
  9. background-size: auto 100%;
  10. background-attachment:absolute;
  11. background-position: right;
  12. }
  13. h1.title {
  14. text-shadow: 0px 0px 5px #FFFFFF;
  15. text-align:center;
  16. background:url("nowhere");
  17. background-size: auto 100%;
  18. background-repeat:no-repeat;
  19. min-height:3.5em;
  20. margin:0;
  21. display:block;
  22. }
  23. body {
  24. line-height: 1.6;
  25. font-family: Cantarell, sans-serif;
  26. font-size: 1em;
  27. color: #222;
  28. }
  29. div.page {
  30. box-shadow: 0 0 6px;
  31. background-color:#fff;
  32. max-width:70em;
  33. margin:0 auto;
  34. padding: 0.2em 1em;
  35. }
  36. div.warning{
  37. background:#fcc;
  38. font-size:1.1em;
  39. border:solid 1px #666;
  40. padding-left:1em;
  41. padding-right:1em;
  42. }
  43. pre {
  44. padding: 0.3em;
  45. }
  46. pre,table {
  47. overflow-x: auto;
  48. display: block;
  49. }
  50. table {
  51. border-collapse: collapse;
  52. width:100%;
  53. }
  54. th{
  55. background:#cdcdcd;
  56. }
  57. th, td {
  58. border: solid 1px #888;
  59. }
  60. tr:nth-child(even) {
  61. background-color: #eee;
  62. }
  63. code, pre, nav#TOC {
  64. background-color: #ececec;
  65. }
  66. img {
  67. max-width: 100%;
  68. }
  69. a {
  70. text-decoration: none;
  71. color: #22D;
  72. }
  73. a.uri {
  74. word-wrap: break-word;
  75. }
  76. a:hover {
  77. color: #008;
  78. }
  79. .date {
  80. display: block;
  81. }
  82. h1, h2, h3, .h:hover a {
  83. display: inline;
  84. }
  85. .h a {
  86. display: none;
  87. }
  88. p.author, p.date {
  89. display:none;
  90. }
  91. div.nav {
  92. text-align:center;
  93. }
  94. header ul:first-of-type,
  95. div.nav ul:first-of-type,
  96. div#footer ul:last-of-type {
  97. padding:0;
  98. margin:0;
  99. text-align:center;
  100. }
  101. header ul:first-of-type > li,
  102. div.nav ul:first-of-type > li,
  103. div#footer ul:last-of-type li {
  104. padding:0;
  105. margin:0;
  106. display:inline;
  107. padding-left:0.5em;
  108. padding-right:0.5em;
  109. border-right:solid 1px #000;
  110. }
  111. header ul:first-of-type > li:first-child,
  112. div.nav ul:first-of-type > li:first-child,
  113. div#footer ul:last-of-type > li:first-child {
  114. padding-left:0;
  115. }
  116. header ul:first-of-type > li:last-child,
  117. div.nav ul:first-of-type > li:last-child,
  118. div#footer ul:last-of-type > li:last-child {
  119. padding-right:0;
  120. border:none;
  121. }
  122. nav#TOC {
  123. min-width:25%;
  124. max-width:100%;
  125. float:left;
  126. margin:1em;
  127. padding: 0.2em 1em;
  128. }
  129. nav#TOC h1 {
  130. font-size:1em;
  131. }
  132. nav#TOC li > ul {
  133. margin-left:0;
  134. padding-left:0.5em;
  135. }
  136. img.imgleft, img.imgright {
  137. max-width: 25%;
  138. height: auto;
  139. padding: 2em;
  140. padding-top:0.5em;
  141. padding-bottom:0.5em;
  142. }
  143. img.imgright {
  144. float: right;
  145. padding-right:0;
  146. }
  147. img.imgleft {
  148. float: left;
  149. padding-left:0;
  150. }