0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Updated the product card classes

refs https://github.com/TryGhost/Team/issues/1245

- Removes dependency from the product card css to other cards' css
This commit is contained in:
Thibaut Patel 2021-12-13 16:13:57 +01:00
parent 8c52e001c1
commit 2800f538bc
3 changed files with 25 additions and 12 deletions

View file

@ -53,7 +53,7 @@
} }
.kg-product-card-description p:last-of-type { .kg-product-card-description p:last-of-type {
margin-bottom: 6px; margin-bottom: 6px;
} }
.kg-product-card-description ul { .kg-product-card-description ul {
@ -68,11 +68,6 @@
margin-top: 0.2em; margin-top: 0.2em;
} }
.kg-product-card-button {
grid-column: 1 / 3;
width: 100%;
}
.kg-product-card-rating { .kg-product-card-rating {
display: flex; display: flex;
align-items: center; align-items: center;
@ -113,4 +108,22 @@
.kg-product-card-button { .kg-product-card-button {
justify-content: center; justify-content: center;
} grid-column: 1 / 3;
width: 100%;
display: flex;
position: static;
align-items: center;
padding: 0 1.2em;
height: 2.4em;
line-height: 1em;
font-size: 0.95em;
font-weight: 600;
text-decoration: none;
border-radius: 5px;
transition: opacity 0.2s ease-in-out;
}
.kg-product-card-btn-accent {
background-color: var(--ghost-accent-color);
color: #fff;
}

View file

@ -73,7 +73,7 @@
"@tryghost/job-manager": "0.8.16", "@tryghost/job-manager": "0.8.16",
"@tryghost/kg-card-factory": "3.1.0", "@tryghost/kg-card-factory": "3.1.0",
"@tryghost/kg-default-atoms": "3.1.0", "@tryghost/kg-default-atoms": "3.1.0",
"@tryghost/kg-default-cards": "5.14.0", "@tryghost/kg-default-cards": "5.14.2",
"@tryghost/kg-markdown-html-renderer": "5.1.0", "@tryghost/kg-markdown-html-renderer": "5.1.0",
"@tryghost/kg-mobiledoc-html-renderer": "5.3.1", "@tryghost/kg-mobiledoc-html-renderer": "5.3.1",
"@tryghost/limit-service": "1.0.6", "@tryghost/limit-service": "1.0.6",

View file

@ -1503,10 +1503,10 @@
resolved "https://registry.npmjs.org/@tryghost/kg-default-atoms/-/kg-default-atoms-3.1.0.tgz" resolved "https://registry.npmjs.org/@tryghost/kg-default-atoms/-/kg-default-atoms-3.1.0.tgz"
integrity sha512-FfROzVgqJWqJ7cVdS9dcALz7rnzNfV8zcrymAJrDTHDsqzAdMfSLe1tNQRm8zas9pyZLsD8zBGmLxG9dr4WFSA== integrity sha512-FfROzVgqJWqJ7cVdS9dcALz7rnzNfV8zcrymAJrDTHDsqzAdMfSLe1tNQRm8zas9pyZLsD8zBGmLxG9dr4WFSA==
"@tryghost/kg-default-cards@5.14.0": "@tryghost/kg-default-cards@5.14.2":
version "5.14.0" version "5.14.2"
resolved "https://registry.yarnpkg.com/@tryghost/kg-default-cards/-/kg-default-cards-5.14.0.tgz#87cd20559b8ae682aef2ea3702cc819bf3ef5779" resolved "https://registry.yarnpkg.com/@tryghost/kg-default-cards/-/kg-default-cards-5.14.2.tgz#d7b1fb88089c368cd6ee023f2c2df52c7f0bca31"
integrity sha512-1mKYM2xXBGpGxRQeI9P1cHPfqy2d+XK2gdE7/BNYVIwj/02P2pMclG3cZf8iA0XXGyudy4AKhQJeJiuF8uwetg== integrity sha512-Y4ZTIeWC6qhADjY0tUJQNaLP37TJ2hc5uQgV/TYyLTWK8HXy+XbgqylEPoWZLMn5O+dlx917BfERWbJdJ/ashQ==
dependencies: dependencies:
"@tryghost/kg-markdown-html-renderer" "^5.1.0" "@tryghost/kg-markdown-html-renderer" "^5.1.0"
"@tryghost/url-utils" "^2.0.0" "@tryghost/url-utils" "^2.0.0"