Skip to content

Commit 8399a86

Browse files
ofriwclaude
andcommitted
Refactor presentation list styles with unified base class
- Create .presentationList base class for shared list styling - Refactor .bulletList and .takeawayList to compose base class - Remove redundant flexbox centering from .objectives - Add defensive margin-top to global content rule - Add align-self: stretch to .centeredContent for consistency 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ca05818 commit 8399a86

File tree

1 file changed

+13
-21
lines changed

1 file changed

+13
-21
lines changed

website/src/components/PresentationMode/RevealSlideshow.module.css

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@
5757
max-width: 90%;
5858
margin-left: auto;
5959
margin-right: auto;
60-
display: flex;
61-
flex-direction: column;
62-
justify-content: center;
6360
}
6461

6562
.objectives h3 {
@@ -87,17 +84,19 @@
8784
color: #42b883;
8885
}
8986

90-
.bulletList {
87+
/* Base class for all list-based presentation content */
88+
.presentationList {
9189
text-align: left;
90+
max-width: 90%;
91+
margin: 0 auto;
92+
padding: 0;
93+
list-style: none;
94+
}
95+
96+
.bulletList {
97+
composes: presentationList;
9298
font-size: clamp(1rem, 2vw, 1.2em);
9399
line-height: 1.6;
94-
margin: 0;
95-
max-width: 90%;
96-
margin-left: auto;
97-
margin-right: auto;
98-
display: flex;
99-
flex-direction: column;
100-
justify-content: center;
101100
}
102101

103102
.bulletList li {
@@ -109,6 +108,7 @@
109108
display: flex !important;
110109
flex-direction: column;
111110
justify-content: center;
111+
align-self: stretch;
112112
}
113113

114114
.codeBlock {
@@ -313,18 +313,9 @@
313313
}
314314

315315
.takeawayList {
316-
text-align: left;
316+
composes: presentationList;
317317
font-size: clamp(0.9rem, 1.8vw, 1.1em);
318318
line-height: 1.6;
319-
margin: 0;
320-
list-style: none;
321-
padding: 0;
322-
max-width: 90%;
323-
margin-left: auto;
324-
margin-right: auto;
325-
display: flex;
326-
flex-direction: column;
327-
justify-content: center;
328319
}
329320

330321
.takeawayList li {
@@ -593,6 +584,7 @@
593584
> *:not(h1):not(h2):not(.slideCaption):not(.subtitle) {
594585
flex-grow: 1;
595586
min-height: 0;
587+
margin-top: 0.5em;
596588
}
597589

598590
/* Caption area - fixed at bottom when present */

0 commit comments

Comments
 (0)