misuzu/assets/less/profile/header.less

233 lines
5.4 KiB
Text
Raw Normal View History

2018-09-16 22:36:46 +00:00
.profile__header {
display: flex;
flex-direction: column;
2018-10-23 23:03:05 +00:00
margin-bottom: 2px;
2018-09-16 22:36:46 +00:00
color: #fff;
background-color: @background-colour;
2019-01-03 18:02:38 +00:00
background-color: var(--background-colour);
2018-09-16 22:36:46 +00:00
@profile-header-overlay-start: transparent;
--profile-header-overlay-start: @profile-header-overlay-start;
@profile-header-overlay-stop: @background-colour-translucent-9;
2019-01-03 18:02:38 +00:00
--profile-header-overlay-stop: var(--background-colour-translucent-9);
2018-09-16 22:36:46 +00:00
@media (max-width: @site-mobile-width) {
height: auto;
background-size: @site-mobile-width auto;
background-position: center top;
}
2019-01-03 18:02:38 +00:00
&__background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: @accent-colour @background-pattern;
2019-01-03 18:02:38 +00:00
background: var(--accent-colour) var(--background-pattern);
background-blend-mode: multiply;
}
&--has-header {
--profile-header-overlay-start: var(--background-colour-translucent-3);
}
&--has-header &__background {
background: @user-header center / cover no-repeat;
2019-01-03 18:02:38 +00:00
background: var(--user-header) center / cover no-repeat;
background-blend-mode: unset;
}
2018-09-16 22:36:46 +00:00
&__avatar {
display: flex;
&__image {
width: 120px;
height: 120px;
z-index: 20;
&--edit {
cursor: pointer;
}
@media (max-width: @site-mobile-width) {
width: 80px;
height: 80px;
}
}
&__check {
display: none;
}
&__check:checked ~ &__option {
2019-06-08 19:11:24 +00:00
color: #111;
background-color: @accent-colour;
border-color: @accent-colour;
2019-06-08 19:11:24 +00:00
background-color: var(--accent-colour);
border-color: var(--accent-colour);
}
&__options {
z-index: 10;
2019-06-08 19:11:24 +00:00
margin-left: 2px;
display: flex;
2019-06-08 19:11:24 +00:00
justify-content: flex-end;
flex-direction: column;
}
&__option {
2019-06-08 19:11:24 +00:00
display: inline-block;
margin-top: 2px;
&--delete {
2019-06-08 19:11:24 +00:00
--accent-colour: #c00;
}
}
2018-09-16 22:36:46 +00:00
}
&__details {
height: 100%;
display: flex;
align-items: flex-end;
padding: 20px;
background-image: linear-gradient(0deg, @profile-header-overlay-stop, @profile-header-overlay-start);
2019-01-03 18:02:38 +00:00
background-image: linear-gradient(0deg, var(--profile-header-overlay-stop), var(--profile-header-overlay-start));
2018-09-16 22:36:46 +00:00
&__content {
margin: 5px 10px;
2018-09-17 15:38:49 +00:00
flex: 1 1 auto;
@media (max-width: @site-mobile-width) {
text-align: center;
}
2018-09-17 15:38:49 +00:00
}
&__relation {
font-variant: all-small-caps;
background: @profile-header-overlay-stop;
2019-01-03 18:02:38 +00:00
background: var(--profile-header-overlay-stop);
2018-09-17 15:38:49 +00:00
border-radius: 2px;
line-height: 1.2em;
padding: 1px 5px 4px;
2018-09-18 22:16:29 +00:00
cursor: default;
2018-09-16 22:36:46 +00:00
}
@media (max-width: @site-mobile-width) {
flex-direction: column;
align-items: center;
}
2018-09-16 22:36:46 +00:00
}
&__options {
2018-09-23 19:12:40 +00:00
min-height: 62px;
background-color: @profile-header-overlay-stop;
2019-01-03 18:02:38 +00:00
background-color: var(--profile-header-overlay-stop);
2018-09-16 22:36:46 +00:00
padding: 0 20px;
display: flex;
justify-content: space-between;
@media (max-width: @site-mobile-width) {
flex-direction: column;
}
}
&__actions {
display: flex;
align-items: center;
@media (max-width: @site-mobile-width) {
flex-direction: column;
}
}
2018-09-23 19:12:40 +00:00
&__action {
margin-right: 5px;
@media (max-width: @site-mobile-width) {
margin-right: 0;
margin-bottom: 5px;
width: 100%;
}
2018-09-23 19:12:40 +00:00
}
&__stats {
display: flex;
@media (max-width: @site-mobile-width) {
flex-direction: column;
flex-wrap: wrap;
}
2018-09-16 22:36:46 +00:00
}
&__stat {
display: block;
color: inherit;
text-decoration: none;
padding: 10px;
2018-09-18 22:16:29 +00:00
cursor: default;
2018-09-16 22:36:46 +00:00
&--date {
min-width: 130px;
}
2018-09-16 22:36:46 +00:00
&__name {
font-size: .9em;
font-variant: small-caps;
2018-09-18 22:16:29 +00:00
cursor: inherit;
2018-09-16 22:36:46 +00:00
}
&__value {
font-size: 1.3em;
text-align: right;
2018-09-18 22:16:29 +00:00
cursor: inherit;
2018-11-04 17:06:01 +00:00
display: block;
}
&--date &__value {
text-align: left;
}
&--link {
cursor: pointer;
}
2018-11-04 17:06:01 +00:00
@media (max-width: @site-mobile-width) {
&--date &__value {
text-align: right;
}
2018-09-16 22:36:46 +00:00
}
2019-05-09 16:46:49 +00:00
&--link:hover,
&--link:focus,
&--link:active,
&--active {
border-bottom: 2px solid @accent-colour;
2019-05-09 16:46:49 +00:00
border-bottom: 2px solid var(--accent-colour);
}
2018-09-16 22:36:46 +00:00
}
&__username {
color: @user-colour;
2018-09-23 14:42:15 +00:00
color: var(--user-colour);
2018-09-16 22:36:46 +00:00
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;
}
}
}