MediaWiki:Common.css: Difference between revisions

From Roat Pkz
Jump to navigation Jump to search
No edit summary
No edit summary
Line 64: Line 64:
}
}


/* Change the background, text, and border color for all buttons */
/* General button styles */
button,
.vector-button,
.mw-ui-button {
.mw-ui-button {
     background-color: #5b8c5a; /* Green background */
     background-color: #172136; /* Change to your preferred background color */
     color: #283652; /* White text */
     color: #FFFFFF; /* Change to your preferred text color */
     border-color: #4a7248; /* Darker green border */
     border: 1px solid #005EA6; /* Change to your preferred border color */
}
}


/* You can also target specific types of buttons */
/* Button hover styles */
.mw-ui-progressive {
.vector-button:hover,
     background-color: #1a5e20; /* Darker green for primary action buttons */
.mw-ui-button:hover {
    color: #172136; /* White text */
     background-color: #172136; /* Darker shade for hover state */
}
}


.mw-ui-destructive {
/* Button active styles (when clicked) */
     background-color: #a94442; /* Red background for destructive action buttons */
.vector-button:active,
    color: #283652; /* White text */
.mw-ui-button:active {
     background-color: #172136; /* Even darker shade for active state */
}
}



Revision as of 23:16, 21 March 2024

body {
    background-color: #080f22; /* Replace '#yourColorCode' with your chosen color */
}

#mw-head {
    background-color: #2c2c2c; /* Slightly lighter dark shade for the top bar */
    color: #ffffff;
}

#mw-head {
    background-color: #2c2c2c; /* Slightly lighter dark shade for the top bar */
    color: #ffffff;
}


#mw-panel {
    background-color: #2c2c2c; /* Synchronizing with the top bar */
    color: #ffffff;
}

#mw-panel {
    background-color: #2c2c2c; /* Synchronizing with the top bar */
    color: #ffffff;
}

/* Example for the sidebar */
#mw-panel {
    background-image: url('https://oldschool.runescape.wiki/images/Old_School_RuneScape_Wiki_background_darkmode.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #080f22; /* This sets the background color of the entire sidebar */
}
#mw-panel::after {
    content: ''; /* Necessary for pseudo-elements */
    display: block; /* Makes it a block element */
    height: 50px; /* The height of the bottom bar you want to show */
    background-color: #080f22; /* The color you want for the bottom of the sidebar */
}

/* Example for the top bar */
#mw-head {
    background-image: url('https://oldschool.runescape.wiki/images/Old_School_RuneScape_Wiki_background_darkmode.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}

#content {
    background-color: #172136; /* Light blue background */
}

/* Change the text color within the content area */
.mw-body-content {
    color: #ffffff; /* This sets the text color; replace with your desired color code */
}

/* Change the text color of paragraphs within the content area */
.mw-body-content p {
    color: #ffffff; /* This sets the text color for paragraphs; replace with your desired color code */
}

/* Change the header text color */
#firstHeading {
    color: #ffc93c; /* Replace '#yourColorCode' with the color you want for the header text */
}

/* General button styles */
.vector-button,
.mw-ui-button {
    background-color: #172136; /* Change to your preferred background color */
    color: #FFFFFF; /* Change to your preferred text color */
    border: 1px solid #005EA6; /* Change to your preferred border color */
}

/* Button hover styles */
.vector-button:hover,
.mw-ui-button:hover {
    background-color: #172136; /* Darker shade for hover state */
}

/* Button active styles (when clicked) */
.vector-button:active,
.mw-ui-button:active {
    background-color: #172136; /* Even darker shade for active state */
}


a {
    color: #9cd9f0; /* A light blue color for links */
}
a:visited {
    color: #829da7; /* A more subdued color for visited links */
}