Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: styling issue learning-path content #724

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/custom/ChapterCard/style.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { styled } from '@mui/material';
import { ALABASTER_WHITE, KEPPEL, MIDNIGHT_BLACK } from '../../theme';
import { ALABASTER_WHITE, MIDNIGHT_BLACK } from '../../theme';

// Styled component for ChapterCardWrapper
export const ChapterCardWrapper = styled('div')(({ theme }) => ({
Expand All @@ -13,7 +13,7 @@ export const ChapterCardWrapper = styled('div')(({ theme }) => ({
}`,
justifyContent: 'space-between',
'&:hover': {
border: `1px solid ${KEPPEL}`,
border: `1px solid ${theme.palette.background.brand?.default}`,
transition:
'background 150ms ease-out 0s, border 150ms ease-out 0s, transform 150ms ease-out 0s',
transform: 'translate3d(0px, -3px, 0px)',
Expand Down
4 changes: 2 additions & 2 deletions src/custom/LearningCard/style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const CardActive = styled('div')(({ theme }) => ({
cursor: 'pointer',
transition: 'all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s',
'&:hover': {
boxShadow: 'rgba(0, 179, 158, 0.9) 0px 0px 19px 6px'
boxShadow: `${theme.palette.background.brand?.default} 0px 0px 19px 6px`
},
backgroundColor: theme.palette.mode === 'light' ? WHITE : BLACK
}));
Expand All @@ -23,7 +23,7 @@ const CardLink = styled('a')({
});

const CardParent = styled('div')(({ theme }) => ({
borderTop: `5px solid ${theme.palette.primary.main}`,
borderTop: `5px solid ${theme.palette.background.brand?.default}`,
borderRadius: '0.25rem',
minHeight: '16rem',
display: 'flex',
Expand Down
2 changes: 1 addition & 1 deletion src/custom/SetupPrerequisite/style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Card = styled('a')(({ theme }) => ({
transition: '0.8s cubic-bezier(0.2, 0.8, 0.2, 1)',
borderRadius: '10px',
'&:hover': {
boxShadow: 'rgb(0, 211, 169) 0px 0px 7px'
boxShadow: `${theme.palette.background.brand?.default} 0px 0px 7px`
},
'& a': {
margin: '0 !important',
Expand Down
21 changes: 20 additions & 1 deletion src/custom/StyledChapter/StyledChapter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ const StyledChapter = styled('div')(({ theme }) => ({

'& a': {
color: theme.palette.background.brand?.default,
textDecoration: 'none'
textDecoration: 'underline',
'&:hover': {
color: theme.palette.background.brand?.default
}
},
'& p > code': {
color: 'inherit',
Expand All @@ -38,6 +41,22 @@ const StyledChapter = styled('div')(({ theme }) => ({
width: '100%',
margin: '1rem auto autocompleteClasses',
fontFamily: 'Courier New, Courier, monospace'
},
'& li code': {
color: 'inherit',
padding: '.2em .4em',
margin: '0',
fontSize: '85%',
wordBreak: 'normal',
backgroundColor: theme.palette.background.code,
borderRadius: '.25rem'
},
'& li a': {
color: theme.palette.text.default,
textDecoration: 'underline',
'&:hover': {
color: theme.palette.background.brand?.default
}
}
}));
export default StyledChapter;
Loading