_avatars.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. //
  2. // Avatar
  3. //
  4. // General styles
  5. .avatar {
  6. color: $white;
  7. display: inline-flex;
  8. align-items: center;
  9. justify-content: center;
  10. font-size: $avatar-font-size;
  11. border-radius: $border-radius-lg;
  12. height: $avatar-height;
  13. width: $avatar-width;
  14. transition: all .2s ease-in-out;
  15. img {
  16. width: 100%;
  17. }
  18. &.rounded-circle {
  19. img {
  20. @extend .rounded-circle;
  21. }
  22. }
  23. + .avatar-content {
  24. display: inline-block;
  25. margin-left: $avatar-content-margin;
  26. }
  27. &.avatar-raised {
  28. margin-top: -($avatar-height * 0.5);
  29. }
  30. &.avatar-scale-up:hover {
  31. transform: scale(1.2);
  32. }
  33. }
  34. // Style for the Testimonials Carousel
  35. .active {
  36. .avatar.avatar-scale-up {
  37. transform: scale(1.2);
  38. }
  39. }
  40. // Avatar size variations
  41. .avatar-xxl {
  42. width: $avatar-xxl-width !important;
  43. height: $avatar-xxl-height !important;
  44. &.avatar-raised {
  45. margin-top: -($avatar-xxl-height * 0.5);
  46. }
  47. }
  48. .avatar-xl {
  49. width: $avatar-xl-width !important;
  50. height: $avatar-xl-height !important;
  51. &.avatar-raised {
  52. margin-top: -($avatar-xl-height * 0.5);
  53. }
  54. }
  55. .avatar-lg {
  56. width: $avatar-lg-width !important;
  57. height: $avatar-lg-height !important;
  58. font-size: $font-size-sm;
  59. &.avatar-raised {
  60. margin-top: -($avatar-lg-height * 0.5);
  61. }
  62. }
  63. .avatar-sm {
  64. width: $avatar-sm-width !important;
  65. height: $avatar-sm-height !important;
  66. font-size: $font-size-sm;
  67. &.avatar-raised {
  68. margin-top: -($avatar-sm-height * 0.5);
  69. }
  70. }
  71. .avatar-xs {
  72. width: $avatar-xs-width !important;
  73. height: $avatar-xs-height !important;
  74. font-size: $font-size-xs;
  75. &.avatar-raised {
  76. margin-top: -($avatar-xs-height * 0.5);
  77. }
  78. }
  79. //
  80. // Avatar group
  81. //
  82. // General styles
  83. .avatar-group {
  84. .avatar {
  85. position: relative;
  86. z-index: $avatar-group-zindex;
  87. border: $avatar-group-border solid $card-bg;
  88. &:hover {
  89. z-index: $avatar-group-zindex-hover;
  90. }
  91. }
  92. .avatar + .avatar {
  93. margin-left: $avatar-group-double;
  94. }
  95. }