MediaWiki:Mobile.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
} | } | ||
/* | |||
* Various elements used across the wiki | |||
*/ | |||
/* Info blob */ | |||
div.bg3wiki-info-blob { | div.bg3wiki-info-blob { | ||
Line 20: | Line 21: | ||
border-radius: 20px; | border-radius: 20px; | ||
} | } | ||
span.bg3wiki-info-blob { | span.bg3wiki-info-blob { | ||
padding: 0 0.5em 0 0.5em; | padding: 0 0.5em 0 0.5em; | ||
border-radius: 10px; | border-radius: 10px; | ||
} | } | ||
.bg3wiki-info-blob { | |||
background-color: var(--color-surface-1); | |||
font-family: monospace; | |||
} | |||
/* D20 background image for numbers */ | |||
.bg3wiki-d20-bg { | .bg3wiki-d20-bg { | ||
Line 32: | Line 38: | ||
background-size: 35px; | background-size: 35px; | ||
} | } | ||
/* Coordinates */ | |||
.bg3wiki-coordinates { | .bg3wiki-coordinates { | ||
Line 42: | Line 50: | ||
box-shadow: 1px 1px 5px #00000030; | box-shadow: 1px 1px 5px #00000030; | ||
} | } | ||
/* Weapon properties */ | |||
.bg3wiki-weapon-damages dt { | |||
font-weight: normal; | |||
} | |||
.bg3wiki-weapon-damages dd { | |||
margin-left: 0; | |||
} | |||
/* Imitating in-game tooltips */ | |||
.bg3wiki-tooltip-box { | .bg3wiki-tooltip-box { |
Revision as of 21:27, 29 August 2023
/* All CSS here will be loaded for users of the mobile site */
:root.skin-citizen-dark {
--color-primary__h: 20;
--color-surface-0: hsl(var(--color-primary__h) 20% 8%);
--color-surface-1: hsl(var(--color-primary__h) 20% 10%);
--color-surface-2: hsl(var(--color-primary__h) 20% 12%);
--background-color-overlay: hsla(var(--color-primary__h) 20% 8% / 95%);
--background-color-overlay--lighter: hsl(var(--color-primary__h) 20% 8% / 60%)
}
/*
* Various elements used across the wiki
*/
/* Info blob */
div.bg3wiki-info-blob {
display: inline-block;
padding: 0 1em 0 1em;
border-radius: 20px;
}
span.bg3wiki-info-blob {
padding: 0 0.5em 0 0.5em;
border-radius: 10px;
}
.bg3wiki-info-blob {
background-color: var(--color-surface-1);
font-family: monospace;
}
/* D20 background image for numbers */
.bg3wiki-d20-bg {
background-image: url('/static/d20-bg.png');
background-position: center;
background-repeat: no-repeat;
background-size: 35px;
}
/* Coordinates */
.bg3wiki-coordinates {
font-family: 'Linux Libertine', 'Times', serif;
text-shadow: 1px 1px 2px #000, -1px -1px 2px #000;
color: #AB9F89;
background: #34323285;
border-radius: 5px;
padding: 3px 5px;
box-shadow: 1px 1px 5px #00000030;
}
/* Weapon properties */
.bg3wiki-weapon-damages dt {
font-weight: normal;
}
.bg3wiki-weapon-damages dd {
margin-left: 0;
}
/* Imitating in-game tooltips */
.bg3wiki-tooltip-box {
background: #1B1A19;
box-shadow:
rgba(0, 0, 0, 0.14) 3px 3px 6px 0px inset,
rgba(0, 0, 0, 0.14) -3px -3px 6px 1px inset;
border: 0.15rem solid #785000;
border-radius: 10px;
padding: 15px;
}
.bg3wiki-book-text p {
font-family: 'Linux Libertine', 'Times', serif;
}
.bg3wiki-tooltip-gradient-common {
background: linear-gradient(to bottom, #1B1A1999, #1B1A1999, #1B1A1999, #40295199);
}
.bg3wiki-tooltip-gradient-uncommon {
background: linear-gradient(to bottom, #00491599, #1B1A1999, #1B1A1999, #40295199);
}
.bg3wiki-tooltip-gradient-rare {
background: linear-gradient(to bottom, #00374999, #1B1A1999, #1B1A1999, #40295199);
}
.bg3wiki-tooltip-gradient-veryrare {
background: linear-gradient(to bottom, #54003299, #1B1A1999, #1B1A1999, #40295199);
}
.bg3wiki-tooltip-gradient-legendary {
background: linear-gradient(to bottom, #563E0D99, #1B1A1999, #1B1A1999, #40295199);
}
.bg3wiki-tooltip-gradient-story {
background: linear-gradient(to bottom, #561D0099, #1B1A1999, #1B1A1999, #40295199);
}