Skip to content

Commit

Permalink
Fix banner overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jgthms committed Feb 5, 2025
1 parent 96a2497 commit 7f4c17b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/_includes/website/carbon.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div id="carboncontainer" class="bd-carbon">
<div id="carbon">
<a id="masterclass-carbon" href="https://cssmasterclass.io/" target="_blank" style="display: none; width: 400px; height: 260px;">
<a id="masterclass-carbon" href="https://cssmasterclass.io/" target="_blank" style="display: none; aspect-ratio: 40 / 26; max-width: 400px; max-height: 260px;">
<img src="{{ site.url }}/assets/images/masterclass/masterclass-carbon.png" height="260" width="400" alt="CSS Masterclass">
</a>
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CWYIE237&placement=bulmaio&format=cover" id="_carbonads_js" onerror="this.previousElementSibling.style.display = 'flex'"></script>
Expand Down
7 changes: 5 additions & 2 deletions docs/_sass/docs/hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@
}

.bd-carbon {
aspect-ratio: 40 / 26;
max-height: 280px !important;
max-width: 400px !important;

&,
& > div {
align-items: center;
Expand All @@ -101,7 +105,6 @@
}

> div {
height: 280px !important;
width: 400px !important;
aspect-ratio: 40 / 26;
}
}
10 changes: 8 additions & 2 deletions docs/assets/css/website.css
Original file line number Diff line number Diff line change
Expand Up @@ -34288,14 +34288,18 @@ has-background-moon.is-hoverable:active {
--scale: 0.75;
}
}
.bd-carbon {
aspect-ratio: 40/26;
max-height: 280px !important;
max-width: 400px !important;
}
.bd-carbon, .bd-carbon > div {
align-items: center;
display: flex;
justify-content: center;
}
.bd-carbon > div {
height: 280px !important;
width: 400px !important;
aspect-ratio: 40/26;
}

.highlight {
Expand Down Expand Up @@ -37307,6 +37311,7 @@ div.shine {
gap: 0.5rem 1rem;
white-space: nowrap;
flex-direction: column;
overflow: hidden;
}
.launch-code h3,
.launch-code small {
Expand All @@ -37328,6 +37333,7 @@ div.shine {
display: block;
opacity: 1;
font-weight: 400;
white-space: normal;
}
.launch-code .launch-shine {
animation-duration: 1s;
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/css/website.min.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions docs/website.scss
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,7 @@ div.shine {
gap: 0.5rem 1rem;
white-space: nowrap;
flex-direction: column;
overflow: hidden;

h3,
small {
Expand All @@ -822,6 +823,7 @@ div.shine {
display: block;
opacity: 1;
font-weight: 400;
white-space: normal;
}

.launch-shine {
Expand Down

0 comments on commit 7f4c17b

Please sign in to comment.