Skip to content

Commit

Permalink
Refactor: Apply BEM namings
Browse files Browse the repository at this point in the history
  • Loading branch information
aleixhub committed Jan 10, 2023
1 parent 03bee7d commit 0b62008
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions catalog/ui/src/app/Workshop/WorkshopContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,22 @@ const WorkshopContent: React.FC<{
}

return (
<PageSection variant={PageSectionVariants.light} className="workshop-access" padding={{ default: 'noPadding' }}>
<PageSection variant={PageSectionVariants.light} className="workshop-content" padding={{ default: 'noPadding' }}>
<Hero image={heroImg}>
<Title headingLevel="h1" size="xl" style={{ fontSize: '40px' }}>
<b>{displayName}</b>
</Title>
</Hero>
<Stack hasGutter className="workshop-access__content">
<Stack hasGutter className="workshop-content__wrapper">
<StackItem>
<Bullseye>
<Title headingLevel="h3" className="workshop-access__title">
<Title headingLevel="h3" className="workshop-content__title">
Instructions for {displayName}
</Title>
</Bullseye>
</StackItem>
{description ? (
<StackItem className="workshop-access__description">
<StackItem className="workshop-content__description">
<div>
{renderEditor ? (
<EditorViewer value={description} />
Expand Down
10 changes: 5 additions & 5 deletions catalog/ui/src/app/Workshop/workshop-content.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
.workshop-access .pf-c-description-list__group {
.workshop-content .pf-c-description-list__group {
padding: var(--pf-global--spacer--md);
background-color: var(--pf-global--palette--white);
border-radius: 4px;
box-shadow: 0 1px 5px 0 rgb(3 3 3 / 12%), 0 0 1px 0 rgb(3 3 3 / 6%);
}
.workshop-access__title,
.workshop-access__description {
.workshop-content__title,
.workshop-content__description {
text-align: center;
padding-bottom: var(--pf-global--spacer--md);
line-height: 1;
}
.workshop-access__content {
.workshop-content__wrapper {
width: 1100px;
height: auto;
margin: 0 auto;
margin: 0 auto var(--pf-global--spacer--xl);
padding: var(--pf-global--spacer--lg) var(--pf-global--spacer--md);
}

0 comments on commit 0b62008

Please sign in to comment.