「MediaWiki:Common.css」の版間の差分
細 「MediaWiki:Common.css」を保護しました ([編集=管理者のみ許可] (無期限) [移動=管理者のみ許可] (無期限)) |
画像の縦横比を指定 |
||
(同じ利用者による、間の2版が非表示) | |||
599行目: | 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; | |||
} | } |