index.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. @charset "utf-8";
  2. /* css */
  3. * { margin: 0; padding: 0 }
  4. body { font: 15px "Microsoft YaHei", Arial, Helvetica, sans-serif; color: #555; background: #efefef; line-height: 1.5; }
  5. img { border: 0; display: block }
  6. ul li { list-style: none; }
  7. a { text-decoration: none; color: #555 }
  8. a:hover { text-decoration: none; color: #000; }
  9. .clear { clear: both; }
  10. .blank { height: 20px; overflow: hidden; width: 100%; margin: auto; clear: both }
  11. .f_l { float: left }
  12. .f_r { float: right }
  13. .ml-20 { margin-left: 20px }
  14. .ml-10 { margin-left: 10px }
  15. .box { width: 80%; margin: auto; overflow: hidden; clear: both; }
  16. @media(max-width:1400px) {
  17. .box {width: 1000px; }
  18. }
  19. .nobox { width: 100% }
  20. .c_white { background: #fff }
  21. article { width: 1000px; margin: auto; overflow: hidden; padding: 20px 0 }
  22. .container { width: 1000px; margin: auto }
  23. /*header*/
  24. header { width: 100%; background: #fff; overflow: hidden; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
  25. .logo { text-align: center; font-size: 22px; padding: 20px 0 }
  26. nav { width: 1000px; margin: 0 auto 20px; text-align: center; border-bottom: #000 1px solid; border-top: #000 1px solid; overflow: hidden }
  27. nav li { display: inline; line-height: 40px; padding: 0 20px }
  28. .newsbox { width: 50%; background: #fff; margin-top: 20px }
  29. .newsbox ul { margin: 20px; }
  30. .newstitle { margin: 20px; line-height: 30px; border-bottom: #000 1px solid; }
  31. .newstitle span { float: right; font-size: 18px }
  32. .newstitle span a { color: #000; }
  33. .newstitle b { background: #333; width: 118px; display: block; font-size: 14px; font-weight: normal; color: #FFF; text-align: center }
  34. .newsli li { padding-left: 10px; line-height: 30px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
  35. .sbox { width: 32%; background: #FFF; padding-bottom: 20px; position: relative; z-index: 2; }
  36. .sbox h2 { font-size: 16px; padding: 50px 0 20px; border-bottom: #CCC 1px solid; margin: 0 20px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
  37. .sbox p { overflow: hidden; text-overflow: ellipsis; -webkit-box-orient: vertical; display: -webkit-box; -webkit-line-clamp: 3; line-height: 24px; height: 72px; padding: 20px 20px 0 20px }
  38. .sbox.ml { margin-left: 2%; }
  39. .sbox span { width: 80px; height: 30px; line-height: 30px; text-align: center; margin: auto; display: block; background: #333; color: #FFF; position: absolute }
  40. .read { display: block; text-align: center; margin: 20px auto 0; width: 100px; border: #333 1px solid; line-height: 26px; position: relative; }
  41. .read:before { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 26px; background: #333; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-transition: 0.5s; transition: 0.5s; z-index: -1; }
  42. .read:hover { color: #fff; }
  43. .read:hover:before { width: 100px; }
  44. .blogs { width: 66%; float: left }
  45. .bloglist { background: #FFF; overflow: hidden; padding: 20px; margin-bottom: 20px; }
  46. .bloglist h2 { font-size: 18px; position: relative }
  47. .bloglist h2:before { content: ""; width: 3px; height: 26px; position: absolute; left: -20px; top: 0; background: #333 }
  48. .bloglist p { overflow: hidden; text-overflow: ellipsis; -webkit-box-orient: vertical; display: -webkit-box; -webkit-line-clamp: 3; line-height: 24px; height: 72px; margin: 10px 0 0 }
  49. .blogs div.more { text-align: center; color: #666; width: 100%; clear: both; margin: 25px 0 10px 0; }
  50. .blogs div.more a { border: 1px solid #333; padding: 5px 10px; background: #333; color: #FFF }
  51. aside { width: 32%; float: right }
  52. .ztbox { border: #000 1px solid; background: #fff; overflow: hidden; }
  53. .ztbox li { border-bottom: #888 1px solid; line-height: 40px; height: 40px; padding-left: 70px; position: relative; }
  54. .ztbox li:last-child { border-bottom: 0 }
  55. .ztbox li:after { content: "》"; position: absolute; right: 10px; color: #000; -moz-transition: all .5s ease; -webkit-transition: all .5s ease; transition: all .5s ease; }
  56. .ztbox li:hover:after { right: 0px }
  57. .ztbox li:before { background: #000; position: absolute; left: 0; width: 50px; text-align: center; color: #FFF }
  58. .ztbox li:nth-child(1):before { content: "1"; }
  59. .ztbox li:nth-child(2):before { content: "2"; }
  60. .ztbox li:nth-child(3):before { content: "3"; }
  61. .ztbox li:nth-child(4):before { content: "4"; }
  62. .ztbox li:nth-child(5):before { content: "5"; }
  63. .ztbox li:nth-child(6):before { content: "6"; }
  64. .ztbox li:nth-child(7):before { content: "7"; }
  65. .ztbox li:nth-child(8):before { content: "8"; }
  66. .paihang { background: #FFF; overflow: hidden; margin-top: 20px }
  67. .paihang h2 { font-size: 16px; padding: 8px 20px; position: relative }
  68. .paihang h2:after { content: ""; background-color: #282828; left: 20px; width: 60px; height: 2px; bottom: 0; position: absolute; -webkit-transition: 0.5s; -moz-transition: 0.5s; -ms-transition: 0.5s; -o-transition: 0.5s; transition: 0.5s; }
  69. .paihang ul { padding: 10px 20px }
  70. .paihang:hover ::after { width: 90px; }
  71. .paihang ul li { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; line-height: 26px }
  72. footer { width: 100%; text-align: center; background: #FFF; padding: 10px 0; line-height: 26px; border-top: #333 1px solid; }
  73. /*list*/
  74. .place { margin: 10px 0; width: 100%; overflow: hidden; background: #fff; }
  75. .place a { display: block; float: left; padding: 5px 0; background: #fff; margin: 0 10px; width: 100px; text-align: center }
  76. .pagelist { text-align: center; color: #666; width: 100%; clear: both; margin: 25px 0 10px 0; padding-top: 20px }
  77. .pagelist a { color: #666; margin: 0 2px 10px; border: 1px solid #fff; padding: 5px 10px; background: #FFF; display: inline-block; }
  78. .pagelist a:hover { color: #333; }
  79. .pagelist > b { border: 1px solid #333; padding: 5px 10px; background: #333; color: #FFF }
  80. .pagelist input{ color: #666; margin: 0 2px 10px; border: 1px solid #fff; padding: 5px 5px; height: 22px; display: inline-block;}
  81. a.curPage { color: #333; font-weight: bold; }
  82. /*about*/
  83. .newsview { padding: 20px; overflow: hidden; background: rgba(255,255,255,1); margin: 20px 0 }
  84. .newsview h2 { font-size: 16px; width: 120px; height: 30px; line-height: 30px; text-align: center; background: #333; color: #fff; margin: 10px 0; font-weight: normal; }
  85. .news_infos { padding-bottom: 20px }
  86. /*infosbox*/
  87. .infosbox { float: left; width: 66%; overflow: hidden; background: #FFF; }
  88. .newsview { padding: 0 30px }
  89. .news_title { font-size: 24px; font-weight: normal; }
  90. .news_author { width: 100%; color: #999; line-height: 18px; }
  91. .news_author span { margin-right: 10px; padding-left: 20px }
  92. .news_about { color: #888888; border: 1px solid #F3F3F3; padding: 10px; margin: 20px auto 15px auto; line-height: 23px; background: none repeat 0 0 #F6F6F6; }
  93. .news_about strong { color: #38485A; font-weight: 400 !important; font-size: 13px; padding-right: 8px; }
  94. .news_content { line-height: 24px; font-size: 14px; }
  95. .news_content p { overflow: hidden; padding-bottom: 4px; padding-top: 6px; word-wrap: break-word; }
  96. .tags a { background: #333; padding: 3px 8px; margin: 0 5px 0 0; color: #fff; }
  97. .tags { margin: 30px 0; }
  98. .infosbox .news_con { line-height: 1.8; font-size: 16px; text-align: justify; }
  99. .infosbox .news_con p { margin-bottom: 25x }
  100. .infosbox .news_con img { max-width: 650px; height: auto; }
  101. .infosbox .news_con table { border-collapse: collapse; display: table; width: 100%; text-align: center; background-color: transparent; border-spacing: 0; }
  102. .infosbox .news_con table tbody{ border: 0; }
  103. .infosbox .news_con table tr{ border: 0; border-top: 1px solid #ddd; background-color: #fff; }
  104. .infosbox .news_con table tr td{ font-size: 14px; color: #4f4f4f; line-height: 22px; border: 1px solid #ddd; padding: 8px; word-break: normal!important; vertical-align: middle; }
  105. .infosbox .news_con table tr th{ font-size: 14px; color: #4f4f4f; line-height: 22px; border: 1px solid #ddd; padding: 8px; word-break: normal!important; vertical-align: middle; }
  106. .infosbox .share { padding: 20px; }
  107. .nextinfo { line-height: 24px; width: 100%; background: #FFF; border-radius: 10px; overflow: hidden; margin: 20px 0 }
  108. .nextinfo p { padding: 4px 10px; border-radius: 5px; }
  109. .nextinfo a:hover { color: #000; text-decoration: underline }
  110. .diggit { width: 140px; margin: 20px auto; background: #E2523A; color: #fff; box-shadow: 1px 2px 6px 0px rgba(0,0,0,.2); border-radius: 3px; line-height: 40px; text-align: center; }
  111. .diggit a { color: #fff; }
  112. #diggnum { margin: 5px; }
  113. .otherlink, .xzsm, .ffsm { width: 100%; background: #FFF; overflow: hidden; margin: 20px 0 }
  114. .otherlink h2 { border-bottom: #000 2px solid; line-height: 40px; font-size: 14px; padding-left: 40px; color: #000 }
  115. .otherlink ul { margin: 10px 0 }
  116. .otherlink li { line-height: 24px; height: 24px; display: block; width: 290px; float: left; overflow: hidden; margin-right: 30px; padding-left: 10px; }
  117. .otherlink li a:hover { text-decoration: underline; color: #000 }
  118. .news_pl { margin: 10px 0; width: 100%; background: #FFF; overflow: hidden; margin: 20px 0 }
  119. .news_pl h2 { border-bottom: #000 2px solid; line-height: 40px; font-size: 14px; padding-left: 30px; color: #000 }
  120. .xzsm ul, .ffsm ul { padding: 20px; line-height: 24px; border-top: 6px solid #a6b5c5; }
  121. .bloginfo { overflow: hidden; margin-top: 20px }
  122. .bloginfo ul li { float: left; font-size: 12px; margin: 0 15px 0 0; color: #748594; line-height: 1.5; display: inline-block; }
  123. .bloginfo ul li a { color: #748594; }
  124. .bloginfo ul li a:hover { color: #000 }
  125. /*time*/
  126. .timebox { background: #FFF; padding: 30px }
  127. .timebox span { position: relative; line-height: 32px; padding-right: 40px; color: #999 }
  128. .timebox span:after { position: absolute; content: ""; width: 2px; height: 40px; background: #e0dfdf; right: 18px }
  129. .timebox li { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
  130. .timebox li i { position: relative; font-style: normal }
  131. .timebox li i:before { content: " "; height: 10px; width: 10px; border: 2px solid #cccaca; background: #fff; position: absolute; top: 4px; left: -26px; border-radius: 50%; -webkit-transition: all .5s ease; -moz-transition: all .5s ease; -ms-transition: all .5s ease; -o-transition: all .5s ease; transition: all .5s ease; }
  132. .timebox li:hover i:before { background: #333 }
  133. /*phone*/
  134. @media screen and (min-width: 768px) and (max-width: 1023px) {
  135. nav, article { width: 100% }
  136. .box { width: 100% }
  137. }
  138. @media only screen and (max-width: 767px) {
  139. nav, article { width: 100% }
  140. .box { width: 94% }
  141. aside { display: none }
  142. .sbox { width: 100%; margin: 0 auto 10px }
  143. .sbox.ml { margin-left: 0; }
  144. .blogs { width: 100% }
  145. .newsbox { width: 100% }
  146. nav { border: none }
  147. #starlist { width: 90%; margin: auto; }
  148. nav li { width: 33%; padding: 0; display: block; float: left; border-top: 1px solid #333; border-bottom: 1px solid #333; }
  149. nav li:nth-child(n+4) { border-top: none }
  150. nav li:nth-child(2), nav li:nth-child(5), nav li:nth-child(8) { border-left: 1px solid #333; border-right: 1px solid #333; }
  151. .infosbox { width: 100% }
  152. }
  153. button.submit {
  154. width: 100%;
  155. font-family: "Roboto", "Open Sans", sans-serif;
  156. font-weight: 400;
  157. padding: 10px 12px;
  158. max-width: 27.75em;
  159. min-height: 26px;
  160. background: #F7F7F7;
  161. color: #333333;
  162. border: solid 1px #D4D4D4;
  163. border-radius: 0;
  164. -webkit-appearance: none;
  165. -webkit-transition: background 0.2s;
  166. transition: background 0.2s;
  167. cursor: pointer
  168. }
  169. /*read*/
  170. .news_con h2 { font-size: 16px; width: auto; height: 30px; line-height: 30px; text-align: center; background: #333; color: #fff; margin: 10px 0; font-weight: normal;display:inline-block !important; display:inline;padding: 0px 20px;}
  171. a.current_category {
  172. background: #dbd3d3
  173. }
  174. code:not(.language-plaintext,.language-php,.language-c,.language-js,.language-javascript,.language-java,.language-sql,.language-html) {
  175. color: #c7254e;
  176. background-color: #f9f2f4;
  177. }
  178. /* 分页 */
  179. .pagination {
  180. display: inline-block;
  181. padding-left: 0;
  182. border-radius: 4px;
  183. list-style: none;
  184. }
  185. .pagination li {
  186. float: left;
  187. border: 1px solid #DDD;
  188. border-left: none;
  189. min-width: 31px;
  190. height: 28px;
  191. line-height: 28px;
  192. text-align: center;
  193. }
  194. .pagination li.active,
  195. li.disabled {
  196. width: 31px;
  197. text-align: center;
  198. color: #737373;
  199. cursor: default;
  200. background: #f5f5f5;
  201. }
  202. .pagination li a {
  203. color: #3399d5;
  204. }
  205. .pagination li:first-child {
  206. border-left: 1px solid #DDD;
  207. border-bottom-left-radius: 5px;
  208. border-top-left-radius: 5px;
  209. }
  210. .pagination li:last-child {
  211. border-bottom-right-radius: 5px;
  212. border-top-right-radius: 5px;
  213. }
  214. .pagination li:hover {
  215. background: #f5f5f5;
  216. }