CE-740 make all h3 same size; update styles on recently-viewed

This commit is contained in:
2023-11-15 13:15:53 -06:00
parent c1065099e5
commit fbcee2b819
5 changed files with 26 additions and 8 deletions

View File

@ -78,6 +78,12 @@ interface Types
light: string; light: string;
main: string; main: string;
focus: string; focus: string;
}
gray:
| {
light: string;
main: string;
focus: string;
} }
| any; | any;
primary: ColorsTypes | any; primary: ColorsTypes | any;
@ -174,6 +180,11 @@ const colors: Types = {
focus: "#ffffff", focus: "#ffffff",
}, },
gray: {
main: "#757575",
focus: "#757575",
},
black: { black: {
light: "#000000", light: "#000000",
main: "#000000", main: "#000000",

View File

@ -199,9 +199,10 @@ const typography: Types = {
}, },
h3: { h3: {
fontSize: pxToRem(30), fontSize: "1.75rem",
lineHeight: 1.375, lineHeight: 1.375,
...baseHeadingProperties, ...baseHeadingProperties,
fontWeight: 600
}, },
h4: { h4: {

View File

@ -26,7 +26,6 @@ import {ReactNode, useContext} from "react";
import {Link} from "react-router-dom"; import {Link} from "react-router-dom";
import QContext from "QContext"; import QContext from "QContext";
import colors from "qqq/assets/theme/base/colors"; import colors from "qqq/assets/theme/base/colors";
import pxToRem from "qqq/assets/theme/functions/pxToRem";
import MDTypography from "qqq/components/legacy/MDTypography"; import MDTypography from "qqq/components/legacy/MDTypography";
interface Props interface Props
@ -118,7 +117,7 @@ function QBreadcrumbs({icon, title, route, light}: Props): JSX.Element
fontWeight: "500", fontWeight: "500",
color: colors.dark.main, color: colors.dark.main,
"& a": { "& a": {
color: "#757575" color: colors.gray.main
}, },
"& .MuiBreadcrumbs-separator": { "& .MuiBreadcrumbs-separator": {
fontSize: "1.125rem", fontSize: "1.125rem",
@ -142,10 +141,6 @@ function QBreadcrumbs({icon, title, route, light}: Props): JSX.Element
variant="h3" variant="h3"
color={light ? "white" : "dark"} color={light ? "white" : "dark"}
noWrap noWrap
sx={{
fontSize: "1.75rem",
fontWeight: "600"
}}
> >
{pageHeader} {pageHeader}
</MDTypography> </MDTypography>

View File

@ -159,7 +159,7 @@ function NavBar({absolute, light, isMini}: Props): JSX.Element
options={history} options={history}
autoHighlight autoHighlight
blurOnSelect blurOnSelect
style={{width: "200px"}} style={{width: "16rem"}}
onOpen={handleHistoryOnOpen} onOpen={handleHistoryOnOpen}
onChange={handleAutocompleteOnChange} onChange={handleAutocompleteOnChange}
PopperComponent={CustomPopper} PopperComponent={CustomPopper}

View File

@ -20,6 +20,7 @@
*/ */
import {Theme} from "@mui/material/styles"; import {Theme} from "@mui/material/styles";
import colors from "qqq/assets/theme/base/colors";
function navbar(theme: Theme | any, ownerState: any) function navbar(theme: Theme | any, ownerState: any)
{ {
@ -154,6 +155,16 @@ const navbarDesktopMenu = ({breakpoints}: Theme) => ({
}); });
const recentlyViewedMenu = ({breakpoints}: Theme) => ({ const recentlyViewedMenu = ({breakpoints}: Theme) => ({
"& .MuiInputLabel-root": {
color: colors.gray.main,
fontWeight: "500",
fontSize: "1rem"
},
"& .MuiInputAdornment-root": {
marginTop: "0.5rem",
color: colors.gray.main,
fontSize: "1rem"
},
"& .MuiOutlinedInput-root": { "& .MuiOutlinedInput-root": {
borderRadius: "0", borderRadius: "0",
padding: "0" padding: "0"