Skip to content

Commit dd45861

Browse files
Card #32
1 parent 5400d1a commit dd45861

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

assets/scss/blocks/core/cover.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
.wp-block-button {
2222

2323
.wp-block-button__link {
24-
border-radius: 6px !important; /* stylelint-disable-line declaration-no-important */
24+
border-radius: 6px;
2525
}
2626
}
2727
}

patterns/card-32.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
/**
3+
* Title: Card #32
4+
* Slug: wdsbt/card-32
5+
* Categories: Cards
6+
*
7+
* @package wdsbt
8+
*/
9+
10+
?>
11+
<!-- wp:group {"metadata":{"name":"Card #32","categories":["Cards"],"patternName":"wdsbt/card-32"},"layout":{"type":"default"}} -->
12+
<div class="wp-block-group"><!-- wp:cover {"useFeaturedImage":true,"dimRatio":50,"overlayColor":"black-alpha-50","isUserOverlayColor":true,"contentPosition":"center left","style":{"border":{"radius":"10px"},"dimensions":{"aspectRatio":"4/3"},"shadow":"var:preset|shadow|light-400","elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"left":"1.5rem","right":"1.5rem","top":"1.5rem","bottom":"1.5rem"},"blockGap":"0"}},"textColor":"white","layout":{"type":"default"}} -->
13+
<div class="wp-block-cover has-custom-content-position is-position-center-left has-white-color has-text-color has-link-color" style="border-radius:10px;padding-top:1.5rem;padding-right:1.5rem;padding-bottom:1.5rem;padding-left:1.5rem;box-shadow:var(--wp--preset--shadow--light-400)"><span aria-hidden="true" class="wp-block-cover__background has-black-alpha-50-background-color has-background-dim"></span>
14+
<div class="wp-block-cover__inner-container"><!-- wp:group {"style":{"spacing":{"margin":{"top":"0"},"blockGap":"1rem"}},"layout":{"type":"flex","orientation":"vertical","verticalAlignment":"bottom"}} -->
15+
<div class="wp-block-group" style="margin-top:0"><!-- wp:post-title {"style":{"typography":{"fontStyle":"normal","fontWeight":"600","lineHeight":"1.27"}},"fontSize":"l"} /-->
16+
17+
<!-- wp:buttons {"style":{"spacing":{"margin":{"top":"0"}}}} -->
18+
<div class="wp-block-buttons" style="margin-top:0"><!-- wp:button {"style":{"border":{"radius":"24px"}}} -->
19+
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" style="border-radius:24px"><?php esc_html_e( 'Button', 'wdsbt' ); ?></a></div>
20+
<!-- /wp:button -->
21+
</div>
22+
<!-- /wp:buttons -->
23+
</div>
24+
<!-- /wp:group -->
25+
</div>
26+
</div>
27+
<!-- /wp:cover -->
28+
</div>
29+
<!-- /wp:group -->

0 commit comments

Comments
 (0)