Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Difference between revisions of "User:Aemony/common.css"

From PCGamingWiki, the wiki about fixing PC games
m
m (my dividers were too wide :()
Line 12: Line 12:
  
  
/* ===== CHANGE : Center the content =============================================================================================================================================
+
/* ===== CHANGE : Center the content ================================================================================================================================
 
  *  
 
  *  
 
  * This caps the max width of the content and aligns it all to the center. max-width 1600px because that seems like a good middle-ground.
 
  * This caps the max width of the content and aligns it all to the center. max-width 1600px because that seems like a good middle-ground.
Line 37: Line 37:
  
  
/* ===== CHANGE : Allow left aligned tables ======================================================================================================================================  
+
/* ===== CHANGE : Allow left aligned tables =========================================================================================================================
 
  *  
 
  *  
 
  * This allows the use of style="text-align: center;" at the top of a table in an article to get all of its contents to align left.
 
  * This allows the use of style="text-align: center;" at the top of a table in an article to get all of its contents to align left.
Line 56: Line 56:
  
  
/* ===== BUG FIXES =============================================================================================================================================================== */
+
/* ===== BUG FIXES ================================================================================================================================================== */
  
 
/* Corrects hidden category on front page being offset -25px due to the padding on articles for #main-content being overwritten due to rule on .page-Home #main-content */
 
/* Corrects hidden category on front page being offset -25px due to the padding on articles for #main-content being overwritten due to rule on .page-Home #main-content */

Revision as of 18:44, 19 February 2018

/* ===== CHANGE : Some more spacing for paragraphs ================================================================================================================== */
p {
    margin: 0.5em 0;
}

/* ^- The above breaks margin on the P for the 'Editing guide', 'Support us on Patreon', 'What is PCGamingWiki?' buttons on the front page, so let's fix that */
div.subheader-button p {
    margin: 0;
}




/* ===== CHANGE : Center the content ================================================================================================================================
 * 
 * This caps the max width of the content and aligns it all to the center. max-width 1600px because that seems like a good middle-ground.
 *
 */

/* Center stuff - Beautiful! */
#masthead {
    width: auto;
    max-width: 1600px;
}

body {
    justify-content: center;
    width: 100%;
}

/* Fixes the slightly off-putting ~70% width items in the Editing Guide. Let's have two items per row! */
.editing-guide-list-item-wrapper {
    max-width: 50%;
}




/* ===== CHANGE : Allow left aligned tables =========================================================================================================================
 * 
 * This allows the use of style="text-align: center;" at the top of a table in an article to get all of its contents to align left.
 *
 */

/* This is currently set to Center, let's change that to Inherit */
table.wikitable > tr > th, table.wikitable > tr > td, table.wikitable > * > tr > th, table.wikitable > * > tr > td {
    text-align: inherit;
}

/* Let's set the default align to Center, to reproduce the current look */
table.wikitable {
    text-align: center;
}




/* ===== BUG FIXES ================================================================================================================================================== */

/* Corrects hidden category on front page being offset -25px due to the padding on articles for #main-content being overwritten due to rule on .page-Home #main-content */
.page-Home #main-content div#body-content div#catlinks {
    margin-left: 0;
}