Difere entre revisas de "MediaWiki:Chameleon.css"
De Red Zambala
Zambala (discute | contribuis) No resoma de edita |
Zambala (discute | contribuis) No resoma de edita |
||
| Linia 71: | Linia 71: | ||
/** | /** | ||
* MediaWiki Chameleon skin - Brand name centering solution | * MediaWiki Chameleon skin - Brand name centering solution | ||
*/ | */ | ||
/* | /* Main container setup with grid layout */ | ||
.p-navbar .navbar-collapse { | .p-navbar .navbar-collapse { | ||
display: | display: grid !important; | ||
grid-template-columns: 1fr auto 1fr; | |||
width: 100%; | |||
} | } | ||
/* | /* Left navigation items */ | ||
.p-navbar .navbar-nav:first-child { | .p-navbar .navbar-nav:first-child { | ||
grid-column: 1; | |||
display: flex | display: flex; | ||
align-items: center; | |||
} | } | ||
/* | /* Position the brand name in the middle column */ | ||
.p-navbar .navbar-nav | .p-navbar .navbar-nav .brand-name { | ||
grid-column: 2; | |||
grid-row: 1; | |||
margin: 0 20px; | |||
justify-self: center; | |||
} | } | ||
/* | /* Move the brand name out of the normal flow */ | ||
.p-navbar .navbar-nav:first-child .brand-name { | .p-navbar .navbar-nav:first-child .brand-name { | ||
display: none; | |||
} | |||
/* Add the brand name back in the grid container */ | |||
.p-navbar .navbar-collapse::before { | |||
content: ""; | |||
display: none; | |||
} | |||
.p-navbar .navbar-collapse::after { | |||
content: ""; | |||
display: block; | |||
grid-column: 2; | |||
grid-row: 1; | |||
} | |||
/* Reinsert the brand name */ | |||
.p-navbar .navbar-collapse .brand-name { | |||
grid-column: 2; | |||
grid-row: 1; | |||
display: block; | |||
} | } | ||
/* Right side navigation */ | /* Right side navigation */ | ||
.p-navbar .navbar-nav.right { | .p-navbar .navbar-nav.right { | ||
grid-column: 3; | |||
display: flex | justify-self: end; | ||
display: flex; | |||
align-items: center; | |||
} | } | ||
| Linia 116: | Linia 137: | ||
@media (max-width: 1104px) { | @media (max-width: 1104px) { | ||
.p-navbar .navbar-collapse { | .p-navbar .navbar-collapse { | ||
flex-direction: column | display: flex !important; | ||
flex-direction: column; | |||
} | } | ||
.p-navbar .navbar-nav:first-child { | .p-navbar .navbar-nav:first-child .brand-name { | ||
display: block; | |||
} | } | ||
.p-navbar .navbar- | .p-navbar .navbar-collapse .brand-name { | ||
display: none; | |||
} | } | ||
.p-navbar .navbar-nav | .p-navbar .navbar-nav .brand-name { | ||
margin: 10px auto; | margin: 10px auto; | ||
} | } | ||
} | } | ||
Revisa de 01:36, 16 maio 2025
.p-navbar {
background-color: transparent;
border-bottom: solid #f1008f;
}
.navbar-light .navbar-nav .nav-link,.p-navbar .navbar-nav .nav-link, .navbar-light .navbar-nav .p-navbar .navbar-tool > a, .p-navbar .navbar-light .navbar-nav .navbar-tool > a, .p-navbar .navbar-nav .navbar-tool > a {
color: #282A36;
}
#footer-places{display:none !important}
#footer-info div:nth-of-type(2){display:none}
#footer-icons div:nth-of-type(2) {
display: none;
}
.navbar-light .navbar-nav .nav-link:hover, .p-navbar .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .p-navbar .navbar-tool > a:hover, .p-navbar .navbar-light .navbar-nav .navbar-tool > a:hover, .p-navbar .navbar-nav .navbar-tool > a:hover, .navbar-light .navbar-nav .nav-link:focus, .p-navbar .navbar-nav .nav-link:focus, .navbar-light .navbar-nav .p-navbar .navbar-tool > a:focus, .p-navbar .navbar-light .navbar-nav .navbar-tool > a:focus, .p-navbar .navbar-nav .navbar-tool > a:focus {
color: #282A36;
}
body {
background: url(/img/sicily.jpg) 0 #fff;
}
#content {
background-color: #ffffff;
}
#bodyContent p {font-size: 1.125rem}
/* Internal wiki links */
#mw-content-text a,
#mw-content-text a:visited,
#mw-content-text a:hover,
#mw-content-text a:focus {
color: #007fff;
}
.mw-parser-output a.extiw:visited, .mw-parser-output a.external:visited {
color: #d51bb3 !important;
}
.mw-parser-output a.extiw, .mw-parser-output a.external {
color: #d51bb3 !important;
}
.mw-body .catlinks a {
color: #ff5582;
}
/* Style for the navbar to ensure proper flexbox behavior */
.brand-name a,
.brand-name a:visited,
.brand-name a:hover,
.brand-name a:focus
{
font-family: 'Times New Roman', 'Times', Serif;
letter-spacing: .5px;
font-weight: 500;
font-size: calc(22px + .7vw);
color: #008ff1;
text-decoration: none;
}
/**
* MediaWiki Chameleon skin - Brand name centering solution
* This approach creates a balanced three-section layout using flexbox
*/
/**
* MediaWiki Chameleon skin - Brand name centering solution
*/
/* Main container setup with grid layout */
.p-navbar .navbar-collapse {
display: grid !important;
grid-template-columns: 1fr auto 1fr;
width: 100%;
}
/* Left navigation items */
.p-navbar .navbar-nav:first-child {
grid-column: 1;
display: flex;
align-items: center;
}
/* Position the brand name in the middle column */
.p-navbar .navbar-nav .brand-name {
grid-column: 2;
grid-row: 1;
margin: 0 20px;
justify-self: center;
}
/* Move the brand name out of the normal flow */
.p-navbar .navbar-nav:first-child .brand-name {
display: none;
}
/* Add the brand name back in the grid container */
.p-navbar .navbar-collapse::before {
content: "";
display: none;
}
.p-navbar .navbar-collapse::after {
content: "";
display: block;
grid-column: 2;
grid-row: 1;
}
/* Reinsert the brand name */
.p-navbar .navbar-collapse .brand-name {
grid-column: 2;
grid-row: 1;
display: block;
}
/* Right side navigation */
.p-navbar .navbar-nav.right {
grid-column: 3;
justify-self: end;
display: flex;
align-items: center;
}
/* Brand name styling */
.brand-name a {
font-weight: bold;
white-space: nowrap;
}
/* Responsive adjustments */
@media (max-width: 1104px) {
.p-navbar .navbar-collapse {
display: flex !important;
flex-direction: column;
}
.p-navbar .navbar-nav:first-child .brand-name {
display: block;
}
.p-navbar .navbar-collapse .brand-name {
display: none;
}
.p-navbar .navbar-nav .brand-name {
margin: 10px auto;
}
}