Skip to content

Commit

Permalink
Merge pull request #47 from techdivision/SPIN-146
Browse files Browse the repository at this point in the history
SPIN-146 // Bugfixes zum Launch
  • Loading branch information
mbiberger authored Sep 17, 2024
2 parents c9d3342 + 7e34760 commit 869cb6f
Show file tree
Hide file tree
Showing 9 changed files with 420 additions and 361 deletions.
140 changes: 70 additions & 70 deletions blocks/carousel/carousel.css
Original file line number Diff line number Diff line change
@@ -1,121 +1,121 @@
main .carousel-wrapper {
position: relative;
position: relative;
}

main .carousel {
display: flex;
scroll-snap-type: x mandatory;
overflow-x: scroll;
overflow-y: hidden;
scroll-behavior: smooth;
box-shadow: var(--box-shadow-2);
margin: 32px 0;
background-color: var(--background-color-reverse);
display: flex;
scroll-snap-type: x mandatory;
overflow-x: scroll;
overflow-y: hidden;
scroll-behavior: smooth;
box-shadow: var(--box-shadow-2);
margin: 32px 0;
background-color: var(--background-color-reverse);
}

main .carousel picture {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}

main .carousel img {
object-fit: cover;
width: 100%;
height: 100%;
object-fit: cover;
width: 100%;
height: 100%;
}

main .carousel-image picture:not(:only-child) {
display: none;
display: none;
}

main .carousel-image picture:not(:only-child):nth-child(1) {
display: block;
display: block;
}

main .carousel > div {
width: 100%;
flex-shrink: 0;
scroll-snap-align: start;
position: relative;
height: 50vw;
max-height: 652px;
align-items: flex-end;
display: flex;
background-image: linear-gradient(#0000, #0008);
color: var(--color-white);
width: 100%;
flex-shrink: 0;
scroll-snap-align: start;
position: relative;
height: 50vw;
max-height: 652px;
align-items: flex-end;
display: flex;
background-image: linear-gradient(#0000, #0008);
color: var(--color-white);
}

main .carousel.row-4 > div {
justify-content: center;
justify-content: center;
}

main .carousel div.carousel-text {
text-align: center;
width: 500px;
margin: 0 auto;
text-align: center;
width: 500px;
margin: 0 auto;
}

main .carousel::-webkit-scrollbar {
display: none;
display: none;
}

main .carousel-wrapper .carousel-buttons {
text-align: center;
margin-top: -34px;
position: absolute;
display: flex;
right: 0;
left: 0;
justify-content: center;
text-align: center;
margin-top: -34px;
position: absolute;
display: flex;
right: 0;
left: 0;
justify-content: center;
}

main .carousel-buttons button {
display: block;
height: 14px;
width: 14px;
padding: 0;
margin: 10px;
border-radius: 7px;
border: none;
background-color: var(--color-light-purple);
cursor: pointer;
display: block;
height: 14px;
width: 14px;
padding: 0;
margin: 10px;
border-radius: 7px;
border: none;
background-color: var(--color-light-purple);
cursor: pointer;
}

main .carousel-buttons button.selected {
background-color: var(--color-purple);
background-color: var(--color-purple);
}

main .reverse .carousel-buttons button.selected {
background-color: var(--background-color-reverse);
background-color: var(--background-color-reverse);
}

main .carousel-wrapper .carousel-controls {
display: none;
display: none;
}

@media (min-width: 700px) {
main .carousel-image picture:not(:only-child):nth-child(1) {
display: none;
}
main .carousel-image picture:not(:only-child):nth-child(1) {
display: none;
}

main .carousel-image picture:not(:only-child):nth-child(2) {
display: block;
}
main .carousel-image picture:not(:only-child):nth-child(2) {
display: block;
}
}

@media (min-width: 900px) {
main .carousel > div {
background-image: unset;
color: unset;
align-items: center;
}

main .carousel div.carousel-text {
margin: unset;
padding: 32px;
text-align: left;
}
main .carousel > div {
background-image: unset;
color: unset;
align-items: center;
}

main .carousel div.carousel-text {
margin: unset;
padding: 32px;
text-align: left;
}
}
84 changes: 42 additions & 42 deletions blocks/embed/embed.css
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
main .embed {
width: unset;
text-align: center;
margin: 32px auto;
aspect-ratio: 16 / 9;
width: unset;
text-align: center;
margin: 32px auto;
aspect-ratio: 16 / 9;
}

main .embed > div {
display: flex;
justify-content: center;
display: flex;
justify-content: center;
}

main .embed.embed-twitter .twitter-tweet-rendered {
margin-left: auto;
margin-right: auto;
margin-left: auto;
margin-right: auto;
}

main .embed .embed-placeholder {
width: 100%;
aspect-ratio: 16 / 9;
position: relative;
width: 100%;
aspect-ratio: 16 / 9;
position: relative;
}

main .embed .embed-placeholder > * {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}

main .embed .embed-placeholder picture img {
width: 100%;
height: 100%;
object-fit: cover;
width: 100%;
height: 100%;
object-fit: cover;
}

main .embed .embed-placeholder-play button {
box-sizing: border-box;
position: relative;
display: block;
transform: scale(3);
width: 22px;
height: 22px;
border: 2px solid;
border-radius: 20px;
padding: 0;
box-sizing: border-box;
position: relative;
display: block;
transform: scale(3);
width: 22px;
height: 22px;
border: 2px solid;
border-radius: 20px;
padding: 0;
}

main .embed .embed-placeholder-play button::before {
content: "";
display: block;
box-sizing: border-box;
position: absolute;
width: 0;
height: 10px;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
border-left: 6px solid;
top: 4px;
left: 7px;
content: "";
display: block;
box-sizing: border-box;
position: absolute;
width: 0;
height: 10px;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
border-left: 6px solid;
top: 4px;
left: 7px;
}
56 changes: 28 additions & 28 deletions blocks/footer/footer.css
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
footer {
height: var(--footer-height);
padding: var(--footer-padding-horizontal) var(--footer-padding-vertical);
background-color: var(--footer-background-color);
font-size: var(--body-font-size-xs);
height: var(--footer-height);
padding: var(--footer-padding-horizontal) var(--footer-padding-vertical);
background-color: var(--footer-background-color);
font-size: var(--body-font-size-xs);
}

footer .block {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
}

footer > div > div {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 10px 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 10px 0;
}

footer > div > div > p {
margin: 2px;
margin: 2px;
}

footer > div > div:first-child .icon svg {
height: 75px;
height: 75px;
}

footer > div > div:last-child {
width: 100%;
max-width: 200px;
display: grid;
grid-template-areas: "header header header";
justify-content: space-between;
align-items: center;
width: 100%;
max-width: 200px;
display: grid;
grid-template-areas: "header header header";
justify-content: space-between;
align-items: center;
}

footer > div > div:last-child p:first-child {
grid-area: header;
text-align: center;
padding-bottom: 10px;
grid-area: header;
text-align: center;
padding-bottom: 10px;
}

footer > div > div:last-child .icon svg {
height: 20px;
width: 20px;
fill: currentcolor;
height: 20px;
width: 20px;
fill: currentcolor;
}
Loading

0 comments on commit 869cb6f

Please sign in to comment.