Merge pull request #3513 from matrix-org/travis/mask-eye

Use a mask instead of an img for "Show image" eye
This commit is contained in:
Travis Ralston 2019-10-07 12:45:22 +01:00 committed by GitHub
commit c547367b62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View file

@ -79,11 +79,17 @@ limitations under the License.
.mx_HiddenImagePlaceholder_button {
color: $accent-color;
img {
span.mx_HiddenImagePlaceholder_eye {
margin-right: 8px;
background-color: $accent-color;
mask-image: url('$(res)/img/feather-customised/eye.svg');
display: inline-block;
width: 18px;
height: 14px;
}
span {
span:not(.mx_HiddenImagePlaceholder_eye) {
vertical-align: text-bottom;
}
}