MediaWiki:Mbhh.css: Difference between revisions
From Corsair Cove Official Wiki
added layout and graphics for Reward card template |
m took out debugging border |
||
| Line 380: | Line 380: | ||
.cc-reward-card { | .cc-reward-card { | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
Revision as of 02:44, 1 August 2026
/* All CSS here will be loaded for users of the MBHH skin */
@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:ital,wght@0,100;0,300;0,400;0,500;0,700;0,800;0,900;1,100;1,300;1,400;1,500;1,700;1,800;1,900&family=Alegreya:ital,wght@0,400..900;1,400..900&display=swap');
body {
background-image: url(/Corsair_Cove/skins/MBHH/resources/images/shade-right.png?9ba42),
url(/Corsair_Cove/skins/MBHH/resources/images/shade-left.png?30070),
url(/Corsair_Cove/skins/MBHH/resources/images/shade-bottom.png?ff4a7),
url(/Corsair_Cove/skins/MBHH/resources/images/game_bgs/COVE_bg.jpg?placeholder);
font-family: "Alegreya Sans", "Noto Sans", sans-serif;
font-size: 18px;
}
.mw-body h1, .mw-body h2, .mw-body h3, .mw-body h4, .mw-body h5, .mw-body .toctitle h2 {
font-family: "Alegreya", sans-serif;
}h
#mw-site-navigation #site-navigation.sidebar-chunk .sidebar-inner h3,
#mw-site-navigation #site-tools.sidebar-chunk .sidebar-inner h3,
#mw-related-navigation #page-tools.sidebar-chunk .sidebar-inner h3 {
font-family: "Alegreya", serif;
font-size: 1.2em;
font-weight: 300 !important;
text-transform: unset;
}
input#wpSummary {
font-family: "Noto Sans", sans-serif;
}
.oo-ui-popupWidget-popup {
background-color: black;
}
a, a:link, .toctogglelabel {
color: #f4cf81 !important;
}
a.new {
color: #f35961 !important;
}
.tabber__tab, a.tabber__tab, a.tabber__tab:visited {
margin-left: 25px;
margin-right: 25px;
text-align: center;
justify-content: center;
}
.tabber__tabs {
flex-wrap: wrap;
justify-content: center;
width: 100%;
}
#mw-content #toc ul a :not(img) {
filter:none;
}
.mw-scribunto-normalOutput {
font-family: monospace;
color: white;
}
/* ART */
#mw-content {
background-image: url("/images/mbhh_cove/1/15/T_BG_BlackPaperBackgroundWithCutEdges.png"), linear-gradient(to right, #131315, #0f0f11);
background-repeat: no-repeat;
}
.mw-body .mw-parser-output h2 {
color: #f5dcab;
}
.mw-body .mw-parser-output h2::after {
border-bottom: none;
background-image: url("/images/mbhh_cove/d/d8/T_BG_JourneyComplete.png");
background-size: 109% 830px;
background-position: center -9px;
background-repeat: no-repeat;
width: 100%;
height: 4px;
overflow: hidden;
margin-top: 2px;
padding: 0;
}
.mw-body-content hr {
border: none;
background-color: transparent;
background-image: url("/images/mbhh_cove/8/89/T_Deco_DividerlineWhite.png");
background-size: 100% 12px;
height: 12px;
}
.cc-ship-background img {
display: inline-block;
background-image: url("/images/mbhh_cove/7/76/T_PopulationBackground_Gray.png");
background-size: 100% 100%;
background-repeat: no-repeat;
border-image-source: url("/images/mbhh_cove/4/4e/T_Button_SelectionBorder_Default.png") !important;
border-image-slice: 12 !important;
border-image-width: auto !important;
border-image-outset: 6px !important;
}
.cc-compass-icon {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
line-height: 0;
font-size: 0;
border-radius: 50%;
background-color: var(--instance-path-color, transparent);
width: var(--instance-size, 16px);
height: var(--instance-size, 16px);
}
.cc-compass-icon::after {
content: "";
position: absolute;
top: 1px; left: 1px; right: 0; bottom: 0;
background-image: url("/images/mbhh_cove/d/de/T_Button_Compass_Node_Round_Color.png");
background-position: center;
background-size: 185% 185%;
}
.mw-body-content .cc-compass-icon img {
position: relative;
line-height: 0;
font-size: 0;
border-radius: 50%;
z-index: 1;
width: var(--instance-inner-size) !important;
height: var(--instance-inner-size) !important;
}
.mw-body-content .cc-compass-icon a,
.mw-body-content .cc-compass-icon span.mw-default-size {
display: inline-flex;
margin: 0;
padding: 0;
line-height: 0;
}
.cc-infobox-resource {
background-image: url("/images/mbhh_cove/1/15/T_BG_BlackPaperBackgroundWithCutEdges.png");
background-size: cover;
border-radius: 4px;
padding-top: 0;
padding-left: 2px;
padding-right: 2px;
padding-bottom: 4px;
margin-left: 40px;
margin-bottom: 40px;
}
.cc-infobox-resource ul, p {
list-style: none;
margin-left: 8px;
position: relative;
z-index: 1;
}
.cc-infobox-resource > hr:first-child {
border: none;
background-color: transparent;
height: 12px;
background-image: url("/images/mbhh_cove/7/74/T_Divider_Small.png");
background-size: 60% 70%;
background-repeat: repeat-x;
background-position: center;
margin: -4px 20px -4px 20px;
}
.cc-infobox-resource-header + hr {
border: none;
background-color: transparent;
height: 4px;
background-image: url("/images/mbhh_cove/f/f1/T_Divider_Center.png");
background-size: 60% 50%;
background-repeat: repeat-x;
background-position: center;
margin: 0 30px 0 30px;
}
.cc-infobox-resource-header {
position: relative;
padding: 12px;
}
.cc-infobox-resource-header::before {
content: "";
pointer-events: none;
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
z-index: 0;
border-radius: 5px;
background-image: url("/images/mbhh_cove/4/47/T_StoneMask.png");
background-size: cover;
opacity: 0.02;
mask-image: linear-gradient(to right, transparent, black 5px, black calc(100% - 5px), transparent),
linear-gradient(to bottom, transparent, black 5px, black calc(100% - 5px), transparent);
mask-composite: intersect;
-webkit-mask-image: linear-gradient(to right, transparent, black 5px, black calc(100% - 5px), transparent),
linear-gradient(to bottom, transparent, black 5px, black calc(100% - 5px), transparent);
-webkit-mask-composite: source-in;
margin: 0 5px 0 5px;
}
.cc-infobox-resource-footer {
position: relative;
background-size: cover;
padding: 8px;
margin: 12px 4px 4px 4px;
}
.cc-infobox-resource-footer::before {
content: "";
pointer-events: none;
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
z-index: 0;
border-image-source: url("https://wiki.hoodedhorse.com/images/mbhh_cove/d/dd/T_BG_ContentBox.png");
border-image-width: 5px;
border-image-slice: 10 fill;
border-image-repeat: stretch;
border-image-outset: 0;
opacity: 0.3;
}
.cc-infobox-resource-footer-label {
display: block;
text-align: center;
position: relative;
z-index: 1;
}
.cc-infobox-resource-footer > hr {
border: none;
background-color: transparent;
height: 4px;
background-image: url("/images/mbhh_cove/f/fa/T_unlock_Goldline.png");
background-size: 60% 30%;
background-repeat: repeat-x;
background-position: center;
margin: 0 4px 0 4px;
}
.cc-infobox-building {
background-image: url("/images/mbhh_cove/0/03/T_MainMenuBackGroundWithContent.png");
background-size: 177% auto;
background-position: center 0px;
margin-top: 48px;
margin-left: 48px;
margin-bottom: 48px;
padding-bottom: 48px;
}
.cc-infobox-building-header {
position: relative;
margin-top: 2px;
padding: 8px 0 12px;
background-image: url("/images/mbhh_cove/c/c3/T_BG_PanelHeader03.png");
background-size: 100% 100%;
color: black;
}
.cc-infobox-building-header > p {
margin: 0;
text-align: center;
font-family: "Alegreya", serif;
line-height: 1.1em;
}
.cc-infobox-building-header > p:first-of-type {
font-size: 1.35em;
}
.cc-infobox-building-header-icon {
position: absolute;
z-index: 3;
top: 0;
transform: translateY(-100%);
width: 100%;
height: 40px;
background-image: url("/images/mbhh_cove/4/48/T_PanelRoundTop.png");
background-size: 100% auto;
background-position: center 0px;
background-repeat: no-repeat;
text-align: center;
}
.cc-infobox-building-header-icon::before {
content: "";
position: absolute;
z-index: 1;
top: 0; left: 0; right: 0; bottom: 0;
width: 100%;
background-image: url("/images/mbhh_cove/2/2e/T_Deco_Panel.png");
background-size: contain;
background-position: center 0px;
background-repeat: no-repeat;
}
.cc-infobox-building-header-icon img {
position: relative;
z-index: 3;
width: 48px;
height: 48px;
top: -14px;
}
.cc-infobox-building-header-theme-well {
position: relative;
z-index: 1;
height: 115px;
background-size: 100% auto;
background-position: center center;
background-repeat: no-repeat;
}
.cc-infobox-building-header-theme-generic {
background-image: url("/images/mbhh_cove/c/c8/T_PanelBanner_Placeholder.png");
}
.cc-infobox-building-header-theme-camp {
background-image: url("/images/mbhh_cove/1/18/T_StructureBanner_PirateCamp.png");
}
.cc-infobox-building-header-theme-galley {
background-image: url("/images/mbhh_cove/a/a3/T_StructureBanner_galley.png");
}
.cc-infobox-building-header-theme-tavern {
background-image: url("/images/mbhh_cove/a/ae/T_StructureBanner_tavern.png");
}
.cc-infobox-building-header-theme-pier {
background-image: url("/images/mbhh_cove/f/fa/T_StructureBanner_pier.png");
}
.cc-infobox-building-header-theme-defense {
background-image: url("/images/mbhh_cove/7/71/T_StructureBanner_defense_towers.png");
}
.cc-infobox-building-header-theme-notoriety {
background-image: url("/images/mbhh_cove/7/75/T_StructureBanner_notoriety.png");
}
.cc-infobox-building-header-theme-empire {
background-image: url("/images/mbhh_cove/f/f9/T_StructureBanner_empire.png");
}
.cc-infobox-building-header-theme-seafaring {
background-image: url("/images/mbhh_cove/f/f9/T_StructureBanner_sea.png");
}
.cc-infobox-building-header-theme-wealth {
background-image: url("/images/mbhh_cove/4/4e/T_StructureBanner_wealth.png");
}
.cc-infobox-building-header-theme-well::after {
content: "";
position: absolute;
top: -40px; left: -2px; right: -2px; bottom: 0;
z-index: 2;
background-image: url("/images/mbhh_cove/2/2c/T_BannerGlow.png");
background-size: 100% 100%;
background-position: center center;
background-repeat: no-repeat;
opacity: 0.45;
}
.cc-infobox-building-description {
padding: 16px;
text-align: left;
}
.cc-infobox-building-section {
margin-top: 36px;
}
.cc-infobox-building-section hr {
border: none;
background-color: transparent;
height: 4px;
background-image: url("/images/mbhh_cove/7/72/T_Deco_DividerlineGoldWide.png");
background-size: 50% 30%;
background-repeat: repeat-x;
background-position: center;
margin: 0 10% 12px 10%;
}
.cc-infobox-building-section-production-table {
margin: 36px 36px 0 36px;
}
.cc-reward-card {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
width: 96px;
height: 128px;
padding: 10px 6px 4px 6px;
border-image-source: url("/images/mbhh_cove/0/0e/T_Button_ChoiceCard_Default.png");
border-image-slice: 11 fill;
border-image-width: 4;
font-size: 125%;
}
.toc {
border: none;
background-color: transparent;
}
.toc::before {
content: "";
display: block;
width: 100%;
height: 64px;
background-image: url("/images/mbhh_cove/2/21/T_Divider_Top.png");
background-position: center;
background-size: 80% 60%;
background-repeat: repeat-x;
}
.toc::after {
content: "";
display: block;
width: 100%;
height: 4px;
background-image: url("/images/mbhh_cove/f/f1/T_Divider_Center.png");
background-position: center;
background-size: 70% 70%;
background-repeat: repeat-x;
margin-top: 16px;
}
.toc > .toctitle {
border: none;
}
.toc > .toctitle::after {
content: "";
display: block;
width: 100%;
height: 12px;
background-image: url("/images/mbhh_cove/7/74/T_Divider_Small.png");
background-position: center;
background-size: 70% 70%;
background-repeat: repeat-x;
margin-top: 12px;
}
table.cc-flow-diagram {
display: inline-block;
border-collapse: collapse;
border-spacing: 0;
line-height: 0;
font-size: 0;
}
table.cc-flow-diagram td {
padding: 0;
}
.cc-panel-banner {
position: relative;
display: inline-block;
padding: 12px;
min-width: 200px;
line-height: 1.1;
font-family: "Alegreya", serif;
}
.cc-panel-banner::before {
content: "";
pointer-events: none;
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
z-index: 0;
background-image: url("/images/mbhh_cove/c/c3/T_BG_PanelHeader03.png");
background-size: 100% 100%;
background-position: center;
background-repeat: no-repeat;
}
.cc-panel-banner > span {
position: relative;
z-index: 1;
}
.cc-panel-recolor-gray::before{
filter: brightness(0) saturate(100%) invert(4%) sepia(1%) saturate(1309%) hue-rotate(314deg) brightness(110%) contrast(75%);
}
.cc-panel-recolor-notoriety::before {
filter: brightness(0) saturate(100%) invert(22%) sepia(35%) saturate(545%) hue-rotate(43deg) brightness(97%) contrast(96%);
}
.cc-panel-recolor-empire::before {
filter: brightness(0) saturate(100%) invert(13%) sepia(89%) saturate(822%) hue-rotate(329deg) brightness(92%) contrast(90%);
}
.cc-panel-recolor-seafaring::before {
filter: brightness(0) saturate(100%) invert(16%) sepia(33%) saturate(755%) hue-rotate(176deg) brightness(91%) contrast(88%);
}
.cc-panel-recolor-wealth::before {
filter: brightness(0) saturate(100%) invert(11%) sepia(76%) saturate(1604%) hue-rotate(292deg) brightness(97%) contrast(105%);
}
.cc-pirate-icon {
position: relative;
display: inline-block;
border-image-source: url("/images/mbhh_cove/0/0e/T_Button_ChoiceCard_Default.png");
border-image-width: var(--instance-sized-border-width);
border-image-slice: 12;
border-image-outset: var(--instance-sized-border-width);
}
.cc-pirate-icon-color-red {
background-image: url("/images/mbhh_cove/d/dd/T_PopulationBackground_Red.png");
}
.cc-pirate-icon-color-yellow {
background-image: url("/images/mbhh_cove/0/0b/T_PopulationBackground_Yellow.png");
}
.cc-pirate-icon-color-green {
background-image: url("/images/mbhh_cove/f/f0/T_PopulationBackground_Green.png");
}
.cc-pirate-icon-color-purple {
background-image: url("/images/mbhh_cove/0/05/T_PopulationBackground_Pink.png");
}
.cc-pirate-icon-color-blue {
background-image: url("/images/mbhh_cove/a/a4/T_PopulationBackground_Blue.png");
}
.cc-pirate-icon-color-gray {
background-image: url("/images/mbhh_cove/7/76/T_PopulationBackground_Gray.png");
}


