Difference between revisions of "MediaWiki:Common.css"

From Starsonata Wiki
Jump to: navigation, search
(Adjusted scroll padding so linkable entries aren't hidden by sticky headers)
Line 173: Line 173:
  
 
:target {
 
:target {
     scroll-margin-top: 5em;
+
     scroll-padding-top: 5em;
 
}
 
}
  

Revision as of 15:50, 11 July 2023

/* Horizontal Mods Column Tables */

.wikitable.horzmods {
    table-layout: fixed;
}

.wikitable.horzmods thead tr,
.wikitable.horzmods tbody tr {
width: 100%;
min-width: 100%;
display: flex;
justify-content: space-between;
}

.wikitable.horzmods tbody tr {
height: 16em;
}

.wikitable.horzmods th:first-child,
.wikitable.horzmods td:first-child {
  width: 15% !important;
 overflow:hidden !important;
}

.wikitable.horzmods td:first-child img {
 width:100% !important;
 height:auto !important;
}

.wikitable.horzmods th:nth-child(2),
.wikitable.horzmods td:nth-child(2) {
width: 15% !important;
}

.wikitable.horzmods th:nth-child(4),
.wikitable.horzmods th:nth-child(5),
.wikitable.horzmods th:nth-child(7),
.wikitable.horzmods th:nth-child(9),
.wikitable.horzmods th:nth-child(19),
.wikitable.horzmods th:nth-child(20),
.wikitable.horzmods td:nth-child(4),
.wikitable.horzmods td:nth-child(5),
.wikitable.horzmods td:nth-child(7),
.wikitable.horzmods td:nth-child(9),
.wikitable.horzmods td:nth-child(19),
.wikitable.horzmods td:nth-child(20)  {
width: 8% !important;
}

.wikitable.horzmods td,
.wikitable.horzmods th {
    border: 1px #aaa solid;
    border-collapse: collapse;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0.2em !important;
    padding-bottom: 0.2em !important;
    overflow:auto!important;
}

.wikitable.horzmods th:not(last-child),
.wikitable.horzmods td:not(last-child) {
padding-left: 0.2em !important;
padding-right: 0.2em !important;
border: 1px #aaa solid !important;
width: 4%;
display: flex !important;
flex-flow: column nowrap;
justify-content: center;
align-content: center;
align-items: stretch;
}

.wikitable.horzmods td:not(last-child) {
min-height: 8.25em !important;
max-height: 8.25em !important;
height: 8.25em !important;
}

.wikitable.horzmods th:last-child,
.wikitable.horzmods td:last-child {
min-width: 99.4% !important;
display: block !important;
padding-left: 0.2em !important;
padding-right: 0.2em !important;
position: absolute;
left: 0;
right: 0;
margin-top: 0em !important;
padding-top: 0.25em !important;
overflow-y: scroll !important;
background: rgba(0,0,0,0);
padding-bottom: 0em !important;
min-height: 0.1em !important;
max-height: 0.1em !important;
float: left;
text-align: center;
width: 99.4%;
opacity:0;
word-wrap: normal;
word-break: normal;
}

.wikitable.horzmods td:last-child {
background: rgba(0,0,0,0.5);
min-height: 7em !important;
max-height: 7em !important;
width: 99.4%;
opacity:1;
margin-top: 8.7em !important;
}



/* Wiki Table Sorting Header with Link Fix */

th a {
text-decoration: none;
-webkit-background-clip: text;
-moz-background-clip: text;
background-clip: text;
}


body {
    display: grid;
    grid-template-rows: auto auto 1fr;
}

#mw-page-base {
    grid-row: 1;
    grid-column: 1/3;
}

#mw-head-base {
    grid-row: 1;
    grid-column: 1/3;
}

#content {
    grid-row: 2;
    grid-column: 1/3;
    min-width: 0;
    width: auto;
    display: block;
}

.mw-body#content {
    margin-left: 10.25em;
}

#mw-navigation {
    grid-row: 1/4;
    grid-column: 1;
}

:not(.page-Main_Page) #mw-navigation #mw-panel {
    padding-left:0;
    position: sticky;
    top: 3.5em;
}

.page-Main_Page #mw-navigation #mw-panel {
    padding-left:0;
    position: fixed;
    top: 3.5em;
}

