mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-26 21:04:58 -05:00
401 lines
7.9 KiB
CSS
401 lines
7.9 KiB
CSS
/*fonts*/
|
|
@font-face {
|
|
font-family: gothammedium;
|
|
src: url("../fonts/gotham-medium.ttf");
|
|
}
|
|
@font-face {
|
|
font-family: belerenb;
|
|
src: url("../fonts/beleren-b.ttf");
|
|
}
|
|
@font-face {
|
|
font-family: belerenbsc;
|
|
src: url("../fonts/beleren-bsc.ttf");
|
|
}
|
|
@font-face {
|
|
font-family: matrix;
|
|
src: url("../fonts/matrix.ttf");
|
|
}
|
|
@font-face {
|
|
font-family: matrixb;
|
|
src: url("../fonts/matrix-b.ttf");
|
|
}
|
|
@font-face {
|
|
font-family: matrixbsc;
|
|
src: url("../fonts/matrix-bsc.ttf");
|
|
}
|
|
@font-face {
|
|
font-family: mplantin;
|
|
src: url("../fonts/mplantin.ttf");
|
|
}
|
|
@font-face {
|
|
font-family: mplantini;
|
|
src: url("../fonts/mplantin-i.ttf");
|
|
}
|
|
@font-face {
|
|
font-family: goudymedieval;
|
|
src: url("../fonts/goudy-medieval.ttf");
|
|
}
|
|
:root {
|
|
--shifting-color-1: #00c300;
|
|
--shifting-color-1-light: #c8ff64;
|
|
--light-color: #eee;
|
|
--dark-color: #333;
|
|
--clear-light: #fff2;
|
|
--clear-mid: #fff4;
|
|
--clear-dark: #fff6;
|
|
}
|
|
footer {
|
|
background-color: var(--dark-color);
|
|
padding: 2.5em;
|
|
font: 1.3em gothammedium;
|
|
color: var(--light-color);
|
|
}
|
|
body {
|
|
margin: 0px;
|
|
background-image: url(images/lowpoly.png);
|
|
background-attachment: fixed;
|
|
background-size: cover;
|
|
}
|
|
html {
|
|
background-image: linear-gradient(to bottom right, var(--shifting-color-1), var(--shifting-color-1-light));
|
|
background-attachment: fixed;
|
|
overflow-x: hidden;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
font-size: 8pt;
|
|
}
|
|
.selectable {
|
|
user-select: all;
|
|
}
|
|
canvas {
|
|
width: calc(100%);
|
|
height: auto;
|
|
max-width: 750px;
|
|
max-height: 1050px;
|
|
}
|
|
.canvasContainer {
|
|
text-align: center;
|
|
}
|
|
.mainGrid {
|
|
padding: 0.3em;
|
|
display: grid;
|
|
grid-gap: 1.5em;
|
|
grid-template-columns: auto;
|
|
font: 1.6em mplantin;
|
|
}
|
|
.imageGrid {
|
|
display: grid;
|
|
grid-template-columns: auto 9em;
|
|
min-height: 12.5em;
|
|
}
|
|
.imgPreview {
|
|
width: 100%;
|
|
}
|
|
.bar {
|
|
background-image: url(../images/manaSymbols/63.png);
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-size: 100% 2px;
|
|
width: 100%;
|
|
height: 1em;
|
|
}
|
|
.cardMenu > div > div:nth-child(1) {
|
|
/* border: 1px solid blue;*/
|
|
/* text-align: center;*/
|
|
/* font: 1.5em belerenbsc;*/
|
|
}
|
|
.twoGrid {
|
|
display: grid;
|
|
grid-template-columns: 50% auto;
|
|
}
|
|
.input, .textarea, .button, .select {
|
|
font: 1em mplantin;
|
|
background-color: var(--light-color);
|
|
border: 1px solid #aaae;
|
|
border-radius: 0.2em;
|
|
padding: 0px 0.2em;
|
|
outline: none;
|
|
}
|
|
.textarea {
|
|
min-height: 6em;
|
|
max-height: 18em;
|
|
resize: vertical;
|
|
}
|
|
.select {
|
|
background: #fafafa url(../images/manaSymbols/49.png) no-repeat calc(100% - 0.1em) 50%;
|
|
background-size: 1em 1em;
|
|
-webkit-appearance: none;
|
|
}
|
|
.autoGrid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(6em, 1fr));
|
|
grid-auto-rows: min-content;
|
|
}
|
|
.input.file {
|
|
padding: 0px;
|
|
height: 1.26em;
|
|
}
|
|
.tooltip {
|
|
position: relative;
|
|
}
|
|
.tooltip .tooltiptext {
|
|
visibility: hidden;
|
|
background-color: var(--dark-color);
|
|
color: var(--light-color);
|
|
text-align: center;
|
|
border-radius: 5px;
|
|
padding: 5px;
|
|
top: calc(100% + 5px);
|
|
left: 0px;
|
|
max-width: calc(100% - 10px);
|
|
width: auto;
|
|
position: absolute;
|
|
z-index: 1;
|
|
opacity: 0;
|
|
transition: opacity 0.5s;
|
|
}
|
|
.tooltip .tooltiptext::after {
|
|
content: " ";
|
|
position: absolute;
|
|
bottom: 100%;
|
|
left: 50%;
|
|
margin-left: -5px;
|
|
border-width: 5px;
|
|
border-style: solid;
|
|
border-color: transparent transparent var(--dark-color) transparent;
|
|
}
|
|
.tooltip .tooltiptext:hover {
|
|
/*visibility: hidden;*/
|
|
opacity: 0;
|
|
}
|
|
div.tooltip > * {
|
|
width: 100%;
|
|
}
|
|
a {
|
|
color: black;
|
|
}
|
|
a:hover {
|
|
color: var(--dark-color);
|
|
}
|
|
footer a {
|
|
color: white;
|
|
}
|
|
footer a:hover {
|
|
color: var(--shifting-color-1-light);
|
|
}
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
.footerGrid {
|
|
display: grid;
|
|
grid-template-columns: auto;
|
|
grid-gap: 2em;
|
|
}
|
|
.layer {
|
|
padding: 2em 2em;
|
|
color: black;
|
|
font-size: 2em;
|
|
text-align: center;
|
|
margin-bottom: 3em;
|
|
}
|
|
.layer { /*:nth-child(even)*/
|
|
background-color: var(--light-color);
|
|
background-image: url(images/layerBackground.png);
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
}
|
|
.title {
|
|
text-align: center;
|
|
font: 1.5em belerenbsc;
|
|
}
|
|
.pageTitle {
|
|
font: 5em belerenbsc;
|
|
text-align: center;
|
|
padding-top: 0.3em;
|
|
}
|
|
.paragraph {
|
|
font: 1em mplantin;
|
|
text-align: left;
|
|
}
|
|
.indent {
|
|
text-indent: 2em;
|
|
}
|
|
.leftMargin {
|
|
margin-left: 2em;
|
|
}
|
|
.donate > div:hover {
|
|
text-decoration: underline;
|
|
}
|
|
.donate > div {
|
|
background-color: var(--clear-light);
|
|
border-radius: 2em;
|
|
font: 2em belerenbsc;
|
|
}
|
|
.donate > div > img {
|
|
height: 1em;
|
|
position: relative;
|
|
top: 0.15em;
|
|
left: 0.15em;
|
|
}
|
|
|
|
/*Controls the area taken by the canvas*/
|
|
@media screen and (min-width: 888pt) {
|
|
/*Makes room for the canvas and controls to be side by side*/
|
|
.mainGrid {
|
|
padding: 1.5em;
|
|
grid-template-columns: calc(750px + 2px) auto;
|
|
}
|
|
}
|
|
@media screen and (min-width: calc(750px + 2em)) {
|
|
/*The canvas can be full size and doesn't have to scale anymore*/
|
|
canvas {
|
|
width: 750px;
|
|
height: 1050px;
|
|
}
|
|
}
|
|
/*The screen is big enough (larger than phone, likely) to use a larger font*/
|
|
@media screen and (min-width: 263pt) {
|
|
html {
|
|
font-size: 10pt;
|
|
}
|
|
}
|
|
/*These control tooltips for mobile devices vs. desktops/laptops*/
|
|
@media screen and (min-width: 1024px) {
|
|
.tooltip:hover .tooltiptext {
|
|
visibility: visible;
|
|
opacity: 1;
|
|
}
|
|
}
|
|
@media screen and (max-width: 1023px) {
|
|
.tooltip:focus .tooltiptext, div.tooltip > input:focus + .tooltiptext, div.tooltip > textarea:focus + .tooltiptext {
|
|
visibility: visible;
|
|
opacity: 1;
|
|
}
|
|
}
|
|
/*The footer can now fit horizontally!*/
|
|
@media screen and (min-width: 375pt) {
|
|
.footerGrid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(0px, 1fr));
|
|
grid-gap: 1em;
|
|
}
|
|
}
|
|
|
|
|
|
/*WIP*/
|
|
.tab {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(6.5em, 1fr));
|
|
grid-auto-rows: min-content;
|
|
}
|
|
.tab.tabSelect {
|
|
grid-template-columns: repeat(auto-fit, minmax(8em, 1fr));
|
|
}
|
|
.tabButton.tabSelectButton {
|
|
font: 1em belerenb;
|
|
}
|
|
.tabButton {
|
|
text-align: center;
|
|
background: var(--clear-light);
|
|
border: 1px solid var(--light-color);
|
|
font: 1.2em belerenbsc;
|
|
padding: 0.1em 0em;
|
|
transition: 0.33s;
|
|
}
|
|
.tabButton:hover {
|
|
background-color: var(--clear-mid);
|
|
transition: 0s;
|
|
}
|
|
.tabButton.activeTab {
|
|
background: var(--clear-dark);
|
|
text-decoration: underline;
|
|
text-decoration-color: var(--shifting-color-1-light)
|
|
}
|
|
.tabContent {
|
|
display: none;
|
|
}
|
|
.tabContent.displayed {
|
|
display: block;
|
|
}
|
|
|
|
.download {
|
|
text-align: center;
|
|
font: 1.5em belerenbsc;
|
|
}
|
|
.truncate {
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
text-indent: 0em;
|
|
}
|
|
.tab, button, select, option {
|
|
cursor: pointer;
|
|
}
|
|
/*Custom Checkboxes*/
|
|
.realCheckboxContainer {
|
|
margin-top: 0.45em
|
|
}
|
|
.checkboxContainer {
|
|
position: relative;
|
|
padding-left: 1.5em;
|
|
padding-top: 0.25em;
|
|
cursor: pointer;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
.checkboxContainer input {
|
|
position: absolute;
|
|
opacity: 0;
|
|
height: 0;
|
|
width: 0;
|
|
}
|
|
.checkmark {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 1.2em;
|
|
width: 1.2em;
|
|
transition: 0.33s;
|
|
background-color: var(--clear-light);
|
|
border: 1px solid var(--light-color)
|
|
}
|
|
.checkboxContainer:hover input ~ .checkmark {
|
|
background-color: var(--clear-dark);
|
|
}
|
|
.checkboxContainer input:checked ~ .checkmark {
|
|
background-color: var(--dark-color);
|
|
}
|
|
.checkmark:after {
|
|
content: "X";
|
|
font: 1.2em gothammedium;
|
|
color: white;
|
|
position: absolute;
|
|
opacity: 0;
|
|
transition: 0.33s;
|
|
}
|
|
.checkboxContainer input:checked ~ .checkmark:after {
|
|
opacity: 1;
|
|
}
|
|
.checkboxContainer .checkmark:after {
|
|
left: 0.15em;
|
|
top: -0.1em;
|
|
}
|
|
#textCodeTutorial {
|
|
display: grid;
|
|
grid-template-columns: 6.5em auto;
|
|
/*padding: 0.5em;*/
|
|
}
|
|
#textCodeTutorial > div {
|
|
padding: 0.25em 0;
|
|
background-color: var(--clear-mid);
|
|
}
|
|
#textCodeTutorial > div:nth-child(4n), #textCodeTutorial > div:nth-child(4n - 1) {
|
|
background-color: var(--clear-light);
|
|
}
|
|
|
|
|