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

tab-changes #3

Merged
merged 4 commits into from
Sep 25, 2023
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
285 changes: 142 additions & 143 deletions blocks/carousel/card.css
Original file line number Diff line number Diff line change
@@ -1,148 +1,147 @@
main .card {
height: 100%;
background: var(--background-color);
margin: 0;
position: relative;
box-shadow: 0 1px 15px rgba(0 0 0 / 40%);
transition: all .3s;
display: flex;
align-items: stretch;
align-content: stretch;
width: 100%;
flex-direction: column;
justify-content: space-between;
margin-bottom: 30px;
}

main .carousel .card {
margin: 0;
}

main .card:hover {
z-index: 1;
transform: scale(1.07);
transition: all .3s;
}

height: 100%;
background: var(--background-color);
margin: 0;
position: relative;
box-shadow: 0 1px 15px rgba(0 0 0 / 40%);
transition: all .3s;
display: flex;
align-items: stretch;
align-content: stretch;
width: 100%;
flex-direction: column;
justify-content: space-between;
margin-bottom: 30px;
}

main .carousel .card {
margin: 0;
}

main .card:hover {
z-index: 1;
transform: scale(1.07);
transition: all .3s;
}

main .card-thumb {
height: 200px;
min-height: 200px;
overflow: hidden;
}

main .card-thumb a {
display: block;
}

main .card-thumb img {
height: 200px;
width: 100%;
min-width: auto;
object-fit: cover;
transition: all .5s ease-in-out;
}

main .card-caption {
display: flex;
flex-direction: column;
padding: 10px 20px 20px;
color: #12141f;
height: 100%;
min-height: auto;
}

main .card-caption h3 {
font-size: 22px;
font-weight: normal;
text-align: left;
min-height: 49px;
margin-top: 14px;
margin-bottom: 15px;
}

main .card-caption h3 a {
color: inherit;
}

main .card-caption .card-description {
font-size: var(--body-font-size-s);
text-align: left;
margin-bottom: 10px;
margin-top: 0;
}

main .card-caption .c2a {
text-align: center;
margin-top: auto;
}

main .card-caption .button.primary {
border: 1px solid var(--background-color-green);
color: var(--text-color);
padding-bottom: 10px;
padding-top: 11px;
background: none;
border-radius: 0;
font-size: 18px;
max-width: unset;
width: unset;
white-space: break-spaces;
word-break: break-word;
}

main .card-caption .c2a .compare-button {
color: var(--text-light-gray);
letter-spacing: .5px;
align-items: center;
float: right;
display: none;
}

.product-finder .card-caption .c2a .compare-button,
.product-compare main .card-caption .c2a .compare-button {
display: flex;
}

main .card-caption .c2a .compare-checkbox {
width: 18px;
height: 18px;
margin-left: 10px;
vertical-align: middle;
border: 2px solid var(--dark-border-color-gray);
cursor: pointer;
}

main .card-caption .c2a .compare-checkbox.selected {
background: var(--background-color-green);
border-color: var(--background-color-green);
}

main .card-type {
display: none;
}

main .card a .icon.icon-chevron-right-outline {
margin-left: 5px;
vertical-align: text-top;
}

main .card a .icon.icon-chevron-right-outline svg {
height: 18px;
width: 18px;
}

main .card a .icon.icon-chevron-right-outline svg path {
stroke-width: 15;
}

@media only screen and (max-width: 767px) {
main .card-thumb {
height: 200px;
min-height: 200px;
overflow: hidden;
height: 150px;
min-height: 150px;
}

main .card-thumb a {
display: block;
}


main .card-thumb img {
height: 200px;
width: 100%;
min-width: auto;
object-fit: cover;
transition: all .5s ease-in-out;
}

main .card-caption {
display: flex;
flex-direction: column;
padding: 10px 20px 20px;
color: #12141f;
height: 100%;
min-height: auto;
}

main .card-caption h3 {
font-size: 22px;
font-weight: normal;
text-align: left;
min-height: 49px;
margin-top: 14px;
margin-bottom: 15px;
}

main .card-caption h3 a {
color: inherit;
}

main .card-caption .card-description {
font-size: var(--body-font-size-s);
text-align: left;
margin-bottom: 10px;
margin-top: 0;
}

main .card-caption .c2a {
text-align: center;
margin-top: auto;
}

main .card-caption .button.primary {
border: 1px solid var(--background-color-green);
color: var(--text-color);
padding-bottom: 10px;
padding-top: 11px;
background: none;
border-radius: 0;
font-size: 18px;
max-width: unset;
width: unset;
white-space: break-spaces;
word-break: break-word;
}

main .card-caption .c2a .compare-button {
color: var(--text-light-gray);
letter-spacing: .5px;
align-items: center;
float: right;
display: none;
}

.product-finder .card-caption .c2a .compare-button,
.product-compare main .card-caption .c2a .compare-button {
display: flex;
}

main .card-caption .c2a .compare-checkbox {
width: 18px;
height: 18px;
margin-left: 10px;
vertical-align: middle;
border: 2px solid var(--dark-border-color-gray);
cursor: pointer;
}

main .card-caption .c2a .compare-checkbox.selected {
background: var(--background-color-green);
border-color: var(--background-color-green);
}

main .card-type {
display: none;
}

main .card a .icon.icon-chevron-right-outline {
margin-left: 5px;
vertical-align: text-top;
}

main .card a .icon.icon-chevron-right-outline svg {
height: 18px;
width: 18px;
}

main .card a .icon.icon-chevron-right-outline svg path {
stroke-width: 15;
}

@media only screen and (max-width: 767px) {
main .card-thumb {
height: 150px;
min-height: 150px;
}

main .card-thumb img {
height: 150px;
}
height: 150px;
}
}
Loading
Loading