noph-ui 0.53.1 → 0.53.2
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.
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
ontoggle?.(event)
|
|
63
63
|
}}
|
|
64
64
|
>
|
|
65
|
-
<div class=
|
|
65
|
+
<div class={['np-snackbar-inner', actionLabel && !icon && 'np-snackbar-action-last']}>
|
|
66
66
|
<div class="np-snackbar-label-container">
|
|
67
67
|
<div id="np-snackbar-label-{uid}" class="np-snackbar-label">{label}</div>
|
|
68
68
|
{#if supportingText}
|
|
@@ -97,9 +97,6 @@
|
|
|
97
97
|
.np-snackbar-icon-container {
|
|
98
98
|
width: 2.75rem;
|
|
99
99
|
}
|
|
100
|
-
.np-snackbar-supporting-text {
|
|
101
|
-
font-weight: 400;
|
|
102
|
-
}
|
|
103
100
|
.np-snackbar-label-container {
|
|
104
101
|
flex: 1;
|
|
105
102
|
overflow: hidden;
|
|
@@ -118,6 +115,9 @@
|
|
|
118
115
|
overflow: hidden;
|
|
119
116
|
align-items: center;
|
|
120
117
|
}
|
|
118
|
+
.np-snackbar-action-last {
|
|
119
|
+
padding-inline-end: 0.5rem;
|
|
120
|
+
}
|
|
121
121
|
.np-snackbar[popover] {
|
|
122
122
|
border: none;
|
|
123
123
|
margin: auto auto 1rem;
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
color: var(--np-snackbar-text-color, var(--np-color-inverse-on-surface));
|
|
127
127
|
background-color: var(--np-snackbar-container-color, var(--np-color-inverse-surface));
|
|
128
128
|
line-height: 1.25rem;
|
|
129
|
-
font-weight:
|
|
129
|
+
font-weight: 400;
|
|
130
130
|
font-size: 0.875rem;
|
|
131
131
|
border-radius: var(--np-snackbar-container-shape, 0.25rem);
|
|
132
132
|
fill: currentColor;
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
.np-rich-tooltip[popover] {
|
|
73
73
|
box-sizing: border-box;
|
|
74
74
|
width: max-content;
|
|
75
|
-
max-width: 20rem;
|
|
75
|
+
max-width: min(20rem, 100vw - 1rem);
|
|
76
76
|
overflow-wrap: break-word;
|
|
77
|
-
margin: var(--np-rich-tooltip-margin, 4px 0);
|
|
77
|
+
margin: var(--np-rich-tooltip-margin, 4px 8px 8px 0);
|
|
78
78
|
padding: 0.25rem 1rem;
|
|
79
79
|
border: none;
|
|
80
80
|
border-radius: var(--np-shape-corner-medium);
|
|
@@ -83,10 +83,15 @@
|
|
|
83
83
|
box-shadow: var(--np-elevation-2);
|
|
84
84
|
font-size: 0.875rem;
|
|
85
85
|
line-height: 1.25rem;
|
|
86
|
-
justify-self: var(--np-rich-tooltip-justify-self,
|
|
86
|
+
justify-self: var(--np-rich-tooltip-justify-self, auto);
|
|
87
87
|
align-self: var(--np-rich-tooltip-align-self, auto);
|
|
88
|
-
position-area: var(--np-rich-tooltip-position-area, bottom);
|
|
89
|
-
position-try-fallbacks: var(
|
|
88
|
+
position-area: var(--np-rich-tooltip-position-area, bottom right);
|
|
89
|
+
position-try-fallbacks: var(
|
|
90
|
+
--np-rich-tooltip-position-try-fallbacks,
|
|
91
|
+
flip-block,
|
|
92
|
+
flip-inline,
|
|
93
|
+
flip-block flip-inline
|
|
94
|
+
);
|
|
90
95
|
}
|
|
91
96
|
.np-rich-tooltip-with-subhead[popover] {
|
|
92
97
|
padding-block: 0.75rem 1rem;
|