@mundogamernetwork/shared-ui 1.19.4 → 1.19.6
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.
|
@@ -1,43 +1,54 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Theme tokens of the What's New modal
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Theme tokens of the What's New modal and drawer. The component reads them
|
|
3
|
+
* through var(--mg-wn-*) with no literal fallback.
|
|
4
|
+
*
|
|
5
|
+
* Surfaces, text, borders and the accent are NOT colours of their own: they
|
|
6
|
+
* alias the variables every front already defines in its own light/dark theme
|
|
7
|
+
* files (the same ones the user menu uses), so the modal always matches the
|
|
8
|
+
* front it is shown in. The accent is the front's strong text colour (and
|
|
9
|
+
* on-accent its surface): the brand accents differ per front and several do
|
|
10
|
+
* not reach 3:1 against the surface in one of the two themes, so a brand-
|
|
11
|
+
* coloured fill or link would be unreadable there. A front that wants its
|
|
12
|
+
* brand colour can redefine --mg-wn-accent / --mg-wn-on-accent.
|
|
13
|
+
* Only the semantic status colours, the scrims and the media chrome are fixed
|
|
14
|
+
* here, because no front theme has a counterpart.
|
|
15
|
+
* A front can still restyle the modal by redefining any --mg-wn-* in its theme.
|
|
16
|
+
*
|
|
17
|
+
* Light is the default; the status values switch under @nuxtjs/color-mode's
|
|
6
18
|
* `.dark-mode` class (every front sets colorMode.preference).
|
|
7
19
|
*/
|
|
20
|
+
:root,
|
|
21
|
+
.light-mode,
|
|
22
|
+
.dark-mode {
|
|
23
|
+
--mg-wn-surface: var(--header-ui-config-bg);
|
|
24
|
+
--mg-wn-surface-2: var(--body-bg-card);
|
|
25
|
+
--mg-wn-text: var(--active);
|
|
26
|
+
--mg-wn-text-muted: var(--secondary-info-fg);
|
|
27
|
+
--mg-wn-border: var(--header-ui-config-border);
|
|
28
|
+
--mg-wn-accent: var(--active);
|
|
29
|
+
--mg-wn-on-accent: var(--header-ui-config-bg);
|
|
30
|
+
--mg-wn-neutral: var(--secondary-info-fg);
|
|
31
|
+
}
|
|
32
|
+
|
|
8
33
|
:root,
|
|
9
34
|
.light-mode {
|
|
10
|
-
|
|
11
|
-
--mg-wn-
|
|
12
|
-
--mg-wn-
|
|
13
|
-
--mg-wn-
|
|
14
|
-
--mg-wn-
|
|
15
|
-
--mg-wn-
|
|
16
|
-
--mg-wn-
|
|
17
|
-
--mg-wn-
|
|
18
|
-
--mg-wn-success: #146c43;
|
|
19
|
-
--mg-wn-warning: #8a4f00;
|
|
20
|
-
--mg-wn-neutral: #4f566b;
|
|
21
|
-
--mg-wn-media-bg: #1d2030;
|
|
22
|
-
--mg-wn-media-control-bg: rgba(0, 0, 0, 0.66);
|
|
23
|
-
--mg-wn-media-control-fg: #ffffff;
|
|
24
|
-
--mg-wn-shadow: rgba(0, 0, 0, 0.28);
|
|
35
|
+
/* scrim, status colours and media chrome: no counterpart in the front themes */
|
|
36
|
+
--mg-wn-overlay: rgba(11, 11, 20, 0.55); /* theme-ok: fixed scrim/status/media chrome */
|
|
37
|
+
--mg-wn-success: #146c43; /* theme-ok: fixed scrim/status/media chrome */
|
|
38
|
+
--mg-wn-warning: #8a4f00; /* theme-ok: fixed scrim/status/media chrome */
|
|
39
|
+
--mg-wn-media-bg: #0e0e0e; /* theme-ok: fixed scrim/status/media chrome */
|
|
40
|
+
--mg-wn-media-control-bg: rgba(0, 0, 0, 0.66); /* theme-ok: fixed scrim/status/media chrome */
|
|
41
|
+
--mg-wn-media-control-fg: #ffffff; /* theme-ok: fixed scrim/status/media chrome */
|
|
42
|
+
--mg-wn-shadow: rgba(0, 0, 0, 0.28); /* theme-ok: fixed scrim/status/media chrome */
|
|
25
43
|
}
|
|
26
44
|
|
|
27
45
|
.dark-mode {
|
|
28
|
-
|
|
29
|
-
--mg-wn-
|
|
30
|
-
--mg-wn-
|
|
31
|
-
--mg-wn-
|
|
32
|
-
--mg-wn-
|
|
33
|
-
--mg-wn-
|
|
34
|
-
--mg-wn-
|
|
35
|
-
--mg-wn-
|
|
36
|
-
--mg-wn-success: #5fd199;
|
|
37
|
-
--mg-wn-warning: #f0b45a;
|
|
38
|
-
--mg-wn-neutral: #a9aec6;
|
|
39
|
-
--mg-wn-media-bg: #0c0c14;
|
|
40
|
-
--mg-wn-media-control-bg: rgba(0, 0, 0, 0.72);
|
|
41
|
-
--mg-wn-media-control-fg: #ffffff;
|
|
42
|
-
--mg-wn-shadow: rgba(0, 0, 0, 0.6);
|
|
46
|
+
/* scrim, status colours and media chrome: no counterpart in the front themes */
|
|
47
|
+
--mg-wn-overlay: rgba(0, 0, 0, 0.66); /* theme-ok: fixed scrim/status/media chrome */
|
|
48
|
+
--mg-wn-success: #5fd199; /* theme-ok: fixed scrim/status/media chrome */
|
|
49
|
+
--mg-wn-warning: #f0b45a; /* theme-ok: fixed scrim/status/media chrome */
|
|
50
|
+
--mg-wn-media-bg: #050505; /* theme-ok: fixed scrim/status/media chrome */
|
|
51
|
+
--mg-wn-media-control-bg: rgba(0, 0, 0, 0.72); /* theme-ok: fixed scrim/status/media chrome */
|
|
52
|
+
--mg-wn-media-control-fg: #ffffff; /* theme-ok: fixed scrim/status/media chrome */
|
|
53
|
+
--mg-wn-shadow: rgba(0, 0, 0, 0.6); /* theme-ok: fixed scrim/status/media chrome */
|
|
43
54
|
}
|
|
@@ -453,6 +453,11 @@ const handleToggleOnline = () => {
|
|
|
453
453
|
.menu-group--nav {
|
|
454
454
|
// The host's own links keep their markup; they only get the shared edge.
|
|
455
455
|
gap: 0;
|
|
456
|
+
// Hosts may slide a second pane in here (community's "More": two panes side by side, translated). As a flex item the
|
|
457
|
+
// group would grow to the width of both panes (min-width:auto) and the whole menu would scroll sideways; clipping
|
|
458
|
+
// it keeps the panes inside the 240px column.
|
|
459
|
+
min-width: 0;
|
|
460
|
+
overflow: hidden;
|
|
456
461
|
}
|
|
457
462
|
|
|
458
463
|
.logout-row {
|