reset.less 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. html,
  2. body,
  3. div,
  4. span,
  5. iframe,
  6. h1,
  7. h2,
  8. h3,
  9. h4,
  10. h5,
  11. h6,
  12. p,
  13. a,
  14. img,
  15. i,
  16. dl,
  17. dt,
  18. dd,
  19. ol,
  20. ul,
  21. li,
  22. label,
  23. tr,
  24. th,
  25. td,
  26. input {
  27. margin: 0;
  28. padding: 0;
  29. border: 0;
  30. font-size: 14px;
  31. font-style: normal;
  32. color: #333333;
  33. text-decoration: none;
  34. }
  35. html,
  36. body {
  37. font-family: 'Microsoft YaHei', arial, tahoma, sans-serif;
  38. color: #333333;
  39. height: 100%;
  40. overflow: hidden;
  41. }
  42. ol,
  43. ul {
  44. list-style: none;
  45. }
  46. li {
  47. list-style: none;
  48. }
  49. a {
  50. color: #000;
  51. }
  52. button {
  53. cursor: pointer;
  54. outline: none;
  55. background-color: #fff;
  56. border: 0 none;
  57. }
  58. table {
  59. border-collapse: collapse;
  60. border-spacing: 0;
  61. }
  62. input,
  63. textarea {
  64. border: none;
  65. margin: 0;
  66. padding: 0;
  67. outline: none;
  68. }
  69. .clearfix:after{
  70. content: "";
  71. display: block;
  72. height: 0;
  73. clear: both;
  74. visibility: hidden;
  75. }
  76. .clearfix {
  77. zoom: 1;
  78. }
  79. .fl{
  80. float: left;
  81. }
  82. .fr{
  83. float: right;
  84. }
  85. @headerHt:50px; /*logo栏高度*/
  86. @menuLiHt:40px; /*菜单项高度*/
  87. @menuWt:300px; /*菜单宽度*/
  88. @activeColor:#5A8EEE; /*菜单项选中颜色*/
  89. @activeBg:#EEF4FF; /*菜单项选中背景*/
  90. @borderColor:#E2E5EF; /**边框颜色**/
  91. @frameBdColor:#F0F0F0;/***框架边框颜色**/
  92. @warnColor:#FF4D4F; /**重点红色**/
  93. @thBgColor:#EFF0F9; /**标题背景色**/
  94. @tableBorderColor:#E2E5EF; /**表格边框**/
  95. /****弹窗样式*****/
  96. .modal{
  97. position: fixed;
  98. top:0;
  99. left: 0;
  100. display: none;
  101. width: 100%;
  102. height: 100%;
  103. .cover{
  104. width: 100%;
  105. height: 100%;
  106. background: #000;
  107. opacity: .5;
  108. }
  109. .modal-box{
  110. position: absolute;
  111. top:50%;
  112. left: 50%;
  113. /*width: 400px;
  114. height: 255px;*/
  115. padding-bottom: 30px;
  116. margin-top:-180px;
  117. margin-left: -200px;
  118. background: #fff;
  119. border-radius:4px;
  120. }
  121. .modal-header{
  122. height: 40px;
  123. line-height: 40px;
  124. padding: 0 15px;
  125. border-bottom: 1px #E2E5EF solid;
  126. a{
  127. float: right;
  128. font-size: 18px;
  129. color: #8C8C8C;
  130. }
  131. }
  132. .modal-body{
  133. padding: 30px 65px 40px;
  134. }
  135. .modal-footer{
  136. /*position: absolute;
  137. bottom: 20px;
  138. width: 100%;*/
  139. height: 50px;
  140. line-height: 50px;
  141. text-align: center;
  142. a{
  143. width:80px;
  144. height:36px;
  145. color: #fff;
  146. background:@activeColor;
  147. border-radius:4px;
  148. padding:7px 26px;
  149. &.cancel{
  150. background: #fff;
  151. border:1px @activeColor solid;
  152. color:@activeColor;
  153. margin-left: 20px;
  154. }
  155. }
  156. }
  157. }
  158. .red{
  159. color: @warnColor;
  160. }
  161. .blue{
  162. color:@activeColor;
  163. }
  164. .alertModal {
  165. .modalBg {
  166. position: fixed;
  167. top: 0px;
  168. left: 0px;
  169. right: 0px;
  170. bottom: 0px;
  171. background: rgba(0, 0, 0, .3);
  172. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#88000000,endColorstr=#88000000);
  173. }
  174. .modalMain {
  175. width: 300px;
  176. // height: 200px;
  177. background-color: #fff;
  178. position: fixed;
  179. left: 50%;
  180. top: 30%;
  181. margin-left: -200px;
  182. padding-bottom: 20px;
  183. border-radius: 4px;
  184. overflow: hidden;
  185. }
  186. .title {
  187. border-bottom: 1px solid #eee;
  188. line-height: 40px;
  189. height: 40px;
  190. position: relative;
  191. padding-left: 15px;
  192. font-size: 14px;
  193. img {
  194. position: absolute;
  195. right: 0px;
  196. top: 0px;
  197. cursor: pointer;
  198. }
  199. }
  200. .content {
  201. padding: 25px 15px 0 15px;
  202. font-size: 14px;
  203. text-align: center;
  204. }
  205. .btns {
  206. height: 36px;
  207. text-align: center;
  208. span {
  209. border-radius: 5px;
  210. display: inline-block;
  211. // float: right;
  212. cursor: pointer;
  213. border: 1px solid #dedede;
  214. width: 80px;
  215. height: 36px;
  216. line-height: 36px;
  217. margin: 5px 5px 0;
  218. color: #333;
  219. border-radius: 3px;
  220. font-weight: 400;
  221. text-decoration: none;
  222. }
  223. .sure {
  224. background-color: #5A8EEE;
  225. border-color: #1E9FFF;
  226. color: #fff;
  227. }
  228. .quite {
  229. margin-left: 30px;
  230. margin-right: 30px;
  231. }
  232. }
  233. }
  234. .divModal {
  235. position: fixed;
  236. }
  237. .modaltip {
  238. position: fixed;
  239. top: 40%;
  240. left: 50%;
  241. padding: 10px;
  242. border-radius: 3px;
  243. color: #fff;
  244. background: rgba(0, 0, 0, .6);
  245. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#88000000,endColorstr=#88000000);
  246. }
  247. .loading {
  248. position: fixed;
  249. width: 100%;
  250. height: 100%;
  251. padding: 10px;
  252. border-radius: 3px;
  253. color: #fff;
  254. background: rgba(0, 0, 0, 0);
  255. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#88000000,endColorstr=#88000000);
  256. img {
  257. position: fixed;
  258. top: 50%;
  259. left: 50%;
  260. width: 40px;
  261. height: 40px;
  262. margin-left: -20px;
  263. margin-top: -20px;
  264. }
  265. }
  266. input::-webkit-input-placeholder{
  267. color:#ccc;
  268. }
  269. input::-moz-placeholder{ /* Mozilla Firefox 19+ */
  270. color:#ccc;
  271. }
  272. input:-moz-placeholder{ /* Mozilla Firefox 4 to 18 */
  273. color:#ccc;
  274. }
  275. input:-ms-input-placeholder{ /* Internet Explorer 10-11 */
  276. color:#ccc;
  277. }