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

customize heights with media breakpoints to bypass tailwind #13814

Merged
merged 1 commit into from
Jan 14, 2025
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
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
Loading