main.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. body {
  2. margin: 40px auto;
  3. padding: 0 1rem;
  4. width: 80%;
  5. max-width: 1024px;
  6. line-height: 1.6;
  7. font-size: large;
  8. color: #444;
  9. }
  10. h1, h2, h3, h4, h5, h6 {
  11. color: #222222;
  12. font-size: large;
  13. font-weight: bold;
  14. }
  15. small {
  16. font-size: x-small;
  17. }
  18. nav ul {
  19. margin: 0;
  20. list-style-type: none;
  21. }
  22. nav ul li {
  23. display: inline;
  24. padding: 0 20px 0 0;
  25. }
  26. nav ul:nth-child(odd) li {
  27. float: left;
  28. }
  29. nav ul:nth-child(even) li {
  30. float: right;
  31. }
  32. nav ul li a,
  33. nav ul li a:active,
  34. nav ul li a:visited {
  35. text-decoration: none;
  36. font-weight: bold;
  37. color: white;
  38. }
  39. nav ul li a:hover {
  40. text-decoration: underline;
  41. color: #000;
  42. }
  43. nav ul li a img {
  44. height: 40px;
  45. }
  46. nav:after {
  47. content: '';
  48. display: block;
  49. clear: both;
  50. }
  51. nav ul li a img.logo {
  52. height: 2rem;
  53. margin: 0 1rem 0 0;
  54. width: 2rem;
  55. vertical-align: middle;
  56. }
  57. a,
  58. a:active,
  59. a:visited,
  60. a:hover {
  61. color: #000;
  62. }
  63. table {
  64. background-color: #ddd;
  65. }
  66. tr:nth-child(even) {
  67. background-color: #fff;
  68. }
  69. header:before {
  70. content: '';
  71. display: block;
  72. z-index: -10;
  73. width: 100%;
  74. background-color: #ff7f00;
  75. position: absolute;
  76. top: 0;
  77. left: 0;
  78. margin: 0;
  79. padding: 0;
  80. }
  81. header, header:before {
  82. height: 120px;
  83. }
  84. header.home {
  85. text-align: center;
  86. }
  87. header.home:before {
  88. content: '';
  89. display: block;
  90. z-index: -1;
  91. width: 100%;
  92. background-color: transparent;
  93. background-image: url("/banner.png");
  94. background-repeat: no-repeat;
  95. background-size: 300px;
  96. background-position: center top 160px;
  97. position: absolute;
  98. top: 0;
  99. left: 0;
  100. margin: 0;
  101. padding: 0;
  102. }
  103. header.home:after {
  104. content: '';
  105. display: block;
  106. z-index: -2;
  107. width: 100%;
  108. /*background-color: #f83600;*/
  109. /*background-image: linear-gradient(to right, #f83600 0%, #f9d423 100%);*/
  110. background-image: linear-gradient(160deg, rgba(249,212,35,1) 0%, rgba(248,0,0,1) 150%);
  111. background-repeat: no-repeat;
  112. background-size: 100%;
  113. position: absolute;
  114. top: 0;
  115. left: 0;
  116. margin: 0;
  117. padding: 0;
  118. }
  119. @media only screen and (min-width: 500px) {
  120. header.home:before {
  121. background-size: 500px auto;
  122. background-position: center top 80px;
  123. }
  124. }
  125. header.home {
  126. height: 640px;
  127. }
  128. header.home:before, header.home:after {
  129. height: 800px;
  130. }
  131. header.home div * {
  132. color: white;
  133. }
  134. footer:after {
  135. content: '';
  136. display: block;
  137. z-index: -1;
  138. width: 100%;
  139. height: 60px;
  140. background-color: #ff7f00;
  141. background-repeat: no-repeat;
  142. background-position: center;
  143. position: absolute;
  144. left: 0;
  145. margin: 0;
  146. padding: 0;
  147. }
  148. footer {
  149. text-align: center;
  150. color: #000;
  151. }
  152. .widgets {
  153. display: block;
  154. z-index: -1;
  155. width: 100%;
  156. min-height: 180px;
  157. position: absolute;
  158. left: 0;
  159. margin: 0;
  160. padding: 0;
  161. text-align: center;
  162. }
  163. .widgets, .widgets * {
  164. font-size: small;
  165. background-color: #ff7f00!important;
  166. color: white!important;
  167. }
  168. .widgets .widget {
  169. margin-bottom: 10px;
  170. min-width: 100px;
  171. display: inline-table;
  172. }
  173. .community-title {
  174. font-size: xx-large;
  175. padding-top: 400px;
  176. }
  177. .display-none {
  178. display: none;
  179. }
  180. .display-block {
  181. display: block;
  182. }
  183. .tags-max-width {
  184. max-width: 100px;
  185. }
  186. .blue {
  187. color:rgb(0,102,204);
  188. }
  189. img.valign-middle {
  190. vertical-align: middle;
  191. }