-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Fixed KubeCon NA Banner mobile layout #43625
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -806,28 +806,31 @@ body.td-documentation { | |
@media (max-width: 768px) { | ||
#announcement { | ||
padding-top: 4rem; | ||
padding-bottom: 4rem; | ||
.announcement-main, aside .announcement-main { | ||
padding-top: calc(min(2rem,2em)); | ||
} | ||
} | ||
} | ||
padding-bottom: 0; | ||
h4{ | ||
display: flex; | ||
flex-direction: column; | ||
text-align: center; | ||
|
||
@media (max-width: 480px) { | ||
#announcement { | ||
padding-bottom: 0.5em; | ||
} | ||
#announcement aside { | ||
h1, h2, h3, h4, h5, h6 { | ||
img.event-logo { | ||
margin-left: auto; | ||
margin-right: auto; | ||
margin-bottom: 0.75em; | ||
display: block; | ||
max-height: initial; | ||
max-width: calc(min(calc(100vw - 2em), 240px)); | ||
float: initial; | ||
a { | ||
font-weight: bold; | ||
} | ||
|
||
row-gap: 1rem; | ||
font-size: 1.5em; | ||
|
||
img { | ||
order: 2; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How do we know this value is correct? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see the problem here, I'll figure something out |
||
margin-bottom: .5rem; | ||
} | ||
} | ||
|
||
p{ | ||
text-align: center; | ||
margin-bottom: 1rem; | ||
} | ||
.announcement-main, aside .announcement-main { | ||
padding-top: calc(min(2rem,2em)); | ||
} | ||
} | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -203,7 +203,7 @@ announcements: | |
color: #fffff; | ||
title: | | ||
<img src ="/images/announcements/kccnc-na-2023-white.svg" style="float: right; height: 80px;" /> | ||
<a href= "https://events.linuxfoundation.org/kubecon-cloudnativecon-north-america/">KubeCon + CloudNativeCon NA 2023</a> <em> Chicago, Illinois + Virtual</em>. | ||
<a href= "https://events.linuxfoundation.org/kubecon-cloudnativecon-north-america/">KubeCon + CloudNativeCon NA 2023</a> <em> Chicago, Illinois + Virtual</em> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why this change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's uncalled for, I'll revert this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please do update this PR; ideally, also rebase it against main. |
||
message: | | ||
4 days of incredible opportunities to collaborate, learn + share with the entire community!<br /> | ||
November 6 - November 9, 2023. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do we know this is right (for every future announcement)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
column flex would work well with small viewports, I'd like to know your thoughts on this