_mixins.scss 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. @mixin bg-square {
  2. background: {
  3. color: #fff;
  4. image: linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%),
  5. linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%);
  6. size: 40rpx 40rpx;
  7. position: 0 0, 20rpx 20rpx;
  8. }
  9. }
  10. @mixin flex($direction: row) {
  11. /* #ifndef APP-NVUE */
  12. display: flex;
  13. /* #endif */
  14. flex-direction: $direction;
  15. }
  16. @mixin flex-bar {
  17. position: relative;
  18. display: flex;
  19. align-items: center;
  20. justify-content: space-between;
  21. }
  22. @mixin flex-center {
  23. display: flex;
  24. align-items: center;
  25. justify-content: center;
  26. }
  27. @mixin arrow {
  28. content: '';
  29. height: 0;
  30. width: 0;
  31. position: absolute;
  32. }
  33. @mixin arrow-top {
  34. @include arrow;
  35. // border-color: transparent transparent $ui-BG;
  36. border-style: none solid solid;
  37. border-width: 0 20rpx 20rpx;
  38. }
  39. @mixin arrow-right {
  40. @include arrow;
  41. // border-color: transparent $ui-BG transparent;
  42. border-style: solid solid solid none;
  43. border-width: 20rpx 20rpx 20rpx 0;
  44. }
  45. @mixin position-center {
  46. position: absolute !important;
  47. top: 0;
  48. right: 0;
  49. bottom: 0;
  50. left: 0;
  51. margin: auto;
  52. }
  53. @mixin blur {
  54. -webkit-backdrop-filter: blur(20px);
  55. backdrop-filter: blur(20px);
  56. color: var(--ui-TC);
  57. }