Skip to content

Commit

Permalink
feat: remove header background
Browse files Browse the repository at this point in the history
Signed-off-by: Quentin Guidée <[email protected]>
  • Loading branch information
quentinguidee committed Feb 28, 2024
1 parent f46d56e commit a679d6b
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 31 deletions.
6 changes: 5 additions & 1 deletion apps/client/src/components/ButtonsHeader/ButtonsHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ export default function ButtonsHeader({ items }: ButtonsHeaderProps) {
);

return (
<Tabs value={tab} onChange={(_, v) => goto(v)} textColor="secondary">
<Tabs
value={tab}
onChange={(_, v) => goto(v)}
textColor="secondary"
className={s.tabs}>
{items.map((item, k) => (
<Tab
className={s.item}
Expand Down
11 changes: 11 additions & 0 deletions apps/client/src/components/ButtonsHeader/index.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
.tabs {
border-bottom: 1px solid var(--divider);
margin-bottom: 16px;
}

@media screen and (max-width: 960px) {
.tabs {
margin-bottom: 8px;
}
}

.item {
border-radius: var(--radius) !important;
}
11 changes: 0 additions & 11 deletions apps/client/src/components/ChartCard/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,6 @@
margin-bottom: 16px;
}

.root > div > h3::before {
content: '';
position: relative;
display: inline-block;
width: 16px;
height: 32px;
background-color: var(--text-on-light);
margin-right: 16px;
border-radius: 6px;
}

.title {
display: flex;
flex-direction: row;
Expand Down
2 changes: 1 addition & 1 deletion apps/client/src/components/Header/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
align-items: center;
justify-content: space-between;

background-color: var(--header-background);
background-color: var(--content-background);
padding: 16px;
}

Expand Down
13 changes: 1 addition & 12 deletions apps/client/src/components/TitleCard/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}

.container {
padding: 16px;
padding: 16px 20px;
display: flex;
flex-direction: column;
height: 100%;
Expand All @@ -30,17 +30,6 @@
margin-left: auto;
}

.title::before {
content: '';
position: relative;
display: inline-block;
width: 16px;
height: 32px;
background-color: var(--primary);
margin-right: 16px;
border-radius: 6px;
}

.content {
position: relative;
flex-grow: 1;
Expand Down
8 changes: 3 additions & 5 deletions apps/client/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ h6 {
:root {
--track-options: 34px;
--radius: 6px;
--page-padding: 16px;
--page-padding: 0 16px 16px 16px;
--accent: #FB717B;
--header-image-size: 60px;
}
Expand All @@ -51,7 +51,6 @@ h6 {
--hover: rgb(65, 65, 65);

--background: black;
--header-background: black;
--content-background: black;

--text-on-light: white;
Expand All @@ -73,8 +72,7 @@ h6 {
--hover: #eaeaea;

--background: white;
--header-background: white;
--content-background: #f7f7f7;
--content-background: #f2f3f6;

--text-on-light: black;
--text-on-dark: white;
Expand All @@ -91,7 +89,7 @@ h6 {

@media screen and (max-width: 960px) {
:root {
--page-padding: 8px;
--page-padding: 0px 8px 8px 8px;
--header-image-size: 40px;
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/client/src/services/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const useTheme = () => {
MuiTabs: {
styleOverrides: {
root: {
backgroundColor: "var(--header-background)",
backgroundColor: "var(--content-background)",
},
},
},
Expand Down

0 comments on commit a679d6b

Please sign in to comment.