MediaWiki:Common.css: Difference between revisions

From The Talos Principle Wiki
Tools links colored
Remove max-width to have infoboxes look good in Citizen (doesn’t seem to affect Vector)
 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
/* Additional styling for the mw-gather class */
    .mw-gather {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
    }
    .mw-gather div {
      flex: 1;
      margin: 10px;
      box-sizing: border-box;
    }
    /* Media query for small screens */
    @media (max-width: 600px) {
      .mw-gather div {
        flex: 100%; /* Full width on small screens */
      }
    }


/* Collapsible elements. Toggle-link moved to left. */
/* Collapsible elements. Toggle-link moved to left. */
Line 11: Line 32:
}
}


a.mw-collapsible-text:after {
a.mw-collapsible-text {
   content: ' spoiler';
  margin-left: 0.2em;
   margin-right: 0.2em;
}
}


Line 22: Line 44:
.toclimit-7 .toclevel-6 ul {
.toclimit-7 .toclevel-6 ul {
display: none;
display: none;
}
/* Some styles common to all infoboxes */
.infobox {
  margin-top: 0.5em;
  margin-right: 0px;
  margin-bottom: 0.5em;
  margin-left: 1em;
  padding: 0.2em;
  float:right;
  border:1px solid black;
  border-collapse: collapse;
}
table.infobox td:first-child:not([colspan]) {
  text-align: left;
  padding-left: 0.33em;
  vertical-align: top;
}
table.infobox td:last-child:not([colspan]) {
  text-align: right;
  padding-right: 0.33em;
  vertical-align: top;
}
/* Custom collapsibles for hints (cannot be nested): */
.collapsible-hint {
  cursor: pointer;
  padding: 3px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
}
.collapsible-hint-link {
  color: #3366cc; /* Ideally this would grab the link color from the wiki's skin instead. */
}
.collapsible-hint-link:hover {
  text-decoration: underline;
}
.collapsible-hint-content {
  padding: 0px 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  background-color: whitesmoke;
  border: none; /* A border would be visible even with max-height: 0px. */
}
.collapsible-hint-padded {
  padding: 10px 0px;
}
.collapsible-hint-content-visible {
  border: 1px solid #ccc;
}
.collapsible-hint:not(.active) .collapsible-hint-link:before{
  content: 'Show'
}
.collapsible-hint.active .collapsible-hint-link:before{
  content: 'Hide'
}
}




/* Customizing the navigation list in the sidebar */
/* Custom collapsibles for social media threads */
  #p-navigation .vector-menu-content-list {
.collapsible-dialogue-link {
    list-style: none;
  color: #3366cc; /* Ideally this would grab the link color from the wiki's skin instead. */
    padding: 0;
}
    margin-left: -8px;
.collapsible-dialogue-link:hover {
    margin-right: -6px;
  text-decoration: underline;
  }
}
 
.collapsible-dialogue-content {
  #p-navigation .vector-menu-content-list .mw-list-item {
  display: none;
    margin-bottom: 1px; /* Adjust the spacing between buttons as needed */
  padding-left:10px;
  }
  border: 1px solid transparent;
 
   border-left: 3px solid #888;
  #p-navigation .vector-menu-content-list a {
}
    display: block; /* Set to block for full width */
    padding: 8px 6px; /* Adjust the padding as needed */
    text-decoration: none;
    font-size: 110%;
    background-color: #dc9; /* Set your desired background color */
    color: #000; /* Set your desired text color */
    border: 1px solid #b95; /* Set your desired border color */
    border-radius: 4px; /* Adjust the border radius as needed */
    transition: background-color 0.3s ease;
  }
 
   #p-navigation .vector-menu-content-list a:hover {
    background-color: #b95; /* Set your desired background color on hover */
    border-color: #dc9; /* Set your desired border color on hover */
    color: #fff; /* Set your desired text color on hover */
  }


  /* Tools links */
  #p-tb a {
    color: #874; /* Set your desired text color */
  }
  #p-tb a:hover {
    text-decoration: underline; /* Optional: Add underline on hover */
    color: #b95; /* Set your desired text color on hover */
  }
