more css magic

This commit is contained in:
Kyle
2018-11-09 17:09:55 -08:00
parent d24448ffdc
commit 2392f5f4a6
2 changed files with 8 additions and 2 deletions

View File

@@ -108,7 +108,7 @@ var cardClockInterval = setInterval(cardClock, 1000 / document.getElementById("i
//It's easier to generate the mana symbol list via js, so do it here
var symbolList = ""
for (var i = 0; i < manaSymbolCode.length; i++) {
symbolList += "<div class='column-4' style='width: auto'>" + manaSymbolCode[i] + "\u2192" + "<img src=" + manaSymbolImages[i].src + "></img></div>"
symbolList += "<div class='column-4'>" + manaSymbolCode[i] + "\u2192" + "<img src=" + manaSymbolImages[i].src + "></img></div>"
}
document.getElementById("symbolList").innerHTML = symbolList

View File

@@ -376,7 +376,7 @@
* {
text-align: center;
font-family: belerenb;
font-size: 25px;
font-size: 5vw;
color: var(--main-text-color);
user-select: none;
box-sizing: border-box;
@@ -495,6 +495,9 @@ input[type="color"] {
top: 0.25em;
height: 1.2em;
}
.column-4 {
width: 5.5em;
}
/*Other*/
.title {
text-align: center;
@@ -530,6 +533,9 @@ a:active {
/*Adjustments For Desktop*/
/*Chrome's JS Debugger gives a width 1.1 times greater than it should be*/
@media only screen and (orientation: landscape) {
* {
font-size: 25px;
}
.column-3 {width: 33.33%;}
}
@media only screen and (min-width: 1130px) {