MediaWiki:Common.css
From The Seven Sages of Rome
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */
@import url('/index.php?title=MediaWiki:BentoGrid.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:Navbar.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:Breadcrumb.css&action=raw&ctype=text/css');
.page-Main_Page .contentHeader {
display: none;
}
.card {
height: 250px;
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
border-radius: 0.75rem;
}
.card:hover {
box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
.card-block {
display: grid;
align-content: space-between;
height: 100%;
}
.primary-btn {
margin-right: auto;
margin-left: auto;
background-color: #222;
border-radius: 4px;
border-style: none;
box-sizing: border-box;
color: #fff !important;
cursor: pointer;
display: inline-block;
font-family: "Farfetch Basis","Helvetica Neue",Arial,sans-serif;
font-size: 16px;
font-weight: 700;
line-height: 1.5;
margin: 0;
max-width: none;
min-height: 44px;
min-width: 10px;
outline: none;
overflow: hidden;
padding: 9px 20px 8px;
position: relative;
text-align: center;
text-transform: none;
user-select: none;
-webkit-user-select: none;
touch-action: manipulation;
width: 100%;
}
.primary-btn:hover,
.primary-btn:focus {
opacity: .75;
}
.smw-datatable select {
background: #fff;
}
.smw-datatable th a {
color: black;
}
#pfForm .createboxInput, #pfForm .mandatoryField, #pfForm textarea {
max-width: 98%;
}
#pfForm :not(.dateInput):not(.monthInput):not(.yearInput) > input,
#pfForm :not(.dateInput):not(.monthInput):not(.yearInput) > .select2,
#pfForm :not(.dateInput):not(.monthInput):not(.yearInput) > .pf-select2-container,
#pfForm :not(.dateInput):not(.monthInput):not(.yearInput) > .oo-ui-comboBoxInputWidget {
width: 100% !important;
}
/* Drilldown customization */
.drilldown-results {
-webkit-filter: blur(5px);
-moz-filter: blur(5px);
-o-filter: blur(5px);
-ms-filter: blur(5px);
filter: blur(5px);
}
.drilldown-categories-wrapper {
display: none;
}
.drilldown-filter {
background-color: #fafafa;
border-radius: 2px;
padding: 5px;
border-color: #e4e4e7;
border-width: 1px;
border-style: solid;
}
.drilldown-filter:hover {
background-color: #f4f4f5;
}
.drilldown-values-toggle {
padding-right: 6px;
}
/* WIP banner */
.wip-alert {
position: fixed;
display: none;
bottom: 0;
left: 50%;
transform: translate(-50%, 0);
z-index: 999;
}
/* CSS to be placed in MediaWiki:Common.css */
.version-tree {
text-align: center;
padding: 20px;
font-family: sans-serif;
}
.tree-node {
display: inline-block;
vertical-align: top;
text-align: center;
padding: 0 10px;
position: relative;
}
.node-content {
position: relative;
padding: 10px 0;
}
.node-box {
display: inline-block;
border: 1px solid #ccc;
border-radius: 5px;
padding: 5px 15px;
background: #f8f9fa;
position: relative;
z-index: 1;
}
.node-children {
position: relative;
margin-top: 20px;
}
/* Lines connecting nodes */
.node-children:before {
content: '';
position: absolute;
top: -20px;
left: 50%;
border-left: 1px solid #ccc;
height: 20px;
}
.tree-node .tree-node:before {
content: '';
position: absolute;
top: 0;
left: 50%;
border-left: 1px solid #ccc;
height: 10px;
}
.node-children .tree-node:first-child:after,
.node-children .tree-node:last-child:after {
content: '';
position: absolute;
top: 0;
width: 50%;
height: 10px;
border-top: 1px solid #ccc;
}
.node-children .tree-node:first-child:after {
right: 50%;
}
.node-children .tree-node:last-child:after {
left: 50%;
}
.node-children .tree-node:only-child:after {
display: none;
}
/* Horizontal line connecting siblings */
.node-children {
position: relative;
}
.node-children:after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
border-top: 1px solid #ccc;
}
.node-children .tree-node:only-child:before {
height: 10px;
}
/* Modern WikiTable Styles */
.wikitable {
background-color: #ffffff;
border-collapse: collapse;
margin: 1em 0;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
width: 100%;
}
.wikitable > tr > th,
.wikitable > * > tr > th {
background-color: #f8f9fa;
border: 1px solid #dee2e6;
padding: 0.75rem;
color: #495057;
font-weight: 600;
text-align: left;
vertical-align: middle;
}
.wikitable > tr > td,
.wikitable > * > tr > td {
border: 1px solid #dee2e6;
padding: 0.75rem;
vertical-align: middle;
color: #212529;
}
.wikitable > tr:nth-child(even),
.wikitable > * > tr:nth-child(even) {
background-color: rgba(0,0,0,0.02);
}
.wikitable > tr:hover,
.wikitable > * > tr:hover {
background-color: rgba(0,0,0,0.04);
transition: background-color 0.15s ease-in-out;
}
/* Responsive table wrapper */
.table-responsive {
display: block;
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
margin-bottom: 1rem;
}
/* Sort indicators if sortable tables are used */
.wikitable th.headerSort {
cursor: pointer;
}
.wikitable th.headerSort:after {
content: '↕';
display: inline-block;
margin-left: 0.5em;
opacity: 0.5;
}
.wikitable th.headerSortUp:after {
content: '↑';
opacity: 1;
}
.wikitable th.headerSortDown:after {
content: '↓';
opacity: 1;
}
/* Caption styling */
.wikitable > caption {
padding: 0.75rem;
color: #6c757d;
text-align: left;
caption-side: top;
font-style: italic;
border-bottom: 2px solid #dee2e6;
}
/* Mobile optimizations */
@media (max-width: 768px) {
.wikitable > tr > th,
.wikitable > * > tr > th,
.wikitable > tr > td,
.wikitable > * > tr > td {
padding: 0.5rem;
}
}
/* Version test */
/* Reset default list styling */
ul {
list-style-type: none;
padding: 0;
margin: 0;
}
/* Container for the entire hierarchy */
.hierarchy {
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
background-color: #f4f4f4;
}
/* Shared node styling */
.hierarchy ul {
display: flex;
justify-content: center;
position: relative;
padding-top: 20px;
}
.hierarchy ul::before {
content: '';
position: absolute;
top: 0;
left: 50%;
border-left: 2px solid #333;
width: 0;
height: 20px;
}
/* Individual list items */
.hierarchy li {
position: relative;
padding: 20px 10px;
text-align: center;
}
/* Horizontal lines connecting siblings */
.hierarchy li::before,
.hierarchy li::after {
content: '';
position: absolute;
top: 0;
border-top: 2px solid #333;
}
.hierarchy li::before {
right: 50%;
border-right: 2px solid #333;
width: 50%;
height: 20px;
}
.hierarchy li::after {
left: 50%;
border-left: 2px solid #333;
width: 50%;
height: 20px;
}
/* Remove lines for first and last children */
.hierarchy li:first-child::before {
border-top-left-radius: 10px;
}
.hierarchy li:last-child::after {
border-top-right-radius: 10px;
}
/* Remove lines for items without children */
.hierarchy li:only-child::before,
.hierarchy li:only-child::after {
display: none;
}
/* Node styling */
.hierarchy a {
display: inline-block;
padding: 10px;
background-color: #fff;
border: 2px solid #333;
border-radius: 5px;
text-decoration: none;
color: #333;
white-space: nowrap;
}
.hierarchy a:hover {
background-color: #e0e0e0;
}
.badge a {
color: white !important;
}
.badge a.new {
color: #ffcccb !important;
}
.maps-map {
border-radius: 0.5rem;
filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
}
.hero-container {
padding-bottom: 2rem;
}
.mix-blend-multiply {
mix-blend-mode: multiply;
transition: opacity 0.5s ease;
}
.hero-section {
position: relative;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
border-radius: 0.25rem;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
height: calc(100dvh - 100px);
width: 100%;
transition: transform 0.3s ease;
}
.hero-section:hover img {
transform: scale(1.05);
}
.hero-section:hover .mix-blend-multiply {
opacity: 0.8;
}
.hero-section img {
transition: transform 0.3s ease;
object-fit: cover;
object-position: center;
inset: 0;
position: absolute;
height: 100%;
width: 100%;
}
.hero-overlay {
position: absolute;
height: 100%;
width: 100%;
inset: 0;
background-color: black;
opacity: 0.7;
}
.hero-text-container {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
padding: 1rem;
}
.hero-title {
text-align: center;
color: white;
font-weight: 600;
font-size: 3rem;
line-height: 1;
}
.hero-subtitle {
text-align: center;
color: white;
font-size: 1.3rem;
line-height: 1;
max-width: 70%;
}
.caret {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
font-size: 2rem;
color: white;
cursor: pointer;
animation: bounce 2s infinite;
}
@keyframes bounce {
0%, 20%, 50%, 80%, 100% {
transform: translateY(0) translateX(-50%);
}
40% {
transform: translateY(-10px) translateX(-50%);
}
60% {
transform: translateY(-5px) translateX(-50%);
}
}
@media (max-width: 400px) {
.hero-title {
font-size: 2.2rem;
}
.hero-subtitle {
font-size: 1.4rem;
}
}
@media (min-width: 768px) {
.hero-title {
font-size: 4rem;
}
.hero-subtitle {
font-size: 1.8rem;
}
}
.content-container {
width: 100%; /* Match hero section width */
max-width: 1600px; /* or your preferred max width */
margin: 0 auto; /* Center the container */
padding: 20px; /* Add padding for content */
}
.landing-page-row {
border-radius: 0.25rem;
background: oklch(0.374 0.01 67.558);
color: white;
padding: 1.5rem;
margin-bottom: 5rem;
ul {
list-style: none;
text-align: left;
}
}
.fit-img img {
border-radius: 0.25rem;
}
.editor-view {
display: none;
}
#hero-title-database {
font-weight: 900;
}
.fancy-underline {
position: relative;
}
.fancy-underline::after {
content: '';
position: absolute;
left: -5%;
bottom: -5px;
width: 110%;
height: 12px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' fill='none'%3E%3Cpath d='M1 5.5C32 2.5 62 7.5 101 4.5C139.5 1.5 190 5.5 199 3.5' stroke='%234B96FF' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-size: 100% 100%;
}
.dtfh-floatingparent {
top: 48px !important;
}
.alert-info {
background: rgba(0, 27, 255, 0.4) !important;
backdrop-filter: blur(20px) saturate(160%) contrast(45%) brightness(140%) !important;
-webkit-backdrop-filter: blur(20px) saturate(160%) contrast(45%) brightness(140%);
}