MediaWiki:Common.css: Difference between revisions
From Cheeky Factor
No edit summary |
No edit summary |
||
| Line 35: | Line 35: | ||
} | } | ||
} | } | ||
/* Default: 80% for standard screens */ | |||
.pageWidth { | |||
width: 80%; | |||
margin: 0 auto; /* Center content */ | |||
} | |||
/* Large screens (desktops) */ | |||
@media (min-width: 1200px) { | |||
.pageWidth { | |||
width: 70%; /* Slightly narrower for larger screens */ | |||
} | |||
} | |||
/* Medium screens (tablets) */ | |||
@media (min-width: 768px) and (max-width: 1199px) { | |||
.pageWidth { | |||
width: 85%; /* A bit wider for tablets */ | |||
} | |||
} | |||
/* Small screens (phones) */ | |||
@media (max-width: 767px) { | |||
.pageWidth { | |||
width: 95%; /* Close to full-width for small screens */ | |||
} | |||
} | |||
Revision as of 20:01, 22 December 2024
/* CSS placed here will be applied to all skins */
.p-navbar {
background-color: #c0c0c0;
}
.nav-link a {
filter: invert(10%) sepia(95%) saturate(685%) hue-rotate(168deg) brightness(94%) contrast(107%);
}
.jsbc-breadcrumbs {margin-top: 20px;}
.responsive-1 { width: 320px; height: 50px; }
@media(min-width: 500px) { .responsive-1 { width: 468px; height: 60px; } }
@media(min-width: 768px) { .responsive-1 { width: 728px; height: 90px; } }
#toc {
position: sticky;
top: 60px; /* Adjust as per the layout to avoid overlap with headers */
z-index: 1000;
background-color: white;
border: 1px solid #ccc;
padding: 10px;
margin-left: -100px; /* Adjust margin to push the TOC into the side */
max-width: 200px; /* Limit the width for a better fit in the margin */
}
/* Additional styling to place it outside the main content */
@media (min-width: 992px) { /* Only applies on larger screens */
#toc {
position: sticky;
top: 60px;
float: right; /* Pushes the TOC to the right margin */
margin-right: -100px;
max-width: 220px; /* Control the size of TOC in the margin */
}
}
/* Default: 80% for standard screens */
.pageWidth {
width: 80%;
margin: 0 auto; /* Center content */
}
/* Large screens (desktops) */
@media (min-width: 1200px) {
.pageWidth {
width: 70%; /* Slightly narrower for larger screens */
}
}
/* Medium screens (tablets) */
@media (min-width: 768px) and (max-width: 1199px) {
.pageWidth {
width: 85%; /* A bit wider for tablets */
}
}
/* Small screens (phones) */
@media (max-width: 767px) {
.pageWidth {
width: 95%; /* Close to full-width for small screens */
}
}
/*Default home page CSS*/
.portal-box {
margin-left: 0.5em;
margin-right: 0.5em;
margin-bottom: 1em;
background: #c0c0c0;
border: 1px solid #000000;
box-shadow: 5px 10px #ccc;
width: calc(45% - 1em);
}
@media (prefers-color-scheme: dark) {
.portal-box {
margin-left: 0.5em;
margin-right: 0.5em;
margin-bottom: 1em;
background: #c0c0c0;
border: 1px solid #000000;
box-shadow: 5px 10px #ccc;
width: calc(45% - 1em);
}
}