@dialpad/dialtone-css 8.52.1 → 8.54.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.
@@ -16,23 +16,16 @@
16
16
  position: relative;
17
17
  display: grid;
18
18
  grid-template-areas:
19
- 'header header'
20
- 'sidebar body'
21
- 'footer footer';
22
- grid-template-rows: min-content 1fr min-content;
23
- grid-template-columns: min-content 1fr;
19
+ 'header'
20
+ 'sidebar'
21
+ 'body'
22
+ 'footer';
23
+ grid-template-rows: min-content auto 1fr min-content;
24
+ grid-template-columns: 1fr;
24
25
  min-height: 100vh;
25
26
 
26
- &--inverted {
27
- grid-template-areas:
28
- 'header header'
29
- 'body sidebar'
30
- 'footer footer';
31
- grid-template-columns: 1fr min-content;
32
- }
33
-
34
27
  &--fixed {
35
- height: 100vh;
28
+ height: auto;
36
29
  }
37
30
 
38
31
  &__header {
@@ -71,59 +64,92 @@
71
64
  }
72
65
  }
73
66
 
74
- @media (max-width: 480px) {
67
+ .d-root-layout__responsive--default {
68
+ grid-template-areas:
69
+ 'header header'
70
+ 'sidebar body'
71
+ 'footer footer';
72
+ grid-template-rows: min-content 1fr min-content;
73
+ grid-template-columns: min-content 1fr;
75
74
 
76
- // Having a fixed height in mobile mode doesn't really make any sense,
77
- // so we'll set it back to auto if the media query triggered.
78
- .d-root-layout--fixed.d-root-layout__responsive--sm {
79
- height: auto;
75
+ &.d-root-layout--inverted {
76
+ grid-template-areas:
77
+ 'header header'
78
+ 'body sidebar'
79
+ 'footer footer';
80
+ grid-template-columns: 1fr min-content;
80
81
  }
81
82
 
82
- .d-root-layout__responsive--sm {
83
- grid-template-areas:
84
- 'header'
85
- 'sidebar'
86
- 'body'
87
- 'footer';
88
- grid-template-rows: min-content auto 1fr min-content;
89
- grid-template-columns: 1fr;
83
+ &.d-root-layout--fixed{
84
+ height: 100vh;
90
85
  }
91
86
  }
92
87
 
93
- @media (max-width: 640px) {
88
+ @media (min-width: 480px) {
89
+ .d-root-layout__responsive--sm {
90
+ grid-template-areas:
91
+ 'header header'
92
+ 'sidebar body'
93
+ 'footer footer';
94
+ grid-template-rows: min-content 1fr min-content;
95
+ grid-template-columns: min-content 1fr;
96
+
97
+ &.d-root-layout--inverted {
98
+ grid-template-areas:
99
+ 'header header'
100
+ 'body sidebar'
101
+ 'footer footer';
102
+ grid-template-columns: 1fr min-content;
103
+ }
94
104
 
95
- // Having a fixed height in mobile mode doesn't really make any sense,
96
- // so we'll set it back to auto if the media query triggered.
97
- .d-root-layout--fixed.d-root-layout__responsive--md {
98
- height: auto;
105
+ &.d-root-layout--fixed {
106
+ height: 100vh;
107
+ }
99
108
  }
109
+ }
100
110
 
111
+ @media (min-width: 640px) {
101
112
  .d-root-layout__responsive--md {
102
113
  grid-template-areas:
103
- 'header'
104
- 'sidebar'
105
- 'body'
106
- 'footer';
107
- grid-template-rows: min-content auto 1fr min-content;
108
- grid-template-columns: 1fr;
109
- }
110
- }
111
-
112
- @media (max-width: 980px) {
114
+ 'header header'
115
+ 'sidebar body'
116
+ 'footer footer';
117
+ grid-template-rows: min-content 1fr min-content;
118
+ grid-template-columns: min-content 1fr;
119
+
120
+ &.d-root-layout--inverted {
121
+ grid-template-areas:
122
+ 'header header'
123
+ 'body sidebar'
124
+ 'footer footer';
125
+ grid-template-columns: 1fr min-content;
126
+ }
113
127
 
114
- // Having a fixed height in mobile mode doesn't really make any sense,
115
- // so we'll set it back to auto if the media query triggered.
116
- .d-root-layout--fixed.d-root-layout__responsive--lg {
117
- height: auto;
128
+ &.d-root-layout--fixed {
129
+ height: 100vh;
130
+ }
118
131
  }
132
+ }
119
133
 
134
+ @media (min-width: 980px) {
120
135
  .d-root-layout__responsive--lg {
121
136
  grid-template-areas:
122
- 'header'
123
- 'sidebar'
124
- 'body'
125
- 'footer';
126
- grid-template-rows: min-content auto 1fr min-content;
127
- grid-template-columns: 1fr;
137
+ 'header header'
138
+ 'sidebar body'
139
+ 'footer footer';
140
+ grid-template-rows: min-content 1fr min-content;
141
+ grid-template-columns: min-content 1fr;
142
+
143
+ &.d-root-layout--inverted {
144
+ grid-template-areas:
145
+ 'header header'
146
+ 'body sidebar'
147
+ 'footer footer';
148
+ grid-template-columns: 1fr min-content;
149
+ }
150
+
151
+ &.d-root-layout--fixed {
152
+ height: 100vh;
153
+ }
128
154
  }
129
155
  }
@@ -162,37 +162,37 @@
162
162
  // ============================================================================
163
163
  // $ RESPONSIVE
164
164
  // ----------------------------------------------------------------------------
165
- // $$ EXTRA LARGE
165
+ // $$ SMALL
166
166
  // ----------------------------------------------------------------------------
167
- .d-stack--xl {
168
- @media screen and (max-width: 1264px) {
167
+ .d-stack--sm {
168
+ @media screen and (min-width: 480px) {
169
169
  .direction-options();
170
170
  .gap-options();
171
171
  }
172
172
  }
173
173
 
174
- // $$ LARGE
175
- // ----------------------------------------------------------------------------
176
- .d-stack--lg {
177
- @media screen and (max-width: 980px) {
174
+ // $$ MEDIUM
175
+ // ----------------
176
+ .d-stack--md {
177
+ @media screen and (min-width: 640px) {
178
178
  .direction-options();
179
179
  .gap-options();
180
180
  }
181
181
  }
182
182
 
183
- // $$ MEDIUM
184
- // ----------------
185
- .d-stack--md {
186
- @media screen and (max-width: 640px) {
183
+ // $$ LARGE
184
+ // ----------------------------------------------------------------------------
185
+ .d-stack--lg {
186
+ @media screen and (min-width: 980px) {
187
187
  .direction-options();
188
188
  .gap-options();
189
189
  }
190
190
  }
191
191
 
192
- // $$ SMALL
192
+ // $$ EXTRA LARGE
193
193
  // ----------------------------------------------------------------------------
194
- .d-stack--sm {
195
- @media screen and (max-width: 480px) {
194
+ .d-stack--xl {
195
+ @media screen and (min-width: 1264px) {
196
196
  .direction-options();
197
197
  .gap-options();
198
198
  }
@@ -119,3 +119,138 @@
119
119
  .d-toast--viewing {
120
120
  --toast-color-background: var(--dt-color-surface-secondary);
121
121
  }
122
+
123
+ // ============================================================================
124
+ // @ BASE STYLE
125
+ // ----------------------------------------------------------------------------
126
+ .d-toast-alternate {
127
+ // Component CSS Vars
128
+ // ------------------------------------------------------------------------
129
+ --toast-alternate-color-shadow: hsla(var(--dt-color-black-900-hsl) / 0.15);
130
+ --toast-alternate-box-shadow: 0 0 0 var(--dt-size-0) var(--toast-alternate-color-shadow) inset, var(--dt-shadow-medium);
131
+ --toast-alternate-color-background: var(--dt-color-surface-primary);
132
+ --toast-alternate-color-text: var(--dt-color-foreground-primary);
133
+ --toast-alternate-color-icon: var(--dt-color-foreground-muted);
134
+ --toast-alternate-font-color: var(--dt-color-foreground-tertiary);
135
+ --toast-alternate-font-size: var(--dt-font-size-200);
136
+ --toast-alternate-line-height: var(--dt-font-line-height-300);
137
+ --toast-alternate-border-radius: var(--dt-size-500);
138
+ --toast-alternate-border-color: var(--dt-color-border-subtle);
139
+ --toast-alternate-border-style: solid;
140
+ --toast-alternate-border-width: var(--dt-size-100);
141
+
142
+ z-index: var(--zi-notification);
143
+
144
+ // Base Styles
145
+ // ------------------------------------------------------------------------
146
+ display: flex;
147
+ align-items: center;
148
+ box-sizing: border-box;
149
+ width: var(--dt-size-925);
150
+ padding: var(--dt-space-350) var(--dt-space-350) var(--dt-space-450) var(--dt-space-450);
151
+ color: var(--toast-alternate-color-text);
152
+ font-size: var(--toast-alternate-font-size);
153
+ line-height: var(--toast-alternate-line-height);
154
+ word-break: normal;
155
+ background-color: var(--toast-alternate-color-background);
156
+ border: var(--toast-alternate-border-width) var(--toast-alternate-border-style) var(--toast-alternate-border-color);
157
+ border-radius: var(--toast-alternate-border-radius);
158
+ box-shadow: var(--toast-alternate-box-shadow);
159
+ pointer-events: all;
160
+
161
+ // If there's a link in a toast, break the url so it wraps
162
+ > a {
163
+ word-break: break-all;
164
+ }
165
+
166
+ // If you want to hide and reveal the toast
167
+ &[aria-hidden='true'] {
168
+ visibility: hidden;
169
+ opacity: var(--dt-opacity-0);
170
+ }
171
+
172
+ &[aria-hidden='false'] {
173
+ visibility: visible;
174
+ opacity: var(--dt-opacity-1300);
175
+ }
176
+
177
+ .d-toast-layout-alternate__icon {
178
+ display: flex;
179
+ flex: 0 auto;
180
+ margin-right: var(--dt-space-300);
181
+ color: var(--toast-alternate-color-icon);
182
+ }
183
+
184
+ .d-notice__title {
185
+ color: var(--dt-color-foreground-tertiary);
186
+ font-weight: var(--dt-font-weight-normal);
187
+ font-size: var(--dt-font-size-100);
188
+ }
189
+
190
+ .d-notice__actions .base-button__button {
191
+ color: var(--dt-action-color-foreground-muted-default);
192
+ }
193
+ }
194
+
195
+ // ============================================================================
196
+ // $ CONTENT CONTAINER
197
+ // ----------------------------------------------------------------------------
198
+ .d-toast-alternate__content {
199
+ display: flex;
200
+ flex: 1 auto;
201
+ flex-direction: column;
202
+ margin-right: var(--dt-space-500);
203
+ color: var(--dt-color-foreground-primary);
204
+ font-weight: var(--dt-font-weight-normal);
205
+ font-size: var(--dt-font-size-200);
206
+ }
207
+
208
+ .d-toast-alternate__dialog {
209
+ position: relative;
210
+ align-items: center;
211
+ width: var(--dt-size-100-percent);
212
+
213
+
214
+ .d-notice__actions button:first-child {
215
+ margin-left: var(--dt-space-600); // 32
216
+ }
217
+ }
218
+
219
+ .d-toast-alternate__header {
220
+ display: flex;
221
+ gap: var(--dt-space-200);
222
+ align-items: center;
223
+ color: var(--toast-alternate-font-color);
224
+ }
225
+
226
+ // $$ ERROR
227
+ // ----------------------------------------------------------------------------
228
+ .d-toast-alternate--error {
229
+ --toast-alternate-border-color: var(--dt-color-border-critical-subtle);
230
+ }
231
+
232
+ // $$ INFO
233
+ // ----------------------------------------------------------------------------
234
+
235
+ .d-toast-alternate--info {
236
+ --toast-alternate-border-color: var(--dt-color-border-subtle);
237
+ }
238
+
239
+ // $$ SUCCESS
240
+ // ----------------------------------------------------------------------------
241
+ .d-toast-alternate--success {
242
+ --toast-alternate-border-color: var(--dt-color-border-success-subtle);
243
+ }
244
+
245
+ // $$ GRADIENT
246
+ // ----------------------------------------------------------------------------
247
+ .d-toast-alternate--gradient {
248
+ background: linear-gradient(var(--dt-color-surface-primary), var(--dt-color-surface-primary)) padding-box,
249
+ var(--dt-color-border-ai) border-box;
250
+ }
251
+
252
+ // $$ warning
253
+ // ----------------------------------------------------------------------------
254
+ .d-toast-alternate--warning {
255
+ --toast-alternate-border-color: var(--dt-color-border-warning-subtle);
256
+ }