uni-events-helper-wx
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.7 KiB

3 years ago
  1. // nvue下hover-class无效
  2. $u-button-before-top:50% !default;
  3. $u-button-before-left:50% !default;
  4. $u-button-before-width:100% !default;
  5. $u-button-before-height:100% !default;
  6. $u-button-before-transform:translate(-50%, -50%) !default;
  7. $u-button-before-opacity:0 !default;
  8. $u-button-before-background-color:#000 !default;
  9. $u-button-before-border-color:#000 !default;
  10. $u-button-active-before-opacity:.15 !default;
  11. $u-button-icon-margin-left:4px !default;
  12. $u-button-plain-u-button-info-color:$u-info;
  13. $u-button-plain-u-button-success-color:$u-success;
  14. $u-button-plain-u-button-error-color:$u-error;
  15. $u-button-plain-u-button-warning-color:$u-error;
  16. .u-button {
  17. &:before {
  18. position: absolute;
  19. top:$u-button-before-top;
  20. left:$u-button-before-left;
  21. width:$u-button-before-width;
  22. height:$u-button-before-height;
  23. border: inherit;
  24. border-radius: inherit;
  25. transform:$u-button-before-transform;
  26. opacity:$u-button-before-opacity;
  27. content: " ";
  28. background-color:$u-button-before-background-color;
  29. border-color:$u-button-before-border-color;
  30. }
  31. &--active {
  32. &:before {
  33. opacity: .15
  34. }
  35. }
  36. &__icon+&__text:not(:empty),
  37. &__loading-text {
  38. margin-left:$u-button-icon-margin-left;
  39. }
  40. &--plain {
  41. &.u-button--primary {
  42. color: $u-primary;
  43. }
  44. }
  45. &--plain {
  46. &.u-button--info {
  47. color:$u-button-plain-u-button-info-color;
  48. }
  49. }
  50. &--plain {
  51. &.u-button--success {
  52. color:$u-button-plain-u-button-success-color;
  53. }
  54. }
  55. &--plain {
  56. &.u-button--error {
  57. color:$u-button-plain-u-button-error-color;
  58. }
  59. }
  60. &--plain {
  61. &.u-button--warning {
  62. color:$u-button-plain-u-button-warning-color;
  63. }
  64. }
  65. }