forked from PrivateCoffee/wikimore
feat: add hatnote styling and improve code readability
Introduced new styles for hatnote elements to enhance visual distinction with margin, padding, background color, border, and font adjustments. Also, improved readability of existing CSS by reformatting multi-line selectors for figures and file elements. These updates aim to make the content presentation more engaging and the CSS code easier to maintain. Fixes #7.
This commit is contained in:
parent
797cfc7a45
commit
301cf90778
1 changed files with 16 additions and 3 deletions
|
@ -154,6 +154,16 @@ h1 {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hatnote {
|
||||||
|
margin: 1em 0;
|
||||||
|
padding: 10px;
|
||||||
|
background-color: #f9f9f9;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
font-size: small;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Navbox styling */
|
||||||
.navbox {
|
.navbox {
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
background-color: #f9f9f9;
|
background-color: #f9f9f9;
|
||||||
|
@ -337,7 +347,8 @@ h1 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Figure styling */
|
/* Figure styling */
|
||||||
figure, .tmulti {
|
figure,
|
||||||
|
.tmulti {
|
||||||
margin: 1em 0;
|
margin: 1em 0;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
background-color: #f9f9f9;
|
background-color: #f9f9f9;
|
||||||
|
@ -345,7 +356,8 @@ figure, .tmulti {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
figure img, .tmulti .mw-file-element {
|
figure img,
|
||||||
|
.tmulti .mw-file-element {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
|
@ -355,7 +367,8 @@ figure img, .tmulti .mw-file-element {
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
figcaption, .thumbcaption {
|
figcaption,
|
||||||
|
.thumbcaption {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
font-size: small;
|
font-size: small;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|
Loading…
Reference in a new issue