-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/dswp 55 horizontal card pattern (#37)
* Added card-with-hyperlink-list pattern * fixed version * fixes as per PR comment * added horizontal card pattern * changelog * PR comments * build files
- Loading branch information
1 parent
a7a572a
commit 7e16b7e
Showing
14 changed files
with
112 additions
and
946 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,7 @@ | |
"npm run fix:js", | ||
"npm run fix:css", | ||
"npm run test", | ||
"npm run build", | ||
"composer test" | ||
], | ||
"phpcs": [ | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<?php return array('dependencies' => array(), 'version' => '54a72f307dce81e3a752'); | ||
<?php return array('dependencies' => array(), 'version' => '0b4ac19c218a899269ac'); |
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
/** | ||
* Title: DSWP Horizontal Card | ||
* Slug: design-system-wordpress-theme/dswp-horizontal-card | ||
* Categories: text | ||
* | ||
* @package Design-System-WordPress-Theme | ||
*/ | ||
?> | ||
|
||
<!-- wp:group {"templateLock":"all","lock":{"move":true,"remove":true},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group"><!-- wp:columns {"templateLock":"all","lock":{"move":true,"remove":true},"align":"wide","className":"dswp-large-image-text is-style-box-shadow-on-hover","style":{"spacing":{"margin":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"},"padding":{"top":"0","bottom":"0"}},"border":{"width":"0px","style":"none"}}} --> | ||
<div class="wp-block-columns alignwide dswp-large-image-text is-style-box-shadow-on-hover" style="border-style:none;border-width:0px;margin-top:var(--wp--preset--spacing--40);margin-bottom:var(--wp--preset--spacing--40);padding-top:0;padding-bottom:0"><!-- wp:column {"verticalAlignment":"top","width":"26%","templateLock":"all","lock":{"move":true,"remove":true},"style":{"spacing":{"padding":{"top":"0","bottom":"0","left":"0","right":"0"}}},"layout":{"type":"default"}} --> | ||
<div class="wp-block-column is-vertically-aligned-top" style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;flex-basis:26%"><!-- wp:image {"aspectRatio":"1","scale":"contain"} --> | ||
<figure class="wp-block-image"><img alt="" style="aspect-ratio:1;object-fit:contain"/></figure> | ||
<!-- /wp:image --></div> | ||
<!-- /wp:column --> | ||
|
||
<!-- wp:column {"verticalAlignment":"stretch","width":"74%","style":{"spacing":{"padding":{"top":"0","bottom":"0","right":"var:preset|spacing|40","left":"var:preset|spacing|40"}}},"layout":{"type":"default"}} --> | ||
<div class="wp-block-column is-vertically-aligned-stretch" style="padding-top:0;padding-right:var(--wp--preset--spacing--40);padding-bottom:0;padding-left:var(--wp--preset--spacing--40);flex-basis:74%"><!-- wp:spacer {"height":"1rem"} --> | ||
<div style="height:1rem" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
|
||
<!-- wp:heading {"level":5,"style":{"spacing":{"margin":{"top":"0","bottom":"0"}}}} --> | ||
<h5 class="wp-block-heading" style="margin-top:0;margin-bottom:0">Neque porro quisquam</h5> | ||
<!-- /wp:heading --> | ||
|
||
<!-- wp:paragraph --> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi bibendum rhoncus aliquam. Morbi at libero pellentesque, fermentum erat at, tincidunt nunc. Proin pulvinar turpis vel turpis maximus fermentum. Phasellus ut sagittis nisi, vel accumsan velit.</p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:spacer {"height":"0.5rem"} --> | ||
<div style="height:0.5rem" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
|
||
<!-- wp:paragraph {"style":{"spacing":{"padding":{"top":"0","bottom":"0"}}}} --> | ||
<p style="padding-top:0;padding-bottom:0"><a href="https://localhost/ticorp/test2/" data-type="page" data-id="15259">Neque porro quisquan</a></p> | ||
<!-- /wp:paragraph --></div> | ||
<!-- /wp:column --></div> | ||
<!-- /wp:columns --></div> | ||
<!-- /wp:group --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,6 @@ | |
} | ||
} | ||
|
||
|
||
.is-style-heading-callout { | ||
position: relative; | ||
margin-top: 3rem; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
@media (max-width: $break-medium) { | ||
|
||
.dswp-large-image-text { | ||
|
||
img { | ||
width: 100% !important; | ||
|
||
// Apply padding only for the mobile range | ||
@media (min-width: $break-mobile) { | ||
padding: 4rem !important; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.dswp-large-image-text { | ||
|
||
// Base styles | ||
transition: box-shadow 0.3s ease-in; // Transition for the default state | ||
|
||
&:hover { | ||
transition: box-shadow 0.5s ease-out; // Transition for hover state | ||
box-shadow: | ||
0 1.2px 3.6px 0 rgba(0, 0, 0, 0.1), | ||
0 6.4px 14.4px 0 rgba(0, 0, 0, 0.13); // New box-shadow on hover | ||
} | ||
|
||
gap: 0; | ||
border-radius: 8px; | ||
border: 1px solid var(--dswp-surface-color-border-default) !important; | ||
|
||
img { | ||
height: 222px; | ||
border-radius: 8px 0 0 8px; | ||
padding: 1rem; | ||
background: var(--dswp-theme-gray-10); | ||
} | ||
|
||
:where(figure) { | ||
margin: 0 0 0; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters