Fixed graphical glitches (hopefully).
This commit is contained in:
parent
55d991d261
commit
ef46b0ccbb
7 changed files with 55 additions and 30 deletions
|
@ -1,20 +1,12 @@
|
||||||
.auth {
|
.auth {
|
||||||
background: var(--background-colour);
|
|
||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
margin-bottom: 2px;
|
margin-bottom: 2px;
|
||||||
|
|
||||||
&__header {
|
&__header {
|
||||||
background: var(--user-header) center / cover no-repeat, var(--background-pattern);
|
|
||||||
background-color: var(--accent-colour);
|
|
||||||
background-blend-mode: normal, multiply;
|
|
||||||
|
|
||||||
&__wrapper {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
background-image: linear-gradient(0deg, var(--background-colour-translucent), transparent);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__warning {
|
&__warning {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
.container {
|
.container {
|
||||||
// todo: make this now bad
|
// todo: make this not bad
|
||||||
background-image: linear-gradient(0deg, var(--background-colour-translucent), var(--background-colour-translucent));
|
background-image: linear-gradient(0deg, var(--background-colour-translucent), var(--background-colour-translucent));
|
||||||
background-color: var(--accent-colour);
|
background-color: var(--accent-colour);
|
||||||
|
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin-bottom: 2px;
|
margin-bottom: 2px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
background-color: var(--background-colour);
|
||||||
|
|
||||||
background: var(--user-header) center / cover no-repeat, var(--background-pattern);
|
--profile-header-overlay-start: transparent;
|
||||||
background-color: var(--accent-colour);
|
--profile-header-overlay-stop: var(--background-colour-translucent-9);
|
||||||
background-blend-mode: normal, multiply;
|
|
||||||
|
|
||||||
@media (max-width: @site-mobile-width) {
|
@media (max-width: @site-mobile-width) {
|
||||||
height: auto;
|
height: auto;
|
||||||
|
@ -14,6 +14,25 @@
|
||||||
background-position: center top;
|
background-position: center top;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__background {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
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: var(--user-header) center / cover no-repeat;
|
||||||
|
background-blend-mode: unset;
|
||||||
|
}
|
||||||
|
|
||||||
&__avatar {
|
&__avatar {
|
||||||
--avatar-checked-colour: fade(#000, 13%);
|
--avatar-checked-colour: fade(#000, 13%);
|
||||||
|
|
||||||
|
@ -85,7 +104,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
background-image: linear-gradient(0deg, var(--background-colour-translucent), transparent);
|
background-image: linear-gradient(0deg, var(--profile-header-overlay-stop), var(--profile-header-overlay-start));
|
||||||
|
|
||||||
&__content {
|
&__content {
|
||||||
margin: 5px 10px;
|
margin: 5px 10px;
|
||||||
|
@ -98,7 +117,7 @@
|
||||||
|
|
||||||
&__relation {
|
&__relation {
|
||||||
font-variant: all-small-caps;
|
font-variant: all-small-caps;
|
||||||
background: var(--background-colour-translucent);
|
background: var(--profile-header-overlay-stop);
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
line-height: 1.2em;
|
line-height: 1.2em;
|
||||||
padding: 1px 5px 4px;
|
padding: 1px 5px 4px;
|
||||||
|
@ -113,7 +132,7 @@
|
||||||
|
|
||||||
&__options {
|
&__options {
|
||||||
min-height: 62px;
|
min-height: 62px;
|
||||||
background-color: var(--background-colour-translucent);
|
background-color: var(--profile-header-overlay-stop);
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-shadow: 0 1px 4px #111;
|
text-shadow: 0 1px 4px #111;
|
||||||
box-shadow: 0 1px 2px #000;
|
box-shadow: 0 1px 2px #000;
|
||||||
|
background-color: var(--accent-colour);
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
box-shadow: 0 1px 4px #000;
|
box-shadow: 0 1px 4px #000;
|
||||||
|
@ -14,19 +15,19 @@
|
||||||
|
|
||||||
&__background {
|
&__background {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
|
||||||
top: 0;
|
top: 0;
|
||||||
height: 100%;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: var(--user-header) center / cover no-repeat, var(--background-pattern);
|
height: 100%;
|
||||||
background-color: var(--accent-colour);
|
background: var(--accent-colour) var(--background-pattern);
|
||||||
background-blend-mode: normal, multiply;
|
background-blend-mode: multiply;
|
||||||
|
mask-image: linear-gradient(0deg, transparent 0%, var(--background-colour) 90%);
|
||||||
|
-webkit-mask-image: linear-gradient(0deg, transparent 0%, var(--background-colour) 90%);
|
||||||
}
|
}
|
||||||
|
|
||||||
&__container {
|
&__container {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
//border: 1px solid var(--accent-colour);
|
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
|
@ -8,8 +8,19 @@
|
||||||
--site-max-width: 1200px;
|
--site-max-width: 1200px;
|
||||||
|
|
||||||
--background-image: initial;
|
--background-image: initial;
|
||||||
--background-colour: #111;
|
|
||||||
--background-colour-translucent: fade(#111, 93%);
|
@background-colour: #111;
|
||||||
|
--background-colour: @background-colour;
|
||||||
|
--background-colour-translucent-1: fade(@background-colour, 10%);
|
||||||
|
--background-colour-translucent-2: fade(@background-colour, 20%);
|
||||||
|
--background-colour-translucent-3: fade(@background-colour, 30%);
|
||||||
|
--background-colour-translucent-4: fade(@background-colour, 40%);
|
||||||
|
--background-colour-translucent-5: fade(@background-colour, 50%);
|
||||||
|
--background-colour-translucent-6: fade(@background-colour, 60%);
|
||||||
|
--background-colour-translucent-7: fade(@background-colour, 70%);
|
||||||
|
--background-colour-translucent-8: fade(@background-colour, 80%);
|
||||||
|
--background-colour-translucent-9: fade(@background-colour, 90%);
|
||||||
|
--background-colour-translucent: var(--background-colour-translucent-9); // switch to the numbered ones
|
||||||
--background-pattern: url('/images/clouds.png') fixed;
|
--background-pattern: url('/images/clouds.png') fixed;
|
||||||
|
|
||||||
--text-colour: #fff;
|
--text-colour: #fff;
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
{{ input_hidden('auth[redirect]', redirect) }}
|
{{ input_hidden('auth[redirect]', redirect) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<div class="container__title">
|
||||||
|
<div class="container__title__background"></div>
|
||||||
<div class="auth__header">
|
<div class="auth__header">
|
||||||
<div class="auth__header__wrapper">
|
<div class="avatar auth__avatar js-login-avatar" style="background-image:url('/profile.php?u=0&m=avatar');"></div>
|
||||||
<div class="avatar auth__avatar js-login-avatar"
|
|
||||||
style="background-image:url('/profile.php?u=0&m=avatar');"></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{% from '_layout/input.twig' import input_checkbox_raw %}
|
{% from '_layout/input.twig' import input_checkbox_raw %}
|
||||||
|
|
||||||
<div class="container profile__header">
|
<div class="container profile__header">
|
||||||
|
<div class="profile__header__background"></div>
|
||||||
|
|
||||||
<div class="profile__header__details">
|
<div class="profile__header__details">
|
||||||
<div class="profile__header__avatar">
|
<div class="profile__header__avatar">
|
||||||
{% if is_editing and perms.edit_avatar %}
|
{% if is_editing and perms.edit_avatar %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue