Skip to content

Commit

Permalink
customize heights with media breakpoints to bypass tailwind (#13814)
Browse files Browse the repository at this point in the history
  • Loading branch information
shughes26 authored Jan 14, 2025
1 parent 534e024 commit 7086891
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
12 changes: 12 additions & 0 deletions assets/css/bundle.css
Original file line number Diff line number Diff line change
Expand Up @@ -1663,6 +1663,18 @@ section[id=pulumi-python-sdk] table td,section[id=pulumi-python-sdk] .pre{
content:"R"
}

@media(min-width: 0px){
.medium-auto-height{
height:13rem
}
}

@media(min-width: 768px){
.medium-auto-height{
height:auto
}
}

.automation-scenarios-carousel-items{
width: 100%
}
Expand Down
4 changes: 2 additions & 2 deletions layouts/page/awards.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
<div class="md:w-1/3 p-4">
{{ if .url }}
<a data-track="{{ .title | urlize }}-img" class="block text-center" href="{{ .url }}">
<img class="text-center inline-block rounded shadow p-1 h-52 md:h-28" src="{{ .img }}" />
<img class="text-center inline-block rounded shadow p-1 medium-auto-height" src="{{ .img }}" />
</a>
{{ else }}
<img class="text-center inline-block rounded shadow p-1 h-52 md:h-28" src="{{ .img }}" />
<img class="text-center inline-block rounded shadow p-1 medium-auto-height" src="{{ .img }}" />
{{ end }}
</div>
<div class="md:w-2/3 p-4 text-left">
Expand Down
11 changes: 11 additions & 0 deletions theme/src/scss/_awards.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@media (min-width: 0px) {
.medium-auto-height {
height: 13rem;
}
}

@media (min-width: 768px) {
.medium-auto-height {
height: auto;
}
}
1 change: 1 addition & 0 deletions theme/src/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
@import "api-nodejs";
@import "api-python";
@import "api-symbol";
@import "awards";
@import "marketing/automation-api";
@import "badges";
@import "benefits";
Expand Down

0 comments on commit 7086891

Please sign in to comment.