discourse/app/assets/stylesheets/common/base
Rafael dos Santos Silva ab58b0cffe
FIX: Better virtual keyboard detect on Android (#18298)
* FIX: Better virtual keyboard detect on Android

Firefox has a bug where *sometimes* the visualViewport.height won't be
updated when the keyboard pops up until you scroll, making our composer
stay hidden behind the keyboard. This commit uses both window.innerHeight
and  window.visualViewport.height using the minimum of both to check for
height changes.

For Chrome/Edge we feature detect the new VirtualKeyboard API and
opt-into it when the composer opens and use it to detect if a keyboard
is being draw. Opting into the API changes how the viewport is
calculated so we have to also change how the full height composer is
calculated. To minimize breakage we opt-out when the composer component
is destroyed.

This commit also moves the `--composer-ipad-padding` to only happen on
iPads.

Bug report at https://meta.discourse.org/t/-/228382
2022-09-26 17:35:58 -03:00
..
_index.scss DEV: Ship first pass of new user page navigation behind feature flag (#18285) 2022-09-21 12:32:47 +08:00
_topic-list.scss A11Y: Focus last viewed topic in topic lists (take 3) (#16257) 2022-03-23 13:03:56 +03:00
about.scss
activation.scss UX: updated account activation page design (#17730) 2022-07-29 22:33:11 +05:30
alert.scss UX: Fix z-index for new topic alert (#13676) 2021-07-09 15:22:30 -04:00
bbcode.scss
cat_reorder.scss UX: Increase width & center category reorder input (#10928) 2020-10-15 14:42:42 +11:00
category-list.scss FEATURE: Add mobile support for subcategories-with-featured-topics (#16118) 2022-03-08 22:06:27 +00:00
code_highlighting.scss UX: update hljs-builtin-name highlight (#16859) 2022-05-18 15:55:40 +02:00
colorpicker.scss FEATURE: Use native color-picker (#15748) 2022-02-01 11:18:13 -03:00
compose.scss FIX: Better virtual keyboard detect on Android (#18298) 2022-09-26 17:35:58 -03:00
composer-user-selector.scss
crawler_layout.scss UX: hide background image in crawler view (#18054) 2022-08-23 18:10:21 -04:00
d-icon.scss FEATURE: automatic dark mode (#10341) 2020-08-03 22:57:10 -04:00
d-popover.scss UX: update color on arrow tippy box (#17263) 2022-06-28 13:25:40 +02:00
dialog.scss DEV: update yes/no confirmation dialogs (#18181) 2022-09-14 11:06:56 -04:00
directory.scss UX: Normalize sizing for inputs, buttons, dropdowns (#14226) 2021-09-09 11:01:56 -04:00
discourse.scss DEV: Remove obsolete CSS prefixes (#18262) 2022-09-15 16:54:08 +02:00
edit-category.scss DEV: Reduce width calculations for SK dropdowns (#18263) 2022-09-20 22:59:47 -04:00
edit-topic-timer-modal.scss UX: Normalize sizing for inputs, buttons, dropdowns (#14226) 2021-09-09 11:01:56 -04:00
ember-select.scss FEATURE: automatic dark mode (#10341) 2020-08-03 22:57:10 -04:00
emoji.scss FEATURE: Select emojis in picker via keyboard (#18163) 2022-09-21 13:21:36 -07:00
empty-state.scss FIX: Small tweaks to "no messages" education (#12588) 2021-04-07 09:28:10 +10:00
exception.scss FEATURE: automatic dark mode (#10341) 2020-08-03 22:57:10 -04:00
explain-reviewable.scss FEATURE: automatic dark mode (#10341) 2020-08-03 22:57:10 -04:00
faqs.scss UX: more consistent mobile spacing (#13297) 2021-06-07 13:22:28 -04:00
group.scss FIX: Make group members bulk operations consistent (#17561) 2022-07-20 16:54:21 +03:00
groups.scss A11Y: Improve group box hover highlight on dark schemes (#17895) 2022-08-15 09:36:28 +08:00
header.scss UX: truncate site text titles in a cleaner way (#18335) 2022-09-23 10:19:44 +08:00
history.scss Fix CSS for collapsed table cells when showing insertion in Raw mode (#12489) 2021-03-23 10:43:25 +01:00
lightbox.scss DEV: Remove obsolete CSS prefixes (#18262) 2022-09-15 16:54:08 +02:00
login.scss UX: Add the TOS disclaimer to the invite signup (#17717) 2022-07-29 12:04:36 -04:00
magnific-popup.scss FEATURE: Add link to original image in lightbox (#15640) 2022-03-08 19:39:46 +02:00
menu-panel.scss UX: Add ability to scroll when height is limited (#18297) 2022-09-20 13:48:00 -07:00
modal.scss UX: Restrict width of "reply where" modal (#18365) 2022-09-26 15:05:00 -04:00
new-user.scss DEV: Mobile layout support for experimental user nav (#18308) 2022-09-22 09:45:50 +08:00
not-found.scss
onebox.scss DEV: Remove obsolete CSS prefixes (#18262) 2022-09-15 16:54:08 +02:00
personal-message.scss UX: prioritize moderator bg color in PMs (#13833) 2021-07-23 13:06:48 -04:00
popup-menu.scss UX: popup menu buttons need focus style (#11962) 2021-02-04 09:37:45 -05:00
redirection.scss
request_access.scss
request-group-membership-form.scss
reviewables.scss UX: Normalize sizing for inputs, buttons, dropdowns (#14226) 2021-09-09 11:01:56 -04:00
rtl.scss DEV: Remove obsolete CSS prefixes (#18262) 2022-09-15 16:54:08 +02:00
search-menu.scss DEV: Remove obsolete CSS prefixes (#18262) 2022-09-15 16:54:08 +02:00
search.scss A11Y: add focus state for advanced search toggles (#17894) 2022-08-15 09:36:55 +08:00
share_link.scss UX: Move post date under title in share-modal (#16455) 2022-04-27 16:36:08 +03:00
shared-drafts.scss FEATURE: automatic dark mode (#10341) 2020-08-03 22:57:10 -04:00
sidebar-footer.scss FIX: Sidebar scroll fade on older iOS (#18299) 2022-09-21 09:03:40 +10:00
sidebar-more-section-links.scss UX: sidebar styling, spacing consistency, etc (#18059) 2022-08-24 09:33:15 +08:00
sidebar-section-link.scss improve sidebar header sub-hovers (#18083) 2022-08-25 09:14:55 +08:00
sidebar-section.scss UX: Fix cut-off accents in sidebar headings (#18349) 2022-09-23 17:18:58 -07:00
sidebar.scss UX: Improve styling of sidebar on mobile (#18246) 2022-09-15 11:35:33 +08:00
tagging.scss UX: Display gap between tag sort options on PMs (#17342) 2022-08-04 11:45:54 -04:00
tooltip.scss FEATURE: automatic dark mode (#10341) 2020-08-03 22:57:10 -04:00
topic-admin-menu.scss A11Y: Use button in d-modal-cancel component (#17938) 2022-08-17 09:39:28 +08:00
topic-post.scss UX: fix topic stream placeholders (#18336) 2022-09-23 10:21:00 +08:00
topic.scss UX: account for iPad hub nav when calculating top (#17780) 2022-08-03 12:00:36 -04:00
upload.scss FEATURE: automatic dark mode (#10341) 2020-08-03 22:57:10 -04:00
user-badges.scss UX: core adjustments and styles for the experimental sidebar (#17271) 2022-06-29 10:49:01 +08:00
user.scss UX: Remove extraneous margins in profile pic modal (#17896) 2022-08-13 17:52:16 +02:00