/* End navbar customization */


/* Custom hex strings */
.hex-string-with-translation {
  text-decoration: underline dotted black;
  overflow-wrap: anywhere;
}
.hex-string-without-translation {
  text-decoration: underline dotted red;
  overflow-wrap: anywhere;
}


/* Customizing border around pages */
 
  .vector-menu-tabs, .vector-menu-tabs a, #mw-head .vector-menu-dropdown .vector-menu-heading {
/* Used by Template:Hatnote */
    background-image: linear-gradient(to bottom, rgba(176, 144, 80, 0) 0, #b95 100%);
.hatnote {
   }
  font-style:italic;
  .vector-menu-tabs-legacy li {
  padding-bottom:0.4em;
    background-image: linear-gradient(to top, #CFAF6C 0, #EEEBE1 1px, #ffffff 100%);
   margin-bottom:0.4em;
   }
   color:#555;
   .mw-body {
   border-bottom:1px solid #ccc
    border-color: #b95;
}
  }
/* End border customization */

Latest revision as of 13:16, 23 December 2023

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

/* Additional styling for the mw-gather class */
    .mw-gather {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
    }

    .mw-gather div {
      flex: 1;
      margin: 10px;
      box-sizing: border-box;
    }

    /* Media query for small screens */
    @media (max-width: 600px) {
      .mw-gather div {
        flex: 100%; /* Full width on small screens */
      }
    }


/* Collapsible elements. Toggle-link moved to left. */
/* Margin around it adjusted. */
/* https://www.mediawiki.org/wiki/Manual:Collapsible_elements */

.mw-collapsible span.mw-collapsible-toggle {
    float:none;
    margin-left:0;
    margin-right:1em;
}

a.mw-collapsible-text {
  margin-left: 0.2em;
  margin-right: 0.2em;
}

.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
	display: none;
}

/* Some styles common to all infoboxes */
.infobox {
  margin-top: 0.5em;
  margin-right: 0px;
  margin-bottom: 0.5em;
  margin-left: 1em;
  padding: 0.2em;
  float:right;
  border:1px solid black;
  border-collapse: collapse;
}

table.infobox td:first-child:not([colspan]) {
  text-align: left;
  padding-left: 0.33em;
  vertical-align: top;
}

table.infobox td:last-child:not([colspan]) {
  text-align: right;
  padding-right: 0.33em;
  vertical-align: top;
}



/* Custom collapsibles for hints (cannot be nested): */
.collapsible-hint {
  cursor: pointer;
  padding: 3px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
}
.collapsible-hint-link {
  color: #3366cc; /* Ideally this would grab the link color from the wiki's skin instead. */
}
.collapsible-hint-link:hover {
  text-decoration: underline;
}
.collapsible-hint-content {
  padding: 0px 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  background-color: whitesmoke;
  border: none; /* A border would be visible even with max-height: 0px. */
}
.collapsible-hint-padded {
  padding: 10px 0px;
}
.collapsible-hint-content-visible {
  border: 1px solid #ccc;
}
.collapsible-hint:not(.active) .collapsible-hint-link:before{
  content: 'Show'
}
.collapsible-hint.active .collapsible-hint-link:before{
  content: 'Hide'
}


/* Custom collapsibles for social media threads */
.collapsible-dialogue-link {
  color: #3366cc; /* Ideally this would grab the link color from the wiki's skin instead. */
}
.collapsible-dialogue-link:hover {
  text-decoration: underline;
}
.collapsible-dialogue-content {
  display: none;
  padding-left:10px;
  border: 1px solid transparent;
  border-left: 3px solid #888;
}


/* Custom hex strings */
.hex-string-with-translation {
  text-decoration: underline dotted black;
  overflow-wrap: anywhere;
}
.hex-string-without-translation {
  text-decoration: underline dotted red;
  overflow-wrap: anywhere;
}


/* Used by Template:Hatnote */
.hatnote {
  font-style:italic;
  padding-bottom:0.4em;
  margin-bottom:0.4em;
  color:#555;
  border-bottom:1px solid #ccc
}