Toggle menu
9
0
4
180
sampsphere.com
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
/* Dark Mode Styling for MediaWiki Skin */
:root {
    --black: #000000;
    --white: #FFFFFF;
    --maroon: #A52A2A;
    --light-maroon: #FF6464;
    --dark-maroon: #4B0000;
    --footer-bg: #2A2A2A;
}


/* General body styling */
/* General body styling */
body {
body {
     background-color: #000000; /* Black background for the entire body */
     background-color: var(--black); /* Black background for the entire body */
     color: #FFFFFF; /* White text for better readability */
     color: var(--white); /* White text color for readability */
     font-family: Arial, sans-serif; /* Use a modern sans-serif font for clarity */
     font-family: Arial, sans-serif; /* Use a clean, sans-serif font */
     line-height: 1.5; /* Improved line height for readability */
     line-height: 1.6; /* Improved line height for readability */
    margin: 0; /* Remove default margin */
    padding: 20px; /* Add padding */
}
 
/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--maroon); /* Maroon color for headings */
    margin: 1em 0 0.5em; /* Spacing above/below headings */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Subtle shadow for depth */
}
 
/* Paragraphs */
p {
    color: var(--dark-maroon); /* Dark maroon for paragraphs */
    margin: 1em 0; /* Margins around paragraphs */
}
}


/* Links */
/* Links */
a {
a {
     color: #C52A2A; /* Dark red for links */
     color: var(--maroon); /* Maroon for links */
     transition: color 0.3s; /* Smooth transition for hover effect */
    text-decoration: none; /* Remove underline from links */
     transition: color 0.3s; /* Animates the color change */
}
}


a:hover {
a:hover {
     color: #FF6464; /* Lighter red on hover */
     color: var(--light-maroon); /* Lighter maroon on hover */
    text-decoration: underline; /* Underline on hover for emphasis */
}
}


/* Input boxes and text areas with large white text */
/* Input boxes and text areas */
input[type="text"],
input[type="text"],
input[type="password"],
input[type="password"],
Line 26: Line 50:
input[type="search"],
input[type="search"],
textarea {
textarea {
     background-color: #FFFFFF; /* White background for input */
     background-color: var(--white); /* White for inputs */
     color: #000000; /* Black text in input for readability */
     color: var(--dark-maroon); /* Dark maroon text */
     border: 2px solid #C52A2A; /* Dark red border */
     border: 2px solid var(--maroon); /* Maroon border */
     padding: 10px; /* Add padding */
     padding: 10px; /* Add padding */
     border-radius: 4px; /* Slightly rounded corners */
     border-radius: 4px; /* Slightly rounded corners */
     font-size: 18px; /* Large font size for text */
     font-size: 16px; /* Comfortable font size for inputs */
     transition: border-color 0.3s; /* Smooth transition for border color */
     transition: border-color 0.3s; /* Smooth transition for border color */
}
}


/* Change border color on focus */
input:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus {
textarea:focus {
     border-color: #FF6464; /* Lighter red when focused */
     border-color: var(--light-maroon); /* Lighter maroon on focus */
     outline: none; /* Remove default outline */
     outline: none; /* Remove default outline */
}
}


/* Style for buttons */
/* Buttons */
button,
button,
input[type="submit"],
input[type="submit"],
input[type="button"] {
input[type="button"] {
     background-color: #C52A2A; /* Dark red background for buttons */
     background-color: var(--maroon); /* Maroon background for buttons */
     color: #FFFFFF; /* White text on buttons */
     color: var(--white); /* White text on buttons */
     border: none; /* Remove default border */
     border: none; /* Remove default border */
     padding: 10px 20px; /* Add padding */
     padding: 10px 20px; /* Add padding to buttons */
     border-radius: 4px; /* Rounded corners */
     border-radius: 5px; /* Rounded corners */
    font-size: 16px; /* Consistent font size for buttons */
     cursor: pointer; /* Change cursor on hover */
     cursor: pointer; /* Change cursor on hover */
    font-size: 16px; /* Consistent font size for buttons */
     transition: background-color 0.3s, transform 0.2s; /* Smooth transitions */
     transition: background-color 0.3s, transform 0.2s; /* Smooth transitions */
}
}
Line 63: Line 82:
input[type="submit"]:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
input[type="button"]:hover {
     background-color: #FF6464; /* Lighter red on hover */
     background-color: var(--light-maroon); /* Lighter maroon on hover */
     transform: translateY(-2px); /* Subtle lift effect on hover */
     transform: translateY(-2px); /* Subtle lift effect on hover */
}
/* Heading styles */
h1, h2, h3, h4, h5, h6 {
    color: #C52A2A; /* Dark red for headings */
}
}


