theme.less 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. @cdn:'https://houseoss.4dkankan.com/chuanshan';
  2. .theme(@backcolor:#b9412e,@color:#E4AD64){
  3. .primary{
  4. background-color: @backcolor;
  5. }
  6. .primaryColor{
  7. color: @backcolor;
  8. }
  9. .subBgColor{
  10. background-color: @color;
  11. }
  12. .primaryTxt{
  13. color: @color;
  14. }
  15. .txtHover{
  16. cursor: pointer;
  17. .show{
  18. display: none;
  19. }
  20. &:hover{
  21. color: @color!important;
  22. *{
  23. color: @color!important;
  24. }
  25. .hidden{
  26. display: none;
  27. }
  28. .show{
  29. display: inline-block;
  30. }
  31. }
  32. }
  33. .txtAvtive{
  34. color: @color!important;
  35. *{
  36. color: @color!important;
  37. }
  38. .hidden{
  39. display: none;
  40. }
  41. .show{
  42. display: inline-block;
  43. }
  44. }
  45. .txtSameHover{
  46. cursor: pointer;
  47. .show{
  48. display: none;
  49. }
  50. &:hover{
  51. color: @backcolor!important;
  52. *{
  53. color: @backcolor!important;
  54. }
  55. .hidden{
  56. display: none;
  57. }
  58. .show{
  59. display: inline-block;
  60. }
  61. }
  62. }
  63. .primaryHover{
  64. cursor: pointer;
  65. .show{
  66. display: none;
  67. }
  68. &:hover{
  69. color: @backcolor!important;
  70. *{
  71. color: @backcolor!important;
  72. }
  73. .hidden{
  74. display: none;
  75. }
  76. .show{
  77. display: inline-block;
  78. }
  79. }
  80. }
  81. .navActive{
  82. font-weight: bold;
  83. color: @theme;
  84. position: relative;
  85. background: @color;
  86. &::before{
  87. background: @theme;
  88. background-size: 100%;
  89. position: absolute;
  90. bottom: .47rem;
  91. left: 50%;
  92. transform: translateX(-50%);
  93. width: 4.17rem;
  94. height: .17rem;
  95. content: '';
  96. display: inline-block;
  97. }
  98. }
  99. .paging{
  100. user-select: none;
  101. color: #fff;
  102. font-weight: bold;
  103. >a{
  104. margin: 0 10px;
  105. &:first-of-type{
  106. border: solid #fff;
  107. border-width: 0 2px 2px 0;
  108. display: inline-block;
  109. padding: 3px;
  110. transform: translateY(-2px) rotate(135deg);
  111. &:hover{
  112. border: solid @color;
  113. border-width: 0 2px 2px 0;
  114. }
  115. }
  116. &:last-of-type{
  117. border: solid #fff;
  118. border-width: 0 2px 2px 0;
  119. display: inline-block;
  120. padding: 3px;
  121. transform: translateY(-2px) rotate(-45deg);
  122. &:hover{
  123. border: solid @color;
  124. border-width: 0 2px 2px 0;
  125. }
  126. }
  127. &:hover{
  128. color: @color;
  129. }
  130. }
  131. .active{
  132. color: @color;
  133. }
  134. }
  135. .paging-black{
  136. color: #9E9E9E;
  137. /deep/ a{
  138. margin: 0 10px;
  139. &:first-of-type{
  140. border: solid #9E9E9E;
  141. border-width: 0 2px 2px 0;
  142. &:hover{
  143. border: solid #000;
  144. border-width: 0 2px 2px 0;
  145. }
  146. }
  147. &:last-of-type{
  148. border: solid #9E9E9E;
  149. border-width: 0 2px 2px 0;
  150. &:hover{
  151. border: solid #000;
  152. border-width: 0 2px 2px 0;
  153. }
  154. }
  155. &:hover{
  156. color: #000;
  157. }
  158. }
  159. .active{
  160. color: #000;
  161. }
  162. }
  163. .paging-theme{
  164. color: #9E9E9E;
  165. /deep/ a{
  166. margin: 0 10px;
  167. &:first-of-type{
  168. border: solid #9E9E9E;
  169. border-width: 0 2px 2px 0;
  170. &:hover{
  171. border: solid @backcolor;
  172. border-width: 0 2px 2px 0;
  173. }
  174. }
  175. &:last-of-type{
  176. border: solid #9E9E9E;
  177. border-width: 0 2px 2px 0;
  178. &:hover{
  179. border: solid @backcolor;
  180. border-width: 0 2px 2px 0;
  181. }
  182. }
  183. &:hover{
  184. color: @backcolor;
  185. }
  186. }
  187. .active{
  188. color: @backcolor;
  189. }
  190. }
  191. .switch-nav{
  192. text-align: left;
  193. >li{
  194. display: inline-block;
  195. cursor: pointer;
  196. }
  197. .active{
  198. color: @backcolor!important;
  199. border-bottom: 4px solid @backcolor!important;
  200. }
  201. }
  202. .bordeStyle{
  203. border: 2px solid @color;
  204. }
  205. .borderThemeStyle{
  206. border: 1px solid @backcolor;
  207. cursor: pointer;
  208. }
  209. .borderIrr{
  210. border: 2px solid @backcolor;
  211. position: relative;
  212. &::after,&::before,.bottoml,.bottomr{
  213. content: '';
  214. display: inline-block;
  215. position: absolute;
  216. width: 10px;
  217. height: 10px;
  218. box-sizing: border-box;
  219. }
  220. &::after{
  221. border-right: 2px solid @backcolor;
  222. border-left: 2px solid #fff;
  223. border-bottom: 2px solid @backcolor;
  224. border-top: 2px solid #fff;
  225. top: -2px;
  226. left: -2px;
  227. }
  228. &::before{
  229. border-right: 2px solid #fff;
  230. border-left: 2px solid @backcolor;
  231. border-bottom: 2px solid @backcolor;
  232. border-top: 2px solid #fff;
  233. top: -2px;
  234. right: -2px;
  235. }
  236. .bottoml{
  237. border-right: 2px solid @backcolor;
  238. border-left: 2px solid #fff;
  239. border-bottom: 2px solid #fff;
  240. border-top: 2px solid @backcolor;
  241. bottom: -2px;
  242. left: -2px;
  243. }
  244. .bottomr{
  245. border-right: 2px solid #fff;
  246. border-left: 2px solid @backcolor;
  247. border-bottom: 2px solid #fff;
  248. border-top: 2px solid @backcolor;
  249. bottom: -2px;
  250. right: -2px;
  251. }
  252. }
  253. .input{
  254. border: 1px solid #9E9E9E;
  255. vertical-align: middle;
  256. min-height: 40px;
  257. display: inline-block;
  258. >input,>textarea{
  259. font-size: 16px;
  260. width: 100%;
  261. padding-left: 10px;
  262. border: none;
  263. min-height: 40px;
  264. line-height: 40px;
  265. }
  266. }
  267. .button{
  268. display: inline-block;
  269. width: 100px;
  270. height: 42px;
  271. line-height: 42px;
  272. border: #9E9E9E 1px solid;
  273. border-radius: 4px;
  274. cursor: pointer;
  275. }
  276. .primarybtn{
  277. background-color: @backcolor;
  278. color: #fff;
  279. border: @backcolor 1px solid;
  280. }
  281. .btmLine{
  282. width: 100%;
  283. height: 4px;
  284. position: absolute;
  285. background-color: @backcolor;
  286. left: 0;
  287. bottom: 0;
  288. }
  289. .sidebar{
  290. li{
  291. &:hover{
  292. color: @color!important;
  293. background-color: @backcolor!important;
  294. }
  295. }
  296. .active{
  297. color: @color!important;
  298. background-color: @backcolor!important;
  299. }
  300. }
  301. }