signal-desktop/stylesheets
alecglassford ef4b4da2a3 Make search clear button ("x") persist w/o hover
This makes the "x" in the search bar always visible when there is
text in the search box, even if the mouse is not hovering, hopefully
making for a clearer UI around search and resolving issue #741

The implementation adds the "x.svg" as a background image to the search
box when it is classed with .active, in addition to the
-webkit-search-cancel-button, which is still there for the actual
functionality but only appears on mouse hover (one tiny snag is that
coloring appears slightly different on hover, at least on my screen -
don't know if this is a problem).

I accounted for both ltr and rtl text-direction by using
getComputedStyle(...).direction to detect from the input's dir="auto"
- if there's a more elegant way to do this, please suggest. An ideal
solution would use the :dir pseudo-class but it's not implemented
in Chrome yet - https://developer.mozilla.org/en-US/docs/Web/CSS/:dir

For now, I added the direction-checking to inbox_view.js. I see that
input.search is also used in new_group_update_view.js and
recipient_input_view.js but neither of these views seem to be in use (?)
and they don't set the .active class anyway, so I ignored them.

Update: Amended version a few hours later - fixed and manually tested
color and spacing for iOS and Android Dark themes. Also made some new
SASS variables to make things DRYer and fixed my tab size.
2017-04-08 00:06:48 -07:00
..
_android.scss Added a dark theme 2016-12-02 00:41:42 +01:00
_conversation.scss Fix key change advisory style in dark theme 2017-01-25 20:40:24 -08:00
_debugLog.scss Make contact sync button quieter 2016-09-08 12:05:48 -07:00
_emoji.scss Upgrade emoji support and switch to apple emoji 2016-09-01 11:51:53 -07:00
_global.scss Add text-security css class 2017-03-14 15:56:47 -07:00
_hourglass.scss Use timeout-based animation for hourglasses 2016-10-30 16:53:17 +09:00
_index.scss Make search clear button ("x") persist w/o hover 2017-04-08 00:06:48 -07:00
_intlTelInput.scss Create install flow 2015-11-05 13:29:26 -08:00
_ios.scss Make search clear button ("x") persist w/o hover 2017-04-08 00:06:48 -07:00
_lightbox.scss Fix _lightbox.scss 2016-07-14 10:49:45 -07:00
_mixins.scss Darken material colors in dark theme 2016-12-02 11:51:18 +01:00
_modal.scss Add frontend for safety numbers approval setting 2016-10-05 19:10:20 +09:00
_recorder.scss Fix size of microphone icon 2016-09-03 14:38:22 -07:00
_settings.scss Add frontend for safety numbers approval setting 2016-10-05 19:10:20 +09:00
_variables.scss Make search clear button ("x") persist w/o hover 2017-04-08 00:06:48 -07:00
android-dark.scss Make search clear button ("x") persist w/o hover 2017-04-08 00:06:48 -07:00
manifest.css Make search clear button ("x") persist w/o hover 2017-04-08 00:06:48 -07:00
manifest.scss Added a dark theme 2016-12-02 00:41:42 +01:00
options.css Improve Responsiveness on Install Screen 2017-04-07 19:35:25 -07:00
options.scss Improve Responsiveness on Install Screen 2017-04-07 19:35:25 -07:00
progress.scss Replace message list loading spinner with bar 2016-03-18 17:59:54 -07:00