Merge branch 'themes3-fixes' into shigusegubu-themes3
This commit is contained in:
commit
fd28f08314
6 changed files with 17 additions and 6 deletions
1
changelog.d/themes3-fixes.fix
Normal file
1
changelog.d/themes3-fixes.fix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
fix color inputs and some in-development themes3 issues
|
|
@ -14,14 +14,14 @@
|
||||||
--ZI_navbar_popovers: 7500;
|
--ZI_navbar_popovers: 7500;
|
||||||
--ZI_navbar: 7000;
|
--ZI_navbar: 7000;
|
||||||
--ZI_popovers: 6000;
|
--ZI_popovers: 6000;
|
||||||
|
|
||||||
|
// Fallback for when stuff is loading
|
||||||
|
--background: var(--bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
font-size: var(--font-size);
|
font-size: var(--font-size);
|
||||||
// overflow-x: clip causes my browser's tab to crash with SIGILL lul
|
// overflow-x: clip causes my browser's tab to crash with SIGILL lul
|
||||||
|
|
||||||
// Fallback for when stuff is loading
|
|
||||||
--background: var(--bg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
@ -410,6 +410,7 @@ nav {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
line-height: var(--__line-height);
|
line-height: var(--__line-height);
|
||||||
padding: var(--__vertical-gap) var(--__horizontal-gap);
|
padding: var(--__vertical-gap) var(--__horizontal-gap);
|
||||||
|
background: transparent;
|
||||||
|
|
||||||
--__line-height: 1.5em;
|
--__line-height: 1.5em;
|
||||||
--__horizontal-gap: 0.75em;
|
--__horizontal-gap: 0.75em;
|
||||||
|
|
|
@ -71,6 +71,7 @@
|
||||||
border-color: var(--border);
|
border-color: var(--border);
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
|
background-color: var(--background);
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu {
|
.dropdown-menu {
|
||||||
|
@ -82,6 +83,7 @@
|
||||||
max-width: 100vw;
|
max-width: 100vw;
|
||||||
z-index: var(--ZI_popover_override, var(--ZI_popovers));
|
z-index: var(--ZI_popover_override, var(--ZI_popovers));
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
background-color: var(--background);
|
||||||
|
|
||||||
.dropdown-divider {
|
.dropdown-divider {
|
||||||
height: 0;
|
height: 0;
|
||||||
|
|
|
@ -204,6 +204,11 @@
|
||||||
|
|
||||||
--emoji-size: 1.7em;
|
--emoji-size: 1.7em;
|
||||||
|
|
||||||
|
.RichContent {
|
||||||
|
/* stylelint-disable-next-line declaration-no-important */
|
||||||
|
--link: var(--text) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.top-line,
|
.top-line,
|
||||||
.bottom-line {
|
.bottom-line {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
@ -158,12 +158,12 @@ export default [
|
||||||
'alertPopupNeutral',
|
'alertPopupNeutral',
|
||||||
'alertPopupNeutralText',
|
'alertPopupNeutralText',
|
||||||
|
|
||||||
'badgeNotification',
|
|
||||||
'badgeNotificationText',
|
|
||||||
|
|
||||||
'badgeNeutral',
|
'badgeNeutral',
|
||||||
'badgeNeutralText',
|
'badgeNeutralText',
|
||||||
|
|
||||||
|
'badgeNotification',
|
||||||
|
'badgeNotificationText',
|
||||||
|
|
||||||
'chatBg',
|
'chatBg',
|
||||||
|
|
||||||
'chatMessageIncomingBg',
|
'chatMessageIncomingBg',
|
||||||
|
|
|
@ -517,6 +517,8 @@ export const convertTheme2To3 = (data) => {
|
||||||
} else if (newRule.component === 'Badge') {
|
} else if (newRule.component === 'Badge') {
|
||||||
if (newRule.variant === 'notification') {
|
if (newRule.variant === 'notification') {
|
||||||
return [newRule, { component: 'Root', directives: { '--badgeNotification': 'color | ' + newRule.directives.background } }]
|
return [newRule, { component: 'Root', directives: { '--badgeNotification': 'color | ' + newRule.directives.background } }]
|
||||||
|
} else if (newRule.variant === 'neutral') {
|
||||||
|
return [{ ...newRule, variant: 'normal' }]
|
||||||
} else {
|
} else {
|
||||||
return [newRule]
|
return [newRule]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue