avatar.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. // =========================================================================================
  2. // File Name: avatar.scss
  3. // Description: Avatar images.
  4. // ----------------------------------------------------------------------------------------
  5. // Item name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template
  6. // Author: PIXINVENT
  7. // Author URL: http://www.themeforest.net/user/pixinvent
  8. // ==========================================================================================
  9. // Component: Avatar
  10. // ========================================================================
  11. // avatar
  12. .avatar {
  13. white-space: nowrap;
  14. background-color: $avatar-bg;
  15. border-radius: 50%;
  16. position: relative;
  17. cursor: pointer;
  18. color: $white;
  19. display: inline-flex;
  20. font-size: .75rem;
  21. text-align: center;
  22. vertical-align: middle;
  23. margin: 5px;
  24. // avatar content
  25. .avatar-content{
  26. width: $avatar-size;
  27. height: $avatar-size;
  28. display: flex;
  29. justify-content: center;
  30. align-items: center;
  31. .avatar-icon{
  32. font-size: 1.2rem;
  33. }
  34. }
  35. [class*="avatar-status-"]{
  36. border-radius: 50%;
  37. width: $avatar-status-size;
  38. height: $avatar-status-size;
  39. position: absolute;
  40. right: 0;
  41. bottom: 0;
  42. border: 1px solid $white;
  43. &.avatar-status-lg{
  44. width: $avatar-status-size-lg;
  45. height: $avatar-status-size-lg;
  46. border-width: 2px;
  47. }
  48. }
  49. .avatar-status-online{
  50. background-color: $success;
  51. }
  52. .avatar-status-busy{
  53. background-color: $danger;
  54. }
  55. .avatar-status-away{
  56. background-color: $warning;
  57. }
  58. .avatar-status-offline{
  59. background-color: $secondary;
  60. }
  61. // avatar img
  62. img {
  63. // max-width: 100%; // removed as not affecting in avatar images
  64. border-radius: 50%;
  65. }
  66. // Size Modifier
  67. // ========================================================================
  68. &.avatar-xl {
  69. font-size: 1.5rem;
  70. img{
  71. width: $avatar-size-xl;
  72. height: $avatar-size-xl;
  73. }
  74. .avatar-content{
  75. height: $avatar-size-xl;
  76. width: $avatar-size-xl;
  77. .avatar-icon{
  78. font-size: 3rem;
  79. }
  80. }
  81. }
  82. &.avatar-lg {
  83. font-size: 1.2rem;
  84. img{
  85. width: $avatar-size-lg;
  86. height: $avatar-size-lg;
  87. }
  88. .avatar-content{
  89. width: $avatar-size-lg;
  90. height: $avatar-size-lg;
  91. .avatar-icon{
  92. font-size: 2rem;
  93. }
  94. }
  95. }
  96. &.avatar-sm {
  97. .avatar-content{
  98. width: $avatar-size-sm;
  99. height: $avatar-size-sm;
  100. .avatar-icon{
  101. font-size: 1rem;
  102. }
  103. }
  104. img{
  105. width: $avatar-size-sm;
  106. height: $avatar-size-sm;
  107. }
  108. }
  109. }
  110. // For component avatar