Skip to content

Commit 7f4c17b

Browse files
committed
Fix banner overflow
1 parent 96a2497 commit 7f4c17b

File tree

5 files changed

+17
-6
lines changed

5 files changed

+17
-6
lines changed

docs/_includes/website/carbon.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div id="carboncontainer" class="bd-carbon">
22
<div id="carbon">
3-
<a id="masterclass-carbon" href="https://cssmasterclass.io/" target="_blank" style="display: none; width: 400px; height: 260px;">
3+
<a id="masterclass-carbon" href="https://cssmasterclass.io/" target="_blank" style="display: none; aspect-ratio: 40 / 26; max-width: 400px; max-height: 260px;">
44
<img src="{{ site.url }}/assets/images/masterclass/masterclass-carbon.png" height="260" width="400" alt="CSS Masterclass">
55
</a>
66
<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>

docs/_sass/docs/hero.scss

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@
9393
}
9494

9595
.bd-carbon {
96+
aspect-ratio: 40 / 26;
97+
max-height: 280px !important;
98+
max-width: 400px !important;
99+
96100
&,
97101
& > div {
98102
align-items: center;
@@ -101,7 +105,6 @@
101105
}
102106

103107
> div {
104-
height: 280px !important;
105-
width: 400px !important;
108+
aspect-ratio: 40 / 26;
106109
}
107110
}

docs/assets/css/website.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34288,14 +34288,18 @@ has-background-moon.is-hoverable:active {
3428834288
--scale: 0.75;
3428934289
}
3429034290
}
34291+
.bd-carbon {
34292+
aspect-ratio: 40/26;
34293+
max-height: 280px !important;
34294+
max-width: 400px !important;
34295+
}
3429134296
.bd-carbon, .bd-carbon > div {
3429234297
align-items: center;
3429334298
display: flex;
3429434299
justify-content: center;
3429534300
}
3429634301
.bd-carbon > div {
34297-
height: 280px !important;
34298-
width: 400px !important;
34302+
aspect-ratio: 40/26;
3429934303
}
3430034304

3430134305
.highlight {
@@ -37307,6 +37311,7 @@ div.shine {
3730737311
gap: 0.5rem 1rem;
3730837312
white-space: nowrap;
3730937313
flex-direction: column;
37314+
overflow: hidden;
3731037315
}
3731137316
.launch-code h3,
3731237317
.launch-code small {
@@ -37328,6 +37333,7 @@ div.shine {
3732837333
display: block;
3732937334
opacity: 1;
3733037335
font-weight: 400;
37336+
white-space: normal;
3733137337
}
3733237338
.launch-code .launch-shine {
3733337339
animation-duration: 1s;

docs/assets/css/website.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/website.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,7 @@ div.shine {
799799
gap: 0.5rem 1rem;
800800
white-space: nowrap;
801801
flex-direction: column;
802+
overflow: hidden;
802803

803804
h3,
804805
small {
@@ -822,6 +823,7 @@ div.shine {
822823
display: block;
823824
opacity: 1;
824825
font-weight: 400;
826+
white-space: normal;
825827
}
826828

827829
.launch-shine {

0 commit comments

Comments
 (0)