misuzu/assets/less/classes/profile/header.less

110 lines
2.2 KiB
Text

.profile__header {
display: flex;
flex-direction: column;
margin: 2px 0;
color: #fff;
text-shadow: 0 1px 4px #111;
box-shadow: 0 1px 4px #111;
--profile-header: initial; //url('/profile.php?u=1&m=background');
background-color: var(--accent-colour);
background-image: var(--profile-header);
background-size: cover;
background-repeat: no-repeat;
background-position: 50%;
@media (max-width: @site-mobile-width) {
height: auto;
background-size: @site-mobile-width auto;
background-position: center top;
}
&__avatar {
width: 120px;
height: 120px;
}
&__details {
height: 100%;
display: flex;
align-items: flex-end;
padding: 20px;
background-image: linear-gradient(0deg, rgba(0, 0, 0, .9), transparent);
&__content {
margin: 5px 10px;
flex: 1 1 auto;
}
&__relation {
font-variant: all-small-caps;
background: rgba(0, 0, 0, 0.5);
border-radius: 2px;
line-height: 1.2em;
padding: 1px 5px 4px;
cursor: default;
}
}
&__options {
background-color: rgba(0, 0, 0, .9);
padding: 0 20px;
display: flex;
justify-content: space-between;
}
&__actions {
display: flex;
align-items: center;
}
&__stats {
display: flex;
}
&__stat {
display: block;
color: inherit;
text-decoration: none;
padding: 10px;
cursor: default;
&--date {
min-width: 130px;
}
&__name {
font-size: .9em;
font-variant: small-caps;
cursor: inherit;
}
&__value {
font-size: 1.3em;
text-align: right;
cursor: inherit;
}
}
&__username {
font-size: 2em;
line-height: 1.5em;
}
&__title {
font-size: .9em;
line-height: 1.2em;
}
&__country {
display: inline-flex;
align-items: center;
&__name {
font-size: .9em;
margin-left: 4px;
line-height: 1.2em;
}
}
}