|
1 |
| -// BAvatar custom styles |
2 |
| - |
3 |
| -.b-avatar { |
4 |
| - display: inline-flex; |
5 |
| - align-items: center; |
6 |
| - justify-content: center; |
7 |
| - vertical-align: middle; |
8 |
| - font-size: inherit; |
9 |
| - font-weight: 400; |
10 |
| - line-height: 1; |
11 |
| - max-width: 100%; |
12 |
| - max-height: auto; |
13 |
| - text-align: center; |
14 |
| - overflow: visible; |
15 |
| - position: relative; |
16 |
| - transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, |
17 |
| - box-shadow 0.15s ease-in-out; |
18 |
| - |
19 |
| - &:focus { |
20 |
| - outline: 0; |
21 |
| - } |
22 |
| - |
23 |
| - &.btn, |
24 |
| - &[href] { |
25 |
| - padding: 0; |
26 |
| - border: 0; |
27 |
| - |
28 |
| - .b-avatar-img img { |
29 |
| - transition: transform 0.15s ease-in-out; |
30 |
| - } |
31 |
| - |
32 |
| - &:not(:disabled):not(.disabled) { |
33 |
| - cursor: if($enable-pointer-cursor-for-buttons, pointer, null); |
34 |
| - |
35 |
| - &:hover { |
36 |
| - .b-avatar-img img { |
37 |
| - transform: scale(1.15); |
38 |
| - } |
39 |
| - } |
40 |
| - } |
41 |
| - } |
42 |
| - |
43 |
| - &.disabled, |
44 |
| - &:disabled, |
45 |
| - &[disabled] { |
46 |
| - opacity: $btn-disabled-opacity; |
47 |
| - pointer-events: none; |
48 |
| - } |
49 |
| - |
50 |
| - .b-avatar-custom, |
51 |
| - .b-avatar-text, |
52 |
| - .b-avatar-img { |
53 |
| - border-radius: inherit; |
54 |
| - width: 100%; |
55 |
| - height: 100%; |
56 |
| - overflow: hidden; |
57 |
| - display: flex; |
58 |
| - justify-content: center; |
59 |
| - align-items: center; |
60 |
| - } |
61 |
| - |
62 |
| - .b-avatar-text { |
63 |
| - text-transform: uppercase; |
64 |
| - white-space: nowrap; |
65 |
| - } |
66 |
| - |
67 |
| - &[href] { |
68 |
| - text-decoration: none; |
69 |
| - } |
70 |
| - |
71 |
| - > .b-icon { |
72 |
| - width: 60%; |
73 |
| - height: auto; |
74 |
| - max-width: 100%; |
75 |
| - } |
76 |
| - |
77 |
| - .b-avatar-img img { |
78 |
| - width: 100%; |
79 |
| - height: 100%; |
80 |
| - max-height: auto; |
81 |
| - border-radius: inherit; |
82 |
| - } |
83 |
| - |
84 |
| - .b-avatar-badge { |
85 |
| - // Positioning will be handled via inline styles |
86 |
| - position: absolute; |
87 |
| - min-height: 1.5em; |
88 |
| - min-width: 1.5em; |
89 |
| - padding: 0.25em; |
90 |
| - line-height: 1; |
91 |
| - border-radius: 10em; |
92 |
| - font-size: 70%; |
93 |
| - font-weight: 700; |
94 |
| - z-index: 5; |
95 |
| - } |
96 |
| -} |
97 |
| - |
98 |
| -.b-avatar-group { |
99 |
| - .b-avatar-group-inner { |
100 |
| - display: flex; |
101 |
| - flex-wrap: wrap; |
102 |
| - } |
103 |
| - |
104 |
| - .b-avatar { |
105 |
| - border: $border-width solid $border-color; |
106 |
| - } |
107 |
| - |
108 |
| - a, |
109 |
| - .btn { |
110 |
| - &.b-avatar:hover:not(.disabled):not(disabled) { |
111 |
| - z-index: 3; |
112 |
| - } |
113 |
| - } |
114 |
| -} |
| 1 | +// BAvatar custom styles |
| 2 | + |
| 3 | +.b-avatar { |
| 4 | + display: inline-flex; |
| 5 | + align-items: center; |
| 6 | + justify-content: center; |
| 7 | + vertical-align: middle; |
| 8 | + font-size: inherit; |
| 9 | + font-weight: 400; |
| 10 | + line-height: 1; |
| 11 | + max-width: 100%; |
| 12 | + max-height: auto; |
| 13 | + text-align: center; |
| 14 | + overflow: visible; |
| 15 | + position: relative; |
| 16 | + transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, |
| 17 | + box-shadow 0.15s ease-in-out; |
| 18 | + |
| 19 | + &:focus { |
| 20 | + outline: 0; |
| 21 | + } |
| 22 | + |
| 23 | + &.btn, |
| 24 | + &[href] { |
| 25 | + padding: 0; |
| 26 | + border: 0; |
| 27 | + |
| 28 | + .b-avatar-img img { |
| 29 | + transition: transform 0.15s ease-in-out; |
| 30 | + } |
| 31 | + |
| 32 | + &:not(:disabled):not(.disabled) { |
| 33 | + cursor: if($enable-pointer-cursor-for-buttons, pointer, null); |
| 34 | + |
| 35 | + &:hover { |
| 36 | + .b-avatar-img img { |
| 37 | + transform: scale(1.15); |
| 38 | + } |
| 39 | + } |
| 40 | + } |
| 41 | + } |
| 42 | + |
| 43 | + &.disabled, |
| 44 | + &:disabled, |
| 45 | + &[disabled] { |
| 46 | + opacity: $btn-disabled-opacity; |
| 47 | + pointer-events: none; |
| 48 | + } |
| 49 | + |
| 50 | + .b-avatar-custom, |
| 51 | + .b-avatar-text, |
| 52 | + .b-avatar-img { |
| 53 | + border-radius: inherit; |
| 54 | + width: 100%; |
| 55 | + height: 100%; |
| 56 | + overflow: hidden; |
| 57 | + display: flex; |
| 58 | + justify-content: center; |
| 59 | + align-items: center; |
| 60 | + } |
| 61 | + |
| 62 | + .b-avatar-text { |
| 63 | + text-transform: uppercase; |
| 64 | + white-space: nowrap; |
| 65 | + } |
| 66 | + |
| 67 | + &[href] { |
| 68 | + text-decoration: none; |
| 69 | + } |
| 70 | + |
| 71 | + > .b-icon { |
| 72 | + width: 60%; |
| 73 | + height: auto; |
| 74 | + max-width: 100%; |
| 75 | + } |
| 76 | + |
| 77 | + .b-avatar-img img { |
| 78 | + width: 100%; |
| 79 | + height: 100%; |
| 80 | + max-height: auto; |
| 81 | + border-radius: inherit; |
| 82 | + } |
| 83 | + |
| 84 | + .b-avatar-badge { |
| 85 | + // Positioning will be handled via inline styles |
| 86 | + position: absolute; |
| 87 | + min-height: 1.5em; |
| 88 | + min-width: 1.5em; |
| 89 | + padding: 0.25em; |
| 90 | + line-height: 1; |
| 91 | + border-radius: 10em; |
| 92 | + font-size: 70%; |
| 93 | + font-weight: 700; |
| 94 | + z-index: 5; |
| 95 | + } |
| 96 | +} |
| 97 | + |
| 98 | +.b-avatar-group { |
| 99 | + .b-avatar-group-inner { |
| 100 | + display: flex; |
| 101 | + flex-wrap: wrap; |
| 102 | + } |
| 103 | + |
| 104 | + .b-avatar { |
| 105 | + border: $border-width solid $border-color; |
| 106 | + } |
| 107 | + |
| 108 | + a, |
| 109 | + .btn { |
| 110 | + &.b-avatar:hover:not(.disabled):not(disabled) { |
| 111 | + z-index: 3; |
| 112 | + } |
| 113 | + } |
| 114 | +} |
0 commit comments