Merge pull request #1158 from bews/bews/dev-10-usercut

Fade out for long usernames.
This commit is contained in:
Pavel Djundik 2017-06-20 13:15:43 +03:00 committed by GitHub
commit 04c67de1af
3 changed files with 34 additions and 0 deletions

View File

@ -910,6 +910,9 @@ kbd {
padding-right: 10px; padding-right: 10px;
text-align: right; text-align: right;
width: 134px; width: 134px;
overflow: hidden;
white-space: nowrap;
position: relative;
} }
#chat .text { #chat .text {
@ -1809,6 +1812,25 @@ kbd {
font-style: italic; font-style: italic;
} }
@media (min-width: 480px) {
/* Fade out for long usernames */
#chat .from {
padding-left: 10px;
}
#chat .from:after {
position: absolute;
right: 0;
width: 10px;
height: 100%;
background: linear-gradient(to right, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 1) 100%);
content: " ";
}
/* End fade out for long usernames */
}
@media (max-width: 768px) { @media (max-width: 768px) {
/** /**
* TODO Replace this with `@media (hover: hover)` when Firefox supports it * TODO Replace this with `@media (hover: hover)` when Firefox supports it

View File

@ -253,3 +253,9 @@ body {
} }
/* End form elements */ /* End form elements */
@media (min-width: 480px) {
#chat .from:after {
background: linear-gradient(to right, rgba(51, 60, 74, .5) 0%, rgba(51, 60, 74, 1) 100%);
}
}

View File

@ -279,3 +279,9 @@ body {
} }
/* End form elements */ /* End form elements */
@media (min-width: 480px) {
#chat .from:after {
background: linear-gradient(to right, rgba(63, 63, 63, .5) 0%, rgba(63, 63, 63, 1) 100%);
}
}