Skip to content

Commit

Permalink
fix(core): 馃悰 responsive thumbnail on new media structure
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair3149 committed Feb 22, 2023
1 parent 54c8717 commit ddb425c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
7 changes: 0 additions & 7 deletions resources/skins.citizen.styles/layout.less
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@
grid-area: content;
}

a.image {
> img {
max-width: inherit;
height: auto;
}
}

@media ( min-width: @width-breakpoint-desktop ) {
.citizen-page-container {
// Reserve space for header
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ figure[ typeof~='mw:File/Frame' ] {
overflow: hidden;

> img {
max-width: 100%;
// Needed to override inline styles
height: auto !important;
contain: strict;
transition: @transition-transform;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
margin-right: 1px;
// Counter the weird hardcoded 2px width added by core
margin-left: 1px;

> img {
max-width: inherit;
// Needed to override inline styles
height: auto !important;
}
}

&:before {
Expand Down

0 comments on commit ddb425c

Please sign in to comment.