「MediaWiki:Common.css」の版間の差分
WikipediaのCSSを導入 |
画像の縦横比を指定 |
||
(同じ利用者による、間の9版が非表示) | |||
584行目: | 584行目: | ||
.autoconfirmed-show, | .autoconfirmed-show, | ||
.user-show { | .user-show { | ||
display: none; | |||
} | |||
.ambox-learn-more, html:not(.overlay-enabled) .minerva-icon--issue-generic-defaultColor.minerva-ambox-icon{ | |||
display: none; | display: none; | ||
} | } | ||
595行目: | 599行目: | ||
color: white !important; | color: white !important; | ||
} | } | ||
} | |||
/*モバイルビューの場合のみ表示(デスクトップでは非表示)*/ | |||
.mobile-only{ | |||
display: none; | |||
} | |||
/*画像の最大サイズを指定(Boxmenu用)*/ | |||
.img-width-100 img{ | |||
max-width: 100%; | |||
height: auto; | |||
} | |||
/*画像の縦横比を指定*/ | |||
.aspect-ratio-3-2 img{ | |||
aspect-ratio: 3 / 2; | |||
} | |||
.aspect-ratio-4-3 img{ | |||
aspect-ratio: 4 / 3; | |||
} | |||
.aspect-ratio-16-9 img{ | |||
aspect-ratio: 16 / 9; | |||
} | |||
.aspect-ratio-1-1 img{ | |||
aspect-ratio: 1 / 1; | |||
} | } |