MediaWiki:Common.css: Difference between revisions

From DBWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */


#p-logo::after {
#p-logo {
    position: relative; /* Ensures that the subtitle is positioned relative to the logo */
}
 
#p-logo::before {
     content: "DBWiki"; /* Replace with your actual subtitle */
     content: "DBWiki"; /* Replace with your actual subtitle */
     display: block;
     position: absolute;
     font-size: 14px; /* Adjust the font size as needed */
    top: 0; /* Adjust to control vertical positioning */
    left: 50%;
    transform: translateX(-50%); /* Centers the subtitle horizontally over the logo */
     font-size: 14px; /* Adjust font size as needed */
     color: #000; /* Adjust color as needed */
     color: #000; /* Adjust color as needed */
   
     font-weight: bold; /* Makes the subtitle bold */
     font-weight: bold; /* Makes the subtitle bold */
     text-align: center;
     text-align: center;
     margin-bottom: 10px;
     background-color: rgba(255, 255, 255, 0.7); /* Optional: Adds a semi-transparent background */
    padding: 5px; /* Adds padding around the subtitle */
}
}

Revision as of 18:16, 10 October 2024

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

#p-logo {
    position: relative; /* Ensures that the subtitle is positioned relative to the logo */
}

#p-logo::before {
    content: "DBWiki"; /* Replace with your actual subtitle */
    position: absolute;
    top: 0; /* Adjust to control vertical positioning */
    left: 50%;
    transform: translateX(-50%); /* Centers the subtitle horizontally over the logo */
    font-size: 14px; /* Adjust font size as needed */
    color: #000; /* Adjust color as needed */
    font-weight: bold; /* Makes the subtitle bold */
    text-align: center;
    background-color: rgba(255, 255, 255, 0.7); /* Optional: Adds a semi-transparent background */
    padding: 5px; /* Adds padding around the subtitle */
}