forked from PrivateCoffee/wikimore
fix(css): adjust float and clear for alignment classes
Updated CSS rules to properly handle alignment by adding `clear: left` for elements floating left and `clear: right` for elements floating right. Also corrected `.mw-default-size` to float right instead of left. These changes aim to improve layout consistency and avoid potential overlapping issues.
This commit is contained in:
parent
f9add6305b
commit
4d274d8073
1 changed files with 4 additions and 2 deletions
|
@ -329,6 +329,7 @@ figcaption,
|
||||||
.mw-halign-left,
|
.mw-halign-left,
|
||||||
.tleft {
|
.tleft {
|
||||||
float: left;
|
float: left;
|
||||||
|
clear: left;
|
||||||
margin-right: 1em;
|
margin-right: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -342,13 +343,14 @@ figcaption,
|
||||||
.mw-halign-right,
|
.mw-halign-right,
|
||||||
.tright {
|
.tright {
|
||||||
float: right;
|
float: right;
|
||||||
|
clear: right;
|
||||||
margin-left: 1em;
|
margin-left: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mw-default-size {
|
.mw-default-size {
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
float: left;
|
float: right;
|
||||||
clear: left;
|
clear: right;
|
||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue