💄 Fix layout of feature overview

This commit is contained in:
Philipp Stracker 2025-01-24 16:29:03 +01:00
parent 105202f833
commit 95bdf8bcc7
No known key found for this signature in database
3 changed files with 17 additions and 24 deletions

View file

@ -29,7 +29,7 @@
.ppcp-r-title-badge {
text-transform: none;
margin-left: 6px;
margin-left: 8px;
}
}

View file

@ -86,33 +86,26 @@
}
}
.ppcp-r-feature-item {
padding-top: 32px;
border-top: 1px solid $color-gray-400;
.ppcp-r-tab-overview-features {
--block-header-gap: 12px;
}
&__title {
@include font(16, 20, 600);
color: $color-black;
display: block;
margin: 0 0 8px 0;
}
.ppcp-r-tab-overview-help {
--block-header-gap: 8px;
}
&__description {
@include font(14, 20, 400);
color: $color-gray-800;
margin: 0 0 18px 0;
}
&:not(:last-child) {
padding-bottom: 32px;
}
&__buttons {
.ppcp-r-settings-block__feature {
.ppcp--action-buttons {
display: flex;
gap: 18px;
.components-button.is-tertiary {
padding-left: 0;
padding-right: 0;
}
}
&__notes {
.ppcp--item-notes {
display: flex;
flex-direction: column;

View file

@ -12,7 +12,7 @@ const FeatureSettingsBlock = ( { title, description, ...props } ) => {
}
return (
<span className="ppcp-r-feature-item__notes">
<span className="ppcp--item-notes">
{ notes.map( ( note, index ) => (
<span key={ index }>{ note }</span>
) ) }
@ -61,7 +61,7 @@ const FeatureSettingsBlock = ( { title, description, ...props } ) => {
</Description>
</Header>
<Action>
<div className="ppcp-r-feature-item__buttons">
<div className="ppcp--action-buttons">
{ props.actionProps?.buttons.map(
( {
class: className,