index.scss 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // 公共前缀
  2. @import '@/uni_modules/lime-style/index.scss';
  3. @import './icon';
  4. $use-css-var: true;
  5. $prefix: l !default;
  6. $icon: #{$prefix}-icon;
  7. /* #ifdef APP-NVUE || UNI-APP-X && APP */
  8. $icon-size: create-var(icon-size, 16px);
  9. $icon-color: create-var(icon-color, $text-color-1);
  10. /* #endif */
  11. /* #ifndef APP-NVUE || UNI-APP-X && APP */
  12. $icon-size: create-var(icon-size, 1em);
  13. $icon-color: create-var(icon-color, currentColor);
  14. :host {
  15. display: inline-flex;
  16. align-items: center;
  17. justify-content: center;
  18. }
  19. /* #endif */
  20. .#{$icon} {
  21. /* #ifndef APP-NVUE || UNI-APP-X && APP */
  22. font-family: $prefix;
  23. display: inline-flex;
  24. position: relative;
  25. /* #endif */
  26. &--font {
  27. font-family: $prefix;
  28. text-align: center;
  29. // font-size: $icon-size;
  30. // color: $icon-color;
  31. /* #ifndef APP-NVUE || UNI-APP-X && APP */
  32. font-style: normal;
  33. font-weight: normal;
  34. font-variant: normal;
  35. text-transform: none;
  36. -webkit-font-smoothing: antialiased;
  37. -moz-osx-font-smoothing: grayscale;
  38. // -webkit-background-clip: text;
  39. // background-clip: text;
  40. /* #endif */
  41. }
  42. &--image {
  43. width: $icon-size;
  44. height: $icon-size;
  45. // background: red;
  46. /* #ifndef APP-NVUE || UNI-APP-X && APP */
  47. display: block;
  48. /* #endif */
  49. /* #ifdef WEB */
  50. position: relative;
  51. // ::deep(img) {
  52. // z-index: -1;
  53. // }
  54. /* #endif */
  55. }
  56. }