GinglrBell (คุย | ส่วนร่วม) ลไม่มีความย่อการแก้ไข |
GinglrBell (คุย | ส่วนร่วม) ล (ย้อนรุ่นแก้ไข 22437 โดย GinglrBell (คุย)) ป้ายระบุ: ทำกลับ |
||
บรรทัดที่ 976: | บรรทัดที่ 976: | ||
/* [[Template:CC section]] */ |
/* [[Template:CC section]] */ |
||
.video-container { |
.video-container { |
||
− | width: 600px; |
||
display: flex; |
display: flex; |
||
flex-direction: row; |
flex-direction: row; |
รุ่นแก้ไขเมื่อ 01:36, 18 เมษายน 2565
/* [[en:MediaWiki:Common.css]] * [[de: MediaWiki: Common.css]] * [[es: MediaWiki: Common.css]] * [[fr: MediaWiki: Common.css]] * [[it: MediaWiki: Common.css]] * [[ja: MediaWiki: Common.css]] * [[pl: MediaWiki: Common.css]] * [[pt-br: MediaWiki: Common.css]] * [[ru: MediaWiki: Common.css]] */
/* TH change: Kanit instead of Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;500;600;700&display=swap');
@font-face {
font-family: 'FontAwesome';
src: local('FontAwesome'), local('FontAwesome'), url(/media/hydra/fonts/FontAwesome.otf) format('opentype');
}
/* For elements which only display in the mobile view */
.mobileonly { display: none !important; }
/* This governs the sections on the Community portal */
.cpbox {
display: flex;
flex-direction: row-reverse;
flex-wrap: wrap;
}
.cpbox #admins {
box-sizing: border-box;
width: calc(33% - 10px);
margin: 5px;
flex-grow: 1;
min-width: 300px;
}
.cpbox #help {
box-sizing: border-box;
width: calc(67% - 10px);
margin: 5px;
flex-grow: 1;
}
/* Template documentation styles */
/* If modifying these styles, be sure to update the mobile skin! */
.doc {
margin: 0em auto 1em;
background-color: rgba(0, 0, 0, 0.1);
border: 2px solid #BDCAC3;
border-radius: 1em;
padding: 1em;
}
.doc-header {
padding-bottom: 3px;
border-bottom: 1px solid #BDCAC3;
margin-bottom: 1ex;
}
.doc-footer {
margin: 0;
background-color: rgba(0, 0, 0, 0.1);
border: 2px solid #BDCAC3;
border-radius: 1em;
padding: 1em;
}
/* Align .number table cells to right */
table .number { text-align: right; }
/* No external link icon for internal links */
#content a.external[href^="http://ark.gamepedia.com"], #content a.external[href^="https://ark.gamepedia.com"], #content a.external[href^="//ark.gamepedia.com"],
#content a.external[href^="http://ark.fandom.com"], #content a.external[href^="https://ark.fandom.com"], #content a.external[href^="//ark.fandom.com"] {
background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
padding-right: 0;
}
/* Gamepedia fixes */
.ghost { color: #666666; }
/* link-spanner */
.link-spanner {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: 1;
}
/* Allow limiting of which header levels are shown in a TOC;
<div class="toclimit-3">, for instance, will limit to showing ==headings== and ===headings=== but no further (as long as there
are no =headings= on the page, which there shouldn't be according to the MoS). */
.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;
}
/* Creature Region Map */
.cr-region-map-map img{
filter: sepia(60%) grayscale(30%);
}
.cr-region-map-marker{
font-size: 12px;
font-weight: bold;
position: absolute;
border-radius: 2px;
}
.cr-region-map-markercave{
border: 1px solid black;
}
/* three-colored tables: red, green, gray */
.yes-no-undef .yes { background-color: #9cee93; }
.yes-no-undef .no { background-color: #e3a4a4; }
.yes-no-undef .undef { background-color: #d3d3d3; }
/* marks spawning areas with untameable creatures*/
.stripes {
background: repeating-linear-gradient(
45deg,
transparent,
transparent 5px,
rgba(0, 0, 0, 0.3) 5px,
rgba(0, 0, 0, 0.3) 10px
);
}
.map-container .square.untameable::after{
content: ' ';
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
opacity: 0.6;
background: repeating-linear-gradient( 45deg, #000, #000 5px, transparent 5px, transparent 10px );
}
.map-container .square.cave{
border-width: 4px;
}
.cr-region-map-very-common{
filter: hue-rotate(120deg) brightness(400%);
}
.cr-region-map-common{
filter: hue-rotate(78deg) brightness(400%);
}
.cr-region-map-uncommon{
filter: hue-rotate(60deg) brightness(400%);
}
.cr-region-map-very-uncommon{
filter: hue-rotate(48deg) brightness(400%);
}
.cr-region-map-rare{
filter: hue-rotate(24deg) brightness(400%);
}
.cr-region-map-cl-very-common{
background-color: hsl(120,100%,60%);
}
.cr-region-map-cl-common{
background-color: hsl(78,100%,60%);
}
.cr-region-map-cl-uncommon{
background-color: hsl(60,100%,63.3%);
}
.cr-region-map-cl-very-uncommon{
background-color: hsl(48,100%,63.3%);
}
.cr-region-map-cl-rare{
background-color: hsl(30,100%,56.7%);
}
.cr-region-map-cl-very-rare{
background-color: hsl(0,100%,56.7%);
}
.cr-region-map-cl-unknown{
background-color: #ccc;
}
/*** spawning-maps, svg ***/
.spawningMap-map {
filter: sepia(60%) grayscale(30%);
}
.spawningMap-deuteranopia.spawningMap-map,
.spawningMap-tritanopia.spawningMap-map {
filter: grayscale(90%) contrast(80%);
}
.spawningMap-very-common {
fill: #0F0;
background-color: #0F0;
}
.spawningMap-common {
fill: #B2FF00;
background-color: #B2FF00;
}
.spawningMap-uncommon {
fill: #FF0;
background-color: #FF0;
}
.spawningMap-very-uncommon {
fill: #FC0;
background-color: #FC0;
}
.spawningMap-rare {
fill: #F60;
background-color: #F60;
}
.spawningMap-very-rare {
fill: #F00;
background-color: #F00;
}
.spawning-map-point {
stroke: black;
stroke-width: 1;
}
.spawningMap-deuteranopia .spawningMap-very-common {
fill: #FFE126;
background-color: #FFE126;
}
.spawningMap-deuteranopia .spawningMap-common {
fill: #F3D467;
background-color: #F3D467;
}
.spawningMap-deuteranopia .spawningMap-uncommon {
fill: #D7C58B;
background-color: #D7C58B;
}
.spawningMap-deuteranopia .spawningMap-very-uncommon {
fill: #9090F4;
background-color: #9090F4;
}
.spawningMap-deuteranopia .spawningMap-rare {
fill: #3F3FD4;
background-color: #3F3FD4;
}
.spawningMap-deuteranopia .spawningMap-very-rare {
fill: #2C2CD4;
background-color: #2C2CD4;
}
.spawningMap-tritanopia .spawningMap-very-common {
fill: #00FED9;
background-color: #00FED9;
}
.spawningMap-tritanopia .spawningMap-common {
fill: #008D9D;
background-color: #008D9D;
}
.spawningMap-tritanopia .spawningMap-uncommon {
fill: #2B5B7B;
background-color: #2B5B7B;
}
.spawningMap-tritanopia .spawningMap-very-uncommon {
fill: #7C4284;
background-color: #7C4284;
}
.spawningMap-tritanopia .spawningMap-rare {
fill: #FF3068;
background-color: #FF3068;
}
.spawningMap-tritanopia .spawningMap-very-rare {
fill: #FF0422;
background-color: #FF0422;
}
.spawningMap-legendBox {
display: inline-block;
border-radius: 2px;
width: 1.3em;
height: 1.3em;
vertical-align: text-bottom;
border: 1px solid gray;
}
/***************************
* Used by [[Template:Key]] *
****************************/
.key {
display: inline-block;
white-space: nowrap;
}
.key kbd {
padding: 0.1em 0.6em 0.1em 0.6em;
margin-right: 2px;
font-size: 85%;
font-family: inherit;
font-style: normal;
border-radius: .2em;
}
/* Dark Wiki Variation */
.keysDark {
color: black;
border: 1px solid rgb(170, 170, 170);
box-shadow: 0.1em 0.2em 0.2em rgb(221, 221, 221);
background-image: linear-gradient(to bottom, rgb(238, 238, 238), rgb(249, 249, 249), rgb(238, 238, 238));
background-color: rgb(249, 249, 249);
}
/* Light Wiki Variation */
.keysLight {
color: white;
border: 1px solid rgb(0, 0, 0);
box-shadow: 0.1em 0.2em 0.2em rgb(0, 0, 0);
background-image: linear-gradient(to bottom, rgb(0, 0, 0), rgb(15, 15, 15), rgb(30, 30, 30));
background-color: rgb(30, 30, 30);
}
/* Survival of the Fittest */
.sotf-team {
width: 20%;
padding: 1em 1em 0 1em !important;
background-color: #9cee93;
}
.sotf-team-left-dead,
.sotf-team-right-dead {
background-color: #eeed93;
}
.sotf-team-both-dead {
background-color: #e3a4a4;
}
.sotf-team-both-dead .sotf-image-left,
.sotf-team-both-dead .sotf-image-right,
.sotf-team-left-dead .sotf-image-left,
.sotf-team-right-dead .sotf-image-right {
opacity: 0.3;
}
.sotf-team-both-dead a:first-child,
.sotf-team-both-dead a:last-child,
.sotf-team-left-dead a:first-child,
.sotf-team-right-dead a:last-child {
text-decoration: line-through;
}
.sotf-image-left,
.sotf-image-right {
display: inline-block;
width: 74px;
height: 74px;
border: 1px solid #000000;
}
.sotf-image-left { background-position: left center; }
.sotf-image-right { background-position: right center; }
.tournamentlive { background-color: #9cee93; }
.tournamentdead {
background-color: #e3a4a4;
text-decoration: line-through;
}
/*********************
/* Front page styles *
/*********************/
.fpmain {
width: 100%;
overflow: hidden;
z-index: 1;
}
#fptweets {
min-height: calc(425px + 2.3em);
}
#fp-container {
display: grid;
grid-template-areas: "a" "b" "c" "d";
grid-template-columns: 100%;
}
@media screen and (min-width: 990px) {
#fp-container {
grid-template-areas: "a a" "c b" "c b" "d d";
grid-template-columns: 50% 50%;
}
}
@media screen and (min-width: 1350px) {
#fp-container {
grid-template-areas: "a b c" "d b c";
grid-template-columns: 33.3% 33.3% 33.3%;
}
}
.fp-section {
display: flex;
flex-wrap: wrap;
overflow: hidden;
}
.fp-section > .fpbox {
width: calc(100% - 2px);
}
#fp-1 { grid-area: a; }
#fp-2 { grid-area: b; }
#fp-3 { grid-area: c; }
#fp-4 { grid-area: d; }
.fp3col {
display: flex;
flex-flow: row wrap;
}
.fp3col > div {
flex: 1 0 33%;
min-width: 10em;
}
.fpbox {
border: 1px solid #82a8af;
box-shadow: 0 2px 5px #687478;
background: rgba(0, 0, 0, 0.10);
color: #000000;
margin: 5px 5px 5px 5px;
padding: 5px 5px 5px 5px;
overflow: auto;
}
.fpbox .mainheading {
border: none;
border-bottom: 1px solid #82a8af;
color: #82a8af;
font-size: 150%;
font-weight: bold;
margin: 0 0 10px 0;
padding: 0 0 5px 0;
overflow: auto;
}
.fpbox .heading {
border: none;
border-bottom: 1px solid #82a8af;
color: #ffffff;
font-size: 132%;
margin: 0 0 10px 0;
padding: 0 0 5px 0;
overflow: auto;
}
.fpmain .columns .leftcol {
width: 100%;
margin: 0;
padding: 0;
}
.fpmain .columns .rightcol {
width: 100%;
margin: 0;
padding: 0;
}
.fpbox.plain {
border: none;
box-shadow: none;
background: transparent;
}
.fpimagelist ul {
list-style-type: none;
list-style-image: none;
}
.fpvideos {
margin: 0 auto;
overflow: hidden;
text-align: center;
}
.fpvideo {
display: inline-block;
margin: 0 5px;
}
img.fpWideImage {
max-width: 100%;
height: auto;
}
.fpbox + p > br { display: none; }
/* Tweaks for infoboxes used within tabbers */
.infobox-tabber,
.structureSelector,
.infobox-tabber-big {
float: right;
margin-left: 1em;
margin-bottom: 0.5em;
max-width: 410px;
}
.structureSelector .info-framework,
.infobox-tabber .info-framework {
margin: 0;
}
/* Tweaks for tables within tabbers */
.table-tabber {
margin: 1em 0;
}
.table-tabber .tabbernav {
border-bottom: 0;
margin-bottom: 2px;
}
.table-tabber .tabbertab {
padding: 0;
border: 0;
}
.table-tabber .tabbertab > table {
margin: 0;
}
.table-tabber .tabbertab > p:first-child,
.table-tabber .tabbertab > p:last-child{
display: none;
}
/* Tweaks for paint region templates within tabbers */
.paint-region-tabber { margin: 1em 0; }
.paint-region-tabber .tabbernav {
border-bottom: 0;
margin-bottom: -0.1px;
}
.paint-region-tabber .tabbertab {
padding: 0;
border: 0;
}
.paint-region-tabber .tabbertab > table {
margin: 0;
}
.paint-region-tabber .tabbertab > p:first-child,
.paint-region-tabber .tabbertab > p:last-child {
display: none;
}
.paintregion-container {
display: flex;
flex-flow: row wrap;
max-width: 640px;
text-align: center;
}
.paintregion {
flex: 1 0 26%;
min-width: calc(152px + 0.8em); /* image width + border + padding */
padding: 0.9em 0.4em 0.2em 0.4em;
}
/* Used by [[Template:Color]] */
.color-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
padding-bottom: 10px;
padding-top: 10px;
margin: -1px;
}
.color-square {
margin: 1px;
border: 1px solid black;
display: flex;
align-items: center;
justify-content: center;
}
.color-square span {
font-size: 0.9em;
background: inherit;
background-clip: text;
-webkit-background-clip: text;
color: transparent;
filter: contrast(400) grayscale(1) invert(1) contrast(400);
}
/* Used by [[Template:CreatureTableHeader]] */
th span.long { display: initial; }
th.long, td.long { display: table-cell; }
th span.short { display: none; }
@media only screen and (max-width: 1700px) {
table.cargo-creature-table th { font-size: 80%; }
}
@media only screen and (max-width: 1350px) {
th span.long, th.long, td.long { display: none; }
th span.short { display: initial; }
table.cargo-creature-table th { font-size: 60%; }
}
/* Grid Filtering / [[Template:Nav creatures]] */
.creature_roster {
line-height: 0; /* Kills any vertical spacing between rows */
margin: 0 !important;
padding: .5em 0 !important;
border-bottom: 1px solid #333;
text-align: center;
}
.creature_roster li {
display: inline-block;
margin: 0;
overflow: hidden;
}
/* vertical-align table cells */
table.valign-table > * > tr > td { vertical-align: top !important; }
dl { margin-bottom: 0; }
/* link break behavior tweak to help Chrome/Safari with wrapping */
.mw-parser-output a.external.free { word-break: break-all; }
/* Fix for photo-nav tabbers on map pages flowing under region maps at narrow widths */
@media only screen and (max-width: 1330px) {
.photo-tabber { clear: right; }
}
/* Used for tables that are too wide, and slip under ads or offscreen */
.widetable {
overflow-x: auto;
margin-top: 1em;
}
.widetable > table {
margin-top: 0;
}
/* Do not break items between columns in item lists (was an issue on Firefox, cause another
browser does not seem to follow recommendations often) */
.itemlist > li {
break-inside: avoid;
}
/* [[Template:CreatureStats/attacks]] */
.attack {
text-align: right;
table-layout: fixed;
width: 980px;
}
.attack .attack-name { word-wrap: break-word; }
.attack-container + .attack-container { margin-top:-15px; }
/* Improved CurseProfile responsiveness */
.level img { /* wikipoints level on profile */
max-width: 100%;
}
@media screen and (max-width: 720px) {
.curseprofile .leftcolumn,
.curseprofile .rightcolumn {
width: unset;
}
div.mainavatar {
float: none;
text-align: center;
}
.userinfo .headline {
clear: left;
text-align: center;
}
.headline h1 {
float: none;
}
.grouptags {
clear: left
}
.stats dl {
width: 100%;
max-width: 16em;
}
}
/* For [[Template:SpawningMap]] at low widths */
.spawningMap { max-width: 100%; }
.info-arkitex .spawningMap-container { max-width: 100%; }
.info-arkitex .spawningMap-container img,
.info-arkitex .spawningMap-map,
.info-arkitex .svgCreatureMap {
width: 100%;
height: auto;
}
.info-spawn .tabber { width: 100%; }
/* [[Template:Mission]] */
.missions {
display: flex;
flex-wrap: wrap;
}
.mission {
display: flex;
flex-direction: column;
width: 25em;
vertical-align: top;
margin: 0.2em;
border-radius: 2px;
padding: 0.7em;
}
.mission-description {
height: 100%;
text-align: justify;
}
.mission-dif-gamma,
.mission-dif-beta,
.mission-dif-alpha,
.mission-dif-none {
font-size: larger;
font-weight: bolder;
}
/* Fix for embedded videos not pushing the content below it down when it is pushed down */
.embedvideowrap {
overflow: hidden;
}
/* Table-like overview for [[Color IDs]] page to be better visable and responsive */
.color-ids-wrapper{
column-count: auto;
column-width: 28em;
}
.color-ids-wrapper li {
list-style: none;
background-color: #9d9d9d2b;
border: 1px solid black;
padding: 0.1em 1em 0.1em 1em;
text-align: center;
margin: 0;
}
.color-ids-wrapper ul {
margin: 0 0 0 1.6em ;
}
/* Tiles ([[Template:Tile]]) */
.tile_container {
margin: 4px 0px 8px 8px;
padding: 0;
position: relative;
display: inline-block;
width: 105px;
height: 105px;
vertical-align: middle;
text-align: center;
border-radius: 15px;
}
.tile_inner {
position: relative;
top: 6px;
left: 0;
font-size: 14px;
font-weight: bold;
}
/* Image-specific tweak to get it to display with a height of 75px */
.tile_inner img[src*="PS.svg"] {
height: 75px;
}
/* [[Template:PaintRegion]] */
.paintregion-container{
max-width: 900px;
}
.paintregion img[src*="PaintRegion"] {
width: 100%;
height: 100%;
max-width: 256px;
max-height: 256px;
}
/* [[Template:MapLocations]] */
.mapLocations {
background-color: var(--theme-page-background-color);
border-collapse: collapse;
}
.mapLocations td {
border: 1px solid var(--theme-border-color);
padding: 0.2em 0.4em;
}
/* [[Template:ResourceMap]] */
.mw-parser-output > .map-notice {
padding: 5px;
border-radius: 15px;
width: 1060px;
max-width: 100%;
overflow: auto;
display: block;
}
.top-notice-image {
position: relative;
top: -100px;
height: 0;
z-index: 1;
}
.top-notice-text {
vertical-align: middle;
white-space: normal;
font-size: 22px;
padding-left: 10px;
}
.top-notice-text a { font-weight: bold; }
.data-map-container {
display: inline-block;
padding: 5px;
border: 1px solid #000;
}
.data-map-container .data-map-needs-js { display: none; }
.data-map-container .resourcemap { width: 100%; height: 100%; }
.data-map-container .resourcemaptable { margin: 0 }
.map-legend-container {
display: inline-block;
padding-right: 10px;
float: left;
max-width: 225px;
}
.map-container { position: relative; }
.map-notice {
display: inline-block;
margin-bottom: 10px;
border: 1px solid #000;
background: linear-gradient(white, lightyellow);
}
.map-legend-container .map-notice {
padding: 10px;
width: 210px;
}
.map-legend .legend {
display: inline-block;
position: relative;
padding: 0;
border-radius: 50%;
margin-left: 3px;
}
.map-legend .dots {
text-align: right;
vertical-align: top;
}
.map-legend-container > button, .map-legend-container > select { width: 100%; }
.map-legend-container .details-toggle { display: block; }
ul.groups-legend, ul.groups-legend ul { list-style: none; }
.map-legend-container .groups-legend { margin: 0; }
ul.groups-legend > li {
border: 1px solid #222;
margin-top: 0.3em;
}
ul.groups-legend > li:first-child { margin-top: 0; }
.map-container > .dots {
height: 100%;
width: 100%;
position: absolute;
inset: 0 100% 100% 0;
}
.map-container .dot, .map-container .dots > div {
position: absolute;
line-height: 0;
padding: 0;
border-radius: 50%;
z-index: 5;
}
.map-container .square {
position: absolute;
background-color: rgba(255,0,0,0.7);
border-radius: 5px;
border: 2px solid black;
z-index: 5;
}
.map-container .point {
width: 7px;
height: 7px;
background-color: rgba(255,0,0,0.7);
border: 1px solid black;
z-index: 5;
}
.map-legend td:first-child {
width: 25px;
text-align: center;
}
.map-legend tr.no-icon td:first-child { text-align: left; width: auto; }
@media only screen and (max-width: 1300px) {
table.map-legend tr {
display: inline-block;
width: 13em;
}
.map-legend-container { max-width: unset; display: block; float: none; }
.map-legend tr.no-icon { display: block; }
}
@media only screen and (min-height: 700px) {
.resourcemaptable { position: sticky; top: 0; }
}
/* [[Template:ResourceMap]] manual marker styling */
.hide-cave .cave { display: none; }
.map-container .cave.dots > div {
border-style: double;
border-width: 2px;
}
.map-legend .legend, .map-container .dots > div {
width: 7px;
height: 7px;
background-color: #666;
border: 1px solid black;
}
.map-legend .crate, .map-container .dots.crate > div,
.map-legend .crateCave, .map-container .dots.crateCave > div,
.map-legend .crateDungeon, .map-container .dots.crateDungeon > div,
.map-legend .crateSurface, .map-container .dots.crateSurface > div {
background-color: unset;
border: none;
background-size: 100% 100%;
border-radius: 0;
}
.map-legend .crate, .map-legend .crateSurface { background-image: url(//ark.fandom.com/media/3/31/PieBPYR.svg); }
.map-legend .crateDungeon { background-image: url(//ark.fandom.com/media/2/24/PieYR.svg); }
.map-legend .crateCave { background-image: url(//ark.fandom.com/media/7/78/PiePYR.svg); }
/* [[Template:ARKCode]] */
#ARKCodeVisualization{
background-color:black;
min-width: 10em;
min-height: 27em;
display: inline-block;
vertical-align: top;
writing-mode: vertical-lr;
padding: 3px;
padding-bottom: 8px;
}
#ARKCodeVisualization img{
margin-bottom: -5px;
}
.ARKCode-output {
background-color:var(--ark-dossier-background-color);
color:var(--ark-dossier-text-color);
border:1px solid var(--ark-dossier-border-color);
}
/* [[Template:CC section]] */
.video-container {
display: flex;
flex-direction: row;
text-align: center;
}
.video-item {
flex: 50%;
}
@media (max-width: 600px) {
.video-container {
flex-direction: column;
}
}