/* Code blocks */
/* Code blocks */
pre, code {
pre, code {
     background-color: #222222; /* Dark gray for code blocks */
     background-color: var(--dark-maroon); /* Dark maroon background for code blocks */
     color: #FFFFFF; /* White text in code */
     color: var(--white); /* White text in code blocks */
     border-radius: 5px; /* Rounded corners */
     border-radius: 5px; /* Rounded corners */
     padding: 10px; /* Spacing inside code blocks */
     padding: 10px; /* Spacing inside code blocks */
     overflow-x: auto; /* Allow horizontal scrolling for code */
     overflow-x: auto; /* Allow horizontal scrolling for code */
}
/* Navigation elements */
#mw-navigation {
    background-color: #1A1A1A; /* Darker background for navigation */
    padding: 10px; /* Padding for navigation */
    border-bottom: 1px solid #C52A2A; /* Dark red bottom border */
}
}


/* Footer styling */
/* Footer styling */
#mw-footer {
#mw-footer {
     background-color: #1A1A1A; /* Dark footer */
     background-color: var(--footer-bg); /* Dark background for footer */
     color: #FFFFFF; /* White text for footer */
     color: var(--dark-maroon); /* Dark maroon for footer text */
     font-size: 14px; /* Font size for footer text */
     font-size: 14px; /* Font size for footer text */
     padding: 20px; /* Spacing in footer */
     padding: 20px; /* Spacing in footer */
Line 97: Line 104:
}
}


/* Footer links */
#mw-footer a {
#mw-footer a {
     color: #C52A2A; /* Dark red for footer links */
     color: var(--maroon); /* Maroon for footer links */
}
}


#mw-footer a:hover {
#mw-footer a:hover {
     color: #FF6464; /* Lighter red on hover for footer links */
     color: var(--light-maroon); /* Lighter maroon on hover for footer links */
}
}


/* Parser Profiling Data Styling */
/* Custom styles for specific sections */
#mw-parser-profile, .parser-profiling { /* Use the correct ID or class for the section */
#custom-section {
     color: #FFFFFF; /* White text color for the section title */
    background-color: var(--dark-maroon); /* Darker maroon for custom sections */
     background-color: #1A1A1A; /* Optional: Dark background for better contrast */
     color: var(--white); /* White text colors within the section */
     padding: 20px; /* Add padding for spacing */
    border-radius: 5px; /* Rounded corners */
}
}


/* Specific styles for Parser Profiling Data Values */
/* Responsive Design */
#mw-parser-profile span, #mw-parser-profile div { /* Targeting additional spans and divs within parser profiling */
@media (max-width: 600px) {
     color: #FFFFFF; /* White color for text and values like CPU usage time, etc. */
    body {
}
        padding: 10px; /* Reduce padding on smaller screens */
    }
 
    button, input[type="submit"], input[type="button"] {
        width: 100%; /* Make buttons full width */
        font-size: 14px; /* Slightly smaller font size for buttons */
     }
 
    h1 {
        font-size: 1.8em; /* Adjust heading sizes for smaller screens */
    }


/* Styling for the coding input area specifically */
    h2, h3 {
input#parser-input-area { /* Use the selector for your specific input area */
        font-size: 1.5em; /* Adjust heading sizes for smaller screens */
    background-color: #FFFFFF; /* White background for the input area */
     }
     color: #000000; /* Black text in the input area */
}
}

Revision as of 14:16, 20 December 2024

