forked from PrivateCoffee/wikimore
feat: center and resize media files uniformly
Added styles for .mw-file-element to ensure media files are centered, displayed as blocks, and resized proportionally to fit within their containers. This enhances layout consistency across the application. Fixes #14.
This commit is contained in:
parent
69cf1656fe
commit
8a07e7a1ef
1 changed files with 11 additions and 2 deletions
|
@ -359,7 +359,8 @@ section > .category-link::after {
|
||||||
.infobox {
|
.infobox {
|
||||||
float: right;
|
float: right;
|
||||||
margin: 1em;
|
margin: 1em;
|
||||||
width: 300px;
|
min-width: 300px;
|
||||||
|
width: fit-content !important;
|
||||||
background-color: #f9f9f9;
|
background-color: #f9f9f9;
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
font-size: small;
|
font-size: small;
|
||||||
|
@ -499,6 +500,14 @@ figcaption,
|
||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mw-file-element {
|
||||||
|
display: block;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
/* Reference styling */
|
/* Reference styling */
|
||||||
.reflist-lower-alpha .references {
|
.reflist-lower-alpha .references {
|
||||||
list-style-type: lower-alpha;
|
list-style-type: lower-alpha;
|
||||||
|
@ -525,7 +534,7 @@ span {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
float: right;
|
float: right;
|
||||||
width: 300px;
|
min-width: 300px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
Loading…
Reference in a new issue