#footer {
    grid-row: 3;
    grid-column: 1/3;
}

:target {
    scroll-padding-top: 5em;
}

.floating-table-label {
    display: grid;
}

.floating-table-label > div {
    grid-row: 1;
    grid-column: 1;
    margin-top: 2em;
    margin-bottom: 1em;
    margin-left: -2em;
}

.floating-table-label > div > div {
    writing-mode: vertical-lr;
    /* transform: rotate(180deg); */
    font-weight: bold;
    position: sticky;
    top: 1em;
}

.floating-table-label > table {
    grid-row: 1;
    grid-column: 1;
}

#toc, .toc {
    margin-top: 30px;
    background-color: rgb(0 0 0 / 20%);
}

.systembox table {
    float:right;
    width:200px;
}

.centered {
    text-align: center;
    border-style: none;
}

/* Damage types */
.physical {
    color: #3498DB;
}
.surgical {
    color: turquoise;
}
.radiation {
    color: lightgrey;
}
.mining {
    color: lightgreen;
}
.transference {
    color: blue;
}
.heat {
    color: orange;
}
.beam {
    color: magenta;
}
.true {
    color: #F0F05B;
}
.energy {
    color: #8E44AD;
}

.weakness {
    color: rgb(219,1,1);
}

.bg_physical {
    background-color: rgba(5,6,201,0.5);
}

.bg_surgical {
    background-color: rgba(57,179,122,0.5);
}

.bg_radiation {
    background-color: rgba(174,172,174,0.5);
}

.bg_mining {
    background-color: rgba(37,204,5,0.5);
}

.bg_transference {
    background-color: rgba(96,124,174,0.5);
}

.bg_heat {
    background-color: rgba(206,66,5,0.5);
}

.bg_laser {
    background-color: rgba(206,49,70,0.5);
}

.bg_energy {
    background-color: rgba(113,63,118,0.5);
}

.bg_weakness {
    background-color: rgba(219,1,1,0.5);
}

/* Item rarities */

.junk {
    color:  #555555;
}
.common {
    color:  #ffffff;
}
.uncommon {
    color:  #40BF00;
}
.rare {
    color:  #0080FF;
}
.exotic {
    color:  #FF8000;
}
.artifact {
    color:  #8000BF;
}
.exalted {
    color:  #FF6767;
}
.legendary {
    color:  #00FFFF;
}


h1, h2, h3, h4, h5, h6 {
/*    overflow:auto;*/
}

h1 {
    line-height:normal;
}

h2 {
    padding:0.1em;
    line-height:normal;
}

.toc {
    min-height:25px;
    height:auto;
    max-height: 400px;
    width: 300px;
    display: block;
    position:relative;
    overflow-y:auto;
    overflow-x:hidden;
    padding:0px 5px!important;
    -webkit-transition: box-shadow 0.3s ease;
    -moz-transition: box-shadow 0.3s ease;
    -ms-transition: box-shadow 0.3s ease;
    -o-transition: box-shadow 0.3s ease;
    transition: box-shadow 0.3s ease;
    -webkit-transition:height 0.3s ease-in-out;
    -moz-transition:height 0.3s ease-in-out;
    -ms-transition:height 0.3s ease-in-out;
    -o-transition:height 0.3s ease-in-out;
    transition:height 0.3s ease-in-out;
    -webkit-transition:min-height 0.3s ease-in-out;
    -moz-transition:min-height 0.3s ease-in-out;
    -ms-transition:min-height 0.3s ease-in-out;
    -o-transition:min-height 0.3s ease-in-out;
    transition:min-height 0.3s ease-in-out;
    -webkit-transition:max-height 0.3s ease-in-out;
    -moz-transition:max-height 0.3s ease-in-out;
    -ms-transition:max-height 0.3s ease-in-out;
    -o-transition:max-height 0.3s ease-in-out;
    transition:max-height 0.3s ease-in-out;
}

.toc #toctitle {
    left:0px;
    width:100%;
    border-bottom:1px solid #fff;
}

