_utils.scss 994 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. @import '@uppy/core/src/_variables.scss';
  2. $focus-shadow: 0 0 0 3px rgba($blue, 0.5);
  3. @mixin clearfix() {
  4. &::after {
  5. display: table;
  6. clear: both;
  7. content: '';
  8. }
  9. }
  10. @mixin zoom() {
  11. transform: scale(1.05);
  12. }
  13. @mixin reset-button() {
  14. margin: 0;
  15. padding: 0;
  16. color: inherit;
  17. font-size: inherit;
  18. font-family: inherit;
  19. line-height: 1;
  20. background: none;
  21. border: 0;
  22. -webkit-appearance: none;
  23. }
  24. @mixin highlight-focus() {
  25. @include clear-focus();
  26. &:hover {
  27. color: darken($blue, 10%);
  28. }
  29. &:focus {
  30. background-color: $highlight;
  31. }
  32. [data-uppy-theme="dark"] &:focus {
  33. background-color: $gray-800;
  34. }
  35. }
  36. @mixin blue-border-focus() {
  37. @include clear-focus();
  38. &:focus {
  39. box-shadow: $focus-shadow;
  40. }
  41. }
  42. @mixin blue-border-focus--dark() {
  43. @include clear-focus();
  44. &:focus {
  45. box-shadow: 0 0 0 2px rgba($lightblue, 0.85);
  46. }
  47. }
  48. @mixin clear-focus() {
  49. &:focus {
  50. outline: none;
  51. }
  52. &::-moz-focus-inner {
  53. border: 0;
  54. }
  55. }