|
3 | 3 | @apply relative inline-flex flex-col sm:flex-row items-center max-w-4xl text-sm select-none text-theme-secondary-900 dark:text-theme-secondary-200 dark:bg-theme-secondary-800 rounded-xl overflow-hidden;
|
4 | 4 | }
|
5 | 5 |
|
| 6 | + .toast__titled { |
| 7 | + @apply relative inline-flex flex-col items-center max-w-4xl text-sm select-none text-theme-secondary-900 dark:text-theme-secondary-200 dark:bg-theme-secondary-800 rounded-xl overflow-hidden; |
| 8 | + } |
| 9 | + |
6 | 10 | .toast-body {
|
7 | 11 | @apply p-4 text-left mr-4 sm:mt-0;
|
8 | 12 | }
|
9 | 13 |
|
10 | 14 | .toast-icon {
|
11 |
| - @apply space-x-2 flex items-center px-4 sm:px-0 py-2 sm:py-0 sm:justify-center flex-shrink-0 text-white w-full sm:w-12 sm:h-14; |
| 15 | + @apply space-x-2 flex items-center px-4 sm:px-0 py-2 sm:py-0 sm:justify-center flex-shrink-0 text-white w-full sm:w-12 sm:h-full; |
| 16 | + } |
| 17 | + |
| 18 | + .toast-icon__titled { |
| 19 | + @apply space-x-2 flex items-center px-4 py-2 flex-shrink-0 text-white w-full; |
12 | 20 | }
|
13 | 21 |
|
14 | 22 | .toast-button,
|
15 | 23 | .toast-spinner {
|
16 | 24 | @apply absolute sm:relative top-0 sm:top-auto right-0 sm:right-auto m-2.5 sm:my-0 sm:ml-0 flex items-center justify-center flex-shrink-0 mr-4 rounded text-theme-secondary-900 dark:text-white sm:dark:text-theme-secondary-600;
|
17 | 25 | }
|
18 | 26 |
|
| 27 | + .toast-button__titled, |
| 28 | + .toast-spinner__titled { |
| 29 | + @apply absolute top-0 right-0 m-2.5 flex items-center justify-center flex-shrink-0 mr-4 rounded text-theme-secondary-900 dark:text-white sm:dark:text-theme-secondary-600; |
| 30 | + } |
| 31 | + |
19 | 32 | .toast-info {
|
20 | 33 | @apply bg-theme-primary-50;
|
21 | 34 | }
|
|
32 | 45 | @apply bg-theme-success-50;
|
33 | 46 | }
|
34 | 47 |
|
35 |
| - .toast-info .toast-icon { |
| 48 | + .toast-info .toast-icon, |
| 49 | + .toast-info .toast-icon__titled { |
36 | 50 | @apply bg-theme-primary-100 dark:bg-theme-primary-700 text-theme-primary-700 dark:text-white;
|
37 | 51 | }
|
38 |
| - .toast-warning .toast-icon { |
| 52 | + .toast-warning .toast-icon, |
| 53 | + .toast-warning .toast-icon__titled { |
39 | 54 | @apply bg-theme-warning-100 dark:bg-theme-warning-700 text-theme-warning-900 dark:text-white;
|
40 | 55 | }
|
41 |
| - .toast-danger .toast-icon { |
| 56 | + .toast-danger .toast-icon, |
| 57 | + .toast-danger .toast-icon__titled { |
42 | 58 | @apply bg-theme-danger-100 dark:bg-theme-danger-500 text-theme-danger-700 dark:text-white;
|
43 | 59 | }
|
44 |
| - .toast-hint .toast-icon { |
| 60 | + .toast-hint .toast-icon, |
| 61 | + .toast-hint .toast-icon__titled { |
45 | 62 | @apply bg-theme-hint-100 dark:bg-theme-hint-700 text-theme-hint-700 dark:text-white;
|
46 | 63 | }
|
47 |
| - .toast-success .toast-icon { |
| 64 | + .toast-success .toast-icon, |
| 65 | + .toast-success .toast-icon__titled { |
48 | 66 | @apply bg-theme-success-100 dark:bg-theme-success-700 text-theme-success-700 dark:text-white;
|
49 | 67 | }
|
50 | 68 |
|
|
0 commit comments