_avatar.scss 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // Reason: We aren't getting style due to structural changes
  2. // Color palettes
  3. @import '~@resources/scss/base/core/colors/palette-variables.scss';
  4. .b-avatar {
  5. font-size: 0.857rem;
  6. font-weight: 600;
  7. color: $white;
  8. // Avatar Badge Minimal [HTML Like Style]
  9. &.badge-minimal {
  10. .b-avatar-badge {
  11. min-height: 11px;
  12. min-width: 11px;
  13. border: 1px solid #fff;
  14. }
  15. }
  16. // Bordered Avatar
  17. &.avatar-border-2 {
  18. img {
  19. border: 2px solid #fff;
  20. }
  21. }
  22. }
  23. // Disable img scaling on actionable avatar hover
  24. .b-avatar.btn,
  25. .b-avatar[href] {
  26. &:not(:disabled):not(.disabled):hover .b-avatar-img img {
  27. transform: scale(1);
  28. }
  29. }
  30. // reason: add transition on avatar group
  31. .b-avatar-group {
  32. .b-avatar-group-inner {
  33. .b-avatar {
  34. transition: all 0.25s ease 0s;
  35. border-width: 0;
  36. box-shadow: 0 0 0 2px $avatar-group-border, inset 0 0 0 1px rgba($black, 0.07);
  37. cursor: pointer;
  38. &.pull-up:hover {
  39. transition: all 0.25s ease 0s;
  40. transform: translateY(-4px) scale(1.07);
  41. // z-index: 30;
  42. }
  43. }
  44. }
  45. }
  46. // Color palettes
  47. @import '~@resources/scss/base/core/colors/palette-variables.scss';
  48. // Badge Variants
  49. @each $color_name, $color in $colors {
  50. @each $color_type, $color_value in $color {
  51. @if $color_type== 'base' {
  52. .b-avatar {
  53. &.badge-light-#{$color_name} {
  54. background-color: rgba($color_value, 0.12);
  55. color: $color_value;
  56. }
  57. }
  58. }
  59. }
  60. }