Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Floating image design 1 #261

Merged
merged 4 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions blocks/floating-images/design-1.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
.design-1 .block.floating-images > div {
background-color: var(--white);
}

.design-1 .block.floating-images .content h2 {
font-size: 2rem;
}

@media (min-width: 900px) {
.design-1 .block.floating-images .image {
margin-top: 4.375rem;
margin-right: 4.375rem;
}
}

@media (min-width: 1200px) {
.design-1 .block.floating-images .content h2 {
font-size: var(--heading-font-size-xxl);
}
}

/**
Theme Name: Traditional
*/
.design-1.traditional .block.floating-images .content h2 {
color: var(--primary-color);
}

.design-1.traditional .block.floating-images .content p {
color: var(--primary-color);
}

.design-1.traditional .block.floating-images .content a {
color: var(--primary-color);
border: 1px solid var(--primary-color);
margin-top: 1rem;
}

.design-1.traditional .block.floating-images .content a:hover {
background-color: var(--primary-color);
color: var(--primary-light);
}

@media (min-width: 900px) {
.design-1.traditional .with-border .block.floating-images .image {
box-shadow: var(--primary-color) 4.375rem -4.375rem;
}
}

/*
Theme Name: Black & White
*/
.design-1.black-white .block.floating-images .content h2 {
color: var(--black);
}

.design-1.black-white .block.floating-images .content p {
color: var(--black);
}

/* stylelint-disable-next-line no-descending-specificity */
.design-1.black-white .block.floating-images .content a {
color: var(--black);
border: 1px solid var(--black);
margin-top: 1rem;
}

.design-1.black-white .block.floating-images .content a:hover {
background-color: var(--black);
color: var(--white);
}

@media (min-width: 900px) {
.design-1.black-white .with-border .block.floating-images .image {
box-shadow: var(--black) 4.375rem -4.375rem;
}
}
12 changes: 12 additions & 0 deletions blocks/floating-images/floating-images.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* styles for the floating images auto block */
@import url('luxury-collection-template.css');
@import url('./design-1.css');

.block.floating-images {
margin-bottom: 5em;
Expand Down Expand Up @@ -60,6 +61,17 @@
line-height: var(--line-height-m);
}

.block.floating-images .content a {
color: var(--primary-color);
border: 1px solid var(--primary-color);
margin-top: 1rem;
}

.block.floating-images .content a:hover {
background-color: var(--primary-color);
color: var(--primary-light);
}

@media screen and (min-width: 900px) {
.block.floating-images > div {
flex-direction: row;
Expand Down
Loading