Skip to content

Commit

Permalink
Merge pull request #49 from craftcms/bugfix/proxy-element-card-styles
Browse files Browse the repository at this point in the history
fix .pec-footer's position
  • Loading branch information
i-just authored Nov 19, 2024
2 parents eb1d754 + 5e796bf commit 87e6f00
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 20 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Fixed getting a default price for a Product element. ([#40](https://github.com/craftcms/stripe/pull/40))
- Fixed an issue that could occur when installing or running migration on MariaDB. ([#51](https://github.com/craftcms/stripe/issues/51))
- Fixed a styling issue with Stripe’s element’s meta card footer.

## 1.2.0.2 - 2024-11-08

Expand Down
2 changes: 1 addition & 1 deletion src/web/assets/stripecp/dist/css/stripecp.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/web/assets/stripecp/dist/css/stripecp.css.map

Large diffs are not rendered by default.

37 changes: 19 additions & 18 deletions src/web/assets/stripecp/src/scss/stripecp.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,28 @@
}

.proxy-element-card {
position: relative;
padding-top: 15px;
padding-bottom: 40px;
display: grid;
padding-inline: 0;
padding-block-start: var(--spacing);

.pec-header {
position: relative;
display: block;
grid-column-start: 1;
grid-column-end: 1;
color: $textColor;
width: 100%;
padding-inline: var(--padding);
display: flex;
justify-content: space-between;
align-items: baseline;

&:hover {
color: $textColor;
text-decoration: none;
}

.pec-external-icon {
position: absolute;
top: 50%;
@include right(0px);
transform: translate(-50%, -50%);
color: $textColor;
margin-inline-end: 6px;
}

&:hover {
Expand All @@ -45,7 +46,7 @@
}

.pec-title {
margin-bottom: 0;
margin-block-end: 0;
}

.pec-subtitle {
Expand All @@ -54,21 +55,26 @@
}

.meta {
grid-column-start: 1;
grid-column-end: 1;
margin-inline: 0;

ul.elements {
width: 100%;
}
}

.pec-footer {
position: absolute;
bottom: 0;
grid-column-start: 1;
grid-column-end: 1;
width: 100%;
@include right(0);
font-size: 12px;
background-color: $grey100;
border-bottom-left-radius: $largeBorderRadius;
border-bottom-right-radius: $largeBorderRadius;
padding: 10px 24px;
padding-block: 10px;
padding-inline: var(--padding);

a {
color: $textColor;
Expand All @@ -87,11 +93,6 @@
transform: translate(-50%, -50%);
}
}

hr {
margin-left: var(--neg-padding);
margin-right: var(--neg-padding);
}
}

#subscriptions-vue-admin-table {
Expand Down

0 comments on commit 87e6f00

Please sign in to comment.