242 lines
4.6 KiB
SCSS
242 lines
4.6 KiB
SCSS
@import url('https://fonts.cdnfonts.com/css/inter');
|
|
|
|
*{
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
user-select: none;
|
|
font-family: 'Inter', sans-serif;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
text-rendering: optimizeLegibility;
|
|
text-shadow: rgba(0,0,0,.01) 0 0 1px;
|
|
}
|
|
|
|
html{
|
|
font-size: calc(0.5em + 1vw);
|
|
}
|
|
main{
|
|
position: absolute;
|
|
top: 4vw;
|
|
left: 4vw;
|
|
width: 24vw;
|
|
height: 23vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
.card-bg{
|
|
width: 100%;
|
|
height: 100%;
|
|
position: relative;
|
|
z-index: -1;
|
|
|
|
img{
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
.card-front{
|
|
height: 100%;
|
|
width: 100%;
|
|
display: none;
|
|
position: absolute;
|
|
z-index: 1;
|
|
}
|
|
|
|
.card-header{
|
|
width: 90%;
|
|
position: absolute;
|
|
left: 5%;
|
|
top: 6%;
|
|
height: 10%;
|
|
display: flex;
|
|
gap: 15px;
|
|
|
|
.licence-title{
|
|
font-weight: 600;
|
|
line-height: 100%;
|
|
color: #555555;
|
|
}
|
|
|
|
.licence-number{
|
|
font-weight: 400;
|
|
line-height: 100%;
|
|
color: #555555;
|
|
}
|
|
|
|
.qr-image{
|
|
width: 100%;
|
|
height: 100%;
|
|
|
|
img{
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
.card-images{
|
|
display: flex;
|
|
height: 100%;
|
|
gap: 5px;
|
|
|
|
img{
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
border-radius: 5px;
|
|
}
|
|
}
|
|
|
|
.card-title{
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
|
|
.title{
|
|
font-weight: 600;
|
|
line-height: 100%;
|
|
color: #555555;
|
|
}
|
|
|
|
.subtitle{
|
|
font-weight: 400;
|
|
line-height: 100%;
|
|
color: #555555;
|
|
}
|
|
}
|
|
}
|
|
|
|
.card-content{
|
|
width: 88%;
|
|
display: flex;
|
|
position: absolute;
|
|
left: 5%;
|
|
top: 22%;
|
|
height: 70%;
|
|
gap: 10px;
|
|
|
|
.player-mugshot{
|
|
border-radius: 5px;
|
|
width: 30%;
|
|
overflow: hidden;
|
|
|
|
img{
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
}
|
|
|
|
.player-data-wrapper{
|
|
width: 70%;
|
|
display: flex;
|
|
}
|
|
|
|
.col{
|
|
width: 50%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
|
|
&:last-child{
|
|
text-align: right;
|
|
}
|
|
|
|
.data-title{
|
|
font-style: italic;
|
|
font-weight: 400;
|
|
line-height: 120%;
|
|
color: #555555;
|
|
|
|
img{
|
|
height: 2.5vw;
|
|
}
|
|
}
|
|
|
|
.data-text{
|
|
font-weight: 600;
|
|
line-height: 120%;
|
|
color: #555555;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
|
|
img{
|
|
height: 1.5vw;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.card-back{
|
|
height: 100%;
|
|
width: 100%;
|
|
display: none;
|
|
position: absolute;
|
|
z-index: 0;
|
|
|
|
.card-header{
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.card-content{
|
|
height: 20%;
|
|
width: 80%;
|
|
position: absolute;
|
|
left: 10%;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
|
|
img{
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
}
|
|
|
|
.card-bottom{
|
|
width: 100%;
|
|
height: 20%;
|
|
padding: 0 5%;
|
|
position: absolute;
|
|
bottom: 6%;
|
|
|
|
.text{
|
|
text-align: justify !important;
|
|
}
|
|
|
|
img{
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.text-10{
|
|
font-size: 0.25rem;
|
|
}
|
|
|
|
.text-12{
|
|
font-size: 0.33rem;
|
|
}
|
|
|
|
.text-14{
|
|
font-size: 0.38rem;
|
|
}
|
|
|
|
.text-16{
|
|
font-size: 0.40rem;
|
|
}
|
|
|
|
.text-18{
|
|
font-size: 0.45rem;
|
|
}
|
|
|
|
.text-20{
|
|
font-size: 0.50rem;
|
|
} |