1 | .str-chat__audio {
|
2 | &__wrapper {
|
3 | height: 80px;
|
4 | overflow: hidden;
|
5 | position: relative;
|
6 | border-radius: var(--border-radius-sm);
|
7 | margin: 0;
|
8 | display: flex;
|
9 | background: var(--grey-whisper);
|
10 | }
|
11 |
|
12 | &__image {
|
13 | height: 80px;
|
14 | width: 80px;
|
15 | position: relative;
|
16 | z-index: 20;
|
17 |
|
18 | &--overlay {
|
19 | width: inherit;
|
20 | height: inherit;
|
21 | position: absolute;
|
22 | top: 0;
|
23 | left: 0;
|
24 | background: var(--overlay-dark);
|
25 | z-index: 30;
|
26 | font-size: 3em;
|
27 | color: var(--white-smoke);
|
28 | display: flex;
|
29 | align-items: center;
|
30 | justify-content: center;
|
31 | user-select: none;
|
32 | }
|
33 |
|
34 | &--button {
|
35 | margin: 0;
|
36 | padding: 0;
|
37 | display: flex;
|
38 | align-items: center;
|
39 | width: 40px;
|
40 | height: 40px;
|
41 |
|
42 | svg {
|
43 | fill: var(--white-smoke);
|
44 | }
|
45 | }
|
46 |
|
47 | img {
|
48 | z-index: 20;
|
49 | position: absolute;
|
50 | top: 0;
|
51 | left: 0;
|
52 | width: inherit;
|
53 | height: inherit;
|
54 | object-fit: cover;
|
55 | }
|
56 | }
|
57 |
|
58 | &__content {
|
59 | display: flex;
|
60 | flex-direction: column;
|
61 | justify-content: space-around;
|
62 | padding: var(--xs-p) var(--sm-p);
|
63 | margin-left: var(--sm-m);
|
64 | width: 100%;
|
65 |
|
66 | &--title {
|
67 | margin: 0;
|
68 | padding: 0;
|
69 | line-height: 1;
|
70 | font-size: var(--md-font);
|
71 | }
|
72 |
|
73 | &--subtitle {
|
74 | margin: 0;
|
75 | padding: 0;
|
76 | line-height: 1;
|
77 | font-size: var(--sm-font);
|
78 | opacity: 0.49;
|
79 | }
|
80 |
|
81 | &--progress {
|
82 | height: 6px;
|
83 | width: 100%;
|
84 | border-radius: var(--border-radius-sm);
|
85 | background: var(--overlay);
|
86 | padding: 1px;
|
87 | margin: calc(var(--xxs-m) / 2) 0;
|
88 |
|
89 | > div {
|
90 | height: 4px;
|
91 | border-radius: var(--border-radius-sm);
|
92 | width: 0;
|
93 | background: var(--primary-color);
|
94 | transition: width 0.5s linear;
|
95 | }
|
96 | }
|
97 | }
|
98 | }
|
99 |
|
100 | .str-chat.dark {
|
101 | .str-chat__audio {
|
102 | &__wrapper {
|
103 | background: var(--black);
|
104 | color: var(--white);
|
105 | }
|
106 |
|
107 | &__content {
|
108 | &--progress {
|
109 | background: var(--grey);
|
110 | }
|
111 | }
|
112 | }
|
113 | }
|