border.wxss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. /* ==================
  2. 边框 line为伪元素
  3. ==================== */
  4. .border-red::after {
  5. border-color: var(--red);
  6. }
  7. .border-orange::after {
  8. border-color: var(--orange);
  9. }
  10. .border-yellow::after {
  11. border-color: var(--yellow);
  12. }
  13. .border-olive::after {
  14. border-color: var(--olive);
  15. }
  16. .border-green::after {
  17. border-color: var(--green);
  18. }
  19. .border-darkgreen::after {
  20. border-color: var(--darkgreen);
  21. }
  22. .border-cyan::after {
  23. border-color: var(--cyan);
  24. }
  25. .border-blue::after {
  26. border-color: var(--blue);
  27. }
  28. .border-purple::after {
  29. border-color: var(--purple);
  30. }
  31. .border-mauve::after {
  32. border-color: var(--mauve);
  33. }
  34. .border-pink::after {
  35. border-color: var(--pink);
  36. }
  37. .border-brown::after {
  38. border-color: var(--brown);
  39. }
  40. .border-grey::after {
  41. border-color: var(--grey);
  42. }
  43. .border-gray::after {
  44. border-color: var(--gray);
  45. }
  46. .border-black::after {
  47. border-color: var(--black);
  48. }
  49. .border-white::after {
  50. border-color: var(--white);
  51. }
  52. /* ==================
  53. 边框
  54. ==================== */
  55. /* -- 实线 -- */
  56. .solid,
  57. .solid-top,
  58. .solid-right,
  59. .solid-bottom,
  60. .solid-left,
  61. .solid-bold,
  62. .solid-bold-top,
  63. .solid-bold-right,
  64. .solid-bold-bottom,
  65. .solid-bold-left {
  66. position: relative;
  67. }
  68. .solid::after,
  69. .solid-top::after,
  70. .solid-right::after,
  71. .solid-bottom::after,
  72. .solid-left::after,
  73. .solid-bold::after,
  74. .solid-bold-top::after,
  75. .solid-bold-right::after,
  76. .solid-bold-bottom::after,
  77. .solid-bold-left::after {
  78. content: " ";
  79. width: 200%;
  80. height: 200%;
  81. position: absolute;
  82. top: 0;
  83. left: 0;
  84. border-radius: inherit;
  85. transform: scale(0.5);
  86. transform-origin: 0 0;
  87. pointer-events: none;
  88. box-sizing: border-box;
  89. }
  90. .solid::after {
  91. border: 4rpx solid rgba(0, 0, 0, 0.1);
  92. }
  93. .solid-top::after {
  94. border-top: 4rpx solid rgba(0, 0, 0, 0.1);
  95. }
  96. .solid-right::after {
  97. border-right: 4rpx solid rgba(0, 0, 0, 0.1);
  98. }
  99. .solid-bottom::after {
  100. border-bottom: 4rpx solid rgba(0, 0, 0, 0.1);
  101. }
  102. .solid-left::after {
  103. border-left: 4rpx solid rgba(0, 0, 0, 0.1);
  104. }
  105. .solid-bold::after {
  106. border: 8rpx solid #eee;
  107. }
  108. .solid-bold-top::after {
  109. border-top: 8rpx solid #eee;
  110. }
  111. .solid-bold-right::after {
  112. border-right: 8rpx solid #eee;
  113. }
  114. .solid-bold-bottom::after {
  115. border-bottom: 8rpx solid #eee;
  116. }
  117. .solid-bold-left::after {
  118. border-left: 8rpx solid #eee;
  119. }