MediaWiki:Common.css: Difference between revisions
Created page with "→CSS placed here will be applied to all skins: .comic { background-color: #f8f9fa; } .comic .image-container img { max-height: 200px; }" |
m 15 revisions imported |
||
(14 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
.dim-label { | |||
color: rgba(0, 0, 0, 0.525); | |||
} | |||
.comic * { | |||
box-sizing: border-box; | |||
} | |||
.comic-mainpage { | |||
border: 1px solid #e0e0e0; | |||
background-color: #f8f9fa; | |||
padding: 0.75em; | |||
} | |||
.comic { | .comic { | ||
border: 1px solid #e0e0e0; | |||
background-color: #f8f9fa; | background-color: #f8f9fa; | ||
padding: 0.75em; | |||
display: flex; | |||
flex-direction: column; | |||
flex-wrap: wrap; | |||
gap: 0.75em; | |||
text-align: center; | |||
} | |||
.comic p { | |||
margin: 0; | |||
padding: 0; | |||
} | |||
.comic .prev-title-next { | |||
display: flex; | |||
justify-content: space-between; | |||
align-items: center; | |||
} | |||
.comic .previous, .comic .next { | |||
flex: 1; | |||
display: flex; | |||
align-items: center; | |||
gap: 0.5em; | |||
} | |||
.comic .next { | |||
justify-content: flex-end; | |||
} | |||
.comic .previous a, .comic .next a { | |||
font-size: 20px; | |||
width: max-content; /* This fixes "Video X" labels making the whole bar taller. There's probably a better solution. */ | |||
} | |||
.comic .title { | |||
font-weight: bold; | |||
font-size: 24px; | |||
margin: 0 auto; | |||
} | |||
.comic .image-container { | |||
display: flex; flex-wrap: wrap; | |||
} | |||
.comic .image-container a { | |||
margin: 0 auto; | |||
display: block; | |||
width: fit-content; | |||
background: none !important; | |||
padding-right: 0; | |||
} | } | ||
.comic .image-container img { | .comic .image-container img { | ||
max- | max-width: 80vw; | ||
width: 400px; | |||
display: block; | |||
border: 1px solid grey; | |||
} | |||
.comic .tags { | |||
display: flex; flex-wrap: wrap; gap: 0 0.5em; | |||
margin: 0 auto; | |||
} | |||
.index-banner { | |||
text-align: center; display: flex; gap: 0.25em; justify-items: center; flex-direction: column; | |||
} | |||
.index-banner p { margin: 0; padding: 0; } | |||
.index-split { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 1em; | |||
} | |||
.index-split > div { | |||
flex-shrink: 0; | |||
flex-grow: 1; | |||
width: auto; | |||
} | |||
.index-split > div:first-child { | |||
flex-basis: 60%; | |||
} | |||
.index-split > div:last-child { | |||
flex-basis: 35%; | |||
} | } |
Latest revision as of 21:09, 25 October 2024
/* CSS placed here will be applied to all skins */
.dim-label {
color: rgba(0, 0, 0, 0.525);
}
.comic * {
box-sizing: border-box;
}
.comic-mainpage {
border: 1px solid #e0e0e0;
background-color: #f8f9fa;
padding: 0.75em;
}
.comic {
border: 1px solid #e0e0e0;
background-color: #f8f9fa;
padding: 0.75em;
display: flex;
flex-direction: column;
flex-wrap: wrap;
gap: 0.75em;
text-align: center;
}
.comic p {
margin: 0;
padding: 0;
}
.comic .prev-title-next {
display: flex;
justify-content: space-between;
align-items: center;
}
.comic .previous, .comic .next {
flex: 1;
display: flex;
align-items: center;
gap: 0.5em;
}
.comic .next {
justify-content: flex-end;
}
.comic .previous a, .comic .next a {
font-size: 20px;
width: max-content; /* This fixes "Video X" labels making the whole bar taller. There's probably a better solution. */
}
.comic .title {
font-weight: bold;
font-size: 24px;
margin: 0 auto;
}
.comic .image-container {
display: flex; flex-wrap: wrap;
}
.comic .image-container a {
margin: 0 auto;
display: block;
width: fit-content;
background: none !important;
padding-right: 0;
}
.comic .image-container img {
max-width: 80vw;
width: 400px;
display: block;
border: 1px solid grey;
}
.comic .tags {
display: flex; flex-wrap: wrap; gap: 0 0.5em;
margin: 0 auto;
}
.index-banner {
text-align: center; display: flex; gap: 0.25em; justify-items: center; flex-direction: column;
}
.index-banner p { margin: 0; padding: 0; }
.index-split {
display: flex;
flex-wrap: wrap;
gap: 1em;
}
.index-split > div {
flex-shrink: 0;
flex-grow: 1;
width: auto;
}
.index-split > div:first-child {
flex-basis: 60%;
}
.index-split > div:last-child {
flex-basis: 35%;
}