Skip to content

Commit

Permalink
Global replace “--pf-v6-global--spacer” with “--pf-t--global--spacer”
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-phillips-18 committed Jul 26, 2024
1 parent d067079 commit 74111de
Show file tree
Hide file tree
Showing 26 changed files with 86 additions and 86 deletions.
2 changes: 1 addition & 1 deletion frontend/src/app/AboutDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const AboutDialog: React.FC<AboutDialogProps> = ({ onClose }) => {
</div>
{error ? (
<Alert
style={{ marginTop: 'var(--pf-v6-global--spacer--lg)' }}
style={{ marginTop: 'var(--pf-t--global--spacer--lg)' }}
variant="danger"
title="Problem loading product information"
>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ body,
border: 1px solid var(--pf-v6-global--BorderColor--100);
display: flex;
flex: 1;
margin: var(--pf-v6-global--spacer--md);
margin: var(--pf-t--global--spacer--md);
}

.pf-v6-c-app-launcher__group-title {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/GenericSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const GenericSidebar: React.FC<GenericSidebarProps> = ({
maxWidth,
}) => (
<Sidebar hasGutter>
<SidebarPanel variant="sticky" style={{ maxWidth, top: 'var(--pf-v6-global--spacer--md)' }}>
<SidebarPanel variant="sticky" style={{ maxWidth, top: 'var(--pf-t--global--spacer--md)' }}>
<JumpLinks
isVertical
label="Jump to section"
Expand All @@ -38,7 +38,7 @@ const GenericSidebar: React.FC<GenericSidebarProps> = ({
))}
</JumpLinks>
</SidebarPanel>
<SidebarContent style={{ paddingBottom: 'var(--pf-v6-global--spacer--lg)' }}>
<SidebarContent style={{ paddingBottom: 'var(--pf-t--global--spacer--lg)' }}>
{children}
</SidebarContent>
</Sidebar>
Expand Down
18 changes: 9 additions & 9 deletions frontend/src/components/MarkdownView.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
word-break: break-word;

&--with-padding {
padding-bottom: var(--pf-v6-global--spacer--md);
padding-bottom: var(--pf-t--global--spacer--md);

p {
margin-bottom: var(--pf-v6-global--spacer--sm);
margin-bottom: var(--pf-t--global--spacer--sm);
}
}

Expand All @@ -17,8 +17,8 @@
h6 {
font-family: var(--pf-v6-global--FontFamily--heading--sans-serif);
font-weight: var(--pf-v6-global--FontWeight--normal);
margin-top: var(--pf-v6-global--spacer--md);
margin-bottom: var(--pf-v6-global--spacer--sm);
margin-top: var(--pf-t--global--spacer--md);
margin-bottom: var(--pf-t--global--spacer--sm);
}

h1 {
Expand All @@ -37,21 +37,21 @@
h5,
h6 {
font-size: var(--pf-v6-global--FontSize--md);
margin-top: var(--pf-v6-global--spacer--sm);
margin-top: var(--pf-t--global--spacer--sm);
}

ul,
ol {
margin-top: 0;
margin-bottom: var(--pf-v6-global--spacer--sm);
margin-bottom: var(--pf-t--global--spacer--sm);
}

ul {
list-style: initial;
}

li {
margin-left: var(--pf-v6-global--spacer--lg);
margin-left: var(--pf-t--global--spacer--lg);
}

code,
Expand All @@ -69,8 +69,8 @@

pre {
display: block;
padding: var(--pf-v6-global--spacer--sm);
margin-bottom: var(--pf-v6-global--spacer--sm);
padding: var(--pf-t--global--spacer--sm);
margin-bottom: var(--pf-t--global--spacer--sm);
font-size: var(--pf-v6-global--FontSize--sm);
color: var(--pf-v6-global--Color--300);
word-break: break-all;
Expand Down
16 changes: 8 additions & 8 deletions frontend/src/components/OdhCard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@
}

&__partner-badge-container {
margin-top: calc(var(--pf-v6-global--spacer--sm) * -1);
margin-bottom: var(--pf-v6-global--spacer--sm);
margin-top: calc(var(--pf-t--global--spacer--sm) * -1);
margin-bottom: var(--pf-t--global--spacer--sm);
}

&__partner-badge {
background-color: var(--pf-v6-global--BackgroundColor--light-300);
border-color: var(--pf-v6-global--BorderColor--200);
border-style: solid;
border-width: 1px;
border-radius: var(--pf-v6-global--spacer--md);
border-radius: var(--pf-t--global--spacer--md);
font-size: var(--pf-v6-global--FontSize--xs);
font-weight: var(--pf-v6-global--FontWeight--normal);
margin-bottom: var(--pf-v6-global--spacer--sm);
padding: 0 var(--pf-v6-global--spacer--sm);
margin-bottom: var(--pf-t--global--spacer--sm);
padding: 0 var(--pf-t--global--spacer--sm);

&.m-hidden {
visibility: hidden;
Expand All @@ -46,14 +46,14 @@
align-items: center;

> svg {
margin-right: var(--pf-v6-global--spacer--xs);
margin-right: var(--pf-t--global--spacer--xs);
}
}
&.odh-m-beta {
color: var(--pf-v6-global--palette--gold-700);
background-color: var(--pf-v6-global--palette--gold-50);
border-color: var(--pf-v6-global--palette--gold-100);
padding: 0 var(--pf-v6-global--spacer--md);
padding: 0 var(--pf-t--global--spacer--md);
}
}

Expand Down Expand Up @@ -95,7 +95,7 @@
font-size: var(--pf-v6-global--FontSize--md);
padding: 0;
> svg {
margin-left: var(--pf-v6-global--spacer--xs);
margin-left: var(--pf-t--global--spacer--xs);
}
&.m-hidden {
visibility: hidden;
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/components/OdhListItem.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,20 @@
}

&__partner-badge-container {
margin-top: calc(var(--pf-v6-global--spacer--sm) * -1);
margin-bottom: var(--pf-v6-global--spacer--sm);
margin-top: calc(var(--pf-t--global--spacer--sm) * -1);
margin-bottom: var(--pf-t--global--spacer--sm);
}

&__partner-badge {
background-color: var(--pf-v6-global--BackgroundColor--light-300);
border-color: var(--pf-v6-global--BorderColor--200);
border-style: solid;
border-width: 1px;
border-radius: var(--pf-v6-global--spacer--md);
border-radius: var(--pf-t--global--spacer--md);
font-size: var(--pf-v6-global--FontSize--xs);
font-weight: var(--pf-v6-global--FontWeight--normal);
margin-bottom: var(--pf-v6-global--spacer--sm);
padding: 0 var(--pf-v6-global--spacer--sm);
margin-bottom: var(--pf-t--global--spacer--sm);
padding: 0 var(--pf-t--global--spacer--sm);
width: fit-content;

&.m-hidden {
Expand All @@ -70,7 +70,7 @@
align-items: center;

> svg {
margin-right: var(--pf-v6-global--spacer--xs);
margin-right: var(--pf-t--global--spacer--xs);
}
&.m-hidden {
display: none;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/SupportedAppTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const SupportedAppTitle: React.FC<SupportedAppTitleProps> = ({ odhApp, showProvi
icon={
<img
data-testid="tooltip-img"
style={{ marginLeft: 'var(--pf-v6-global--spacer--xs)' }}
style={{ marginLeft: 'var(--pf-t--global--spacer--xs)' }}
src="../images/CheckStar.svg"
alt={`${ODH_PRODUCT_NAME} certified and supported`}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const DashboardPopupIconButton = ({
}: DashboardPopupIconButtonProps): React.JSX.Element => (
<Button
icon={
<Icon isInline style={{ marginLeft: 'var(--pf-v6-global--spacer--xs)' }}>
<Icon isInline style={{ marginLeft: 'var(--pf-t--global--spacer--xs)' }}>
{icon}
</Icon>
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/concepts/design/CollapsibleSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const CollapsibleSection: React.FC<CollapsibleSectionProps> = ({
style={
(open ?? innerOpen) || showChildrenWhenClosed
? {
marginBottom: 'var(--pf-v6-global--spacer--md)',
marginBottom: 'var(--pf-t--global--spacer--md)',
}
: undefined
}
Expand Down
10 changes: 5 additions & 5 deletions frontend/src/concepts/design/DividedGallery.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@
&__border {
width: 2px;
position: absolute;
top: var(--pf-v6-global--spacer--md);
bottom: var(--pf-v6-global--spacer--md);
top: var(--pf-t--global--spacer--md);
bottom: var(--pf-t--global--spacer--md);
left: 0;
background-color: white;
content: ' ';
}
&__item {
border-left: 1px solid var(--pf-v6-global--BorderColor--100);
padding: 0 var(--pf-v6-global--spacer--xl);
margin: var(--pf-v6-global--spacer--md) 0;
padding: 0 var(--pf-t--global--spacer--xl);
margin: var(--pf-t--global--spacer--md) 0;
}
.pf-v6-l-gallery {
position: relative;
}
&__close {
position: absolute;
top: var(--pf-v6-global--spacer--xs);
top: var(--pf-t--global--spacer--xs);
right: 0;
}
}
4 changes: 2 additions & 2 deletions frontend/src/concepts/design/ScrolledGallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const ScrolledGallery: React.FC<ScrolledGalleryProps> = ({
display: 'grid',
gridAutoFlow: 'column',
overflowY: 'auto',
gap: 'var(--pf-v6-global--spacer--md)',
paddingBottom: 'var(--pf-v6-global--spacer--sm)',
gap: 'var(--pf-t--global--spacer--md)',
paddingBottom: 'var(--pf-t--global--spacer--sm)',
}}
{...rest}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const RoleBindingPermissionsTableSection: React.FC<RoleBindingPermissionsTableSe
icon={<PlusCircleIcon />}
iconPosition="left"
onClick={() => setAddField(true)}
style={{ paddingLeft: 'var(--pf-v6-global--spacer--lg)' }}
style={{ paddingLeft: 'var(--pf-t--global--spacer--lg)' }}
>
{subjectKind === RoleBindingPermissionsRBType.USER ? 'Add user' : 'Add group'}
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const WorkloadResourceMetricsTableRow: React.FC<WorkloadResourceMetricsTableRowP
return (
<Tr key={workload.metadata?.uid}>
<Td dataLabel="Name">{getWorkloadName(workload)}</Td>
<Td dataLabel="CPU usage (cores)" style={{ paddingRight: 'var(--pf-v6-global--spacer--xl)' }}>
<Td dataLabel="CPU usage (cores)" style={{ paddingRight: 'var(--pf-t--global--spacer--xl)' }}>
{' '}
<WorkloadResourceUsageBar
showData={inActiveState || (usage.cpuCoresUsed || 0) > 0}
Expand All @@ -43,7 +43,7 @@ const WorkloadResourceMetricsTableRow: React.FC<WorkloadResourceMetricsTableRowP
</Td>
<Td
dataLabel="Memory usage (GiB)"
style={{ paddingRight: 'var(--pf-v6-global--spacer--xl)' }}
style={{ paddingRight: 'var(--pf-t--global--spacer--xl)' }}
>
{' '}
<WorkloadResourceUsageBar
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/exploreApplication/EnableModal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
display: flex;
align-items: center;
> svg {
margin-right: var(--pf-v6-global--spacer--sm);
margin-right: var(--pf-t--global--spacer--sm);
}
}
&__enable-link {
margin-top: var(--pf-v6-global--spacer--md);
margin-top: var(--pf-t--global--spacer--md);
}
.pf-v6-c-alert.m-no-alert-icon {
.pf-v6-c-alert__icon {
Expand Down
20 changes: 10 additions & 10 deletions frontend/src/pages/learningCenter/LearningCenter.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.odh-learning-paths {
&__filter-panel {
padding-top: var(--pf-v6-global--spacer--md);
padding-top: var(--pf-t--global--spacer--md);
width: 240px;
&.m-is-collapsible {
background: var(--pf-v6-global--BackgroundColor--light-100);
Expand All @@ -20,17 +20,17 @@
&__collapse-button {
position: absolute;
right: 0;
top: var(--pf-v6-global--spacer--sm);
top: var(--pf-t--global--spacer--sm);
z-index: var(--pf-v6-global--ZIndex--md);
}
.vertical-tabs-pf-tab > a {
font-size: var(--pf-v6-global--FontSize--sm);
}
.vertical-tabs-pf-tab:first-of-type {
margin-bottom: var(--pf-v6-global--spacer--lg);
margin-bottom: var(--pf-t--global--spacer--lg);
}
.filter-panel-pf-category {
padding-left: var(--pf-v6-global--spacer--md);
padding-left: var(--pf-t--global--spacer--md);
.filter-panel-pf-category-title {
font-size: var(--pf-v6-global--FontSize--sm);
}
Expand All @@ -46,30 +46,30 @@
display: flex;
flex: 1;
flex-direction: column;
padding: var(--pf-v6-global--spacer--md);
padding: var(--pf-t--global--spacer--md);

&__list-view {
padding: 0 0 var(--pf-v6-global--spacer--md) 0;
padding: 0 0 var(--pf-t--global--spacer--md) 0;
}
}
&__toolbar {
padding-top: 0;
}
&__list-view {
display: grid;
column-gap: var(--pf-v6-global--spacer--md);
row-gap: var(--pf-v6-global--spacer--md);
column-gap: var(--pf-t--global--spacer--md);
row-gap: var(--pf-t--global--spacer--md);
grid-template-columns: 20px fit-content(50%) fit-content(20%) 110px auto auto;
&.m-odh-size-md {
grid-template-columns: auto fit-content(50%) fit-content(20%) auto 0 auto;
.odh-list-item__link {
margin-left: calc(-1 * var(--pf-v6-global--spacer--md));
margin-left: calc(-1 * var(--pf-t--global--spacer--md));
}
}
&.m-odh-size-sm {
grid-template-columns: auto fit-content(50%) fit-content(20%) 0 0 auto;
.odh-list-item__link {
margin-left: calc(-2 * var(--pf-v6-global--spacer--md));
margin-left: calc(-2 * var(--pf-t--global--spacer--md));
}
}
&__header {
Expand Down
Loading

0 comments on commit 74111de

Please sign in to comment.