jd-repro.css 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /* 京东企业购 最终修复版全局样式 */
  2. :root {
  3. --jd-red: #E1251B;
  4. --jd-bg: #F4F4F4;
  5. --jd-white: #FFFFFF;
  6. --jd-text-3: #333333;
  7. --jd-text-6: #666666;
  8. --jd-text-9: #999999;
  9. --radius-lg: 12px;
  10. --radius-sm: 8px;
  11. }
  12. * {
  13. margin: 0;
  14. padding: 0;
  15. box-sizing: border-box;
  16. }
  17. body {
  18. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  19. background-color: var(--jd-bg);
  20. color: var(--jd-text-3);
  21. font-size: 14px;
  22. -webkit-font-smoothing: antialiased;
  23. }
  24. ul, ol { list-style: none; }
  25. a { text-decoration: none; color: inherit; }
  26. /* 核心容器 */
  27. .w {
  28. margin: 0 auto;
  29. position: relative;
  30. }
  31. /* 媒体查询适配容器宽度 */
  32. @media screen and (min-width: 1600px) {
  33. .w { width: 1600px; }
  34. }
  35. @media screen and (min-width: 1210px) and (max-width: 1599px) {
  36. .w { width: 1190px; }
  37. }
  38. @media screen and (max-width: 1209px) {
  39. .w { width: 990px; }
  40. }
  41. @media screen and (min-width: 1210px) and (max-width: 1599px) {
  42. .w { width: 1190px; }
  43. }
  44. @media screen and (max-width: 1209px) {
  45. .w { width: 990px; }
  46. }
  47. /* Flex 布局工具 */
  48. .flex { display: flex; }
  49. .flex-1 { flex: 1; }
  50. .flex-center { display: flex; align-items: center; justify-content: center; }
  51. .flex-between { display: flex; align-items: center; justify-content: space-between; }
  52. .flex-column { display: flex; flex-direction: column; }
  53. .flex-wrap { flex-wrap: wrap; }
  54. .clearfix::after {
  55. content: "";
  56. display: block;
  57. clear: both;
  58. }
  59. /* 通用卡片样式 */
  60. .jd-card {
  61. background: var(--jd-white);
  62. border-radius: var(--radius-lg);
  63. overflow: hidden;
  64. }
  65. .tag-red {
  66. background: var(--jd-red);
  67. color: #fff;
  68. padding: 0 4px;
  69. border-radius: 2px;
  70. font-size: 12px;
  71. display: inline-block;
  72. line-height: 1.4;
  73. }