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
  */
  */
/**
/**
  * MediaWiki Chameleon skin - Brand name centering solution
  * Solution for centering the Red Zambala brand name
  * This approach uses CSS Grid to create a reliable 3-column layout
  * Uses a balanced approach with fixed widths
  */
  */


/* Convert navbar to grid layout */
/* Ensure the navbar has proper flexbox layout */
.p-navbar .navbar-collapse {
.p-navbar .navbar-collapse {
     display: grid !important;
     display: flex !important;
     grid-template-columns: 1fr auto 1fr;
     flex-direction: row !important;
     align-items: center;
     align-items: center;
}
}


/* Set grid areas */
/* Structure the left navigation */
.p-navbar .navbar-collapse .navbar-nav:first-child {
.p-navbar .navbar-collapse .navbar-nav:first-child {
     grid-column: 1;
     display: flex !important;
     display: flex;
    flex-direction: row !important;
     width: 100%;
    justify-content: space-between;
     align-items: center;
     align-items: center;
}
}


/* Extract brand name from first nav and position in center column */
/* Position and style the main navigation items */
.p-navbar .navbar-collapse .navbar-nav:first-child > div:not(.brand-name) {
    flex: 0 0 auto;
}
 
/* Make brand name take remaining space and center its content */
.p-navbar .navbar-collapse .navbar-nav:first-child .brand-name {
.p-navbar .navbar-collapse .navbar-nav:first-child .brand-name {
     grid-column: 2;
     flex: 1;
    grid-row: 1;
     text-align: center;
     text-align: center;
    margin: 0 20px;
}
}


/* Right navigation in third column */
/* Style for the brand name link */
.p-navbar .navbar-collapse .navbar-nav.right {
.p-navbar .navbar-collapse .brand-name a {
     grid-column: 3;
     font-weight: bold;
    justify-self: end;
     display: inline-block;
     display: flex;
    align-items: center;
}
}


/* Make sure the brand name has proper styling */
/* Right side tools */
.p-navbar .brand-name a {
.p-navbar .navbar-collapse .navbar-nav.right {
     font-weight: bold;
     margin-left: auto;
    white-space: nowrap;
}
}


/* Responsive behavior */
/* Responsive behavior for smaller screens */
@media (max-width: 1104px) {
@media (max-width: 1104px) {
     .p-navbar .navbar-collapse {
     .p-navbar .navbar-collapse {
        display: flex !important;
         flex-direction: column !important;
         flex-direction: column;
     }
     }
      
      
     .p-navbar .navbar-collapse .navbar-nav:first-child,
     .p-navbar .navbar-collapse .navbar-nav:first-child {
    .p-navbar .navbar-collapse .navbar-nav.right {
        flex-direction: column !important;
         width: 100%;
         width: 100%;
     }
     }

Revisa de 01:40, 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
 */
 /**
 * Solution for centering the Red Zambala brand name
 * Uses a balanced approach with fixed widths
 */

/* Ensure the navbar has proper flexbox layout */
.p-navbar .navbar-collapse {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
}

/* Structure the left navigation */
.p-navbar .navbar-collapse .navbar-nav:first-child {
    display: flex !important;
    flex-direction: row !important;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

/* Position and style the main navigation items */
.p-navbar .navbar-collapse .navbar-nav:first-child > div:not(.brand-name) {
    flex: 0 0 auto;
}

/* Make brand name take remaining space and center its content */
.p-navbar .navbar-collapse .navbar-nav:first-child .brand-name {
    flex: 1;
    text-align: center;
}

/* Style for the brand name link */
.p-navbar .navbar-collapse .brand-name a {
    font-weight: bold;
    display: inline-block;
}

/* Right side tools */
.p-navbar .navbar-collapse .navbar-nav.right {
    margin-left: auto;
}

/* Responsive behavior for smaller screens */
@media (max-width: 1104px) {
    .p-navbar .navbar-collapse {
        flex-direction: column !important;
    }
    
    .p-navbar .navbar-collapse .navbar-nav:first-child {
        flex-direction: column !important;
        width: 100%;
    }
    
    .p-navbar .navbar-collapse .navbar-nav:first-child .brand-name {
        margin: 10px 0;
    }
}