MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 10: Line 10:




/* Ensure the container for the namespaces and views tabs is a flex container */
/* Ensure the entire navigation bar is a flex container */
#p-namespaces .vector-menu-content,
#p-namespaces,
#p-views .vector-menu-content {
#p-views {
     display: flex;
     display: flex;
     justify-content: flex-start; /* Align items to the left, adjust as needed */
     justify-content: flex-end; /* Align items to the right */
     align-items: center;
     align-items: center;
     list-style-type: none;
     list-style-type: none;
     padding: 0;
     padding: 0;
     margin: 0;
     margin: 0;
    width: 100%; /* Ensure it takes up the full width */
}
}


/* Target the specific tabs to ensure they are positioned correctly */
/* Ensure the tabs within the navigation are aligned correctly */
#ca-nstab-main,
#p-namespaces .vector-menu-content,
#ca-talk {
#p-views .vector-menu-content {
     order: -1; /* Move these items to the beginning */
     display: flex;
     margin-right: 10px; /* Adjust spacing as needed */
    align-items: center;
     margin: 0;
    padding: 0;
}
}


/* Optional: Adjust individual tab spacing */
/* Remove default margins and paddings from tabs */
#p-namespaces ul li,
#p-namespaces ul li,
#p-views ul li {
#p-views ul li {
     margin-right: 10px; /* Adjust this value as needed */
     margin: 0 10px; /* Adjust spacing as needed */
     padding: 0; /* Ensure no extra padding */
     padding: 0;
    list-style: none;
}
 
/* Specific adjustments for "Page" and "Discussion" tabs */
#ca-nstab-main,
#ca-talk {
    margin: 0 10px; /* Adjust spacing as needed */
    order: 1; /* Ensure they appear in the correct order */
}
}


/* General styles to ensure consistent appearance */
/* Ensure the personal tools are aligned properly */
#p-namespaces ul,
#p-personal {
#p-views ul {
     display: flex;
     display: flex;
    justify-content: flex-end;
     align-items: center;
     align-items: center;
     list-style-type: none;
     width: 100%;
    padding: 0;
    margin: 0;
}
 
/* Align the tabs container to ensure it occupies the full width */
#p-personal,
#p-namespaces,
#p-views {
    display: inline-block;
    vertical-align: top;
}
}

Revision as of 05:45, 19 May 2024

/* CSS placed here will be applied to all skins */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');

.sci-fi-font {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
}



/* Ensure the entire navigation bar is a flex container */
#p-namespaces,
#p-views {
    display: flex;
    justify-content: flex-end; /* Align items to the right */
    align-items: center;
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%; /* Ensure it takes up the full width */
}

/* Ensure the tabs within the navigation are aligned correctly */
#p-namespaces .vector-menu-content,
#p-views .vector-menu-content {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Remove default margins and paddings from tabs */
#p-namespaces ul li,
#p-views ul li {
    margin: 0 10px; /* Adjust spacing as needed */
    padding: 0;
    list-style: none;
}

/* Specific adjustments for "Page" and "Discussion" tabs */
#ca-nstab-main,
#ca-talk {
    margin: 0 10px; /* Adjust spacing as needed */
    order: 1; /* Ensure they appear in the correct order */
}

/* Ensure the personal tools are aligned properly */
#p-personal {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}