color.scss 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  1. @mixin getColor($color: #FFFFFF, $light-color: #FFFFFF, $dark-color: #FFFFFF, $disabled-color: #FFFFFF) {
  2. color: $color !important;
  3. @if $color != #FFFFFF and $color != #000000 {
  4. &--light {
  5. color: $light-color !important;
  6. }
  7. &--dark {
  8. color: $dark-color !important;
  9. }
  10. &--disabled {
  11. color: $disabled-color !important;
  12. }
  13. }
  14. }
  15. @mixin getBorderColor($color: #FFFFFF, $light-color: #FFFFFF, $dark-color: #FFFFFF, $disabled-color: #FFFFFF) {
  16. @if $color != #FFFFFF and $color != #000000 {
  17. &--light {
  18. border-color: $light-color !important;
  19. }
  20. &--dark {
  21. border-color: $dark-color !important;
  22. }
  23. &--disabled {
  24. border-color: $disabled-color !important;
  25. }
  26. }
  27. border-color: $color !important;
  28. }
  29. @mixin getBackgroundColor($color: #FFFFFF, $light-color: #FFFFFF, $dark-color: #FFFFFF, $disabled-color: #FFFFFF) {
  30. background-color: $color !important;
  31. @if $color != #FFFFFF and $color != #000000 {
  32. color: $tn-font-color;
  33. &--light {
  34. background-color: $light-color !important;
  35. }
  36. &--dark {
  37. background-color: $dark-color !important;
  38. }
  39. &--disabled {
  40. background-color: $disabled-color !important;
  41. }
  42. }
  43. @else {
  44. color: $tn-font-color;
  45. }
  46. }
  47. @mixin getShadowColor($type: box, $color: #FFFFFF) {
  48. @if $type == box {
  49. box-shadow: 12rpx 12rpx 16rpx #{$color};
  50. } @else if $type == text {
  51. text-shadow: 6rpx 6rpx 8rpx #{$color};
  52. }
  53. }
  54. @mixin getGradientColor($start-color, $end-color, $font-color: #FFFFFF) {
  55. background-image: repeating-linear-gradient(45deg, $start-color, $end-color);
  56. color: $font-color;
  57. &--reverse {
  58. background-image: repeating-linear-gradient(-45deg, $start-color, $end-color);
  59. color: $font-color;
  60. }
  61. }
  62. @mixin getMainColorGradient($start-color, $start-color-light, $start-color-disabled, $end-color, $end-color-light) {
  63. @include getGradientColor($start-color, $end-color);
  64. &--light {
  65. @include getGradientColor($start-color-light, $end-color-light, $start-color);
  66. }
  67. &--single {
  68. @include getGradientColor($start-color, $start-color-disabled);
  69. }
  70. }
  71. /* 颜色 start */
  72. .tn-color-red {
  73. @include getColor($tn-color-red, $tn-color-red-light, $tn-color-red-dark, $tn-color-red-disabled);
  74. }
  75. .tn-color-purplered {
  76. @include getColor($tn-color-purplered, $tn-color-purplered-light, $tn-color-purplered-dark, $tn-color-purplered-disabled);
  77. }
  78. .tn-color-purple {
  79. @include getColor($tn-color-purple, $tn-color-purple-light, $tn-color-purple-dark, $tn-color-purple-disabled);
  80. }
  81. .tn-color-bluepurple {
  82. @include getColor($tn-color-bluepurple, $tn-color-bluepurple-light, $tn-color-bluepurple-dark, $tn-color-bluepurple-disabled);
  83. }
  84. .tn-color-aquablue {
  85. @include getColor($tn-color-aquablue, $tn-color-aquablue-light, $tn-color-aquablue-dark, $tn-color-aquablue-disabled);
  86. }
  87. .tn-color-blue {
  88. @include getColor($tn-color-blue, $tn-color-blue-light, $tn-color-blue-dark, $tn-color-blue-disabled);
  89. }
  90. .tn-color-indigo {
  91. @include getColor($tn-color-indigo, $tn-color-indigo-light, $tn-color-indigo-dark, $tn-color-indigo-disabled);
  92. }
  93. .tn-color-cyan {
  94. @include getColor($tn-color-cyan, $tn-color-cyan-light, $tn-color-cyan-dark, $tn-color-cyan-disabled);
  95. }
  96. .tn-color-teal {
  97. @include getColor($tn-color-teal, $tn-color-teal-light, $tn-color-teal-dark, $tn-color-teal-disabled);
  98. }
  99. .tn-color-green {
  100. @include getColor($tn-color-green, $tn-color-green-light, $tn-color-green-dark, $tn-color-green-disabled);
  101. }
  102. .tn-color-yellowgreen {
  103. @include getColor($tn-color-yellowgreen, $tn-color-yellowgreen-light, $tn-color-yellowgreen-dark, $tn-color-yellowgreen-disabled);
  104. }
  105. .tn-color-lime {
  106. @include getColor($tn-color-lime, $tn-color-lime-light, $tn-color-lime-dark, $tn-color-lime-disabled);
  107. }
  108. .tn-color-yellow {
  109. @include getColor($tn-color-yellow, $tn-color-yellow-light, $tn-color-yellow-dark, $tn-color-yellow-disabled);
  110. }
  111. .tn-color-orangeyellow {
  112. @include getColor($tn-color-orangeyellow, $tn-color-orangeyellow-light, $tn-color-orangeyellow-dark, $tn-color-orangeyellow-disabled);
  113. }
  114. .tn-color-orange {
  115. @include getColor($tn-color-orange, $tn-color-orange-light, $tn-color-orange-dark, $tn-color-orange-disabled);
  116. }
  117. .tn-color-orangered {
  118. @include getColor($tn-color-orangered, $tn-color-orangered-light, $tn-color-orangered-dark, $tn-color-orangered-disabled);
  119. }
  120. .tn-color-brown {
  121. @include getColor($tn-color-brown, $tn-color-brown-light, $tn-color-brown-dark, $tn-color-brown-disabled);
  122. }
  123. .tn-color-grey {
  124. @include getColor($tn-color-grey, $tn-color-grey-light, $tn-color-grey-dark, $tn-color-grey-disabled);
  125. }
  126. .tn-color-gray {
  127. @include getColor($tn-color-gray, $tn-color-gray-light, $tn-color-gray-dark, $tn-color-gray-disabled);
  128. }
  129. .tn-color-white {
  130. @include getColor();
  131. }
  132. .tn-color-black {
  133. @include getColor(#000000);
  134. }
  135. /* 颜色 end */
  136. /* 边框颜色 start */
  137. .tn-border-red {
  138. @include getBorderColor($tn-color-red, $tn-color-red-light, $tn-color-red-dark, $tn-color-red-disabled);
  139. }
  140. .tn-border-purplered {
  141. @include getBorderColor($tn-color-purplered, $tn-color-purplered-light, $tn-color-purplered-dark, $tn-color-purplered-disabled);
  142. }
  143. .tn-border-purple {
  144. @include getBorderColor($tn-color-purple, $tn-color-purple-light, $tn-color-purple-dark, $tn-color-purple-disabled);
  145. }
  146. .tn-border-bluepurple {
  147. @include getBorderColor($tn-color-bluepurple, $tn-color-bluepurple-light, $tn-color-bluepurple-dark, $tn-color-bluepurple-disabled);
  148. }
  149. .tn-border-aquablue {
  150. @include getBorderColor($tn-color-aquablue, $tn-color-aquablue-light, $tn-color-aquablue-dark, $tn-color-aquablue-disabled);
  151. }
  152. .tn-border-blue {
  153. @include getBorderColor($tn-color-blue, $tn-color-blue-light, $tn-color-blue-dark, $tn-color-blue-disabled);
  154. }
  155. .tn-border-indigo {
  156. @include getBorderColor($tn-color-indigo, $tn-color-indigo-light, $tn-color-indigo-dark, $tn-color-indigo-disabled);
  157. }
  158. .tn-border-cyan {
  159. @include getBorderColor($tn-color-cyan, $tn-color-cyan-light, $tn-color-cyan-dark, $tn-color-cyan-disabled);
  160. }
  161. .tn-border-teal {
  162. @include getBorderColor($tn-color-teal, $tn-color-teal-light, $tn-color-teal-dark, $tn-color-teal-disabled);
  163. }
  164. .tn-border-green {
  165. @include getBorderColor($tn-color-green, $tn-color-green-light, $tn-color-green-dark, $tn-color-green-disabled);
  166. }
  167. .tn-border-yellowgreen {
  168. @include getBorderColor($tn-color-yellowgreen, $tn-color-yellowgreen-light, $tn-color-yellowgreen-dark, $tn-color-yellowgreen-disabled);
  169. }
  170. .tn-border-lime {
  171. @include getBorderColor($tn-color-lime, $tn-color-lime-light, $tn-color-lime-dark, $tn-color-lime-disabled);
  172. }
  173. .tn-border-yellow {
  174. @include getBorderColor($tn-color-yellow, $tn-color-yellow-light, $tn-color-yellow-dark, $tn-color-yellow-disabled);
  175. }
  176. .tn-border-orangeyellow {
  177. @include getBorderColor($tn-color-orangeyellow, $tn-color-orangeyellow-light, $tn-color-orangeyellow-dark, $tn-color-orangeyellow-disabled);
  178. }
  179. .tn-border-orange {
  180. @include getBorderColor($tn-color-orange, $tn-color-orange-light, $tn-color-orange-dark, $tn-color-orange-disabled);
  181. }
  182. .tn-border-orangered {
  183. @include getBorderColor($tn-color-orangered, $tn-color-orangered-light, $tn-color-orangered-dark, $tn-color-orangered-disabled);
  184. }
  185. .tn-border-brown {
  186. @include getBorderColor($tn-color-brown, $tn-color-brown-light, $tn-color-brown-dark, $tn-color-brown-disabled);
  187. }
  188. .tn-border-grey {
  189. @include getBorderColor($tn-color-grey, $tn-color-grey-light, $tn-color-grey-dark, $tn-color-grey-disabled);
  190. }
  191. .tn-border-gray {
  192. @include getBorderColor($tn-color-gray, $tn-color-gray-light, $tn-color-gray-dark, $tn-color-gray-disabled);
  193. }
  194. .tn-border-white {
  195. @include getBorderColor();
  196. }
  197. .tn-border-black {
  198. @include getBorderColor(#000000);
  199. }
  200. /* 边框颜色 end */
  201. /* 背景颜色 start */
  202. .tn-bg-red {
  203. @include getBackgroundColor($tn-color-red, $tn-color-red-light, $tn-color-red-dark, $tn-color-red-disabled);
  204. }
  205. .tn-bg-purplered {
  206. @include getBackgroundColor($tn-color-purplered, $tn-color-purplered-light, $tn-color-purplered-dark, $tn-color-purplered-disabled);
  207. }
  208. .tn-bg-purple {
  209. @include getBackgroundColor($tn-color-purple, $tn-color-purple-light, $tn-color-purple-dark, $tn-color-purple-disabled);
  210. }
  211. .tn-bg-bluepurple {
  212. @include getBackgroundColor($tn-color-bluepurple, $tn-color-bluepurple-light, $tn-color-bluepurple-dark, $tn-color-bluepurple-disabled);
  213. }
  214. .tn-bg-aquablue {
  215. @include getBackgroundColor($tn-color-aquablue, $tn-color-aquablue-light, $tn-color-aquablue-dark, $tn-color-aquablue-disabled);
  216. }
  217. .tn-bg-blue {
  218. @include getBackgroundColor($tn-color-blue, $tn-color-blue-light, $tn-color-blue-dark, $tn-color-blue-disabled);
  219. }
  220. .tn-bg-indigo {
  221. @include getBackgroundColor($tn-color-indigo, $tn-color-indigo-light, $tn-color-indigo-dark, $tn-color-indigo-disabled);
  222. }
  223. .tn-bg-cyan {
  224. @include getBackgroundColor($tn-color-cyan, $tn-color-cyan-light, $tn-color-cyan-dark, $tn-color-cyan-disabled);
  225. }
  226. .tn-bg-teal {
  227. @include getBackgroundColor($tn-color-teal, $tn-color-teal-light, $tn-color-teal-dark, $tn-color-teal-disabled);
  228. }
  229. .tn-bg-green {
  230. @include getBackgroundColor($tn-color-green, $tn-color-green-light, $tn-color-green-dark, $tn-color-green-disabled);
  231. }
  232. .tn-bg-yellowgreen {
  233. @include getBackgroundColor($tn-color-yellowgreen, $tn-color-yellowgreen-light, $tn-color-yellowgreen-dark, $tn-color-yellowgreen-disabled);
  234. }
  235. .tn-bg-lime {
  236. @include getBackgroundColor($tn-color-lime, $tn-color-lime-light, $tn-color-lime-dark, $tn-color-lime-disabled);
  237. }
  238. .tn-bg-yellow {
  239. @include getBackgroundColor($tn-color-yellow, $tn-color-yellow-light, $tn-color-yellow-dark, $tn-color-yellow-disabled);
  240. }
  241. .tn-bg-orangeyellow {
  242. @include getBackgroundColor($tn-color-orangeyellow, $tn-color-orangeyellow-light, $tn-color-orangeyellow-dark, $tn-color-orangeyellow-disabled);
  243. }
  244. .tn-bg-orange {
  245. @include getBackgroundColor($tn-color-orange, $tn-color-orange-light, $tn-color-orange-dark, $tn-color-orange-disabled);
  246. }
  247. .tn-bg-orangered {
  248. @include getBackgroundColor($tn-color-orangered, $tn-color-orangered-light, $tn-color-orangered-dark, $tn-color-orangered-disabled);
  249. }
  250. .tn-bg-brown {
  251. @include getBackgroundColor($tn-color-brown, $tn-color-brown-light, $tn-color-brown-dark, $tn-color-brown-disabled);
  252. }
  253. .tn-bg-grey {
  254. @include getBackgroundColor($tn-color-grey, $tn-color-grey-light, $tn-color-grey-dark, $tn-color-grey-disabled);
  255. }
  256. .tn-bg-gray {
  257. @include getBackgroundColor($tn-color-gray, $tn-color-gray-light, $tn-color-gray-dark, $tn-color-gray-disabled);
  258. }
  259. .tn-bg-white {
  260. @include getBackgroundColor();
  261. }
  262. .tn-bg-black {
  263. @include getBackgroundColor(#000000);
  264. }
  265. /* 背景颜色 end */
  266. /* 阴影颜色 start */
  267. .tn-shadow-red {
  268. @include getShadowColor(box, $tn-color-red-light);
  269. }
  270. .tn-shadow-purplered {
  271. @include getShadowColor(box, $tn-color-purplered-light);
  272. }
  273. .tn-shadow-purple {
  274. @include getShadowColor(box, $tn-color-purple-light);
  275. }
  276. .tn-shadow-bluepurple {
  277. @include getShadowColor(box, $tn-color-bluepurple-light);
  278. }
  279. .tn-shadow-aquablue {
  280. @include getShadowColor(box, $tn-color-aquablue-light);
  281. }
  282. .tn-shadow-blue {
  283. @include getShadowColor(box, $tn-color-blue-light);
  284. }
  285. .tn-shadow-indigo {
  286. @include getShadowColor(box, $tn-color-indigo-light);
  287. }
  288. .tn-shadow-cyan {
  289. @include getShadowColor(box, $tn-color-cyan-light);
  290. }
  291. .tn-shadow-teal {
  292. @include getShadowColor(box, $tn-color-teal-light);
  293. }
  294. .tn-shadow-green {
  295. @include getShadowColor(box, $tn-color-green-light);
  296. }
  297. .tn-shadow-yellowgreen {
  298. @include getShadowColor(box, $tn-color-yellowgreen-light);
  299. }
  300. .tn-shadow-lime {
  301. @include getShadowColor(box, $tn-color-lime-light);
  302. }
  303. .tn-shadow-yellow {
  304. @include getShadowColor(box, $tn-color-yellow-light);
  305. }
  306. .tn-shadow-orangeyellow {
  307. @include getShadowColor(box, $tn-color-orangeyellow-light);
  308. }
  309. .tn-shadow-orange {
  310. @include getShadowColor(box, $tn-color-orange-light);
  311. }
  312. .tn-shadow-orangered {
  313. @include getShadowColor(box, $tn-color-orangered-light);
  314. }
  315. .tn-shadow-brown {
  316. @include getShadowColor(box, $tn-color-brown-light);
  317. }
  318. .tn-shadow-grey {
  319. @include getShadowColor(box, $tn-color-grey-light);
  320. }
  321. .tn-shadow-gray {
  322. @include getShadowColor(box, $tn-color-gray-light);
  323. }
  324. .tn-text-shadow-red {
  325. @include getShadowColor(text, $tn-color-red-light);
  326. }
  327. .tn-text-shadow-purplered {
  328. @include getShadowColor(text, $tn-color-purplered-light);
  329. }
  330. .tn-text-shadow-purple {
  331. @include getShadowColor(text, $tn-color-purple-light);
  332. }
  333. .tn-text-shadow-bluepurple {
  334. @include getShadowColor(text, $tn-color-bluepurple-light);
  335. }
  336. .tn-text-shadow-aquablue {
  337. @include getShadowColor(text, $tn-color-aquablue-light);
  338. }
  339. .tn-text-shadow-blue {
  340. @include getShadowColor(text, $tn-color-blue-light);
  341. }
  342. .tn-text-shadow-indigo {
  343. @include getShadowColor(text, $tn-color-indigo-light);
  344. }
  345. .tn-text-shadow-cyan {
  346. @include getShadowColor(text, $tn-color-cyan-light);
  347. }
  348. .tn-text-shadow-teal {
  349. @include getShadowColor(text, $tn-color-teal-light);
  350. }
  351. .tn-text-shadow-green {
  352. @include getShadowColor(text, $tn-color-green-light);
  353. }
  354. .tn-text-shadow-yellowgreen {
  355. @include getShadowColor(text, $tn-color-yellowgreen-light);
  356. }
  357. .tn-text-shadow-lime {
  358. @include getShadowColor(text, $tn-color-lime-light);
  359. }
  360. .tn-text-shadow-yellow {
  361. @include getShadowColor(text, $tn-color-yellow-light);
  362. }
  363. .tn-text-shadow-orangeyellow {
  364. @include getShadowColor(text, $tn-color-orangeyellow-light);
  365. }
  366. .tn-text-shadow-orange {
  367. @include getShadowColor(text, $tn-color-orange-light);
  368. }
  369. .tn-text-shadow-orangered {
  370. @include getShadowColor(text, $tn-color-orangered-light);
  371. }
  372. .tn-text-shadow-brown {
  373. @include getShadowColor(text, $tn-color-brown-light);
  374. }
  375. .tn-text-shadow-grey {
  376. @include getShadowColor(text, $tn-color-grey-light);
  377. }
  378. .tn-text-shadow-gray {
  379. @include getShadowColor(text, $tn-color-gray-light);
  380. }
  381. /* 阴影颜色 end */
  382. /* 主色渐变色 start */
  383. .tn-main-gradient-red {
  384. @include getMainColorGradient($tn-color-red, $tn-color-red-light, $tn-color-red-disabled, $tn-color-purplered, $tn-color-purplered-light);
  385. }
  386. .tn-main-gradient-purplered {
  387. @include getMainColorGradient($tn-color-purplered, $tn-color-purplered-light, $tn-color-purplered-disabled, $tn-color-purple, $tn-color-purple-light);
  388. }
  389. .tn-main-gradient-purple {
  390. @include getMainColorGradient($tn-color-purple, $tn-color-purple-light, $tn-color-purple-disabled, $tn-color-bluepurple, $tn-color-bluepurple-light);
  391. }
  392. .tn-main-gradient-bluepurple {
  393. @include getMainColorGradient($tn-color-bluepurple, $tn-color-bluepurple-light, $tn-color-bluepurple-disabled, $tn-color-aquablue, $tn-color-aquablue-light);
  394. }
  395. .tn-main-gradient-aquablue {
  396. @include getMainColorGradient($tn-color-aquablue, $tn-color-aquablue-light, $tn-color-aquablue-disabled, $tn-color-blue, $tn-color-blue-light);
  397. }
  398. .tn-main-gradient-blue {
  399. @include getMainColorGradient($tn-color-blue, $tn-color-blue-light, $tn-color-blue-disabled, $tn-color-indigo, $tn-color-indigo-light);
  400. }
  401. .tn-main-gradient-indigo {
  402. @include getMainColorGradient($tn-color-indigo, $tn-color-indigo-light, $tn-color-indigo-disabled, $tn-color-cyan, $tn-color-cyan-light);
  403. }
  404. .tn-main-gradient-cyan {
  405. @include getMainColorGradient($tn-color-cyan, $tn-color-cyan-light, $tn-color-cyan-disabled, $tn-color-teal, $tn-color-teal-light);
  406. }
  407. .tn-main-gradient-teal {
  408. @include getMainColorGradient($tn-color-teal, $tn-color-teal-light, $tn-color-teal-disabled, $tn-color-green, $tn-color-green-light);
  409. }
  410. .tn-main-gradient-green {
  411. @include getMainColorGradient($tn-color-green, $tn-color-green-light, $tn-color-green-disabled, $tn-color-yellowgreen, $tn-color-yellowgreen-light);
  412. }
  413. .tn-main-gradient-yellowgreen {
  414. @include getMainColorGradient($tn-color-yellowgreen, $tn-color-yellowgreen-light, $tn-color-yellowgreen-disabled, $tn-color-lime, $tn-color-lime-light);
  415. }
  416. .tn-main-gradient-lime {
  417. @include getMainColorGradient($tn-color-lime, $tn-color-lime-light, $tn-color-lime-disabled, $tn-color-yellow, $tn-color-yellow-light);
  418. }
  419. .tn-main-gradient-yellow {
  420. @include getMainColorGradient($tn-color-yellow, $tn-color-yellow-light, $tn-color-yellow-disabled, $tn-color-orangeyellow, $tn-color-orangeyellow-light);
  421. }
  422. .tn-main-gradient-orangeyellow {
  423. @include getMainColorGradient($tn-color-orangeyellow, $tn-color-orangeyellow-light, $tn-color-orangeyellow-disabled, $tn-color-orange, $tn-color-orange-light);
  424. }
  425. .tn-main-gradient-orange {
  426. @include getMainColorGradient($tn-color-orange, $tn-color-orange-light, $tn-color-orange-disabled, $tn-color-orangered, $tn-color-orangered-light);
  427. }
  428. .tn-main-gradient-orangered {
  429. @include getMainColorGradient($tn-color-orangered, $tn-color-orangered-light, $tn-color-orangered-disabled, $tn-color-red, $tn-color-red-light);
  430. }
  431. /* 主色渐变色 end */
  432. /* 动态背景颜色 start */
  433. .tn-dynamic-bg-1 {
  434. color: #fff;
  435. background: linear-gradient(45deg, #F15BB5, #9A5CE5, #01BEFF, #00F5D4);
  436. background-size: 500% 500%;
  437. animation: dynamicBg 15s ease infinite;
  438. }
  439. @keyframes dynamicBg {
  440. 0% {
  441. background-position: 0% 50%;
  442. }
  443. 50% {
  444. background-position: 100% 50%;
  445. }
  446. 100% {
  447. background-position: 0% 50%;
  448. }
  449. }
  450. /* 动态背景颜色 end */
  451. /* 酷炫背景颜色图片 start */
  452. .tn-cool-bg-color-1 {
  453. @include getGradientColor($tn-cool-bg-color-1-start, $tn-cool-bg-color-1-end);
  454. }
  455. .tn-cool-bg-color-2 {
  456. @include getGradientColor($tn-cool-bg-color-2-start, $tn-cool-bg-color-2-end);
  457. }
  458. .tn-cool-bg-color-3 {
  459. @include getGradientColor($tn-cool-bg-color-3-start, $tn-cool-bg-color-3-end);
  460. }
  461. .tn-cool-bg-color-4 {
  462. @include getGradientColor($tn-cool-bg-color-4-start, $tn-cool-bg-color-4-end);
  463. }
  464. .tn-cool-bg-color-5 {
  465. @include getGradientColor($tn-cool-bg-color-5-start, $tn-cool-bg-color-5-end);
  466. }
  467. .tn-cool-bg-color-6 {
  468. @include getGradientColor($tn-cool-bg-color-6-start, $tn-cool-bg-color-6-end);
  469. }
  470. .tn-cool-bg-color-7 {
  471. @include getGradientColor($tn-cool-bg-color-7-start, $tn-cool-bg-color-7-end);
  472. }
  473. .tn-cool-bg-color-8 {
  474. @include getGradientColor($tn-cool-bg-color-8-start, $tn-cool-bg-color-8-end);
  475. }
  476. .tn-cool-bg-color-9 {
  477. @include getGradientColor($tn-cool-bg-color-9-start, $tn-cool-bg-color-9-end);
  478. }
  479. .tn-cool-bg-color-10 {
  480. @include getGradientColor($tn-cool-bg-color-10-start, $tn-cool-bg-color-10-end);
  481. }
  482. .tn-cool-bg-color-11 {
  483. @include getGradientColor($tn-cool-bg-color-11-start, $tn-cool-bg-color-11-end);
  484. }
  485. .tn-cool-bg-color-12 {
  486. @include getGradientColor($tn-cool-bg-color-12-start, $tn-cool-bg-color-12-end);
  487. }
  488. .tn-cool-bg-color-13 {
  489. @include getGradientColor($tn-cool-bg-color-13-start, $tn-cool-bg-color-13-end);
  490. }
  491. .tn-cool-bg-color-14 {
  492. @include getGradientColor($tn-cool-bg-color-14-start, $tn-cool-bg-color-14-end);
  493. }
  494. .tn-cool-bg-color-15 {
  495. @include getGradientColor($tn-cool-bg-color-15-start, $tn-cool-bg-color-15-end);
  496. }
  497. .tn-cool-bg-color-16 {
  498. @include getGradientColor($tn-cool-bg-color-16-start, $tn-cool-bg-color-16-end);
  499. }
  500. .tn-cool-bg-image::after {
  501. content: " ";
  502. position: absolute;
  503. z-index: -1;
  504. width: 100%;
  505. height: 100%;
  506. left: 0;
  507. bottom: 0;
  508. border-radius: 10rpx;
  509. opacity: 1;
  510. transform: scale(1, 1);
  511. background-size: 100% 100%;
  512. background-image: inherit;
  513. }
  514. .tn-cool-bg-image:nth-of-type(1n)::after {
  515. background-image: url(https://resource.tuniaokj.com/images/cool_bg_image/1.png);
  516. }
  517. .tn-cool-bg-image:nth-of-type(2n)::after {
  518. background-image: url(https://resource.tuniaokj.com/images/cool_bg_image/2.png);
  519. }
  520. .tn-cool-bg-image:nth-of-type(3n)::after {
  521. background-image: url(https://resource.tuniaokj.com/images/cool_bg_image/3.png);
  522. }
  523. .tn-cool-bg-image:nth-of-type(4n)::after {
  524. background-image: url(https://resource.tuniaokj.com/images/cool_bg_image/4.png);
  525. }
  526. .tn-cool-bg-image:nth-of-type(5n)::after {
  527. background-image: url(https://resource.tuniaokj.com/images/cool_bg_image/5.png);
  528. }
  529. .tn-cool-bg-image:nth-of-type(6n)::after {
  530. background-image: url(https://resource.tuniaokj.com/images/cool_bg_image/6.png);
  531. }
  532. /* 酷炫背景颜色图片 end */