glitchier-soc/app/javascript/flavours/glitch/styles/accessibility.scss

51 lines
1.3 KiB
SCSS
Raw Normal View History

$emojis-requiring-inversion: 'back' 'copyright' 'curly_loop' 'currency_exchange' 'end' 'heavy_check_mark' 'heavy_division_sign' 'heavy_dollar_sign' 'heavy_minus_sign' 'heavy_multiplication_x' 'heavy_plus_sign' 'on' 'registered' 'soon' 'spider' 'telephone_receiver' 'tm' 'top' 'wavy_dash' !default;
%emoji-color-inversion {
filter: invert(1);
}
.emojione {
@each $emoji in $emojis-requiring-inversion {
&[title=':#{$emoji}:'] {
@extend %emoji-color-inversion;
}
}
}
// Display a checkmark on active UI elements otherwise differing only by color
.status__action-bar-button,
.detailed-status__button .icon-button {
position: relative;
&.active::after {
position: absolute;
content: "\F00C";
font-size: 50%;
font-family: FontAwesome;
right: -5px;
top: -4px;
}
}
.hicolor-privacy-icons {
.status__visibility-icon.fa-globe,
.composer--options--dropdown--content--item .fa-globe {
2021-03-06 14:12:35 +02:00
color: #1976d2;
}
.status__visibility-icon.fa-unlock,
.composer--options--dropdown--content--item .fa-unlock {
2021-03-06 14:12:35 +02:00
color: #388e3c;
}
.status__visibility-icon.fa-lock,
.composer--options--dropdown--content--item .fa-lock {
2021-03-06 14:12:35 +02:00
color: #ffa000;
}
.status__visibility-icon.fa-envelope,
.composer--options--dropdown--content--item .fa-envelope {
2021-03-06 14:12:35 +02:00
color: #d32f2f;
}
}