.toc.tochidden {
    min-height:25px;
    height:25px;
    max-height:25px;
    border: 1px solid #ff4500;
    box-shadow: 0px 0px 3px 3px #ff4500;
    overflow-y:hidden; /* not needed, but makes chrome instantly hide the scrollbar */
    -webkit-transition:height 0.3s ease-in-out;
    -moz-transition:height 0.3s ease-in-out;
    -ms-transition:height 0.3s ease-in-out;
    -o-transition:height 0.3s ease-in-out;
    transition:height 0.3s ease-in-out;
    -webkit-transition:min-height 0.3s ease-in-out;
    -moz-transition:min-height 0.3s ease-in-out;
    -ms-transition:min-height 0.3s ease-in-out;
    -o-transition:min-height 0.3s ease-in-out;
    transition:min-height 0.3s ease-in-out;
    -webkit-transition:max-height 0.3s ease-in-out;
    -moz-transition:max-height 0.3s ease-in-out;
    -ms-transition:max-height 0.3s ease-in-out;
    -o-transition:max-height 0.3s ease-in-out;
    transition:max-height 0.3s ease-in-out;
}

.toc > tbody > tr > td > ul {
    margin-top: 30px!important;
    opacity:1;
    visibility:visible;
}

.tochidden > tbody > tr > td > ul {
    margin-top: 0px;
    opacity:0;
    visibility:hidden;
}

.editsection, #p-captions ul li a {
    margin-left: 5px!important;
    color: #fff!important;
    background: rgba(0,0,0,0.6)!important;
    border-radius: 5px!important;
    padding: 2px!important;
    margin: 10px!important;
    top: -1px!important;
    left: -1px!important;
    position: relative!important;
    box-shadow: 1px 1px 1px 1px #000!important;
}

.editsection:hover, #p-captions ul li a:hover {
    color: #7af5ff99!important;
    top:0px!important;
    left:0px!important;
    -webkit-transition:all .3s!important;
    transition:all .3s!important;
    box-shadow: 0px 0px 3px 3px #7af5ff99!important;
}

#p-captions li.selected ul a {
    color: #7af5ff99!important;
    background-color:rgba(255,255,255,0.2)!important;
    top:0px!important;
    left:0px!important;
    box-shadow: 0px 0px 3px 3px #7af5ff99!important;
}

.editsection a {
   color:#fff;
}

.editsection a:hover {
   color:#7af5ff99;
}

table, .wrapper {
    font-size: 100%;
    border: 0px;
    border-radius: 5px;
    padding: 5px;
    margin: 5px;
    background: rgba(0,0,0,0.6);
    border-color: #7af5ff99;
    box-shadow: 0px 0px 3px 3px #7af5ff99;
}

#mainpage table {
    font-size: 100%;
    border: 0px;
    border-radius: 0px;
    padding: 0px;
    margin: 0px;
    background: rgba(0,0,0,0);
    border-color: #000;
    box-shadow: 0px 0px 0px 0px #000;
}

table.navbox {
    font-size: 100%;
    border: 0px;
    border-radius: 0px;
    padding: 0px;
    margin: 0px;
    background: rgba(0,0,0,0);
    border-color: none;
    box-shadow: 0px 0px 0px 0px #000;
}

table.navbox {
    float:left;
    width:80%!important;
}

#mainpage table.navbox {
    float:none;
    width:100%!important;
}

mw-content-ltr table tbody tr td b, mw-content-ltr table td.navbox-group, table td.navbox-list {
    color: #ffaf31!important;
}

body h2 {
    font-size: 2em;
}

.wikitable {
	max-width: 100%;
	table-layout: auto;
    background-color: black !important;
}

.wikitable th, .wikitable td {
    border: 1px #aaa solid;
    border-collapse: collapse;
    /* padding: 0px, 1px; */
    /* padding: 0px, 0.2em; */
    padding-left: 0 !important;
    padding-right: 0 !important;
    min-width: 2.5% !important;
    padding-top: 0.2em !important;
    padding-bottom: 0.2em !important;
    /*top: -1px;
    left: -1px;
    position: relative;*/
    /*box-shadow:1px 1px 1px 1px #000;*/
    overflow:auto!important;
}

.wikitable td:last-child {
    min-width: 10% !important;
    display: table-cell;
    min-height: 10em;
    max-height: 10em;
    padding-left: 0.2em !important;
    padding-right: 0.2em !important;
}

.wikitable th {
    position: sticky;
    top:-1px;
    background-color:black !important;
    background-clip: padding-box;
}

