136 lines
2.9 KiB
Text
136 lines
2.9 KiB
Text
.usercard {
|
|
width: 300px;
|
|
max-height: 100px;
|
|
transition: box-shadow .5s;
|
|
z-index: 1;
|
|
color: #fff;
|
|
text-shadow: 0 1px 4px #111;
|
|
box-shadow: 0 1px 4px #111;
|
|
|
|
&:hover {
|
|
box-shadow: 0 1px 8px #111;
|
|
z-index: 2;
|
|
}
|
|
|
|
&__background {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
background-color: var(--background-colour);
|
|
background-size: cover;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
}
|
|
|
|
&__container {
|
|
height: 100%;
|
|
width: 100%;
|
|
//border: 1px solid var(--accent-colour);
|
|
pointer-events: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
&__details {
|
|
margin: 5px;
|
|
display: flex;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
}
|
|
|
|
&__avatar {
|
|
width: 50px;
|
|
height: 50px;
|
|
flex: 0 0 auto;
|
|
margin: 10px;
|
|
}
|
|
|
|
&__main {
|
|
display: flex;
|
|
height: 70px;
|
|
background-image: linear-gradient(0deg, rgba(0, 0, 0, .9), transparent);
|
|
}
|
|
|
|
&__actions {
|
|
height: 30px;
|
|
padding: 0 10px;
|
|
background-color: rgba(0, 0, 0, .9);
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
&__action {
|
|
border-radius: 2px;
|
|
color: var(--accent-colour);
|
|
background-color: #111;
|
|
text-decoration: none;
|
|
border: 1px solid var(--accent-colour);
|
|
margin-right: 4px;
|
|
padding: 2px 5px;
|
|
cursor: pointer;
|
|
pointer-events: initial;
|
|
font-size: .9em;
|
|
line-height: 1.5em;
|
|
transition: color .2s, background-color .2s;
|
|
|
|
&:hover {
|
|
color: #111;
|
|
background-color: var(--accent-colour);
|
|
text-shadow: initial;
|
|
}
|
|
|
|
&--destroy {
|
|
color: #c00;
|
|
border-color: #c00;
|
|
|
|
&:hover {
|
|
background-color: #c00;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__name {
|
|
font-size: 1.4em;
|
|
line-height: 1.4em;
|
|
text-overflow: ellipsis;
|
|
max-width: 220px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
&__info {
|
|
font-size: .9em;
|
|
display: flex;
|
|
align-items: baseline;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
&__item {
|
|
margin-left: 2px;
|
|
color: inherit;
|
|
text-decoration: none;
|
|
flex: 0 0 auto;
|
|
text-overflow: ellipsis;
|
|
max-width: 150px;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
|
|
&--active {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
&--country {
|
|
align-items: baseline;
|
|
vertical-align: middle;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
&--donator {
|
|
background-image: url('https://static.flash.moe/images/tenshi.png');
|
|
width: 37px;
|
|
height: 11px;
|
|
font-size: 0;
|
|
}
|
|
}
|
|
}
|