maj liste cours

This commit is contained in:
sebvtl728
2025-07-20 23:48:08 +02:00
parent 61222e2133
commit db8984b971
3 changed files with 65 additions and 53 deletions
+60 -43
View File
@@ -11,7 +11,11 @@ h1 {
} }
h2,h3,h4,h5,h6,span{ h2,
h3,
h4,
h5,
h6 {
font-size: 1rem; font-size: 1rem;
line-height: 1.1; line-height: 1.1;
font-family: "Nunito", sans-serif !important; font-family: "Nunito", sans-serif !important;
@@ -21,54 +25,67 @@ h2,h3,h4,h5,h6,span{
color: #315397 !important; color: #315397 !important;
} }
.c4lv-readingcontext p, .c4lv-readingcontext { .c4lv-readingcontext p,
font-size: 16px; .c4lv-readingcontext {
line-height: 23px; font-size: 16px;
line-height: 23px;
} }
.c4lv-dodontcards .c4l-dodontcards-do { .c4lv-dodontcards .c4l-dodontcards-do {
min-width: 200px; min-width: 200px;
max-width: 100%; max-width: 100%;
background: #f1fbf5; background: #f1fbf5;
border-radius: 10px; border-radius: 10px;
padding: 24px 48px 30px 36px; padding: 24px 48px 30px 36px;
margin: 12px auto; margin: 12px auto;
position: relative; position: relative;
}
.c4lv-dodontcards .c4l-dodontcards-do::before {
content: url(https://www.formations.octopusdesign.fr/theme/image.php/boost_magnific/tiny_c4l/1752797278/c4l_docard);
position: absolute;
top: 12px;
right: 12px;
}
.c4lv-dodontcards .c4l-dodontcards-dont {
min-width: 200px;
max-width: 100%;
background: #ffefef;
border-radius: 10px;
padding: 24px 48px 30px 36px;
margin: 12px auto;
position: relative;
}
.c4lv-dodontcards .c4l-dodontcards-dont::before {
content: url(https://www.formations.octopusdesign.fr/theme/image.php/boost_magnific/tiny_c4l/1752797278/c4l_dontcard);
position: absolute;
top: 12px;
right: 12px;
} }
h3{ .c4lv-dodontcards .c4l-dodontcards-do::before {
content: url(https://www.formations.octopusdesign.fr/theme/image.php/boost_magnific/tiny_c4l/1752797278/c4l_docard);
position: absolute;
top: 12px;
right: 12px;
}
.c4lv-dodontcards .c4l-dodontcards-dont {
min-width: 200px;
max-width: 100%;
background: #ffefef;
border-radius: 10px;
padding: 24px 48px 30px 36px;
margin: 12px auto;
position: relative;
}
.c4lv-dodontcards .c4l-dodontcards-dont::before {
content: url(https://www.formations.octopusdesign.fr/theme/image.php/boost_magnific/tiny_c4l/1752797278/c4l_dontcard);
position: absolute;
top: 12px;
right: 12px;
}
.c4lv-readingcontext p, .c4lv-readingcontext span, .c4lv-readingcontext li {
font-size: 16px;
line-height: 23px;
font-family: "Nunito", sans-serif !important;
font-optical-sizing: auto;
font-weight: 700 !important;
font-style: normal;
}
h3 {
font-size: 1.2em !important; font-size: 1.2em !important;
} }
ul li{ ul li {
list-style: inherit !important; list-style: inherit !important;
} }
.css-1ulggnf h2, .css-1ulggnf h2,
.MuiTypography-span, .MuiTypography-span,
.MuiTypography-h6{ .MuiTypography-h6 {
color: #ffffff; color: #ffffff;
} }
@@ -96,15 +113,15 @@ ul li{
} }
.c4lv-readingcontext { .c4lv-readingcontext {
min-width: 200px; min-width: 200px;
max-width: 75%; max-width: 75%;
background-color: #fff; background-color: #fff;
box-shadow: 0 4px 24px rgb(0 0 0 / .08); box-shadow: 0 4px 24px rgb(0 0 0 / .08);
box-sizing: border-box; box-sizing: border-box;
margin: 36px auto; margin: 36px auto;
} }
.c4lv-readingcontext { .c4lv-readingcontext {
padding: 30px 40px 32px 40px; padding: 30px 40px 32px 40px;
font-family: sans-serif; font-family: sans-serif;
} }
+4 -9
View File
@@ -274,11 +274,7 @@ const ListeCours = () => {
<Typography variant="h6" sx={{ mb: 1 }}> <Typography variant="h6" sx={{ mb: 1 }}>
{page.name} {page.name}
</Typography> </Typography>
<Typography
variant="body2"
sx={{ whiteSpace: "pre-line" }}
dangerouslySetInnerHTML={{ __html: page.content }}
/>
<Box sx={{ display: "flex", gap: 1, mt: 1 }}> <Box sx={{ display: "flex", gap: 1, mt: 1 }}>
<Button <Button
size="small" size="small"
@@ -344,7 +340,6 @@ const ListeCours = () => {
<Typography <Typography
variant="body2" variant="body2"
sx={{ mb: 1 }} sx={{ mb: 1 }}
dangerouslySetInnerHTML={{ __html: assign.intro || "" }}
/> />
<Button <Button
size="small" size="small"
@@ -385,8 +380,8 @@ const ListeCours = () => {
sx={{ sx={{
position: "absolute", position: "absolute",
top: 0, top: 0,
left: 0, left: "8%",
width: "100vw", width: "80%",
height: "100vh", height: "100vh",
bgcolor: "background.paper", bgcolor: "background.paper",
p: 4, p: 4,
@@ -410,7 +405,7 @@ const ListeCours = () => {
</Button> </Button>
</Box> </Box>
<Box <Box
sx={{ maxWidth: "900px", margin: "0 auto", paddingBottom: 8 }} sx={{margin: "0 auto", paddingBottom: 8 }}
dangerouslySetInnerHTML={{ dangerouslySetInnerHTML={{
__html: __html:
selectedPage?.content || selectedAssignment?.intro || "", selectedPage?.content || selectedAssignment?.intro || "",
+1 -1
View File
File diff suppressed because one or more lines are too long