MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
 
(66 intermediate revisions by the same user not shown)
Line 47: Line 47:


/* Main page stuff */
/* Main page stuff */
.mainpage-card-grid figure.mw-halign-center > a > img.mw-file-element {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: block;
}
.mainpage-header {
.mainpage-header {
   display: flex;
   display: flex;
Line 52: Line 58:
.mainpage-header .header-intro {
.mainpage-header .header-intro {
   flex: 2;
   flex: 2;
   max-width: 770px;
   max-width: 560px;
   background: #f6f6f6;
   background: var(--bg-contrast) !important;
   padding: 0px 20px 20px;
   padding: 0px 20px 20px;
   border-radius: 12px;
   border-radius: 12px;
   font-family: sans-serif;
   font-family: sans-serif;
   color: #101418;
   color: var(--bg-main) !important;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
}
Line 66: Line 72:
   align-items: center;
   align-items: center;
   margin-left: 35px;
   margin-left: 35px;
   max-width: 300px;
   max-width: 250px;
   background: #f6f6f6;
   background: var(--bg-contrast) !important;
   border-radius: 12px;
   border-radius: 12px;
   font-family: sans-serif;
   font-family: sans-serif;
   color: #101418;
   color: var(--bg-main) !important;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
}
Line 91: Line 97:


/* Drop table background colors */
/* Drop table background colors */
.table-bg-always,
.vector-body .table-bg-always,
.table-bg-blue {
.table-bg-blue {
   background: color-mix(in srgb, #3288bd, transparent 50%);
   background-color: color-mix(in srgb, #3288bd, transparent 80%) !important;
  color: #3288bd !important;
}
}
.table-bg-common,
.vector-body .table-bg-common,
.table-bg-green {
.table-bg-green {
   background: color-mix(in srgb, #abdda4, transparent 50%);
   background-color: color-mix(in srgb, #abdda4, transparent 80%) !important;
  color: #abdda4 !important;
}
}
.table-bg-uncommon,
.vector-body .table-bg-uncommon,
.table-bg-yellow {
.table-bg-yellow {
   background: color-mix(in srgb, #fee08b, transparent 50%);
   background-color: color-mix(in srgb, #fee08b, transparent 80%) !important;
  color: #fee08b !important;
}
}
.table-bg-rare,
.vector-body .table-bg-rare,
.table-bg-orange {
.table-bg-orange {
   background: color-mix(in srgb, #f46d43, transparent 50%);
   background-color: color-mix(in srgb, #f46d43, transparent 80%) !important;
  color: #f46d43 !important;
}
}
.table-bg-veryrare,
.vector-body .table-bg-veryrare,
.table-bg-red {
.table-bg-red {
   background: color-mix(in srgb, #d53e4f, transparent 50%);
   background-color: color-mix(in srgb, #d53e4f, transparent 80%) !important;
  color: #d53e4f !important;
}
}
.table-bg-ultrarare,
.vector-body .table-bg-ultrarare,
.table-bg-purple {
.table-bg-purple {
   background: color-mix(in srgb, #9b91af, transparent 50%);
   background-color: color-mix(in srgb, #9b91af, transparent 80%) !important;
  color: #9b91af !important;
}
}
.table-bg-random,
.vector-body .table-bg-random,
.table-bg-pink {
.table-bg-pink {
   background: color-mix(in srgb, #5e4fa2, transparent 50%);
   background-color: color-mix(in srgb, #5e4fa2, transparent 80%) !important;
   color: #f8f9fa;
   color: #5e4fa2 !important;
}
}
.table-bg-gray,
.vector-body .table-bg-gray,
.table-bg-grey {
.table-bg-grey {
   background:#5d6773;
   background:#5d6773 !important;
  color: #5d6773 !important;
}
}
.table-bg-fade {
.vector-body .table-bg-fade {
   opacity:0.6;
   opacity:0.6 !important;
   background:rgba(0,0,0,0.1)
   background:rgba(0,0,0,0.1) !important;
}
}


Line 138: Line 151:
   grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
   grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
   gap: 12px 18px;
   gap: 12px 18px;
  background: #f6f6f6;
   padding: 20px;
   padding: 20px;
   border-radius: 12px;
   border-radius: 12px;
   font-family: sans-serif;
   font-family: sans-serif;
   color: #101418;
   color: var(--bg-main) !important;
  background-color: var(--bg-contrast) !important;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.vector-body .skill-grid {
  color: var(--bg-main) !important;
  background-color: var(--bg-contrast) !important;
}
.skill-grid a:hover {
  color: var(--bg-main) !important;
  text-decoration: none; /* optional: removes underline */
}
}


Line 169: Line 193:


/* Hover Backgrounds */
/* Hover Backgrounds */
.skill-hitpoints:hover { background-color: #f2da85; }
.skill-hitpoints:hover { background-color: #f2da85 !important; }
.skill-accuracy:hover { background-color: #d6f47c; }
.skill-accuracy:hover { background-color: #d6f47c !important; }
.skill-strength:hover { background-color: #a6fc7b; }
.skill-strength:hover { background-color: #a6fc7b !important; }
.skill-defense:hover { background-color: #efc181; }
.skill-defense:hover { background-color: #efc181 !important; }
.skill-magic:hover { background-color: #f9b7b6; }
.skill-magic:hover { background-color: #f9b7b6 !important; }
.skill-range:hover { background-color: #a372e0; }
.skill-range:hover { background-color: #a372e0 !important; }
.skill-cooking:hover { background-color: #c7c2fc; }
.skill-cooking:hover { background-color: #c7c2fc !important; }
.skill-crafting:hover { background-color: #f78acd; }
.skill-crafting:hover { background-color: #f78acd !important; }
.skill-mining:hover { background-color: #abfcf8; }
.skill-mining:hover { background-color: #abfcf8 !important; }
.skill-crime:hover { background-color: #adbbff; }
.skill-crime:hover { background-color: #adbbff !important; }
.skill-enchanting:hover { background-color: #81efaf; }
.skill-enchanting:hover { background-color: #81efaf !important; }
.skill-fishing:hover { background-color: #a4fce7; }
.skill-fishing:hover { background-color: #a4fce7 !important; }
.skill-forestry:hover { background-color: #fcc7f2; }
.skill-forestry:hover { background-color: #fcc7f2 !important; }
.skill-harvesting:hover { background-color: #f9dfb3; }
.skill-harvesting:hover { background-color: #f9dfb3 !important; }
.skill-potionmaking:hover { background-color: #98b7f9; }
.skill-potionmaking:hover { background-color: #98b7f9 !important; }
.skill-smithing:hover { background-color: #ff7cf1; }
.skill-smithing:hover { background-color: #ff7cf1 !important; }


/* Always-colored icon boxes */
/* Always-colored icon boxes */
.skill-hitpoints .skill-icon { background-color: #f2da85; }
.skill-hitpoints .skill-icon { background-color: #f2da85 !important; }
.skill-accuracy .skill-icon { background-color: #d6f47c; }
.skill-accuracy .skill-icon { background-color: #d6f47c !important; }
.skill-strength .skill-icon { background-color: #a6fc7b; }
.skill-strength .skill-icon { background-color: #a6fc7b !important; }
.skill-defense .skill-icon { background-color: #efc181; }
.skill-defense .skill-icon { background-color: #efc181 !important; }
.skill-magic .skill-icon { background-color: #f9b7b6; }
.skill-magic .skill-icon { background-color: #f9b7b6 !important; }
.skill-range .skill-icon { background-color: #a372e0; }
.skill-range .skill-icon { background-color: #a372e0 !important; }
.skill-cooking .skill-icon { background-color: #c7c2fc; }
.skill-cooking .skill-icon { background-color: #c7c2fc !important; }
.skill-crafting .skill-icon { background-color: #f78acd; }
.skill-crafting .skill-icon { background-color: #f78acd !important; }
.skill-mining .skill-icon { background-color: #abfcf8; }
.skill-mining .skill-icon { background-color: #abfcf8 !important; }
.skill-crime .skill-icon { background-color: #adbbff; }
.skill-crime .skill-icon { background-color: #adbbff !important; }
.skill-enchanting .skill-icon { background-color: #81efaf; }
.skill-enchanting .skill-icon { background-color: #81efaf !important; }
.skill-fishing .skill-icon { background-color: #a4fce7; }
.skill-fishing .skill-icon { background-color: #a4fce7 !important; }
.skill-forestry .skill-icon { background-color: #fcc7f2; }
.skill-forestry .skill-icon { background-color: #fcc7f2 !important; }
.skill-harvesting .skill-icon { background-color: #f9dfb3; }
.skill-harvesting .skill-icon { background-color: #f9dfb3 !important; }
.skill-potionmaking .skill-icon { background-color: #98b7f9; }
.skill-potionmaking .skill-icon { background-color: #98b7f9 !important; }
.skill-smithing .skill-icon { background-color: #ff7cf1; }
.skill-smithing .skill-icon { background-color: #ff7cf1 !important; }


.skill-grid a.skill {
.skill-grid a.skill {
Line 255: Line 279:
.arrow {
.arrow {
   background: url(https://brightershoreswiki.org/images/White-chevron.svg) no-repeat;
   background: url(https://brightershoreswiki.org/images/White-chevron.svg) no-repeat;
    background-size: auto;
  background-size: auto;
   display: inline-block;
   display: inline-block;
   height: 0.7rem;
   height: 0.7rem;
Line 299: Line 323:
   padding:4px 4px 5px calc(17px + 6.5px * 2);
   padding:4px 4px 5px calc(17px + 6.5px * 2);
   box-shadow:0 2px 3px rgba(0,0,0,0.1);
   box-shadow:0 2px 3px rgba(0,0,0,0.1);
   transition:0.2s
   transition:0.2s;
}
}
#n-Discord a::before {
#n-Discord a::before {
   content:'Join our ';
   content:'Join the ';
   font-weight:normal;
   font-weight:normal;
   opacity:0.85
   opacity:0.85;
}
}
#n-Discord a::after {
#n-Discord a::after {
Line 315: Line 339:
   left:7px;
   left:7px;
   width:17px;
   width:17px;
   height:13px
   height:13px;
}
}
#n-Discord a:hover {
#n-Discord a:hover {
   text-decoration:none;
   text-decoration:none;
   background-color:#525ee0
   background-color:#525ee0;
}
}


/* Sidebar HighLite */
#n-HighLite a {
  color:#fff !important;
  font-weight:bold;
  border-radius:4px;
  border:1px solid #3f3f3f;
  background-color:#2a2a2a;
  display:block;
  position:relative;
  padding:4px 4px 5px calc(17px + 6.5px * 2);
  box-shadow:0 2px 3px rgba(0,0,0,0.1);
  transition:0.2s;
}
#n-HighLite a::before {
  content:'Try Out ';
  font-weight:normal;
  opacity:0.85;
}
#n-HighLite a::after {
  content:'';
  background:url(https://highspell.wiki/w/images/e/e8/HighLite-Logo-Transparent.png) no-repeat;
  background-size: 26px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
  position: absolute;
  top: -1px;
  left: 3px;
  width: 25px;
  height: 25px;
}
#n-HighLite a:hover {
  color:#f9f449 !important;
  text-decoration:none;
  border-color: #f9f449;
}




Line 337: Line 396:
   top: 50%;
   top: 50%;
   left: 50%;
   left: 50%;
   transform: translate(-50%, -50%) scale(0.5);
   transform: translate(-50%, -50%) scale(0.6) rotate(-25deg);
   z-index: 2;
   z-index: 2;
}
.text-muted {
  opacity: 0.6;
  color: inherit; /* Keeps parent color, just dims it */
}
.fslightbox-wrapper iframe[data-fslightbox-target] {
  position: absolute;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}
}