You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-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.
8 years ago
..
_android.scss Added a dark theme 8 years ago
_conversation.scss Fix key change advisory style in dark theme 8 years ago
_debugLog.scss Make contact sync button quieter 9 years ago
_emoji.scss Upgrade emoji support and switch to apple emoji 9 years ago
_global.scss Add text-security css class 8 years ago
_hourglass.scss Use timeout-based animation for hourglasses 9 years ago
_index.scss Make search clear button ("x") persist w/o hover 8 years ago
_intlTelInput.scss Create install flow 10 years ago
_ios.scss Make search clear button ("x") persist w/o hover 8 years ago
_lightbox.scss Fix _lightbox.scss 9 years ago
_mixins.scss Darken material colors in dark theme 8 years ago
_modal.scss Add frontend for safety numbers approval setting 9 years ago
_recorder.scss Fix size of microphone icon 9 years ago
_settings.scss Add frontend for safety numbers approval setting 9 years ago
_variables.scss Make search clear button ("x") persist w/o hover 8 years ago
android-dark.scss Make search clear button ("x") persist w/o hover 8 years ago
manifest.css Make search clear button ("x") persist w/o hover 8 years ago
manifest.scss Added a dark theme 8 years ago
options.css Improve Responsiveness on Install Screen 8 years ago
options.scss Improve Responsiveness on Install Screen 8 years ago
progress.scss Replace message list loading spinner with bar 9 years ago