Skip to content

Commit

Permalink
latest
Browse files Browse the repository at this point in the history
  • Loading branch information
ASpiteri-BCGov committed Dec 13, 2024
1 parent 65a8f66 commit ec02b24
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 234 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"scripts": {
"update-version":[
" bash update-version.sh"
"bash update-version.sh"
],
"test-setup":[
"bash vendor/bcgov/wordpress-utils/bin/install-wp-tests.sh wordpress_test root 'rootpassword' 0.0.0.0 latest"
Expand Down
20 changes: 4 additions & 16 deletions dist/index-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -389,40 +389,28 @@
@media (max-width: 782px) {
.dswp-horizontal-card-img-1-to-3 img {
width: 100% !important;
border-radius: 8px 8px 0px 0px !important;
border-radius: 8px 8px 0 0 !important;
}
}
.dswp-horizontal-card-img-1-to-3 {
transition: box-shadow 0.3s ease-in;
gap: 0;
border-radius: 8px;
overflow: hidden;
border: 1px solid var(--dswp-surface-color-border-default) !important;
display: flex;
}
.dswp-horizontal-card-img-1-to-3:hover {
transition: box-shadow 0.5s ease-out;
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);
}
.dswp-horizontal-card-img-1-to-3 .wp-block-columns {
width: 100%;
}
.dswp-horizontal-card-img-1-to-3 .wp-block-column:first-child {
position: relative;
min-height: 384px;
}
.dswp-horizontal-card-img-1-to-3 .wp-block-column:first-child figure {
.dswp-horizontal-card-img-1-to-3 .wp-block-column figure {
margin: 0;
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 100%;
}
.dswp-horizontal-card-img-1-to-3 .wp-block-column:first-child img {
width: 100%;
height: 100%;
border-radius: 0 8px 8px 0;
background: var(--dswp-theme-gray-10);
.dswp-horizontal-card-img-1-to-3 .wp-block-column img {
-o-object-fit: cover;
object-fit: cover;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => 'edb8447c446a5b11d4d0');
<?php return array('dependencies' => array(), 'version' => '1c93ac8929e6033b38e3');
20 changes: 4 additions & 16 deletions dist/index.css

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

2 changes: 1 addition & 1 deletion dist/index.css.map

Large diffs are not rendered by default.

151 changes: 1 addition & 150 deletions dist/index.js

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

1 change: 0 additions & 1 deletion dist/index.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
@import "./block-overrides";
@import "./patterns/dswp-large-image-text";
@import "./patterns/dswp-icon-with-excerpt";
@import "./patterns/dswp-horizontal-card-img-1-to-3";
@import "./patterns/dswp-horizontal-card-img-1-to-3";
86 changes: 39 additions & 47 deletions src/styles/patterns/dswp-horizontal-card-img-1-to-3.scss
Original file line number Diff line number Diff line change
@@ -1,51 +1,43 @@
@media (max-width: $break-medium) {
.dswp-horizontal-card-img-1-to-3 {
img {
width: 100% !important;
border-radius: 8px 8px 0px 0px !important;
}
}

.dswp-horizontal-card-img-1-to-3 {

img {
width: 100% !important;
border-radius: 8px 8px 0 0 !important;
}
}
}

.dswp-horizontal-card-img-1-to-3 {
// Base styles
transition: box-shadow 0.3s ease-in;

&:hover {
transition: box-shadow 0.5s ease-out;
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);
}

gap: 0;
border-radius: 8px;
border: 1px solid var(--dswp-surface-color-border-default) !important;
display: flex;

.wp-block-columns {
width: 100%;
}

.wp-block-column:first-child {
position: relative;
min-height: 384px;

figure {
margin: 0;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

img {
width: 100%;
height: 100%;
border-radius: 8px 0 0 8px;
background: var(--dswp-theme-gray-10);
object-fit: cover;
}
}
}
// Base styles
transition: box-shadow 0.3s ease-in;

&:hover {
transition: box-shadow 0.5s ease-out;
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);
}

gap: 0;
border-radius: 8px;
overflow: hidden;
border: 1px solid var(--dswp-surface-color-border-default) !important;
display: flex;


.wp-block-column {

figure {
margin: 0;
top: 0;
left: 0;
height: 100%;
}

img {
object-fit: cover;
}
}
}

0 comments on commit ec02b24

Please sign in to comment.