2023-11-20 07:12:29 +00:00
|
|
|
@use 'sass:math';
|
|
|
|
|
2019-08-16 19:31:12 +00:00
|
|
|
/**
|
|
|
|
* Sizes */
|
|
|
|
@each $class, $size in $keyrune_sizes {
|
|
|
|
.#{$keyrune_prefix}.#{$keyrune_prefix}-#{$class} {
|
|
|
|
font-size: #{$size};
|
|
|
|
}
|
2016-12-14 17:54:48 +00:00
|
|
|
}
|
|
|
|
|
2019-08-16 19:31:12 +00:00
|
|
|
/**
|
|
|
|
* Fixed width */
|
|
|
|
.#{$keyrune_prefix}.#{$keyrune_prefix}-fw {
|
2023-11-20 07:06:17 +00:00
|
|
|
width: calc(18em / #{math.div($keyrune_font_size, $keyrune_font_size * 0 + 1)});
|
2019-08-16 19:31:12 +00:00
|
|
|
text-align: center;
|
2018-03-08 14:58:49 +00:00
|
|
|
}
|
|
|
|
|
2019-08-16 19:31:12 +00:00
|
|
|
/**
|
|
|
|
* Force no border */
|
2016-12-14 17:54:48 +00:00
|
|
|
.#{$keyrune_prefix}.#{$keyrune_prefix}-no-border {
|
2019-08-16 19:31:12 +00:00
|
|
|
-webkit-text-stroke: 0;
|
|
|
|
text-stroke: 0;
|
2016-12-14 17:54:48 +00:00
|
|
|
}
|
|
|
|
|
2019-08-16 19:31:12 +00:00
|
|
|
/**
|
|
|
|
* Icon borders */
|
2016-12-14 17:54:48 +00:00
|
|
|
.#{$keyrune_prefix}.#{$keyrune_prefix}-border {
|
2019-08-16 19:31:12 +00:00
|
|
|
&:after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
left: -0.05em;
|
|
|
|
top: 0.0em;
|
|
|
|
z-index: -1;
|
|
|
|
color: $white;
|
|
|
|
font-size: 1.15em;
|
|
|
|
background: $white;
|
|
|
|
-webkit-text-stroke: 0.05em $white;
|
|
|
|
-webkit-background-clip: $keyrune_background_clip;
|
|
|
|
-webkit-text-fill-color: $keyrune_text_fill;
|
|
|
|
}
|
2016-12-14 17:54:48 +00:00
|
|
|
|
2019-08-16 19:31:12 +00:00
|
|
|
// adding a white version of the symbol for these problem sets,
|
|
|
|
// instead of using the generic text-stroke above
|
|
|
|
@each $set, $code, $glyph in $border-corrections {
|
|
|
|
&.#{$keyrune_prefix}-#{$code}:after { /* #{$set} */
|
|
|
|
content: ss-content($glyph);
|
|
|
|
}
|
2016-12-14 17:54:48 +00:00
|
|
|
}
|
2023-05-26 19:53:20 +00:00
|
|
|
|
|
|
|
// corrections for various duo icons
|
|
|
|
// SIS: the regular symbol becomes the border now
|
|
|
|
&.#{$keyrune_prefix}-sis {
|
|
|
|
&::before {
|
|
|
|
content: "\e9b3";
|
|
|
|
}
|
2024-10-28 11:02:47 +00:00
|
|
|
&::after {
|
|
|
|
content: "\e9b2";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// c16: regular symbol becomes the border
|
|
|
|
&.#{$keyrune_prefix}-c16 {
|
|
|
|
&::before {
|
|
|
|
content: "\e910"; // rarity
|
|
|
|
}
|
|
|
|
&::after {
|
|
|
|
content: "\e9e5"; // new border
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// dft: regular symbol becomes the border
|
|
|
|
&.#{$keyrune_prefix}-dft {
|
|
|
|
&::before {
|
|
|
|
content: "\e9e1"; // rarity
|
|
|
|
}
|
|
|
|
&::after {
|
|
|
|
content: "\e9e0"; // new border
|
|
|
|
}
|
2023-05-26 19:53:20 +00:00
|
|
|
}
|
2016-12-14 17:54:48 +00:00
|
|
|
}
|
2020-09-02 21:04:03 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Dual-layered symbols */
|
|
|
|
.#{$keyrune_prefix}.#{$keyrune_prefix}-duo {
|
|
|
|
|
|
|
|
// base border styles
|
|
|
|
&::after {
|
|
|
|
color: #000;
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
font-size: 1em;
|
|
|
|
height: 100%;
|
|
|
|
left: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2024-08-10 13:29:37 +00:00
|
|
|
& {
|
|
|
|
// set default inner to white unless a rarity is declared
|
|
|
|
color: #fff;
|
|
|
|
}
|
2020-09-02 21:04:03 +00:00
|
|
|
// sets
|
|
|
|
@each $code, $glyph in $dual-layered {
|
|
|
|
&.#{$keyrune_prefix}-#{$code}::after {
|
|
|
|
content: ss-content($glyph);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-26 15:59:47 +00:00
|
|
|
// manual corrections
|
2022-05-13 14:01:10 +00:00
|
|
|
&.#{$keyrune_prefix}-ncc::before {
|
2022-03-26 15:59:47 +00:00
|
|
|
content: "\e98f";
|
|
|
|
}
|
2022-05-13 20:14:58 +00:00
|
|
|
&.#{$keyrune_prefix}-40k::before {
|
|
|
|
content: "\e999";
|
|
|
|
}
|
|
|
|
&.#{$keyrune_prefix}-dmc::before {
|
|
|
|
content: "\e995";
|
|
|
|
}
|
2023-11-21 19:50:19 +00:00
|
|
|
&.#{$keyrune_prefix}-khc::before {
|
|
|
|
content: "\e9c5";
|
|
|
|
}
|
2023-05-26 19:53:20 +00:00
|
|
|
&.#{$keyrune_prefix}-ltc::before {
|
|
|
|
content: "\e9b7";
|
|
|
|
}
|
2022-03-26 15:59:47 +00:00
|
|
|
|
2020-09-02 21:04:03 +00:00
|
|
|
// rarity border colors
|
|
|
|
&.#{$keyrune_prefix}-common {
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
&.#{$keyrune_prefix}-uncommon::after,
|
|
|
|
&.#{$keyrune_prefix}-rare::after,
|
|
|
|
&.#{$keyrune_prefix}-mythic::after {
|
|
|
|
color: #000;
|
|
|
|
}
|
|
|
|
|
2023-11-20 07:06:17 +00:00
|
|
|
}
|