layout.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. /***样式初始化***/
  2. html{margin:0;padding:0;border:0;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);}
  3. body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, q, dl, dt, dd, ol, ul, li, input, fieldset, form, legend, caption, tbody, tfoot, thead, article, aside, dialog, figure, footer, header, hgroup, nav, section{margin:0;padding:0;border:0;font-size:14px;font:inherit;vertical-align:baseline;}
  4. article, aside, details, figcaption, figure, dialog, footer, header, hgroup, menu, nav, section{display:block;}
  5. body{font-size:12px;color:#000;background:#fff;font-family:"Microsoft YaHei","simsun","Helvetica Neue", Arial, Helvetica, sans-serif;}
  6. img{border:0;}
  7. ::-webkit-input-placeholder{color:#999;}
  8. :-moz-placeholder{color:#999;}
  9. ::-moz-placeholder{color:#999;}
  10. :-ms-input-placeholder{color:#ccc;}
  11. *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}
  12. *:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}
  13. button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0;}
  14. textarea{overflow:auto;}
  15. /*a{text-decoration: none;}*/
  16. b,strong{font-weight: bold;}
  17. input:focus,textarea:focus,button:focus,select:focus{outline:none;}
  18. input::-ms-clear{display:none;}
  19. button[disabled],html input[disabled]{cursor:default;}
  20. table{border-collapse:collapse;border-spacing:0;}
  21. /*清除浮动*/
  22. .clearfix:after { visibility:hidden; display:block; font-size:0; content:" "; clear:both; height:0; }
  23. .clear { clear:both; }
  24. /***样式初始化 END***/
  25. /***float***/
  26. .fl { float: left !important; }
  27. .fr { float: right !important; }
  28. /***动画过渡时间***/
  29. .transition-0-3s{transition: all 0.3s;}
  30. .transition-0-5s{transition: all 0.5s;}
  31. .transition-0-8s{transition: all 0.8s;}
  32. .transition-1-0s{transition: all 1s;}
  33. .transition-1-5s{transition: all 1.5s;}
  34. .transition-2-0s{transition: all 2s;}
  35. .no-transition{transition:none !important;}
  36. /***文本类容***/
  37. /*标题*/
  38. h1,.h1{font-size:28px;}
  39. h2,.h2{font-size:24px;}
  40. h3,.h3{font-size:18px;}
  41. h4,.h4{font-size:16px;}
  42. h5,.h5{font-size:14px;}
  43. h6,.h6{font-size:12px;}
  44. h1 small,.h1 small,h2 small,.h2 small,h3 small,.h3 small{font-size:60%;filter:alpha(opacity=60);opacity:.6;}
  45. h4 small,.h4 small,h5 small,.h5 small,h6 small,.h6 small{font-size:12px;filter:alpha(opacity=60);opacity:.6;}
  46. /*自定义链接颜色(可自由更换)*/
  47. a{color:#333;text-decoration:none;} /*链接-颜色*/
  48. a:hover{color:#098cba;} /*链接-悬浮颜色*/
  49. .text-underline:hover {text-decoration:underline;}
  50. /*段落*/
  51. p,.p{line-height:25px;}
  52. .text-indent,.text-indent p,.text-indent div{text-indent:2em;}
  53. /*粗体*/
  54. .strong{font-weight:bold;}
  55. .text-normal{font-weight:normal;}
  56. /*对齐*/
  57. .text-left{text-align:left !important;}
  58. .text-center{text-align:center !important;}
  59. .text-right{text-align:right !important;}
  60. .text-justify{text-align:justify !important;}
  61. /*文本省略*/
  62. .text-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  63. .no-ellipsis{overflow:auto;text-overflow:initial;white-space:normal;}
  64. /***input***/
  65. .input{font-size:14px;padding:6px;border:solid 1px #ccc;width:100%;height:34px;line-height:20px;display:block;background-color: #fff; -webkit-appearance:none;/*transition:all 1s;*/}
  66. .input:focus,.input-focus{border-color:#40b2da;background-color:#f5f8fd;/*transition:all 0.3s*/}
  67. .input:hover,.input-hover{border-color:#40b2da;}
  68. .input-error,.input-error:hover{border-color:#d93600;}
  69. .input-error:focus{border-color:#d93600;background-color:#fff;}
  70. .input-disabled, .input-disabled:hover, .input[disabled], .input[disabled]:hover {border-color:#999;background-color: #eee;}
  71. .input-readonly, .input[readonly], .input[readonly]:hover { border-color: #ccc; background-color: #fff; }
  72. /***Button***/
  73. .button {display:inline-block;padding: 6px 20px;border: 1px solid #ddd;border-radius: 3px;color: #3a3a3a;font-size:12px; line-height: 22px; text-align: center; background:transparent; /*transition: all 0.3s;*/ cursor: pointer; }
  74. .button-full{display:block;width:100%;}
  75. .button:hover{background:#f1f1f1;}
  76. .button.bg-black,.button.bg-dark-grey,.button.bg-main,.button.bg-dot,.button.bg-gray,.button.bg-light-gray,.button.bg-sub,.button.bg-mix,.button.bg-pink,.button.bg-red,.button.bg-orange,.button.bg-blue,.button.bg-green {color:#fff;border:0;}
  77. .button.bg-black:hover{background:#222;}
  78. .button.bg-dark-grey:hover{background:#444;}
  79. .button.bg-main:hover{background:#098cba;}
  80. .button.bg-dot:hover{background:#d93600;}
  81. .button.bg-gray:hover{background:#aaa;}
  82. .button.bg-light-gray:hover{background:#aaa;}
  83. .button.bg-sub:hover{background:#40b2da;}
  84. .button.bg-mix:hover{background:#ff5a00;}
  85. .button.bg-white:hover{background:#f1f1f1;}
  86. .button.bg-gray-white:hover{background:#fff;}
  87. .button.bg-pink:hover{background: #e13538;}
  88. .button.bg-red:hover{background: #d10;}
  89. .button.bg-orange:hover{background: #f60;}
  90. .button.bg-blue:hover{background: #0ae;}
  91. .button.bg-green:hover{background: green;}
  92. .button.border-gray:hover,.button.border-main:hover,.button.border-dot:hover,.button.border-mix:hover,.button.border-sub:hover,.button.border-black:hover{color:#fff;}
  93. .button.border-gray-white:hover{background: #eee;}
  94. .button.border-light-gray:hover{background:#ccc;}
  95. .button.border-gray:hover{background:#999;}
  96. .button.border-black:hover{background:#000;}
  97. .button.border-main:hover{background:#40b2da;}
  98. .button.border-sub:hover{background:#098cba;}
  99. .button.border-mix:hover{background: #d93600;}
  100. .button.border-dot:hover{background: #ff5a00;}
  101. /***select***/
  102. .select{width:100%;height:26px;border:1px solid #ccc;}
  103. .select:focus,.select:hover{border-color:#40b2da;}
  104. /***textarea***/
  105. .textarea{border:1px solid #ccc;resize: none;}
  106. .textarea:hover{border-color:#40b2da;}
  107. .textarea:focus{border-color:#40b2da;background-color:#f5f8fd;}
  108. /***margin***/
  109. /***border***/
  110. .border{border:solid 1px #ddd;}
  111. .border-top{border-top:solid 1px #ddd;}
  112. .border-right{border-right:solid 1px #ddd;}
  113. .border-bottom{border-bottom:solid 1px #ddd;}
  114. .border-left{border-left:solid 1px #ddd;}
  115. .border-top-bottom{border-top:solid 1px #ddd;border-bottom:solid 1px #ddd;}
  116. .border-left-right{border-left:solid 1px #ddd;border-right:solid 1px #ddd;}
  117. /*边框样式*/
  118. .border-dashed{border-style:dashed;}
  119. .border-dotted{border-style:dotted;}
  120. .border-double{border-style:double;}
  121. .border-inset{border-style:inset;}
  122. .border-outset{border-style:outset;}
  123. /*边框大小*/
  124. .border-large{border-width:10px;}
  125. .border-big{border-width:5px;}
  126. .border-middle{border-width:3px;}
  127. .border-small{border-width:2px;}
  128. .border-none{border: none !important;}
  129. /*边框颜色*/
  130. .border-gray-white { border-color: #eee; }
  131. .border-light-gray { border-color:#ccc; }
  132. .border-gray { border-color:#999; }
  133. .border-main { border-color:#40b2da; }
  134. .border-sub{border-color:#098cba;}
  135. .border-mix{border-color: #d93600;}
  136. .border-dot{border-color: #ff5a00;}
  137. .border-white{border-color: #fff;}
  138. .border-black{border-color: #000;}
  139. /***border radius***/
  140. .radius-none{border-radius:0;}
  141. .radius-small{border-radius:2px;}
  142. .radius{border-radius:4px;}
  143. .radius-big{border-radius:6px;}
  144. .radius-rounded{border-radius:2em;}
  145. .radius-circle{border-radius:50%;}
  146. /***boxshadow***/
  147. .box-shadow{box-shadow: 0 3px 5px #ccc;}
  148. /***background***/
  149. .bg{ background: #eee; }
  150. .bg-gray{background: #999;}
  151. .bg-dark-grey{background: #3a3a3a;}
  152. .bg-black{background: #000;}
  153. .bg-white{background: #fff;}
  154. .bg-gray-white{background: #f7f7f7;}
  155. .bg-main{background: #40b2da;}
  156. .bg-sub{background: #098cba;}
  157. .bg-mix{background: #d93600;}
  158. .bg-dot{background: #ff5a00;}
  159. .bg-pink{background: #e13538;}
  160. .bg-red{background: #d10;}
  161. .bg-orange{background: #f60;}
  162. .bg-blue{background: #0ae;}
  163. .bg-green{background: green;}
  164. .bg-inverse,.bg-inverse a{color: #fff;}
  165. .bg-none{background:none !important;}
  166. /*内边距,全,上,下,左,右*/
  167. .padding-large{padding:30px;}
  168. .padding-large-top{padding-top:30px;}
  169. .padding-large-right{padding-right:30px;}
  170. .padding-large-bottom{padding-bottom:30px;}
  171. .padding-large-left{padding-left:30px;}
  172. .padding-big{padding:20px;}
  173. .padding-big-top{padding-top:20px;}
  174. .padding-big-right{padding-right:20px;}
  175. .padding-big-bottom{padding-bottom:20px;}
  176. .padding-big-left{padding-left:20px;}
  177. .padding{padding:10px;}
  178. .padding-tb{padding:10px 0;}
  179. .padding-lr{padding:0 10px;}
  180. .padding-top{padding-top:10px;}
  181. .padding-right{padding-right:10px;}
  182. .padding-bottom{padding-bottom:10px;}
  183. .padding-left{padding-left:10px;}
  184. .padding-small{padding:5px;}
  185. .padding-small-top{padding-top:5px;}
  186. .padding-small-right{padding-right:5px;}
  187. .padding-small-bottom{padding-bottom:5px;}
  188. .padding-small-left{padding-left:5px;}
  189. .padding-little{padding:2px;}
  190. .padding-little-top{padding-top:2px;}
  191. .padding-little-right{padding-right:2px;}
  192. .padding-little-bottom{padding-bottom:2px;}
  193. .padding-little-left{padding-left:2px;}
  194. .padding-none{padding:0 !important;}
  195. /*外边距,全,上,下,左,右*/
  196. .margin-large{margin:30px;}
  197. .margin-large-top{margin-top:30px;}
  198. .margin-large-right{margin-right:30px;}
  199. .margin-large-bottom{margin-bottom:30px;}
  200. .margin-large-left{margin-left:30px;}
  201. .margin-big{margin:20px;}
  202. .margin-big-top{margin-top:20px;}
  203. /* .margin-big-right{margin-right:20px;} */
  204. .margin-big-bottom{margin-bottom:20px;}
  205. .margin-big-left{margin-left:20px;}
  206. .margin{margin:10px !important;clear:both;}
  207. .margin-tb{margin:10px 0;}
  208. .margin-lr{margin:0 10px;}
  209. .margin-top{margin-top:10px;}
  210. .margin-right{margin-right:10px;}
  211. .margin-bottom{margin-bottom:10px;}
  212. .margin-left{margin-left:10px;}
  213. .margin-around{margin: 0 10px;}
  214. .margin-small{margin:5px;}
  215. .margin-small-top{margin-top:5px;}
  216. .margin-small-right{margin-right:5px;}
  217. .margin-small-bottom{margin-bottom:5px;}
  218. .margin-small-left{margin-left:5px;}
  219. .margin-little{margin:2px;}
  220. .margin-little-top{margin-top:2px;}
  221. .margin-little-right{margin-right:2px;}
  222. .margin-little-bottom{margin-bottom:2px;}
  223. .margin-little-left{margin-left:2px;}
  224. .margin-none{margin:0 !important;}
  225. /*无序有序列表*/
  226. ul{list-style:none;}
  227. ol{padding-left: 24px;}
  228. .list-cn{list-style-type:cjk-ideographic;}
  229. .list-alpha{list-style-type:upper-alpha;}
  230. .list-unstyle{list-style:none;padding-left:0;}
  231. .list-unstyle ul{list-style:disc;}
  232. .list-inline li{display:inline-block;padding:0 10px;width:auto;}
  233. /***布局***/
  234. .layout{width: 100%;}
  235. .container{margin: 0 auto;width: 1200px;}
  236. /*宽度比例*/
  237. .w10 { width: 10%; }
  238. .w20 { width: 20%; }
  239. .w30 { width: 30%; }
  240. .w40 { width: 40%; }
  241. .w50 { width: 50%; }
  242. .w60 { width: 60%; }
  243. .w70 { width: 70%; }
  244. .w80 { width: 80%; }
  245. .w90 { width: 90%; }
  246. .w5 { width: 5%; }
  247. .w15 { width: 15%; }
  248. .w25 { width: 25%; }
  249. .w35 { width: 35%; }
  250. .w33 { width: 33.333%; }
  251. .w45 { width: 45%; }
  252. .w55 { width: 55%; }
  253. .w65 { width: 65%; }
  254. .w75 { width: 75%; }
  255. .w85 { width: 85%; }
  256. .w95 { width: 95%; }
  257. /*HR*/
  258. .hr-gray { width: 100%; border-top: 1px solid #d6d6d6; border-bottom: 1px solid #fff; }
  259. .hr-black { width: 100%; border-top: 1px solid #171717; border-bottom: 1px solid #707070; }
  260. .hr-blue { width: 100%; border-top: 1px solid #2969a6; border-bottom: 1px solid #488bcb; }
  261. /*spacer*/
  262. .spacer-gray { border-left: 1px solid #d6d6d6; border-right: 1px solid #fff; }
  263. /***隐藏与显示***/
  264. .show{display:block !important;}
  265. .hidden{display:none !important;}
  266. .visible-hidden { visibility: hidden; }
  267. .over-initial{overflow: initial !important;}
  268. .over-hidden{overflow: hidden;}
  269. /*字号*/
  270. .text-large{font-size:24px !important;}
  271. .text-big{font-size:16px !important;}
  272. .text-default{font-size:14px !important;}
  273. .text-small{font-size:12px !important;}
  274. .text-little{font-size:10px !important;}
  275. /*字体颜色*/
  276. .text-main{color:#40b2da;}/*主色*/
  277. .text-sub{color:#098cba;}/*辅色*/
  278. .text-dot{color:#ff5a00;}/*点缀色*/
  279. .text-mix{color:#d93600;}/*融合色*/
  280. .text-white{color:#fff;}/*白色*/
  281. .text-black{color:#000;}/*黑色*/
  282. .text-gray{color:#999;}/*浅灰色*/
  283. .text-drak-grey{color:#3a3a3a;}/*深灰色*/
  284. .text-red{color:#b10;}
  285. .text-orange{color:#f60;}
  286. .text-blue{color:#0ae;}
  287. .text-green{color:green;}
  288. /*行高*/
  289. .text-lh-little{line-height: 16px;}
  290. .text-lh-small{line-height: 18px;}
  291. .text-lh{line-height: 22px;}
  292. .text-lh-big{line-height: 24px;}
  293. .text-lh-large{line-height: 28px;}