_button-styles.scss 669 B

12345678910111213141516171819202122232425262728293031323334
  1. @use '@growi/core/scss/bootstrap/init' as bs;
  2. %btn-basis {
  3. --bs-btn-padding-x: 6px;
  4. --bs-btn-padding-y: 8px;
  5. --bs-btn-line-height: 1em;
  6. --bs-btn-border-width: 0;
  7. --bs-btn-box-shadow: none;
  8. }
  9. %btn-total-counts-basis {
  10. --bs-btn-font-size: 13px;
  11. }
  12. %text-total-counts-basis {
  13. font-size: 13px;
  14. }
  15. @mixin btn-color($color) {
  16. $color-rgb: #{bs.to-rgb($color)};
  17. --bs-btn-color: var(--bs-tertiary-color);
  18. --bs-btn-bg: transparent;
  19. --bs-btn-hover-color: #{$color};
  20. --bs-btn-hover-bg: rgba(#{$color-rgb}, 0.2);
  21. --bs-btn-active-color: #{$color};
  22. --bs-btn-active-bg: transparent;
  23. &:hover {
  24. --bs-btn-active-bg: rgba(#{$color-rgb}, 0.2);
  25. }
  26. }