@microsoft/atlas-css 3.36.0 → 3.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/atlas-css",
3
- "version": "3.36.0",
3
+ "version": "3.37.0",
4
4
  "description": "Styles backing the Atlas Design System used by Microsoft's Developer Relations.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -11,6 +11,7 @@
11
11
  @import './link-button.scss';
12
12
  @import './markdown.scss'; // must be ordered after code-block
13
13
  @import './media.scss';
14
+ @import './message.scss';
14
15
  @import './notification.scss';
15
16
  @import './icon.scss';
16
17
  @import './image.scss';
@@ -0,0 +1,61 @@
1
+ $message-font-size-sm: $font-size-9 !default;
2
+ $message-font-size-md: $font-size-7 !default;
3
+
4
+ $message-background-color: $body-background !default;
5
+ $message-gap-size: $layout-1 !default;
6
+ $message-spacer-md: $spacer-3 !default;
7
+ $message-spacer-lg: $spacer-5 !default;
8
+
9
+ $message-sender-width: 85% !default;
10
+ $message-sender-background-color: $primary-background !default;
11
+
12
+ $message-border-radius: $border-radius-lg !default;
13
+ $message-border: $border-width solid $border !default;
14
+
15
+ .message {
16
+ display: grid;
17
+ grid-template:
18
+ '. message-time'
19
+ 'message-persona message-content';
20
+ grid-template-columns: max-content 1fr;
21
+ gap: $message-gap-size;
22
+ font-size: $message-font-size-md;
23
+
24
+ .message-time {
25
+ grid-area: message-time;
26
+ font-size: $message-font-size-sm;
27
+ }
28
+
29
+ .message-persona {
30
+ grid-area: message-persona;
31
+ margin-block-start: $message-spacer-lg;
32
+ }
33
+
34
+ .message-content {
35
+ grid-area: message-content;
36
+ padding: $message-spacer-lg;
37
+ border: $message-border;
38
+ border-radius: $message-border-radius;
39
+ background-color: $message-background-color;
40
+
41
+ .message-content-header {
42
+ display: grid;
43
+ grid-template-columns: 1fr auto;
44
+ margin-block-end: $message-spacer-md;
45
+
46
+ .message-content-options {
47
+ justify-self: flex-end;
48
+ margin-inline-end: $message-spacer-md;
49
+ }
50
+ }
51
+ }
52
+
53
+ &.message-sender {
54
+ justify-self: flex-end;
55
+ width: $message-sender-width;
56
+
57
+ .message-content {
58
+ background-color: $message-sender-background-color;
59
+ }
60
+ }
61
+ }
@@ -9,6 +9,7 @@ $persona-avatar-border-radius: $border-radius-rounded;
9
9
  $persona-details-font-color: $text-subtle !default;
10
10
  $persona-name-font-size: $font-size-7 !default;
11
11
  $persona-name-font-color: $text !default;
12
+ $persona-name-font-weight: $weight-semibold !default;
12
13
 
13
14
  $persona-gap-size: $layout-1 !default;
14
15
 
@@ -17,6 +18,7 @@ $persona-gap-size: $layout-1 !default;
17
18
  position: relative;
18
19
  gap: $persona-gap-size;
19
20
  font-size: $persona-font-size-md;
21
+ line-height: $line-height-normal;
20
22
 
21
23
  .persona-avatar {
22
24
  flex-shrink: 0;
@@ -42,6 +44,7 @@ $persona-gap-size: $layout-1 !default;
42
44
  .persona-name {
43
45
  color: $persona-name-font-color;
44
46
  font-size: 1.3333em;
47
+ font-weight: $persona-name-font-weight;
45
48
  }
46
49
  }
47
50