.wikitable th:hover, .wikitable td:hover {
    border: 1px #aaa solid;
    padding: 0px, 0.2em;
    /*top: 0px;
    left: 0px;
    position: relative;*/
    /*-webkit-transition:all .3s;
    transition:all .3s!important;
    background: rgba(255,255,255,0.2);
    box-shadow: 0px 0px 3px 3px #ffaf31;*/
}

.wikitable tr:hover {
    background: rgba(255,255,255,0.1);
}

/* Shipboxes */

.cloakbox table, .shipbox table {
    margin-right:20px!important;
}

.shipbox table td img {
    height:100%;
    width:auto;
}

.missionbox table {
font-size: 100%;
border: 0px;
border-radius: 5px;
padding: 5px;
margin: 5px;
background: rgba(0,0,0,0.6);
border-color: #7af5ff99;
box-shadow: 0px 0px 3px 3px #7af5ff99;
float: none;
width: 700px;
}

.missionbox .missionhover {
    height:100px;
    overflow:hidden;
    padding:20px;
    opacity:0.5;
    -webkit-box-shadow:inset 0 1px 5px 1px rgba(155,155,155,1);
    box-shadow:inset 0 1px 5px 1px rgba(155,155,155,1);
    -webkit-transition: all .3s ease!important;
    -moz-transition: all .3s ease!important;
    -ms-transition: all .3s ease!important;
    -o-transition: all .3s ease!important;
    transition: all .3s ease!important;
}

.missionbox .missionhover:hover {
    height:300px;
    box-shadow:none;
    overflow-y:scroll;
    opacity:1;
}

.missionbox2 table {
font-size: 100%;
border: 0px;
border-radius: 5px;
padding: 5px;
margin: 5px 5px 10px 10px;
background: rgba(0,0,0,0.6);
border-color: #7af5ff99;
box-shadow: 0px 0px 3px 3px #7af5ff99;
width: 45em;
}

.missionbox2 .missionhover {
    height:100px;
    overflow:hidden;
    padding:20px;
    opacity:0.5;
    -webkit-box-shadow:inset 0 1px 5px 1px rgba(155,155,155,1);
    box-shadow:inset 0 1px 5px 1px rgba(155,155,155,1);
    -webkit-transition: all .3s ease!important;
    -moz-transition: all .3s ease!important;
    -ms-transition: all .3s ease!important;
    -o-transition: all .3s ease!important;
    transition: all .3s ease!important;
}

.missionbox2 .missionhover:hover {
    height:300px;
    box-shadow:none;
    overflow-y:scroll;
    opacity:1;
}


.teambox table {
    float:none;
    margin-left:auto;
    margin-right:auto;
    width:1000px;
}

.teambox .listing a {
    display:block;
}

.teambox .flag {
    float:right;
}

.teambox pre {
    border:none;
    color:#fff;
    background-color:transparent;
    line-height:normal;
}

.teambox h1, h2, h3 {
    padding:10px;
    margin-bottom:0px;
    border-bottom:none;
}

.expandable {
    max-height:50px;
    overflow:hidden;
    opacity:0.5;
    padding:5px;
    border:1px solid #7af5ff99;
    border-radius:5px;
    -webkit-box-shadow:inset 0 1px 5px 1px rgba(155,155,155,1);
    box-shadow:inset 0 1px 5px 1px rgba(155,155,155,1);
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
}

.expandable:hover {
    max-height:300px;
    overflow-y:scroll;
    box-shadow:none;
    opacity:1;
}

.blueprintbox table {
    float:none!important;
}

#mainpageannouncment h6 {
    border-radius:5px;
    font-size:22px;
    padding:15px;
    margin:5px;
    margin-left: 5px;
    color: #fff;
    background: rgba(0,0,0,0.6);
    position: relative;
    box-shadow: 1px 1px 1px 1px #000;
    line-height:30px;
}

table.diff, td.diff-otitle, td.diff-ntitle {
  background-color:#000;
}
td.diff-context,td.diff-deletedline,td.diff-addedline {
  background-color:#555;
}
td.diff-deletedline {
  color:#f55;
}
td.diff-addedline {
  color:#afa;
}


/*Ships Page-Specific CSS*/

body.page-TCGM_Sandbox .shipbox table {
    height:100px;
    display:block;
    width:100%;
}

