User:Sky/Rarity: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(add css)
(modify css)
Line 46: Line 46:


== CSS ==
== CSS ==
Can also define the following vars on <body> if reusing these colours outside of ItemIcon is desired.
<syntaxhighlight lang="css">
<syntaxhighlight lang="css">
body .itemicon-wrapper {
body {
   --rarity-common: #48484899;
   --rarity-common: #48484899;
   --rarity-common-bck: #48484820;
   --rarity-common-bck: #48484820;
Line 62: Line 60:
   --rarity-story: #FF590199;
   --rarity-story: #FF590199;
   --rarity-story-bck: #FF590120;
   --rarity-story-bck: #FF590120;
}
body .itemicon-wrapper {
   text-align: center;
   text-align: center;
   white-space: nowrap;
   white-space: nowrap;

Revision as of 06:30, 8 September 2023


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin tristique ligula vitae turpis varius ullamcorper. Ut sagittis Potion of Healing eu dolor accumsan venenatis. Maecenas sit amet ante at ligula efficitur fermentum. Suspendisse ac neque pretium nisi finibus euismod. Suspendisse varius ipsum lorem, vitae consectetur metus mattis sit amet. Proin ornare orci turpis, non blandit lorem scelerisque a. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Potion of Healing in luctus arcu. Proin aliquet lorem quis lacus lacinia molestie. Suspendisse iaculis venenatis nibh, et dapibus augue varius a.

CSS

body {
  --rarity-common: #48484899;
  --rarity-common-bck: #48484820;
  --rarity-uncommon: #01BD3999;
  --rarity-uncommon-bck: #01BD3920;
  --rarity-rare: #01BFFF99;
  --rarity-rare-bck: #01BFFF20;
  --rarity-very-rare: #D1017B99;
  --rarity-very-rare-bck: #D1017B20;
  --rarity-legendary: #B7861D99;
  --rarity-legendary-bck: #B7861D20;
  --rarity-story: #FF590199;
  --rarity-story-bck: #FF590120;
}

body .itemicon-wrapper {
  text-align: center;
  white-space: nowrap;
}