MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Manual revert |
No edit summary |
||
(71 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: | max-width: 560px; | ||
background: | 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: | 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: | max-width: 250px; | ||
background: | background: var(--bg-contrast) !important; | ||
border-radius: 12px; | border-radius: 12px; | ||
font-family: sans-serif; | font-family: sans-serif; | ||
color: | 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 | 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 | 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 | 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 | 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 | background-color: color-mix(in srgb, #d53e4f, transparent 80%) !important; | ||
color: #d53e4f !important; | |||
} | |||
.vector-body .table-bg-ultrarare, | |||
.table-bg-purple { | |||
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 | background-color: color-mix(in srgb, #5e4fa2, transparent 80%) !important; | ||
color: # | 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 134: | 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; | ||
padding: 20px; | padding: 20px; | ||
border-radius: 12px; | border-radius: 12px; | ||
font-family: sans-serif; | font-family: sans-serif; | ||
color: | 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 165: | 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 { | |||
text-decoration: none; | |||
color: inherit; | |||
} | |||
.tile-halves { | .tile-halves { | ||
Line 246: | 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; | |||
display: inline-block; | display: inline-block; | ||
height: 0.7rem; | height: 0.7rem; | ||
Line 290: | 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 | content:'Join the '; | ||
font-weight:normal; | font-weight:normal; | ||
opacity:0.85 | opacity:0.85; | ||
} | } | ||
#n-Discord a::after { | #n-Discord a::after { | ||
Line 306: | 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; | |||
} | |||
.image-overlay { | |||
position: relative; | |||
display: inline-block; | |||
} | |||
.image-overlay .base { | |||
display: block; | |||
} | |||
.image-overlay .overlay { | |||
position: absolute; | |||
top: 50%; | |||
left: 50%; | |||
transform: translate(-50%, -50%) scale(0.6) rotate(-25deg); | |||
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; | |||
} | } |
Latest revision as of 13:45, 19 June 2025
/* CSS placed here will be applied to all skins */ /* Float infoboxes to the right */ .infobox { float: right; clear: right; margin: 0 0 1em 1em; } /* Hide page name on the home page */ body.page-Main_Page h1#firstHeading { display: none !important; } /* Prettify stub boxes */ .stub-box { max-width: 600px; display: flex; align-items: center; background-color: #e9e9e9; border-left: 4px solid #09bb62; padding: 10px 15px; border-radius: 8px; font-size: 0.95em; box-shadow: 0 0 4px rgba(0,0,0,0.2); } .stub-image { display: flex; align-items: center; margin-right: 10px; padding: 0; } .stub-image img { display: block; margin: 0; padding: 0; line-height: 1; vertical-align: middle; } .stub-text { text-align: left; line-height: 1.4em; } .stub-word { color: #4f504c; } /* 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 { display: flex; } .mainpage-header .header-intro { flex: 2; max-width: 560px; background: var(--bg-contrast) !important; padding: 0px 20px 20px; border-radius: 12px; font-family: sans-serif; color: var(--bg-main) !important; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); } .mainpage-header .header-stats { flex: 1; display: flex; justify-content: center; align-items: center; margin-left: 35px; max-width: 250px; background: var(--bg-contrast) !important; border-radius: 12px; font-family: sans-serif; color: var(--bg-main) !important; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); } .header-stats ul { list-style: none; padding-left: 0; margin-left: 0; } /* Cell data alignments */ .cell-data-center { text-align: center; } .cell-data-left { text-align: left; } .cell-data-right { text-align: right; } /* Drop table background colors */ .vector-body .table-bg-always, .table-bg-blue { background-color: color-mix(in srgb, #3288bd, transparent 80%) !important; color: #3288bd !important; } .vector-body .table-bg-common, .table-bg-green { background-color: color-mix(in srgb, #abdda4, transparent 80%) !important; color: #abdda4 !important; } .vector-body .table-bg-uncommon, .table-bg-yellow { background-color: color-mix(in srgb, #fee08b, transparent 80%) !important; color: #fee08b !important; } .vector-body .table-bg-rare, .table-bg-orange { background-color: color-mix(in srgb, #f46d43, transparent 80%) !important; color: #f46d43 !important; } .vector-body .table-bg-veryrare, .table-bg-red { background-color: color-mix(in srgb, #d53e4f, transparent 80%) !important; color: #d53e4f !important; } .vector-body .table-bg-ultrarare, .table-bg-purple { background-color: color-mix(in srgb, #9b91af, transparent 80%) !important; color: #9b91af !important; } .vector-body .table-bg-random, .table-bg-pink { background-color: color-mix(in srgb, #5e4fa2, transparent 80%) !important; color: #5e4fa2 !important; } .vector-body .table-bg-gray, .table-bg-grey { background:#5d6773 !important; color: #5d6773 !important; } .vector-body .table-bg-fade { opacity:0.6 !important; background:rgba(0,0,0,0.1) !important; } /* Frontpage stuff */ .skill-wrapper { max-width: 810px; } .skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px 18px; padding: 20px; border-radius: 12px; font-family: sans-serif; color: var(--bg-main) !important; background-color: var(--bg-contrast) !important; 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 */ } .skill { display: flex; align-items: center; border-radius: 8px; transition: background 0.2s ease; cursor: pointer; } .skill-icon { display: flex; align-items: center; justify-content: center; padding: 4px; margin-right: 10px; border-radius: 6px; width: 28px; height: 28px; flex-shrink: 0; text-align: center; font-size: 16px; } /* Hover Backgrounds */ .skill-hitpoints:hover { background-color: #f2da85 !important; } .skill-accuracy:hover { background-color: #d6f47c !important; } .skill-strength:hover { background-color: #a6fc7b !important; } .skill-defense:hover { background-color: #efc181 !important; } .skill-magic:hover { background-color: #f9b7b6 !important; } .skill-range:hover { background-color: #a372e0 !important; } .skill-cooking:hover { background-color: #c7c2fc !important; } .skill-crafting:hover { background-color: #f78acd !important; } .skill-mining:hover { background-color: #abfcf8 !important; } .skill-crime:hover { background-color: #adbbff !important; } .skill-enchanting:hover { background-color: #81efaf !important; } .skill-fishing:hover { background-color: #a4fce7 !important; } .skill-forestry:hover { background-color: #fcc7f2 !important; } .skill-harvesting:hover { background-color: #f9dfb3 !important; } .skill-potionmaking:hover { background-color: #98b7f9 !important; } .skill-smithing:hover { background-color: #ff7cf1 !important; } /* Always-colored icon boxes */ .skill-hitpoints .skill-icon { background-color: #f2da85 !important; } .skill-accuracy .skill-icon { background-color: #d6f47c !important; } .skill-strength .skill-icon { background-color: #a6fc7b !important; } .skill-defense .skill-icon { background-color: #efc181 !important; } .skill-magic .skill-icon { background-color: #f9b7b6 !important; } .skill-range .skill-icon { background-color: #a372e0 !important; } .skill-cooking .skill-icon { background-color: #c7c2fc !important; } .skill-crafting .skill-icon { background-color: #f78acd !important; } .skill-mining .skill-icon { background-color: #abfcf8 !important; } .skill-crime .skill-icon { background-color: #adbbff !important; } .skill-enchanting .skill-icon { background-color: #81efaf !important; } .skill-fishing .skill-icon { background-color: #a4fce7 !important; } .skill-forestry .skill-icon { background-color: #fcc7f2 !important; } .skill-harvesting .skill-icon { background-color: #f9dfb3 !important; } .skill-potionmaking .skill-icon { background-color: #98b7f9 !important; } .skill-smithing .skill-icon { background-color: #ff7cf1 !important; } .skill-grid a.skill { text-decoration: none; color: inherit; } .tile-halves { background: #5b4d48; border: none; } .mainpage-social { border: none; box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0,0,0,0.3); } .tile-halves { display: flex; flex-flow: row wrap; background: var(--tile-background-color); box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0,0,0,0.1); } .mainpage-social.mainpage-discord .tile-top { background: #5865f2; } .mainpage-social .tile-top { display: flex; align-items: center; padding: 1em 1.5em; } .tile-top { width: 100%; padding: 1.3rem 1.5rem 0.6rem; } .mainpage-social .social-icon { margin-right: 0.75em; text-align: center; width: 60px; } .mainpage-social .arrow { position: absolute; top: calc(50% - .5em); right: 0; height: 1em; width: 0.7em; background-size: 0.7em 1em; transition: 0.3s ease-out; transition-duration: 0.3s; } .arrow { background: url(https://brightershoreswiki.org/images/White-chevron.svg) no-repeat; background-size: auto; display: inline-block; height: 0.7rem; width: 0.45rem; vertical-align: middle; } .mainpage-social .social-header { color: #fff; font-weight: bold; font-size: 1.15em; margin: 0.5em 0 -0.15em; } .mainpage-social .server-tagline { color: rgba(255,255,255,0.9); margin-bottom: 0.5em; } .mainpage-social.mainpage-discord .tile-bottom { background: #525ee0; } .mainpage-social .tile-bottom p { color: #fff; font-weight: bold; font-size: 0.9em; text-align: center; text-transform: uppercase; letter-spacing: 0.03em; margin: 0; } /* Sidebar Discord */ #n-Discord a { color:#fff !important; font-weight:bold; border-radius:4px; border:1px solid #4c57d0; background-color:#5865f2; 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-Discord a::before { content:'Join the '; font-weight:normal; opacity:0.85; } #n-Discord a::after { content:''; background:url(https://brightershoreswiki.org/images/Discord_logo_icon.svg) no-repeat; background-size:17px 13px; filter:drop-shadow(0 1px 1px rgba(0,0,0,0.1)); position:absolute; top:5px; left:7px; width:17px; height:13px; } #n-Discord a:hover { text-decoration:none; 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; } .image-overlay { position: relative; display: inline-block; } .image-overlay .base { display: block; } .image-overlay .overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.6) rotate(-25deg); 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; }