Personal portfolio website created with bootstrap.
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.

51 lines
1.0 KiB

  1. // Mixins
  2. // Bootstrap Button Variant
  3. @mixin button-variant($color, $background, $border) {
  4. color: $color;
  5. border-color: $border;
  6. background-color: $background;
  7. &.focus,
  8. &:focus {
  9. color: $color;
  10. border-color: darken($border, 25%);
  11. background-color: darken($background, 10%);
  12. }
  13. &:hover {
  14. color: $color;
  15. border-color: darken($border, 12%);
  16. background-color: darken($background, 10%);
  17. }
  18. &.active,
  19. &:active,
  20. .open > &.dropdown-toggle {
  21. color: $color;
  22. border-color: darken($border, 12%);
  23. background-color: darken($background, 10%);
  24. &.focus,
  25. &:focus,
  26. &:hover {
  27. color: $color;
  28. border-color: darken($border, 25%);
  29. background-color: darken($background, 17%);
  30. }
  31. }
  32. &.active,
  33. &:active,
  34. .open > &.dropdown-toggle {
  35. background-image: none;
  36. }
  37. &.disabled,
  38. &[disabled],
  39. fieldset[disabled] & {
  40. &.focus,
  41. &:focus,
  42. &:hover {
  43. border-color: $border;
  44. background-color: $background;
  45. }
  46. }
  47. .badge {
  48. color: $background;
  49. background-color: $color;
  50. }
  51. }