|
5 | 5 | */
|
6 | 6 | @media lumo_components_message {
|
7 | 7 | :host {
|
8 |
| - display: flex; |
9 |
| - flex-direction: row; |
10 |
| - outline: none; |
11 | 8 | color: var(--lumo-body-text-color);
|
12 | 9 | font-family: var(--lumo-font-family);
|
13 | 10 | font-size: var(--lumo-font-size-m);
|
14 | 11 | line-height: var(--lumo-line-height-m);
|
15 | 12 | padding: var(--lumo-space-s) var(--lumo-space-m);
|
| 13 | + gap: 0; |
16 | 14 | -moz-osx-font-smoothing: grayscale;
|
17 | 15 | -webkit-font-smoothing: antialiased;
|
18 | 16 | -webkit-text-size-adjust: 100%;
|
19 | 17 | --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
20 | 18 | --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
21 | 19 | }
|
22 | 20 |
|
23 |
| - :host([hidden]) { |
24 |
| - display: none !important; |
25 |
| - } |
26 |
| - |
27 |
| - [part='content'] { |
28 |
| - display: flex; |
29 |
| - flex-direction: column; |
30 |
| - flex-grow: 1; |
| 21 | + :host(:is(:focus-visible, [focus-ring])) { |
| 22 | + outline: none; |
31 | 23 | }
|
32 | 24 |
|
33 | 25 | [part='header'] {
|
34 |
| - align-items: baseline; |
35 |
| - display: flex; |
36 |
| - flex-flow: row wrap; |
37 | 26 | min-height: calc(var(--lumo-font-size-m) * var(--lumo-line-height-m));
|
38 | 27 | }
|
39 | 28 |
|
40 | 29 | [part='name'] {
|
41 |
| - font-weight: 500; |
42 |
| - margin-right: var(--lumo-space-s); |
| 30 | + color: inherit; |
| 31 | + margin-inline-end: var(--lumo-space-s); |
43 | 32 | }
|
44 | 33 |
|
45 | 34 | [part='name']:empty {
|
46 |
| - margin-right: 0; |
| 35 | + margin-inline-end: 0; |
47 | 36 | }
|
48 | 37 |
|
49 | 38 | [part='message'] {
|
50 |
| - white-space: pre-wrap; |
| 39 | + color: inherit; |
51 | 40 | }
|
52 | 41 |
|
53 | 42 | [part='time'] {
|
|
58 | 47 | ::slotted([slot='avatar']) {
|
59 | 48 | --vaadin-avatar-outline-width: 0;
|
60 | 49 | --vaadin-avatar-size: var(--lumo-size-m);
|
61 |
| - flex-shrink: 0; |
62 | 50 | margin-top: calc(var(--lumo-space-s));
|
63 | 51 | margin-inline-end: calc(var(--lumo-space-m));
|
64 | 52 | }
|
65 | 53 |
|
66 |
| - ::slotted(vaadin-markdown) { |
67 |
| - white-space: normal; |
68 |
| - } |
69 |
| - |
70 | 54 | :host([focus-ring]) {
|
71 | 55 | box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
72 | 56 | }
|
73 |
| - |
74 |
| - :host([dir='rtl']) [part='name'] { |
75 |
| - margin-left: var(--lumo-space-s); |
76 |
| - margin-right: 0; |
77 |
| - } |
78 |
| - |
79 |
| - :host([dir='rtl']) [part='name']:empty { |
80 |
| - margin-left: 0; |
81 |
| - } |
82 | 57 | }
|
0 commit comments