:root {
    --black: #000000;
    --white: #FFFFFF;
    --maroon: #A52A2A;
    --light-maroon: #FF6464;
    --dark-maroon: #4B0000;
    --footer-bg: #2A2A2A;
}

/* General body styling */
body {
    background-color: var(--black); /* Black background for the entire body */
    color: var(--white); /* White text color for readability */
    font-family: Arial, sans-serif; /* Use a clean, sans-serif font */
    line-height: 1.6; /* Improved line height for readability */
    margin: 0; /* Remove default margin */
    padding: 20px; /* Add padding */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--maroon); /* Maroon color for headings */
    margin: 1em 0 0.5em; /* Spacing above/below headings */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Subtle shadow for depth */
}

/* Paragraphs */
p {
    color: var(--dark-maroon); /* Dark maroon for paragraphs */
    margin: 1em 0; /* Margins around paragraphs */
}

/* Links */
a {
    color: var(--maroon); /* Maroon for links */
    text-decoration: none; /* Remove underline from links */
    transition: color 0.3s; /* Animates the color change */
}

a:hover {
    color: var(--light-maroon); /* Lighter maroon on hover */
    text-decoration: underline; /* Underline on hover for emphasis */
}

/* Input boxes and text areas */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
    background-color: var(--white); /* White for inputs */
    color: var(--dark-maroon); /* Dark maroon text */
    border: 2px solid var(--maroon); /* Maroon border */
    padding: 10px; /* Add padding */
    border-radius: 4px; /* Slightly rounded corners */
    font-size: 16px; /* Comfortable font size for inputs */
    transition: border-color 0.3s; /* Smooth transition for border color */
}

input:focus,
textarea:focus {
    border-color: var(--light-maroon); /* Lighter maroon on focus */
    outline: none; /* Remove default outline */
}

/* Buttons */
button,
input[type="submit"],
input[type="button"] {
    background-color: var(--maroon); /* Maroon background for buttons */
    color: var(--white); /* White text on buttons */
    border: none; /* Remove default border */
    padding: 10px 20px; /* Add padding to buttons */
    border-radius: 5px; /* Rounded corners */
    font-size: 16px; /* Consistent font size for buttons */
    cursor: pointer; /* Change cursor on hover */
    transition: background-color 0.3s, transform 0.2s; /* Smooth transitions */
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: var(--light-maroon); /* Lighter maroon on hover */
    transform: translateY(-2px); /* Subtle lift effect on hover */
}

/* Code blocks */
pre, code {
    background-color: var(--dark-maroon); /* Dark maroon background for code blocks */
    color: var(--white); /* White text in code blocks */
    border-radius: 5px; /* Rounded corners */
    padding: 10px; /* Spacing inside code blocks */
    overflow-x: auto; /* Allow horizontal scrolling for code */
}

/* Footer styling */
#mw-footer {
    background-color: var(--footer-bg); /* Dark background for footer */
    color: var(--dark-maroon); /* Dark maroon for footer text */
    font-size: 14px; /* Font size for footer text */
    padding: 20px; /* Spacing in footer */
    text-align: center; /* Center align footer text */
}

#mw-footer a {
    color: var(--maroon); /* Maroon for footer links */
}

#mw-footer a:hover {
    color: var(--light-maroon); /* Lighter maroon on hover for footer links */
}

/* Custom styles for specific sections */
#custom-section {
    background-color: var(--dark-maroon); /* Darker maroon for custom sections */
    color: var(--white); /* White text colors within the section */
    padding: 20px; /* Add padding for spacing */
    border-radius: 5px; /* Rounded corners */
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        padding: 10px; /* Reduce padding on smaller screens */
    }

    button, input[type="submit"], input[type="button"] {
        width: 100%; /* Make buttons full width */
        font-size: 14px; /* Slightly smaller font size for buttons */
    }

    h1 {
        font-size: 1.8em; /* Adjust heading sizes for smaller screens */
    }

    h2, h3 {
        font-size: 1.5em; /* Adjust heading sizes for smaller screens */
    }
}