MediaWiki:Common.css:修订间差异

Baneq留言 | 贡献
无编辑摘要
Baneq留言 | 贡献
无编辑摘要
第375行: 第375行:
opacity: .45;
opacity: .45;


/* Portfolio: LOGO 区强制图片留在图片区内 */
.nc-logo-grid .nc-art-image {
height: 190px !important;
padding: 18px !important;
overflow: hidden !important;
box-sizing: border-box;
}
.nc-logo-grid .nc-art-image a,
.nc-logo-grid .nc-art-image .mw-file-description {
display: flex !important;
align-items: center !important;
justify-content: center !important;
width: 100% !important;
height: 100% !important;
overflow: hidden !important;
}
.nc-logo-grid .nc-art-image img,
.nc-logo-grid .nc-art-image .mw-file-element {
display: block !important;
width: auto !important;
height: auto !important;
max-width: 88% !important;
max-height: 150px !important;
object-fit: contain !important;
}
.nc-logo-grid .nc-art-caption {
position: relative;
z-index: 2;
min-height: 58px;
background: rgba(246,248,251,.84);
}
/* Portfolio: LOGO mosaic, for mixed logo ratios */
.nc-logo-mosaic {
.nc-logo-mosaic {
display: grid;
display: grid;
第427行: 第391行:
.nc-logo-image {
.nc-logo-image {
height: 190px;
height: 190px;
padding: 22px;
padding: 18px;
display: flex;
display: flex;
align-items: center;
align-items: center;
第433行: 第397行:
background: linear-gradient(135deg, rgba(255,255,255,.62), rgba(238,242,246,.48));
background: linear-gradient(135deg, rgba(255,255,255,.62), rgba(238,242,246,.48));
box-sizing: border-box;
box-sizing: border-box;
}
overflow: hidden;
 
.nc-logo-image img {
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
object-fit: contain;
}
}


第447行: 第404行:
}
}


.nc-logo-badge .nc-logo-image {
.nc-logo-small .nc-logo-image {
height: 240px;
height: 240px;
}
.nc-logo-image .mw-file-description,
.nc-logo-image a.image {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
max-width: 100% !important;
max-height: 100% !important;
}
.nc-logo-image img,
.nc-logo-image .mw-file-element {
width: auto !important;
height: auto !important;
max-width: 100% !important;
max-height: 100% !important;
object-fit: contain !important;
}
}