fix(core): 🐛 responsive thumbnail on new media structure
这个提交包含在:
父节点
54c8717d45
当前提交
ddb425c4bb
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
正在加载...
在新工单中引用