「MediaWiki:Common.css」の版間の差分
細編集の要約なし タグ: モバイル編集 モバイルウェブ編集 改良版モバイル編集 |
画像の縦横比を指定 |
||
(同じ利用者による、間の3版が非表示) | |||
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; | |||
} | } |