Adding half mana symbol support

This commit is contained in:
Andrew Gioia 2015-12-02 13:55:43 -05:00
parent 7a6da86b4b
commit fa4721fb72
5 changed files with 46 additions and 35 deletions

View File

@ -31,8 +31,6 @@
/**
* Mana cost styles */
.ms-cost {
/**
* Base styles */
background-color: #BEB9B2;
border-radius: 1em;
color: #111;
@ -41,20 +39,6 @@
height: 1.3em;
line-height: 1.35em;
text-align: center;
/**
* Single symbols */
/**
* Split symbols */
/**
* Phyrexian mana and size increases */
/**
* Alternate tap */
/**
* Snow mana */
/**
* Tap symbols */
/**
* Shadow */
}
.ms-cost.ms-w,
.ms-cost.ms-wp {
@ -410,6 +394,17 @@
top: 0.5em;
left: 1.0em;
}
/**
* Half costs */
.ms-half {
width: .675em;
overflow: hidden;
display: inline-block;
margin-left: .675em;
}
.ms-half > .ms-cost {
margin-left: -0.675em;
}
/**
* Planesalker symbols */
.ms-loyalty-up,
@ -552,7 +547,7 @@
.ms-loyalty-down.ms-loyalty-x:after {
content: "-X";
}
/**
/*
* Larger sizes */
.ms-2x {
font-size: 1.75em;

2
css/mana.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -112,6 +112,14 @@
<i class="ms ms-r ms-cost ms-shadow ms-2x"></i>
<i class="ms ms-g ms-cost ms-shadow ms-2x"></i>
</p>
<h3>New: <a href="http://gatherer.wizards.com/Pages/Card/Details.aspx?multiverseid=74257">Half mana symbols</a></h3>
<p>
<span class="ms-half"><i class="ms ms-w ms-cost"></i></span>
<span class="ms-half"><i class="ms ms-u ms-cost"></i></span>
<span class="ms-half"><i class="ms ms-b ms-cost"></i></span>
<span class="ms-half"><i class="ms ms-r ms-cost"></i></span>
<span class="ms-half"><i class="ms ms-g ms-cost"></i></span>
</p>
<h3>Future Sight type symbols</h3>
<p>
<i class="ms ms-artifact ms-2x"></i>

View File

@ -3,8 +3,7 @@
.@{ms-prefix}-cost {
/**
* Base styles */
// Base cost styles
background-color: #BEB9B2;
border-radius: 1em;
color: #111;
@ -14,8 +13,7 @@
line-height: 1.35em;
text-align: center;
/**
* Single symbols */
// Single symbols
&.@{ms-prefix}-w,
&.@{ms-prefix}-wp {
background-color: #F0F2C0;
@ -37,8 +35,7 @@
background-color: #93B483;
}
/**
* Split symbols */
// Split symbols
&.@{ms-prefix}-wu {
background: #edf2b0; /* Old browsers */
background: -moz-linear-gradient(-45deg, #edf2b0 0%, #edf2b0 50%, #a6c1dd 50%, #a6c1dd 100%); /* FF3.6+ */
@ -190,8 +187,7 @@
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#beb9b2', endColorstr='#93b483',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}
/**
* Phyrexian mana and size increases */
// Phyrexian mana and size increases
&.@{ms-prefix}-p:before,
&.@{ms-prefix}-wp:before,
&.@{ms-prefix}-up:before,
@ -204,8 +200,7 @@
transform: scale( 1.2, 1.2 );
}
/**
* Alternate tap */
// Alternate tap
&.@{ms-prefix}-tap-alt:before {
display: inline-block;
-moz-transform: scale( 1.2, 1.2 );
@ -215,8 +210,7 @@
padding-bottom: 0.10em;
}
/**
* Snow mana */
// Snow mana
&.@{ms-prefix}-s:before {
color: #fff;
-webkit-text-stroke: 2px #fff;
@ -234,15 +228,13 @@
font-size: 1.1em;
}
/**
* Tap symbols */
// Tap symbols
&.@{ms-prefix}-untap {
background-color: #111;
color: #fff;
}
/**
* Shadow */
// Shadow
&.@{ms-prefix}-shadow {
box-shadow: -0.06em 0.07em 0 #111, 0 0.06em 0 #111;
&.@{ms-prefix}-untap {
@ -251,6 +243,7 @@
}
}
/**
* Split costs */
@ -272,3 +265,18 @@
top: 0.5em;
left: 1.0em;
}
/**
* Half costs */
.@{ms-prefix}-half {
width: .675em;
overflow: hidden;
display: inline-block;
margin-left: .675em;
> .@{ms-prefix}-cost {
margin-left: -.675em;
}
}

View File

@ -1,4 +1,4 @@
/**
/*
* Larger sizes */
.@{ms-prefix}-2x { font-size: 1.75em; }