svg.less 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. .svg-icon {
  2. svg {
  3. width: 2.222vh;
  4. height: 2.222vh;
  5. use {
  6. fill: #fff;
  7. }
  8. }
  9. &.svg-icon-sm {
  10. line-height: 0;
  11. width: 1.481vh;
  12. height: 1.481vh;
  13. svg {
  14. width: 1.481vh;
  15. height: 1.481vh;
  16. }
  17. }
  18. &.svg-icon-md {
  19. line-height: 0;
  20. width: 2.222vh;
  21. height: 2.222vh;
  22. svg {
  23. width: 2.222vh;
  24. height: 2.222vh;
  25. }
  26. }
  27. &.svg-icon-lg {
  28. line-height: 0;
  29. width: 3.333vh;
  30. height: 3.333vh;
  31. svg {
  32. width: 3.333vh;
  33. height: 3.333vh;
  34. }
  35. }
  36. &.svg-icon-llg {
  37. line-height: 0;
  38. width: 4.444vh;
  39. height: 4.444vh;
  40. svg {
  41. width: 4.444vh;
  42. height: 4.444vh;
  43. }
  44. }
  45. &.svg-icon-gray {
  46. svg {
  47. use {
  48. fill: @gray;
  49. }
  50. }
  51. }
  52. &.svg-icon-gray-l {
  53. svg {
  54. use {
  55. fill: @gray-l;
  56. }
  57. }
  58. }
  59. &.svg-icon-green {
  60. svg {
  61. use {
  62. fill: @green;
  63. }
  64. }
  65. }
  66. &.svg-icon-red {
  67. svg {
  68. use {
  69. fill: @red;
  70. }
  71. }
  72. }
  73. &.svg-icon-blue {
  74. svg {
  75. use {
  76. fill: @darkBlue;
  77. }
  78. }
  79. }
  80. &.svg-icon-yellow {
  81. svg {
  82. use {
  83. fill: @yellow;
  84. }
  85. }
  86. }
  87. &.svg-icon-orange {
  88. svg {
  89. use {
  90. fill: @orange;
  91. }
  92. }
  93. }
  94. &.svg-icon-purple {
  95. svg {
  96. use {
  97. fill: @purple;
  98. }
  99. }
  100. }
  101. &.svg-icon-write {
  102. svg {
  103. use {
  104. fill: @write;
  105. }
  106. }
  107. }
  108. &.svg-icon-black {
  109. svg {
  110. use {
  111. fill: @black;
  112. }
  113. }
  114. }
  115. &.svg-icon-pink {
  116. svg {
  117. use {
  118. fill: @pink;
  119. }
  120. }
  121. }
  122. &.svg-icon-red {
  123. svg {
  124. use {
  125. fill: @ligntRed;
  126. }
  127. }
  128. }
  129. }