body.page-TCGM_Sandbox .shipbox tr, body.page-TCGM_Sandbox .shipbox td,  body.page-TCGM_Sandbox .shipbox tbody {
    display:block;
}


/* Class Page-Specific CSS */
.skill-table .skill-cell {
 	position:relative; 
    width:33%;
}

.skill-table .skill-cell img {
 	z-index:99;
  	position:relative	  
}

.skill-table pre {
    padding: 0.5em;
    border: none;
    color: #fdfdfd;
    background-color: rgba(36,46,49,0.7);
    line-height: 1.1em;	 
  	position:relative;
    z-index:99;
}

.skill-table .header {
    font-weight:bold; 
    font-size:1.1em;
}

.skill-table .glyph-left {
 	display:block;
  	width:15px;
  	height:15px;
  	background-color:#082935;
  	position:absolute;
  	top:0;	  
  	left:50%;
    margin-left:-52px;
	margin-top:31px;
}

.skill-table .connector-right {
 	display:block;
  	width:100%;
  	height:5px;
  	background-color:#082935;
  	position:absolute;
  	top:4px;	  
  	left:50%;
	margin-top:31px;
}

.skill-table .connector-down {
 	display:block;
  	width:5px;
  	height:100%;
  	background-color:#082935;
  	position:absolute;
  	top:0%;	  
  	left:50%;
	margin-top:31px;
}


.skill-table .glyph-top {
 	display:block;
  	width:15px;
  	height:15px;
  	background-color:#082935;
  	position:absolute;
  	top:0;	  
  	left:50%;
    margin-left:-5px;
	margin-top:-14px;
}

.skill-table .skill-cell span {
    float:left 
}


.skill-table td {
    vertical-align: top;
}

.skill-cell pre::after { 
   content: " ";
   display: block; 
   height: 0; 
   clear: both;
   *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML += '<div class="ie7-clear"></div>' );
}

.ie7-clear {
    display: block;
    clear: both;
}

.adv-skills-wrapper {
 	display:inline-block; 
}

.adv-skills td {
  	padding-left:5px
}

.adv-skills td.icon {
  	padding-left:0px
}


.adv-skills td.name {
 	font-weight:bold; 
}

.adv-skills .icon img {
    width: 50px;
    height: 50px;
}

.adv-skills td {
     border-bottom: 1px solid #212121;
}

.adv-skill-legend > div {
    margin:0px 10px;
}

.adv-skill-legend div {
    display: inline-block;
}

.adv-skill-legend .adv-skill-glyph {
 	width:11px;
  	height:11px;	
}

/* Item Template CSS */

.itemWrapper, .weaponWrapper {
    line-height:18px;
    font-size:18px;
    border: 1px solid #7af5ff99;
    border-radius: 0px;
    padding: 10px;
    background: rgba(0,0,0,0.6);
    box-shadow: 1px 1px 1px 1px #333;
    float: none;
    min-width: 150px;
    min-height: 300px;
    max-width:300px;
    max-height:400px;
    overflow-y:scroll;
}

.weaponWrapper {
    max-width:400px;
    max-height:600px;
}

.itemName {
    margin-left:auto;
    margin-right:auto;
    text-align:center;
    height:80px;
}

.itemStatsWrapper div div, .weaponStatsWrapper div div {
   display:inline-block;
}

.weaponWrapper .itemWrapper {
    border:0px;
    padding:0px;
    background:transparent;
    box-shadow:none;
    min-width: 0px;
    min-height: 0px;
    overflow-y:visible;
}

.itemIconWrapper {
    float: left;
    margin: 10px;
    margin-bottom:0px;
}

.itemIconWrapper img {
    width:64px;
    height:64px;
}

.scroll-box {
	margin-left:260px;
	overflow-x:scroll;
}

.wide-table td:first-child {
	  position: absolute;
    width: 250px;
    top: auto;
    overflow: hidden;
    height: 20px;
    margin-left: 0px;
    border-left: none;
    border-right: none;
    border-bottom: none;
    left: 0px;
}

.wide-table th:first-child {
    position: absolute;
    width: 233px;
    top: auto;
    border-top-width: 1px;
    margin-top: -1px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0px 0px 3px 3px #7af5ff99;
    background: rgba(0,0,0,0.6);
    left: 0px;
}

.mw-content-ltr {
position:relative;
}

#p-logo {
  visibility: hidden;
}