@microsoft/atlas-css 3.43.0 → 3.44.1
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/README.md +42 -42
- package/dist/class-names.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +91 -91
- package/src/atomics/README.md +56 -56
- package/src/atomics/aspect-ratio.scss +13 -13
- package/src/atomics/background.scss +11 -11
- package/src/atomics/border.scss +113 -113
- package/src/atomics/colors.scss +204 -204
- package/src/atomics/display.scss +33 -33
- package/src/atomics/flex.scss +74 -71
- package/src/atomics/gap.scss +60 -60
- package/src/atomics/image.scss +15 -15
- package/src/atomics/index.scss +18 -18
- package/src/atomics/line-clamp.scss +15 -15
- package/src/atomics/list.scss +8 -3
- package/src/atomics/overflow.scss +9 -9
- package/src/atomics/position.scss +19 -19
- package/src/atomics/shadow.scss +19 -19
- package/src/atomics/spacing-auto.scss +52 -52
- package/src/atomics/spacing.scss +98 -98
- package/src/atomics/typography.scss +203 -203
- package/src/atomics/visually-hidden.scss +4 -4
- package/src/atomics/width.scss +44 -44
- package/src/components/README.md +69 -69
- package/src/components/banner.scss +69 -69
- package/src/components/breadcrumbs.scss +37 -37
- package/src/components/button-reset.scss +8 -8
- package/src/components/button.scss +241 -241
- package/src/components/buttons.scss +93 -93
- package/src/components/card.scss +252 -252
- package/src/components/form/checkbox.scss +141 -141
- package/src/components/form/form.scss +67 -67
- package/src/components/form/help.scss +18 -18
- package/src/components/form/index.scss +8 -8
- package/src/components/form/input.scss +143 -143
- package/src/components/form/label.scss +14 -14
- package/src/components/form/radio.scss +121 -121
- package/src/components/form/select.scss +116 -116
- package/src/components/form/textarea.scss +82 -82
- package/src/components/gradient-card.scss +14 -14
- package/src/components/gradient.scss +85 -85
- package/src/components/hero.scss +197 -197
- package/src/components/icon.scss +20 -20
- package/src/components/image.scss +44 -44
- package/src/components/index.scss +27 -27
- package/src/components/layout.scss +189 -189
- package/src/components/link-button.scss +34 -34
- package/src/components/markdown.scss +158 -158
- package/src/components/media.scss +22 -22
- package/src/components/message.scss +74 -74
- package/src/components/notification.scss +101 -101
- package/src/components/pagination.scss +183 -183
- package/src/components/persona.scss +60 -60
- package/src/components/popover.scss +42 -42
- package/src/components/scroll.scss +26 -26
- package/src/components/segmented-control.scss +128 -128
- package/src/components/site-header.scss +255 -255
- package/src/components/stretched-link.scss +8 -8
- package/src/components/table.scss +114 -114
- package/src/components/toggle.scss +86 -86
- package/src/core/animations.scss +55 -55
- package/src/core/bare-elements.scss +38 -38
- package/src/core/focus.scss +45 -45
- package/src/core/font-stack.scss +28 -28
- package/src/core/index.scss +7 -7
- package/src/core/minireset.scss +79 -79
- package/src/core/normalize.scss +353 -353
- package/src/core/themes.scss +91 -91
- package/src/index.scss +5 -5
- package/src/mixins/center.scss +11 -11
- package/src/mixins/code-block.scss +43 -43
- package/src/mixins/colors.scss +6 -6
- package/src/mixins/control.scss +43 -43
- package/src/mixins/dismiss.scss +22 -22
- package/src/mixins/focus.scss +23 -23
- package/src/mixins/font-size.scss +35 -35
- package/src/mixins/force-colors.scss +5 -5
- package/src/mixins/gradient.scss +11 -11
- package/src/mixins/index.scss +17 -17
- package/src/mixins/layout-gap.scss +7 -7
- package/src/mixins/line-clamp.scss +15 -15
- package/src/mixins/loader.scss +16 -16
- package/src/mixins/media-queries.scss +61 -61
- package/src/mixins/overlay.scss +12 -12
- package/src/mixins/transparency.scss +15 -15
- package/src/mixins/unselectable.scss +13 -13
- package/src/mixins/visually-hidden.scss +12 -12
- package/src/tokens/animation.scss +8 -8
- package/src/tokens/border.scss +12 -12
- package/src/tokens/breakpoints.scss +11 -11
- package/src/tokens/colors.scss +239 -239
- package/src/tokens/direction.scss +25 -25
- package/src/tokens/display.scss +5 -5
- package/src/tokens/focus.scss +9 -9
- package/src/tokens/font-stack.scss +10 -10
- package/src/tokens/index.scss +17 -17
- package/src/tokens/layout.scss +17 -17
- package/src/tokens/palette.scss +200 -200
- package/src/tokens/position.scss +5 -5
- package/src/tokens/schemes.scss +14 -14
- package/src/tokens/shadow.scss +11 -11
- package/src/tokens/spacing.scss +25 -25
- package/src/tokens/themes.scss +318 -318
- package/src/tokens/typography.scss +33 -33
- package/src/tokens/z-index.scss +20 -20
- package/tokens/README.md +34 -34
- package/tokens/index.js +246 -246
- package/tokens/types.d.ts +35 -35
|
@@ -1,158 +1,158 @@
|
|
|
1
|
-
/* stylelint-disable selector-max-compound-selectors */
|
|
2
|
-
|
|
3
|
-
$markdown-paragraph-size: 1rem !default;
|
|
4
|
-
$include-bare-code-styles: true !default;
|
|
5
|
-
$list-top-spacing: 1rem !default;
|
|
6
|
-
|
|
7
|
-
@if $include-bare-code-styles == true {
|
|
8
|
-
/*
|
|
9
|
-
* Within projects that desire bare-code styling, you may set the above variable to true and <pre><code>
|
|
10
|
-
* Elements within .markdown will be styled.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
.markdown {
|
|
14
|
-
@include code-block;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.markdown {
|
|
19
|
-
// @include responsive-font-size($markdown-paragraph-size, 0.875rem); // experiment only
|
|
20
|
-
font-size: $markdown-paragraph-size;
|
|
21
|
-
line-height: 1.6;
|
|
22
|
-
|
|
23
|
-
// Inline code
|
|
24
|
-
|
|
25
|
-
:not(a):not(pre) > code {
|
|
26
|
-
padding: 0.1em 0.2em;
|
|
27
|
-
border-radius: 3px;
|
|
28
|
-
background-color: $inline-code;
|
|
29
|
-
word-wrap: break-word;
|
|
30
|
-
font-smooth: auto;
|
|
31
|
-
font-size: 0.85em;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
img,
|
|
35
|
-
video {
|
|
36
|
-
max-width: 100%;
|
|
37
|
-
height: auto;
|
|
38
|
-
border: 0;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
svg:not(:root) {
|
|
42
|
-
overflow: hidden;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
li {
|
|
46
|
-
margin-block-start: 0.5em;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
ul,
|
|
50
|
-
ol {
|
|
51
|
-
margin-inline-start: 2.375rem;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
ul {
|
|
55
|
-
list-style-type: disc;
|
|
56
|
-
|
|
57
|
-
ul {
|
|
58
|
-
list-style-type: circle;
|
|
59
|
-
margin: 0;
|
|
60
|
-
margin-inline-start: 1.25rem;
|
|
61
|
-
|
|
62
|
-
ul {
|
|
63
|
-
list-style-type: square;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&:not(:first-child) {
|
|
68
|
-
margin: 1rem 0;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
ol {
|
|
73
|
-
list-style-type: decimal;
|
|
74
|
-
|
|
75
|
-
ol {
|
|
76
|
-
list-style-type: lower-alpha;
|
|
77
|
-
margin: 0;
|
|
78
|
-
margin-inline-start: 1.25rem;
|
|
79
|
-
|
|
80
|
-
ol {
|
|
81
|
-
list-style-type: lower-roman;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&:not(:first-child) {
|
|
86
|
-
margin: 1rem 0;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
h1 {
|
|
91
|
-
@include responsive-font-size($font-size-1);
|
|
92
|
-
|
|
93
|
-
margin-block-start: none;
|
|
94
|
-
margin-block-end: 0.75rem;
|
|
95
|
-
word-wrap: break-word; // browser support fallback, because FF and IE
|
|
96
|
-
word-break: break-word;
|
|
97
|
-
|
|
98
|
-
&:first-of-type {
|
|
99
|
-
margin-block-start: -0.625rem;
|
|
100
|
-
margin-block-end: none;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
h2 {
|
|
105
|
-
@include responsive-font-size($font-size-2);
|
|
106
|
-
|
|
107
|
-
margin-block-start: 2rem;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
h3 {
|
|
111
|
-
@include responsive-font-size($font-size-3);
|
|
112
|
-
|
|
113
|
-
margin-block-start: 1.875rem;
|
|
114
|
-
margin-block-end: 1.125rem;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
h4 {
|
|
118
|
-
@include responsive-font-size($font-size-4);
|
|
119
|
-
|
|
120
|
-
margin-block-start: 2.25rem;
|
|
121
|
-
margin-block-end: 0.375rem;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
h5 {
|
|
125
|
-
@include responsive-font-size($font-size-5, false, 1.1rem);
|
|
126
|
-
|
|
127
|
-
margin-block-start: 2.25rem;
|
|
128
|
-
margin-block-end: 0.375rem;
|
|
129
|
-
letter-spacing: 1px;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
h6 {
|
|
133
|
-
@include responsive-font-size($font-size-6, false, 1.05rem);
|
|
134
|
-
|
|
135
|
-
margin-block-start: 2.25rem;
|
|
136
|
-
margin-block-end: 0.375rem;
|
|
137
|
-
letter-spacing: 1px;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
p {
|
|
141
|
-
margin-block-start: $markdown-paragraph-size;
|
|
142
|
-
margin-block-end: none;
|
|
143
|
-
word-wrap: break-word;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
blockquote {
|
|
147
|
-
margin: 1.2em 0 2em;
|
|
148
|
-
padding: 0 0.8em;
|
|
149
|
-
border-width: 0 0 0 3px;
|
|
150
|
-
border-style: solid;
|
|
151
|
-
border-color: $border;
|
|
152
|
-
|
|
153
|
-
footer {
|
|
154
|
-
color: $text-subtle;
|
|
155
|
-
font-size: $font-size-8;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
1
|
+
/* stylelint-disable selector-max-compound-selectors */
|
|
2
|
+
|
|
3
|
+
$markdown-paragraph-size: 1rem !default;
|
|
4
|
+
$include-bare-code-styles: true !default;
|
|
5
|
+
$list-top-spacing: 1rem !default;
|
|
6
|
+
|
|
7
|
+
@if $include-bare-code-styles == true {
|
|
8
|
+
/*
|
|
9
|
+
* Within projects that desire bare-code styling, you may set the above variable to true and <pre><code>
|
|
10
|
+
* Elements within .markdown will be styled.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
.markdown {
|
|
14
|
+
@include code-block;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.markdown {
|
|
19
|
+
// @include responsive-font-size($markdown-paragraph-size, 0.875rem); // experiment only
|
|
20
|
+
font-size: $markdown-paragraph-size;
|
|
21
|
+
line-height: 1.6;
|
|
22
|
+
|
|
23
|
+
// Inline code
|
|
24
|
+
|
|
25
|
+
:not(a):not(pre) > code {
|
|
26
|
+
padding: 0.1em 0.2em;
|
|
27
|
+
border-radius: 3px;
|
|
28
|
+
background-color: $inline-code;
|
|
29
|
+
word-wrap: break-word;
|
|
30
|
+
font-smooth: auto;
|
|
31
|
+
font-size: 0.85em;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
img,
|
|
35
|
+
video {
|
|
36
|
+
max-width: 100%;
|
|
37
|
+
height: auto;
|
|
38
|
+
border: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
svg:not(:root) {
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
li {
|
|
46
|
+
margin-block-start: 0.5em;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
ul,
|
|
50
|
+
ol {
|
|
51
|
+
margin-inline-start: 2.375rem;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
ul {
|
|
55
|
+
list-style-type: disc;
|
|
56
|
+
|
|
57
|
+
ul {
|
|
58
|
+
list-style-type: circle;
|
|
59
|
+
margin: 0;
|
|
60
|
+
margin-inline-start: 1.25rem;
|
|
61
|
+
|
|
62
|
+
ul {
|
|
63
|
+
list-style-type: square;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:not(:first-child) {
|
|
68
|
+
margin: 1rem 0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
ol {
|
|
73
|
+
list-style-type: decimal;
|
|
74
|
+
|
|
75
|
+
ol {
|
|
76
|
+
list-style-type: lower-alpha;
|
|
77
|
+
margin: 0;
|
|
78
|
+
margin-inline-start: 1.25rem;
|
|
79
|
+
|
|
80
|
+
ol {
|
|
81
|
+
list-style-type: lower-roman;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&:not(:first-child) {
|
|
86
|
+
margin: 1rem 0;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
h1 {
|
|
91
|
+
@include responsive-font-size($font-size-1);
|
|
92
|
+
|
|
93
|
+
margin-block-start: none;
|
|
94
|
+
margin-block-end: 0.75rem;
|
|
95
|
+
word-wrap: break-word; // browser support fallback, because FF and IE
|
|
96
|
+
word-break: break-word;
|
|
97
|
+
|
|
98
|
+
&:first-of-type {
|
|
99
|
+
margin-block-start: -0.625rem;
|
|
100
|
+
margin-block-end: none;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
h2 {
|
|
105
|
+
@include responsive-font-size($font-size-2);
|
|
106
|
+
|
|
107
|
+
margin-block-start: 2rem;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
h3 {
|
|
111
|
+
@include responsive-font-size($font-size-3);
|
|
112
|
+
|
|
113
|
+
margin-block-start: 1.875rem;
|
|
114
|
+
margin-block-end: 1.125rem;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
h4 {
|
|
118
|
+
@include responsive-font-size($font-size-4);
|
|
119
|
+
|
|
120
|
+
margin-block-start: 2.25rem;
|
|
121
|
+
margin-block-end: 0.375rem;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
h5 {
|
|
125
|
+
@include responsive-font-size($font-size-5, false, 1.1rem);
|
|
126
|
+
|
|
127
|
+
margin-block-start: 2.25rem;
|
|
128
|
+
margin-block-end: 0.375rem;
|
|
129
|
+
letter-spacing: 1px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
h6 {
|
|
133
|
+
@include responsive-font-size($font-size-6, false, 1.05rem);
|
|
134
|
+
|
|
135
|
+
margin-block-start: 2.25rem;
|
|
136
|
+
margin-block-end: 0.375rem;
|
|
137
|
+
letter-spacing: 1px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
p {
|
|
141
|
+
margin-block-start: $markdown-paragraph-size;
|
|
142
|
+
margin-block-end: none;
|
|
143
|
+
word-wrap: break-word;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
blockquote {
|
|
147
|
+
margin: 1.2em 0 2em;
|
|
148
|
+
padding: 0 0.8em;
|
|
149
|
+
border-width: 0 0 0 3px;
|
|
150
|
+
border-style: solid;
|
|
151
|
+
border-color: $border;
|
|
152
|
+
|
|
153
|
+
footer {
|
|
154
|
+
color: $text-subtle;
|
|
155
|
+
font-size: $font-size-8;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
.media {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: flex-start;
|
|
4
|
-
|
|
5
|
-
+ .media,
|
|
6
|
-
.media {
|
|
7
|
-
border-block-start: 1px solid $border;
|
|
8
|
-
margin-block-start: 1rem;
|
|
9
|
-
padding-block-start: 1rem;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.media-left {
|
|
14
|
-
flex: 0 0 auto;
|
|
15
|
-
margin-inline-end: 1rem;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.media-content {
|
|
19
|
-
flex: 1 1 auto;
|
|
20
|
-
width: 100%;
|
|
21
|
-
word-break: break-word;
|
|
22
|
-
}
|
|
1
|
+
.media {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: flex-start;
|
|
4
|
+
|
|
5
|
+
+ .media,
|
|
6
|
+
.media {
|
|
7
|
+
border-block-start: 1px solid $border;
|
|
8
|
+
margin-block-start: 1rem;
|
|
9
|
+
padding-block-start: 1rem;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.media-left {
|
|
14
|
+
flex: 0 0 auto;
|
|
15
|
+
margin-inline-end: 1rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.media-content {
|
|
19
|
+
flex: 1 1 auto;
|
|
20
|
+
width: 100%;
|
|
21
|
+
word-break: break-word;
|
|
22
|
+
}
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
$message-font-size-xs: $font-size-9 !default;
|
|
2
|
-
$message-font-size-sm: $font-size-8 !default;
|
|
3
|
-
$message-font-size-md: $font-size-7 !default;
|
|
4
|
-
|
|
5
|
-
$message-background-color: $body-background !default;
|
|
6
|
-
$message-gap-size: $layout-1 !default;
|
|
7
|
-
$message-spacer-md: $spacer-3 !default;
|
|
8
|
-
$message-spacer-lg: $spacer-5 !default;
|
|
9
|
-
|
|
10
|
-
$message-sender-width: 85% !default;
|
|
11
|
-
$message-sender-background-color: $primary-background !default;
|
|
12
|
-
|
|
13
|
-
$message-border-radius: $border-radius-lg !default;
|
|
14
|
-
$message-border: $border-width solid $border !default;
|
|
15
|
-
|
|
16
|
-
$message-content-padding: $spacer-5 !default;
|
|
17
|
-
$message-content-padding-sm: 0.875rem !default;
|
|
18
|
-
|
|
19
|
-
.message {
|
|
20
|
-
display: grid;
|
|
21
|
-
grid-template:
|
|
22
|
-
'. message-time'
|
|
23
|
-
'message-persona message-content';
|
|
24
|
-
grid-template-columns: max-content minmax(0, 1fr);
|
|
25
|
-
gap: $message-gap-size;
|
|
26
|
-
font-size: $message-font-size-md;
|
|
27
|
-
line-height: $line-height-normal;
|
|
28
|
-
|
|
29
|
-
.message-time {
|
|
30
|
-
grid-area: message-time;
|
|
31
|
-
font-size: $message-font-size-xs;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.message-persona {
|
|
35
|
-
grid-area: message-persona;
|
|
36
|
-
margin-block-start: $message-spacer-lg;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.message-content {
|
|
40
|
-
grid-area: message-content;
|
|
41
|
-
padding: $message-content-padding;
|
|
42
|
-
border: $message-border;
|
|
43
|
-
border-radius: $message-border-radius;
|
|
44
|
-
background-color: $message-background-color;
|
|
45
|
-
|
|
46
|
-
.message-content-header {
|
|
47
|
-
display: grid;
|
|
48
|
-
grid-template-columns: 1fr auto;
|
|
49
|
-
margin-block-end: $message-spacer-md;
|
|
50
|
-
|
|
51
|
-
.message-content-options {
|
|
52
|
-
justify-self: flex-end;
|
|
53
|
-
margin-inline-end: $message-spacer-md;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&.message-sender {
|
|
59
|
-
justify-self: flex-end;
|
|
60
|
-
width: $message-sender-width;
|
|
61
|
-
|
|
62
|
-
.message-content {
|
|
63
|
-
background-color: $message-sender-background-color;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&.message-sm {
|
|
68
|
-
font-size: $message-font-size-sm;
|
|
69
|
-
|
|
70
|
-
.message-content {
|
|
71
|
-
padding: $message-content-padding-sm;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
1
|
+
$message-font-size-xs: $font-size-9 !default;
|
|
2
|
+
$message-font-size-sm: $font-size-8 !default;
|
|
3
|
+
$message-font-size-md: $font-size-7 !default;
|
|
4
|
+
|
|
5
|
+
$message-background-color: $body-background !default;
|
|
6
|
+
$message-gap-size: $layout-1 !default;
|
|
7
|
+
$message-spacer-md: $spacer-3 !default;
|
|
8
|
+
$message-spacer-lg: $spacer-5 !default;
|
|
9
|
+
|
|
10
|
+
$message-sender-width: 85% !default;
|
|
11
|
+
$message-sender-background-color: $primary-background !default;
|
|
12
|
+
|
|
13
|
+
$message-border-radius: $border-radius-lg !default;
|
|
14
|
+
$message-border: $border-width solid $border !default;
|
|
15
|
+
|
|
16
|
+
$message-content-padding: $spacer-5 !default;
|
|
17
|
+
$message-content-padding-sm: 0.875rem !default;
|
|
18
|
+
|
|
19
|
+
.message {
|
|
20
|
+
display: grid;
|
|
21
|
+
grid-template:
|
|
22
|
+
'. message-time'
|
|
23
|
+
'message-persona message-content';
|
|
24
|
+
grid-template-columns: max-content minmax(0, 1fr);
|
|
25
|
+
gap: $message-gap-size;
|
|
26
|
+
font-size: $message-font-size-md;
|
|
27
|
+
line-height: $line-height-normal;
|
|
28
|
+
|
|
29
|
+
.message-time {
|
|
30
|
+
grid-area: message-time;
|
|
31
|
+
font-size: $message-font-size-xs;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.message-persona {
|
|
35
|
+
grid-area: message-persona;
|
|
36
|
+
margin-block-start: $message-spacer-lg;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.message-content {
|
|
40
|
+
grid-area: message-content;
|
|
41
|
+
padding: $message-content-padding;
|
|
42
|
+
border: $message-border;
|
|
43
|
+
border-radius: $message-border-radius;
|
|
44
|
+
background-color: $message-background-color;
|
|
45
|
+
|
|
46
|
+
.message-content-header {
|
|
47
|
+
display: grid;
|
|
48
|
+
grid-template-columns: 1fr auto;
|
|
49
|
+
margin-block-end: $message-spacer-md;
|
|
50
|
+
|
|
51
|
+
.message-content-options {
|
|
52
|
+
justify-self: flex-end;
|
|
53
|
+
margin-inline-end: $message-spacer-md;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&.message-sender {
|
|
59
|
+
justify-self: flex-end;
|
|
60
|
+
width: $message-sender-width;
|
|
61
|
+
|
|
62
|
+
.message-content {
|
|
63
|
+
background-color: $message-sender-background-color;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&.message-sm {
|
|
68
|
+
font-size: $message-font-size-sm;
|
|
69
|
+
|
|
70
|
+
.message-content {
|
|
71
|
+
padding: $message-content-padding-sm;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|