_variables.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. @use 'sass:math';
  2. @use 'sass:map';
  3. @use '../../styles/settings';
  4. @use '../../styles/tools';
  5. // Defaults
  6. /** if false, disabled buttons will be greyed out */
  7. $button-colored-disabled: true !default;
  8. $button-background: rgb(var(--v-theme-surface)) !default;
  9. $button-color: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity)) !default;
  10. $button-banner-actions-padding: 0 8px !default;
  11. $button-pagination-active-overlay-opacity: var(--v-border-opacity) !default;
  12. $button-pagination-border-radius: settings.$border-radius-root !default;
  13. $button-border-color: settings.$border-color-root !default;
  14. $button-border-radius: settings.$border-radius-root !default;
  15. $button-border-style: settings.$border-style-root !default;
  16. $button-border-thin-width: thin !default;
  17. $button-border-width: 0 !default;
  18. $button-card-actions-margin: .5rem !default;
  19. $button-card-actions-padding: 0 8px !default;
  20. $button-content-transition: transform, opacity .2s settings.$standard-easing !default;
  21. $button-disabled-opacity: 0.26 !default;
  22. $button-disabled-overlay: 0.12 !default;
  23. $button-elevation: ('default': 2, 'hover': 4, 'active': 8) !default;
  24. $button-font-size: tools.map-deep-get(settings.$typography, 'button', 'size') !default;
  25. $button-font-weight: tools.map-deep-get(settings.$typography, 'button', 'weight') !default;
  26. $button-height: 36px !default;
  27. $button-stacked-height: 72px !default;
  28. $button-stacked-icon-margin: 4px !default;
  29. $button-icon-border-radius: map.get(settings.$rounded, 'circle') !default;
  30. $button-icon-font-size: 1rem !default;
  31. $button-line-height: normal !default;
  32. $button-stacked-line-height: 1.25 !default;
  33. $button-plain-opacity: .62 !default;
  34. $button-padding-ratio: 2.25 !default;
  35. $button-stacked-padding-ratio: 4.5 !default;
  36. $button-margin-start-multiplier: -9 !default;
  37. $button-margin-end-multiplier: 4.5 !default;
  38. $button-margin-start: calc(var(--v-btn-height) / #{$button-margin-start-multiplier}) !default;
  39. $button-margin-end: calc(var(--v-btn-height) / #{$button-margin-end-multiplier}) !default;
  40. $button-max-width: 100% !default;
  41. $button-positions: absolute fixed !default;
  42. $button-text-letter-spacing: tools.map-deep-get(settings.$typography, 'button', 'letter-spacing') !default;
  43. $button-text-transform: tools.map-deep-get(settings.$typography, 'button', 'text-transform') !default;
  44. $button-transition-property: box-shadow, transform, opacity, background !default;
  45. $button-vertical-align: middle !default;
  46. $button-width-ratio: math.div(16, 9) !default;
  47. $button-snackbar-action-padding: 0 8px !default;
  48. $button-stacked-width-ratio: 1 !default;
  49. $button-rounded-border-radius: map.get(settings.$rounded, 'xl') !default;
  50. $button-white-space: nowrap !default;
  51. $button-density: ('default': 0, 'comfortable': -2, 'compact': -3) !default;
  52. $button-stacked-density: ('default': 0, 'comfortable': -4, 'compact': -6) !default;
  53. $button-icon-density: ('default': 3, 'comfortable': 0, 'compact': -2) !default;
  54. $button-border: (
  55. $button-border-color,
  56. $button-border-style,
  57. $button-border-width,
  58. $button-border-thin-width
  59. ) !default;
  60. $button-sizes: () !default;
  61. $button-sizes: map.merge(
  62. (
  63. 'height': $button-height,
  64. 'font-size': $button-font-size,
  65. 'width-ratio': $button-width-ratio,
  66. 'padding-ratio': $button-padding-ratio
  67. ),
  68. $button-sizes
  69. );
  70. $button-stacked-sizes: () !default;
  71. $button-stacked-sizes: map.merge(
  72. (
  73. 'height': $button-stacked-height,
  74. 'font-size': $button-font-size,
  75. 'width-ratio': $button-stacked-width-ratio,
  76. 'padding-ratio': $button-stacked-padding-ratio
  77. ),
  78. $button-stacked-sizes
  79. );
  80. $button-variants: (
  81. $button-background,
  82. $button-color,
  83. map.get($button-elevation, 'default'),
  84. $button-plain-opacity,
  85. 'v-btn'
  86. ) !default;