site.css 3.0 KB

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