MediaWiki:Common.css: Difference between revisions

From abbyversewiki.irkanien.de
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Limit the width of the main content area and center the entire article content */
/* CSS placed here will be applied to all skins */
.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 */
/* Scale the wiki logo */
.mw-parser-output {
.mw-wiki-logo {
     text-align: left;
     background-size: contain !important;
     width: 100%;
     width: 180px !important; /* Adjust width */
    height: 180px !important; /* Adjust height */
}
}


/* Create a wrapper to control the layout of ToC and infoboxes */
.mw-content-wrapper {
    display: flex;
    justify-content: center; /* Centers the content block */
    position: relative;
}
/* Place the Table of Contents to the left, outside the text flow */
#toc {
#toc {
     position: absolute;
     float: left !important;
    left: -280px; /* Adjust as needed to move it further left */
     width: 225px;  
     top: 0;
     margin-right: 25px;
     width: 250px;
     background: #f9f9f9;
     background: #f9f9f9;
     padding: 15px;
     padding: 15px;
     border: 1px solid #aaa;
     border: 1px solid #aaa;
    clear: both; /* Ensures it always stays at the top */
}
}


/* Place infoboxes to the right, outside the text flow */
/* Set a max-width for article content */
.floatright, .thumb, .infobox {
.mw-body-content {
     position: absolute;
     width: 800px; /* Adjust as needed */
    right: -280px; /* Adjust as needed to move it further right */
     margin: 0 auto; /* Centers the content */
     top: 0;
    width: 250px;
    margin-left: 20px;
}
}


/* Make sure tables don't get squeezed */
/* Limit the width of the main content area and center the text block */
.wikitable {
.mw-content-ltr {
     width: auto;
     width: 800px; /* Adjust this as needed */
     max-width: 100%; /* Ensures tables don't break */
    margin-left: auto;
    margin-right: auto;
     padding: 0 15px; /* Adds some spacing on the sides */
    display: block;
    text-align: left; /* Keep text aligned left while centering the block */
}
 
.mw-body-content {
    width: 1200px; /* Adjust this as needed */
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px; /* Adds some spacing on the sides */
    display: flex;
    flex-direction: column;
    align-items: center;
}
}

Latest revision as of 22:14, 10 February 2025

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

/* Scale the wiki logo */
.mw-wiki-logo {
    background-size: contain !important;
    width: 180px !important;  /* Adjust width */
    height: 180px !important; /* Adjust height */
}

#toc {
    float: left !important;
    width: 225px; 
    margin-right: 25px;
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #aaa;
    clear: both; /* Ensures it always stays at the top */
}

/* Set a max-width for article content */
.mw-body-content {
    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 {
    width: 800px; /* Adjust this as needed */
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px; /* Adds some spacing on the sides */
    display: block;
    text-align: left; /* Keep text aligned left while centering the block */
}

.mw-body-content {
    width: 1200px; /* Adjust this as needed */
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px; /* Adds some spacing on the sides */
    display: flex;
    flex-direction: column;
    align-items: center;
}