Difere entre revisas de "MediaWiki:Chameleon.css"

De Red Zambala

No resoma de edita
No resoma de edita
Linia 68: Linia 68:
  * This approach creates a balanced three-section layout using flexbox
  * This approach creates a balanced three-section layout using flexbox
  */
  */
  /* Solution for centering brand name using flexbox and margins */
  /* Flexbox solution for centering the brand name */
/* Make sure the navbar collapse uses flexbox layout */
/* Make the navbar use flexbox with space distribution */
.p-navbar .collapse.navbar-collapse {
.collapse.navbar-collapse {
     display: flex !important;
     display: flex !important;
     flex-direction: row !important;
     flex-wrap: wrap;
}
}


/* Set up the left navigation section */
/* Create 3-column layout using flex distribution */
.p-navbar .navbar-collapse .navbar-nav:first-child {
.collapse.navbar-collapse .navbar-nav:first-child {
     width: 33.33%;
     flex: 1; /* Left navigation takes available space */
    min-width: 200px;
     justify-content: flex-start;
     justify-content: flex-start;
}
}


/* Brand name styling and positioning */
/* Center the brand name */
.p-navbar .navbar-nav .brand-name {
.collapse.navbar-collapse .navbar-nav:first-child .brand-name {
     margin: 0 auto;
     margin-left: auto; /* Push to right edge of its container */
    text-align: center;
    font-weight: bold;
}
}


/* Set up the right navigation section */
/* Right side navigation */
.p-navbar .navbar-collapse .navbar-nav.right {
.collapse.navbar-collapse .navbar-nav.right {
     width: 33.33%;
     flex: 1; /* Right navigation takes available space */
    min-width: 200px;
    margin-left: auto;
     justify-content: flex-end;
     justify-content: flex-end;
}
}


/* Ensure the main navbar items are properly aligned */
/* Brand name styling to ensure it remains visible */
.p-navbar .navbar-nav {
.brand-name {
     display: flex !important;
     font-weight: bold;
    flex-direction: row !important;
     white-space: nowrap;
     align-items: center;
}
}


/* Responsive adjustments */
/* Handle smaller screens properly */
@media (max-width: 1104px) {
@media (max-width: 1104px) {
     .p-navbar .collapse.navbar-collapse {
     .collapse.navbar-collapse {
         flex-direction: column !important;
         flex-direction: column;
    }
   
    .p-navbar .navbar-collapse .navbar-nav:first-child,
    .p-navbar .navbar-collapse .navbar-nav.right {
        width: 100%;
        justify-content: center;
     }
     }
      
      
     .p-navbar .navbar-nav .brand-name {
     .collapse.navbar-collapse .navbar-nav:first-child .brand-name {
         margin: 10px auto;
         margin: 10px auto; /* Center on small screens */
     }
     }
}
}

Revisa de 01:46, 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
 */
 /* Flexbox solution for centering the brand name */
/* Make the navbar use flexbox with space distribution */
.collapse.navbar-collapse {
    display: flex !important;
    flex-wrap: wrap;
}

/* Create 3-column layout using flex distribution */
.collapse.navbar-collapse .navbar-nav:first-child {
    flex: 1;  /* Left navigation takes available space */
    justify-content: flex-start;
}

/* Center the brand name */
.collapse.navbar-collapse .navbar-nav:first-child .brand-name {
    margin-left: auto;  /* Push to right edge of its container */
}

/* Right side navigation */
.collapse.navbar-collapse .navbar-nav.right {
    flex: 1;  /* Right navigation takes available space */
    justify-content: flex-end;
}

/* Brand name styling to ensure it remains visible */
.brand-name {
    font-weight: bold;
    white-space: nowrap;
}

/* Handle smaller screens properly */
@media (max-width: 1104px) {
    .collapse.navbar-collapse {
        flex-direction: column;
    }
    
    .collapse.navbar-collapse .navbar-nav:first-child .brand-name {
        margin: 10px auto;  /* Center on small screens */
    }
}