base.less 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433
  1. /*其他*/
  2. body,
  3. ul,
  4. ol,
  5. li,
  6. p,
  7. h1,
  8. h2,
  9. h3,
  10. h4,
  11. h5,
  12. h6,
  13. form,
  14. fieldset,
  15. table,
  16. td,
  17. img,
  18. div,
  19. a {
  20. margin: 0;
  21. padding: 0;
  22. border: 0;
  23. text-decoration: none !important;
  24. }
  25. * {
  26. margin: 0;
  27. padding: 0;
  28. }
  29. body {
  30. min-width: 1200px;
  31. background-color: #fafafa;
  32. }
  33. html,
  34. body,
  35. ul,
  36. li {
  37. margin: 0;
  38. padding: 0;
  39. }
  40. a {
  41. text-decoration: none;
  42. color: #555;
  43. }
  44. ul,
  45. li,
  46. ol {
  47. list-style: none;
  48. }
  49. input:focus,
  50. textarea:focus {
  51. outline: none;
  52. }
  53. /*banner图*/
  54. .ms-banner {
  55. height: 337px;
  56. img {
  57. width: 100%;
  58. height: 100%;
  59. }
  60. }
  61. .flexslider {
  62. margin: 0px auto 20px;
  63. position: relative;
  64. width: 100%;
  65. height: 440px;
  66. overflow: hidden;
  67. zoom: 1;
  68. .slides {
  69. li {
  70. width: 100%;
  71. height: 100%;
  72. }
  73. a {
  74. img {
  75. width: 100%;
  76. height: 337px;
  77. display: block;
  78. }
  79. }
  80. }
  81. .flex-direction-nav {
  82. width: 100%;
  83. /*position: absolute;*/
  84. bottom: 10px;
  85. text-align: center;
  86. a {
  87. width: 70px;
  88. height: 70px;
  89. line-height: 99em;
  90. overflow: hidden;
  91. margin: -35px 0 0;
  92. display: block;
  93. background: url(../images/ad_ctr.png) no-repeat;
  94. position: absolute;
  95. top: 50%;
  96. z-index: 10;
  97. cursor: pointer;
  98. opacity: 0;
  99. filter: alpha(opacity=0);
  100. -webkit-transition: all .3s ease;
  101. border-radius: 35px;
  102. }
  103. .flex-next {
  104. background-position: 0 -70px;
  105. right: 10px;
  106. }
  107. .flex-prev {
  108. left: 10px;
  109. }
  110. li {
  111. margin: 0 2px;
  112. display: inline-block;
  113. zoom: 1;
  114. *display: inline;
  115. }
  116. }
  117. }
  118. .flexslider:hover {
  119. .flex-next {
  120. opacity: 0.8;
  121. filter: alpha(opacity=25);
  122. }
  123. .flex-prev {
  124. opacity: 0.8;
  125. filter: alpha(opacity=25);
  126. }
  127. }
  128. .flexslider:hover .flex-next:hover,
  129. .flexslider:hover .flex-prev:hover {
  130. opacity: 1;
  131. filter: alpha(opacity=50);
  132. }
  133. /*头部*/
  134. .ms-head {
  135. a {
  136. color: #fff;
  137. }
  138. background-color: #2b3442;
  139. .head-menu-flex-center {
  140. display: flex;
  141. align-items: center;
  142. }
  143. .head-menu {
  144. width: 1200px;
  145. height: 60px;
  146. margin: auto;
  147. color: #ffffff;
  148. /*overflow: hidden;*/
  149. display: flex;
  150. justify-content: space-between;
  151. .head-menu-flex-center {
  152. .head-menu-list {
  153. .head-active{
  154. color: #ffb800;
  155. background-color: #2b3442;
  156. }
  157. .head-menu-list-li:hover {
  158. background-color: #202833;
  159. color: #ffb800;
  160. }
  161. .head-menu-list-li a:hover {
  162. background-color: #202833;
  163. color: #ffb800;
  164. }
  165. padding-left: 30px;
  166. height: 60px;
  167. line-height: 60px;
  168. margin: 0 !important;
  169. .head-menu-list-li {
  170. cursor: pointer;
  171. position: relative;
  172. .head-menu-son-list {
  173. background-color: #2b3442;
  174. position: absolute;
  175. width: 100%;
  176. left: 0;
  177. color: #fff;
  178. display: none;
  179. top: 60px;
  180. z-index: 9999999;
  181. li {
  182. height: 40px;
  183. line-height: 40px;
  184. text-align: center;
  185. a:hover {
  186. color: #ffb800;
  187. background-color: #2b3442;
  188. }
  189. }
  190. }
  191. }
  192. }
  193. }
  194. img,
  195. .head-menu-list,
  196. div,
  197. .head-menu-list-li {
  198. float: left;
  199. }
  200. img {
  201. width: 60px;
  202. height: 30px;
  203. padding-right: 10px;
  204. }
  205. li {
  206. padding: 0 15px;
  207. ul {
  208. /*display: none;*/
  209. }
  210. }
  211. .head-men-right {
  212. .head-menu-right-content {
  213. min-width: 100px;
  214. span {
  215. span {
  216. padding: 0 5px;
  217. cursor: pointer;
  218. a {
  219. &:hover {
  220. color: #ffb800;
  221. }
  222. }
  223. }
  224. }
  225. }
  226. .head-menu-right-search {
  227. padding-right: 12px;
  228. position: relative;
  229. input:-webkit-autofill {
  230. -webkit-box-shadow: 0 0 0px 1000px #2b3442 inset !important;//关于解决输入框背景颜色
  231. -webkit-text-fill-color: rgba(255,255,255,1)!important;//关于接输入框文字颜色
  232. }
  233. .ms-search-click {
  234. background-image: url(../images/search.png);
  235. width: 14px;
  236. height: 14px;
  237. border: 0;
  238. background-color: #2b3442;
  239. position: absolute;
  240. right: 30px;
  241. top: 8px;
  242. cursor: pointer;
  243. }
  244. .ms-search-input {
  245. height: 28px;
  246. background-color: #2b3442;
  247. border: 1px solid #fff;
  248. border-radius: 15px;
  249. padding-left: 30px;
  250. color: #fff;
  251. width: 318px;
  252. font-size: 14px;
  253. }
  254. input::-webkit-input-placeholder {
  255. color: #fff;
  256. }
  257. .iconfont {
  258. font-size: 18px;
  259. cursor: pointer;
  260. position: absolute;
  261. right: 28px;
  262. }
  263. }
  264. }
  265. }
  266. }
  267. /*底部*/
  268. .ms-footer {
  269. height: 140px;
  270. background-color: #2a3542;
  271. /*line-height: 140px;*/
  272. .ms-footer-content {
  273. padding: 46px 0;
  274. width: 1200px;
  275. margin: auto;
  276. .ms-footer-left {
  277. color: #999999;
  278. font-size: 14px;
  279. float: left;
  280. .ms-footer-left-copyright {
  281. display: block;
  282. padding-top: 20px;
  283. height: 14px;
  284. }
  285. .ms-footer-left-column {
  286. a:link {
  287. color: #999;
  288. text-decoration: none
  289. }
  290. a:visited {
  291. color: #999;
  292. text-decoration: none
  293. }
  294. a:hover{
  295. color: #fff;
  296. }
  297. height: 14px;
  298. cursor:pointer;
  299. .ms-footer-left-column-course,
  300. .ms-footer-left-column-contact {
  301. padding: 0 10px;
  302. }
  303. .ms-footer-left-column-about {
  304. padding-right: 10px;
  305. }
  306. }
  307. }
  308. .ms-footer-right {
  309. float: right;
  310. img {
  311. cursor: pointer;
  312. }
  313. .ms-footer-right-baidu {
  314. padding: 0 12px;
  315. }
  316. .ms-footer-right-weixin {
  317. position: relative;
  318. display: none;
  319. img {
  320. top: -161px;
  321. left: -38px;
  322. width: 103px;
  323. /* display: none; */
  324. border: 2px solid #ccc;
  325. position: absolute;
  326. }
  327. p {
  328. font-size: 0;
  329. line-height: 0;
  330. display: block;
  331. width: 0;
  332. height: 0;
  333. left: 8px;
  334. border-left: 10px solid transparent;
  335. border-right: 8px solid transparent;
  336. border-top: 10px solid #fff;
  337. position: absolute;
  338. top: -58px;
  339. z-index: 85;
  340. /* display: none; */
  341. }
  342. }
  343. }
  344. }
  345. }
  346. .ms-but-disabled2,
  347. .ms-but-disabled {
  348. opacity: .6 !important;
  349. cursor: no-drop !important;
  350. }
  351. .ms-but-disabled:hover {
  352. background-color: #009aff !important;
  353. }
  354. .ms-loading {
  355. text-align: center;
  356. height: 700px;
  357. line-height: 700px;
  358. img {
  359. width: 60px;
  360. }
  361. }
  362. .topbar-info {
  363. display: flex;
  364. align-items: center;
  365. float: right;
  366. color: white;
  367. text-align: right;
  368. a {
  369. height: 30px;
  370. line-height: 30px;
  371. .loginImg {
  372. width: 30px !important;
  373. height: 30px !important;
  374. vertical-align: super;
  375. border-radius: 50%;
  376. padding: 0;
  377. margin-right: 12px;
  378. opacity: .9;
  379. cursor: pointer;
  380. &:hover {
  381. opacity: 1;
  382. }
  383. }
  384. .userName {
  385. line-height: 30px !important;
  386. margin-right: 12px;
  387. color: #fff;
  388. cursor: pointer;
  389. font-weight: 500;
  390. &:hover {
  391. color: #ffb800;
  392. }
  393. }
  394. }
  395. .quitLogin {
  396. color: #fff;
  397. height: 30px;
  398. line-height: 30px;
  399. &:hover {
  400. color: #ffb800;
  401. }
  402. }
  403. .ms-userName {
  404. max-width: 110px;
  405. white-space: nowrap;
  406. display: inline-block;
  407. overflow: hidden;
  408. text-overflow: ellipsis;
  409. }
  410. }