/*
* Default box styling.
* Override this on a per portal basis with a CSS stylesheet transcluded
* only to that portal.
* Either wrap a whole area in div with a class specific to the portal,
* or use !important to override specific values.
* This CSS cannot use !important to ensure that overrides are functional.
*/
.portal-content-box {
box-sizing: border-box;
margin: 0.5em 0.5em 1em 0.5em;
border-radius: 0.2em;
border: 1px solid var(--border-color-base, #a2a9b1);
overflow-x: hidden;
box-shadow: 0 0 0.3rem #999;
padding: 1.2rem;
flex: 1 1 auto;
background-color: var(--background-color-base, #fff);
}
.portal-content-box-title {
color: var(--color-emphasized, #000000);
border-radius: 0.2em 0.2em 0 0;
display: flex;
gap: 0.5rem;
line-height: 2.4rem;
}
.portal-content-box-title-icon img {
margin-bottom: 0.15em;
}
.portal-content-box-title-text {
flex-grow: 1;
font-size: 1.5em;
font-variant: small-caps;
letter-spacing: 0.01em;
display: block;
border-bottom: solid 0.2rem #339966;
margin: -0.4rem 0 0.5rem 0;
font-family: "Linux Libertine", "Georgia", "Times", "Source Serif 4", serif;
padding-left: 0;
}
.portal-content-box-title-icon {
opacity: 0.8;
}
.portal-content-box-content {
padding: 0.5rem 1rem;
}
/* Line break before edit, watch, or view links */
.portal-content-box-content::after {
content: "";
display: block;
clear: both;
}
.portal-content-box-links-container {
text-align: right;
font-size: x-small;
margin-top: 0.5rem;
}
/* for manual dark mode */
@media screen and (min-width: 720px) {
html.skin-theme-clientpref-night .portal-content-box {
box-shadow: 0 0 0.2rem #777;
}
html.skin-theme-clientpref-night .portal-content-box.top-7-pages {
box-shadow: none;
}
}
/* for automatic dark mode */
@media screen and (prefers-color-scheme: dark) and (min-width: 720px) {
html.skin-theme-clientpref-os .portal-content-box {
box-shadow: 0 0 0.2rem #777;
}
html.skin-theme-clientpref-os .portal-content-box.top-7-pages {
box-shadow: none;
}
}
/* on mobile and in narrow windows */
@media screen and (max-width: 720px) {
.portal-content-box {
box-shadow: none;
border: none;
}
}
/* Popular pages list: */
.portal-content-box.top-7-pages {
border: none;
box-shadow: none;
background: inherit;
}
ol.popular-list {
list-style: none;
counter-reset: item;
padding-left: 0;
margin-left: 0;
}
ol.popular-list li {
counter-increment: item;
position: relative;
padding-left: 70px;
margin-bottom: 20px;
min-height: 50px;
}
ol.popular-list li::before {
content: counter(item);
position: absolute;
left: 0;
top: 0;
width: 50px;
height: 50px;
background-color: #339966;
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-family: Georgia, "Times New Roman", serif;
font-size: 24px;
font-weight: bold;
flex-shrink: 0;
}