css changes

This commit is contained in:
Kyle
2018-11-01 21:42:43 -07:00
parent 00d723312e
commit c2f858253c
3 changed files with 88 additions and 97 deletions

View File

@@ -201,22 +201,20 @@
<!--END--> <!--END-->
</div> </div>
</div> </div>
<div class="text"> <div class="row">
Use the following codes to get the respective symbol in the card's mana cost and rules text. In the mana cost, make sure to include spaces in between the codes, and in the rules text include '<' before each code and '>' after.<br/> Use the following codes to get the respective symbol in the card's mana cost and rules text. In the mana cost, make sure to include spaces in between the codes, and in the rules text include '<' before each code and '>' after.<br/>
</div>
<div id="symbolList" class="row"></div> <div id="symbolList" class="row"></div>
<br/> <div class="row">
When selecting the card's color, use 'Second Color' for hybrid cards, and 'Third Color' for non-hybrid two-colored cards. When selecting the card's color, use 'Second Color' for hybrid cards, and 'Third Color' for non-hybrid two-colored cards.
<br/>
Check out some samples!
</div> </div>
<div class="clearfix"> <div class="row" style="background-color: rgba(0, 0, 0, 0.5); border: 1px solid rgba(128, 255, 128, 0.1); padding-top: 5px">
<img id="sampleCardA" src="sampleCards/sample-card-1.png" style="float: left; width: 33.33%; padding: 5px;"></img> Check out some samples! <br/>
<img id="sampleCardB" src="sampleCards/sample-card-2.png" style="float: left; width: 33.33%; padding: 5px;"></img> <img id="sampleCardA" src="sampleCards/sample-card-1.png" style="width: calc(33.33%);" class="column"></img>
<img id="sampleCardC" src="sampleCards/sample-card-3.png" style="float: left; width: 33.33%; padding: 5px;"></img> <img id="sampleCardB" src="sampleCards/sample-card-2.png" style="width: calc(33.33%);" class="column"></img>
<img id="sampleCardC" src="sampleCards/sample-card-3.png" style="width: calc(33.33%);" class="column"></img>
</div> </div>
<br/> <div class="row info" style="">For Terms of Use and Disclaimer, see <a href="https://github.com/ImKyle4815/CardConjurer" target="_blank">the Github page</a>.</div>
<div class="info" style="">For Terms of Use and Disclaimer, see <a href="https://github.com/ImKyle4815/CardConjurer" target="_blank">the Github page</a>.</div>
</body> </body>
@@ -255,97 +253,88 @@
font-family: mplantini; font-family: mplantini;
src: url("data/fonts/mplantin-i.ttf"); src: url("data/fonts/mplantin-i.ttf");
} }
* {
text-align: center;
font-family: belerenb;
font-size: 20px;
color: rgb(128, 128, 128);
}
.title { .title {
text-align: center; text-align: center;
color: rgb(128,255,128); color: rgb(128,255,128);
font-family: belerenbsc; font-family: belerenbsc;
font-size: 60px; font-size: 60px;
} }
.info {
text-align: center; .row {
color: rgb(96,96,96); margin-bottom: 5;
font-family: belerenbsc;
font-size: 16px;
}
.section {
border: 1px solid rgb(128, 255, 128);
background-color: rgba(0, 0, 0, 0.5);
}
.toggler {
text-align: center;
color: rgb(255, 255, 255);
font-family: belerenbsc;
font-size: 20px;
width: 100%;
padding: 5px;
}
.toggler:hover {
color: rgb(128, 255, 128);
}
.togglee {
width: calc(100% - 12px);
padding: 5px;
border-width: 1px;
border-color: rgb(128, 255, 128);
border-style: dashed solid solid solid;
font-size: 20px;
color: rgb(255,255,255);
font-family: belerenbsc;
display: none;
}
.shown {
display: block;
}
.shown * {
font-family: mplantin;
font-size: 20px;
}
input[type="text"] {
width: 99%;
}
input[type="number"] {
width: 99%;
}
select {
width: 100%;
}
.column {
float: left;
} }
.row:after{ .row:after{
content: ""; content: "";
display: table; display: table;
clear: both; clear: both;
} }
.text { .row * {
padding: 10px; box-sizing: border-box;
color: rgb(128, 128, 128);
font-family: beleren;
font-size: 25px;
margin: auto;
text-align: center;
}
#symbolList {
margin: 5px;
padding: 5px; padding: 5px;
border: 1px solid rgb(128, 255, 128);
}
.column {
float: left;
}
.section {
border: 1px solid rgba(128, 255, 128, 0.1);
background-color: rgba(0, 0, 0, 0.5); background-color: rgba(0, 0, 0, 0.5);
white-space: normal; padding: 0px;
display: inline-block; }
.section * {
color: rgb(255, 255, 255);
}
.toggler {
width: 100%;
}
.toggler:hover {
color: rgb(128, 255, 128);
}
.togglee {
width: 100%;
text-align: left;
border-width: 1px;
border-color: rgba(128, 255, 128, 0.1);
border-style: dashed solid solid solid;
display: none;
}
.shown {
display: block;
}
input[type="text"], input[type="number"] {
text-align: left;
color: black;
width: 99%;
}
select, select * {
color: black;
width: 100%;
}
#symbolList {
border: 1px solid rgba(128, 255, 128, 0.1);
background-color: rgba(0, 0, 0, 0.5);
padding-bottom: 10px;
} }
#symbolList img { #symbolList img {
padding: 0px;
position: relative; position: relative;
top: 8px; top: 8px;
width: 30px; width: 30px;
padding: 0px 0px 0px 0px !important; /*padding: 0px 0px 0px 0px !important;*/
margin: 1px;
background-color: rgba(128,255,128, 0.1); background-color: rgba(128,255,128, 0.1);
} }
body { .info, .info * {
color: rgb(255,255,255); color: rgb(96,96,96);
font-family: mplantin; font-family: belerenbsc;
font-size: 18px; font-size: 16px;
} }
html { html {
background:url(data/background.png) no-repeat center center fixed; background:url(data/background.png) no-repeat center center fixed;
@@ -354,30 +343,16 @@ html {
-o-background-size: cover; -o-background-size: cover;
background-size: cover; background-size: cover;
} }
canvas {
float: left;
padding: 10px;
}
* {
box-sizing: border-box;
}
.clearfix::after {
content: "";
clear: both;
display: table;
}
a:link { a:link {
color: rgb(128,128,128); color: rgb(128,128,128);
} }
a:visited { a:visited {
color: rgb(128,128,128); color: rgb(128,128,128);
} }
a:hover { a:hover {
color: rgb(128,255,128); color: rgb(128,255,128);
} }
a:active { a:active {
color: rgb(128,255,128); color: rgb(128,255,128);
} }
@@ -1082,5 +1057,21 @@ function downloadCardImage(linkElement) {
} }
linkElement.href = cardImageData linkElement.href = cardImageData
} }
//Randomizes the sample cards at the bottom of the page. Runs it here too
randomizeSampleCards(6)
function randomizeSampleCards(count) {
var cardNumbers = []
while (cardNumbers.length < 3) {
var randomNumber = Math.floor(Math.random() * count) + 1
if (cardNumbers.indexOf(randomNumber) > -1) {
continue
}
cardNumbers[cardNumbers.length] = randomNumber
}
document.getElementById("sampleCardA").src = "sampleCards/sample-card-" + cardNumbers[0] + ".png"
document.getElementById("sampleCardB").src = "sampleCards/sample-card-" + cardNumbers[1] + ".png"
document.getElementById("sampleCardC").src = "sampleCards/sample-card-" + cardNumbers[2] + ".png"
}
</script> </script>
<html> <html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB