MediaWiki:Common.css: Difference between revisions

From abbyversewiki.irkanien.de
Jump to navigationJump to search
mNo edit summary
Tag: Manual revert
mNo edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* Limit the width of the main content area and center the entire article content */
 
/* Scale the wiki logo */
.mw-wiki-logo {
    background-size: contain !important;
    width: 180px !important;  /* Adjust width */
    height: 180px !important; /* Adjust height */
}
 
#toc {
    position: relative; /* Keeps it in normal document flow */
    float: left !important;
    max-width: 450px; /* Fix width-max typo */
    margin-right: 25px;
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #aaa;
    clear: both; /* Ensures it does not get overlapped */
}
 
/* Set a max-width for article content */
.mw-body-content {
.mw-body-content {
    max-width: 800px; /* Adjust as needed */
    margin: 0 auto; /* Centers the content */
}
/* Limit the width of the main content area and center the text block */
.mw-content-ltr {
     max-width: 800px; /* Adjust this as needed */
     max-width: 800px; /* Adjust this as needed */
     margin-left: auto;
     margin-left: auto;
     margin-right: auto;
     margin-right: auto;
     padding: 0 20px; /* Adds some spacing on the sides */
     padding: 0 20px; /* Adds some spacing on the sides */
     display: block;
     display: flex;
     text-align: left; /* Keep text aligned left while centering the block */
     flex-direction: column;
    align-items: center;
    position: relative; /* Ensure proper positioning */
}
 
/* Ensure the article text itself is still left-aligned within the centered block */
.mw-parser-output {
    text-align: left;
    width: 100%;
}
}


/* Align the Table of Contents to the left */
/* Place the Table of Contents to the left without overlapping text */
#toc {
#toc {
     float: left;
     float: left;
    width: 250px;
     margin-right: 20px;
     margin-right: 20px;
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #aaa;
    clear: left; /* Prevents text overlap */
}
}


/* Ensure floating elements (infoboxes, images, etc.) stay to the right */
/* Ensure floating elements (infoboxes, images, etc.) stay to the right without overlapping text */
.floatright, .thumb, .infobox {
.floatright, .thumb, .infobox {
     float: right;
     float: right;
    width: 250px;
     margin-left: 20px;
     margin-left: 20px;
    clear: right; /* Prevents text overlap */
}
}


Line 51: Line 40:
     width: auto;
     width: auto;
     max-width: 100%; /* Ensures tables don't break */
     max-width: 100%; /* Ensures tables don't break */
}
.mw-body-content {
    max-width: 1200px; /* Adjust this as needed */
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px; /* Adds some spacing on the sides */
    display: flex;
    flex-direction: column;
    align-items: center;
}
}

Revision as of 18:29, 7 February 2025

/* Limit the width of the main content area and center the entire article content */
.mw-body-content {
    max-width: 800px; /* Adjust this as needed */
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px; /* Adds some spacing on the sides */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; /* Ensure proper positioning */
}

/* Ensure the article text itself is still left-aligned within the centered block */
.mw-parser-output {
    text-align: left;
    width: 100%;
}

/* Place the Table of Contents to the left without overlapping text */
#toc {
    float: left;
    width: 250px;
    margin-right: 20px;
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #aaa;
    clear: left; /* Prevents text overlap */
}

/* Ensure floating elements (infoboxes, images, etc.) stay to the right without overlapping text */
.floatright, .thumb, .infobox {
    float: right;
    width: 250px;
    margin-left: 20px;
    clear: right; /* Prevents text overlap */
}

/* Make sure tables don't get squeezed */
.wikitable {
    width: auto;
    max-width: 100%; /* Ensures tables don't break */
}