RPGs3_card_insanity/style.scss

154 lines
3.5 KiB
SCSS
Raw Normal View History

2019-09-09 23:02:17 +02:00
.fjomp_card {
2019-09-09 22:22:09 +02:00
--figure-size: 0.9in;
2019-10-15 21:20:37 +02:00
--figure-size: 1.35in;
--figure-size: 1.5in;
2019-09-09 22:22:09 +02:00
width: 2.5in;
height: 3.5in;
box-sizing: border-box;
2019-10-14 21:40:50 +02:00
border-radius: 0mm;
border-width: 0.3mm;
2019-09-09 22:22:09 +02:00
border-color: black;
2019-09-09 23:02:17 +02:00
border-style: solid;
2019-10-14 21:40:50 +02:00
background-color: #fff;
2019-10-06 21:43:37 +02:00
overflow: hidden;
2019-09-09 22:22:09 +02:00
2019-10-06 21:43:37 +02:00
font-size: 2.5mm;
2019-09-09 22:22:09 +02:00
font-family: sans-serif;
display: grid;
2019-10-15 21:20:37 +02:00
grid-template-columns: auto 1fr;
2019-10-20 03:25:33 +02:00
grid-template-rows: 1.9em var(--figure-size) 2.3em auto;
2019-09-09 23:02:17 +02:00
grid-template-areas:
2019-10-15 21:20:37 +02:00
"symbol title"
"figure figure"
"costbar costbar"
"description description";
2019-09-09 22:22:09 +02:00
header {
grid-area: title;
2019-10-06 21:43:37 +02:00
font-size: 1.8em;
2019-09-09 22:22:09 +02:00
line-height: 1em;
2019-10-06 21:43:37 +02:00
margin-left: -1em;
2019-09-09 22:22:09 +02:00
border-radius: 1mm 1mm 0 0;
text-align: center;
2019-10-14 21:40:50 +02:00
background-color: #ddd;
2019-09-09 22:22:09 +02:00
border-radius: 0;
2019-10-14 21:40:50 +02:00
color: #333;
2019-09-09 22:22:09 +02:00
}
2019-10-14 21:40:50 +02:00
.symbol {
grid-area: symbol;
2019-10-06 16:03:07 +02:00
text-align: center;
2019-10-14 21:40:50 +02:00
background-color: #ddd;
color: #333;
2019-10-06 21:43:37 +02:00
padding-top: 0.6mm;
padding-left: 0.8mm;
2019-10-06 16:03:07 +02:00
white-space: nowrap;
}
2019-09-09 22:22:09 +02:00
figure {
grid-area: figure;
2019-10-14 21:40:50 +02:00
background-color: #fff;
2019-09-09 22:22:09 +02:00
overflow: hidden;
position: relative;
border-radius: 0;
margin: 0;
2019-09-09 23:02:17 +02:00
2019-10-14 21:40:50 +02:00
.layer {
--figure-color: #555;
2019-09-11 05:09:42 +02:00
color: var(--figure-color);
2019-09-09 22:22:09 +02:00
position: absolute;
top:0;right:0;left:0;bottom:0;
height: var(--figure-size);
width: var(--figure-size);
margin: auto;
text-align: center;
>* {
width: 100%;
height: 100%;
}
2019-09-11 05:09:42 +02:00
img {
2019-10-14 21:40:50 +02:00
width: calc(var(--figure-size));
height: calc(var(--figure-size));
2019-09-19 02:43:21 +02:00
object-fit: contain;
2019-09-11 05:09:42 +02:00
}
img.colored {
transform: translateY(-10000px);
filter: drop-shadow(0px 10000px var(--figure-color));
}
2019-09-09 22:22:09 +02:00
.mdi,
.fa,
2019-09-11 05:09:42 +02:00
.oi,
2019-09-09 22:22:09 +02:00
.material-icons.figure {
font-size: calc(var(--figure-size) * 0.9);
line-height: var(--figure-size);
}
2019-10-14 21:40:50 +02:00
.lnr {
2019-09-09 22:22:09 +02:00
font-size: calc(var(--figure-size) * 0.8);
2019-10-14 21:40:50 +02:00
line-height: calc(var(--figure-size) * 0.95);
2019-09-09 22:22:09 +02:00
}
}
}
2019-10-14 21:40:50 +02:00
.playcosts {
grid-area: playcosts;
border-left: solid 0.3mm #ccc;
background-color: #ddd;
color: #444 ;
2019-09-09 22:22:09 +02:00
padding: 0.5mm;
ul {
2019-10-06 21:43:37 +02:00
margin:0;
2019-09-09 22:22:09 +02:00
list-style-type: none;
padding: 0;
2019-09-09 23:02:17 +02:00
2019-10-20 03:25:33 +02:00
li {
}
2019-09-09 22:22:09 +02:00
}
}
2019-10-06 12:58:50 +02:00
.costbar {
2019-09-09 22:22:09 +02:00
grid-area: costbar;
border-radius: 0;
2019-10-14 21:40:50 +02:00
background-color: #555;
color: white;
2019-09-09 22:22:09 +02:00
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
justify-content: center;
text-align: center;
2019-09-09 23:02:17 +02:00
2019-10-20 03:25:33 +02:00
font-size: 1.1em;
2019-09-09 22:22:09 +02:00
section{
font-size: 0.8em;
margin-left: 0.5mm;
margin-right: 0.5mm;
line-height: 0.9em;
}
}
2019-10-06 12:58:50 +02:00
.description {
2019-09-09 22:22:09 +02:00
grid-area: description;
margin: 1mm;
border-radius: 1mm;
2019-10-14 21:40:50 +02:00
background-color: #ddd;
2019-10-20 03:25:33 +02:00
font-size: 0.9em;
2019-09-09 23:02:17 +02:00
2019-09-09 22:22:09 +02:00
ul, ol {
padding-left: 1.5em;
li {
2019-09-09 23:02:17 +02:00
2019-09-09 22:22:09 +02:00
}
}
2020-03-07 01:29:38 +01:00
.bottom {
position: absolute;
bottom:0;
left:0;
right:0;
}
2019-09-09 22:22:09 +02:00
}
2019-09-09 23:02:17 +02:00
}
2019-09-19 02:43:21 +02:00
2019-10-20 03:25:33 +02:00
.fjomp_card.figure,
.fjomp_card.repertoire {
--figure-size: 2.4in;
2019-09-19 02:43:21 +02:00
}