Skip to content

Commit

Permalink
fix: enable drop cap styling
Browse files Browse the repository at this point in the history
  • Loading branch information
elistone committed Dec 13, 2024
1 parent 67ac1fb commit f75d281
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const Mixed = {
args: {
markup: `
<h1>Heading 1</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p class="has-drop-cap">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<h2>Heading 2</h2>
<p>Lorem ipsum <a href="/">dolor sit</a> amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<ul>
Expand Down
8 changes: 6 additions & 2 deletions packages/ui/src/components/Routes/Page.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ import { image } from '../../helpers/image';
import { AccordionItemText } from '../Organisms/PageContent/BlockAccordion.stories';
import { Default as BlockImageTeasers } from '../Organisms/PageContent/BlockImageTeasers.stories';
import { ImageRight } from '../Organisms/PageContent/BlockImageWithText.stories';
import { Mixed, Paragraph } from '../Organisms/PageContent/BlockMarkup.stories';
import {
InlineStyles,
Mixed,
Paragraph,
} from '../Organisms/PageContent/BlockMarkup.stories';
import { WithCaption } from '../Organisms/PageContent/BlockMedia.stories';
import { Default as FrameStory } from './Frame.stories';
import { Page } from './Page';
Expand Down Expand Up @@ -69,7 +73,7 @@ export const Default = {
},
{
__typename: 'BlockMarkup',
...Paragraph.args,
...InlineStyles.args,
},
{
__typename: 'BlockImageWithText',
Expand Down
4 changes: 4 additions & 0 deletions packages/ui/src/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
content: '' !important;
}

.prose p.has-drop-cap:first-letter {
@apply font-bold text-8xl float-left mr-4 ml-1 mb-2 mt-0;
}

/*
Selects the .block-background-image-cards only when it is the direct
sibling of .default-hero section.
Expand Down

0 comments on commit f75d281

Please sign in to comment.