Difere entre revisas de "MediaWiki:Chameleon.css"

De Red Zambala

No resoma de edita
No resoma de edita
Linia 69: Linia 69:
  */
  */


/* Basic layout structure - use flexbox for the navbar */
/**
* MediaWiki Chameleon skin - Brand name centering solution
* A simple and effective approach that works with the existing HTML structure
*/
 
/* Make sure the navbar containers use flexbox properly */
.p-navbar .navbar-collapse {
.p-navbar .navbar-collapse {
     display: flex !important;
     display: flex !important;
     flex-direction: row !important;
     flex-direction: row !important;
    align-items: center;
    width: 100%;
}
}


/* Left navigation section */
/* Create a three-column layout effect */
.p-navbar .navbar-nav:first-child {
.p-navbar .navbar-nav:first-child {
     flex-basis: 33%;
     flex: 1;
     display: flex !important;
     display: flex !important;
     flex-direction: row !important;
     justify-content: center;
     align-items: center;
     position: relative;
}
}


/* Create a virtual center section by moving the brand name */
/* Set the main navigation item to the left */
.brand-name {
.p-navbar .navbar-nav:first-child > div:not(.brand-name) {
     flex-basis: 34%;
     position: absolute;
    text-align: center;
     left: 0;
     margin: 0 !important;
    order: 2;
}
}


/* Force the brand name to be independent from its parent container */
/* Center the brand name */
.p-navbar .navbar-nav:first-child > .brand-name {
.p-navbar .navbar-nav:first-child .brand-name {
     margin-left: auto !important;
     margin: 0 auto;
    text-align: center;
}
}


/* Right navigation section takes remaining space */
/* Right side navigation */
.p-navbar .navbar-nav.right {
.p-navbar .navbar-nav.right {
     flex-basis: 33%;
     flex: 1;
     display: flex !important;
     display: flex !important;
     justify-content: flex-end;
     justify-content: flex-end;
    align-items: center;
}
}


/* Style the brand name link */
/* Brand name styling */
.brand-name a {
.brand-name a {
     font-weight: bold;
     font-weight: bold;
    padding: 0 15px;
     white-space: nowrap;
     white-space: nowrap;
}
}
Linia 121: Linia 121:
     .p-navbar .navbar-nav:first-child {
     .p-navbar .navbar-nav:first-child {
         flex-direction: column !important;
         flex-direction: column !important;
         width: 100%;
         position: static;
        flex-basis: auto;
     }
     }
      
      
    .brand-name,
     .p-navbar .navbar-nav:first-child > div:not(.brand-name) {
     .p-navbar .navbar-nav:first-child > .brand-name {
         position: static;
         margin: 10px auto !important;
        flex-basis: auto;
        width: 100%;
     }
     }
      
      
     .p-navbar .navbar-nav.right {
     .p-navbar .navbar-nav:first-child .brand-name {
         width: 100%;
         margin: 10px auto;
        flex-basis: auto;
        justify-content: center;
     }
     }
}
}

Revisa de 01:33, 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
 * A simple and effective approach that works with the existing HTML structure
 */

/* Make sure the navbar containers use flexbox properly */
.p-navbar .navbar-collapse {
    display: flex !important;
    flex-direction: row !important;
}

/* Create a three-column layout effect */
.p-navbar .navbar-nav:first-child {
    flex: 1;
    display: flex !important;
    justify-content: center;
    position: relative;
}

/* Set the main navigation item to the left */
.p-navbar .navbar-nav:first-child > div:not(.brand-name) {
    position: absolute;
    left: 0;
}

/* Center the brand name */
.p-navbar .navbar-nav:first-child .brand-name {
    margin: 0 auto;
    text-align: center;
}

/* Right side navigation */
.p-navbar .navbar-nav.right {
    flex: 1;
    display: flex !important;
    justify-content: flex-end;
}

/* Brand name styling */
.brand-name a {
    font-weight: bold;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 1104px) {
    .p-navbar .navbar-collapse {
        flex-direction: column !important;
    }
    
    .p-navbar .navbar-nav:first-child {
        flex-direction: column !important;
        position: static;
    }
    
    .p-navbar .navbar-nav:first-child > div:not(.brand-name) {
        position: static;
    }
    
    .p-navbar .navbar-nav:first-child .brand-name {
        margin: 10px auto;
    }
}