Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(styles): improve PWA styles on mobile devices (1) #765

Open
wants to merge 35 commits into
base: development
Choose a base branch
from

Conversation

kKaskak
Copy link
Member

@kKaskak kKaskak commented Dec 21, 2024

First PR in the series of PRs adressing the big @IEduStu PR.

Reference for changes:

  • Fixed html height / width in PWAs
  • Fixed offsets and safe-areas issues
  • https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-touch-callout
  • Removed -webkit-tap-highlight-color: transparent; since it's applied on html globally in styles.less on all components
  • Removed used px instead using rem
  • Removed inline var declarations, using global vars from app.less
  • Removed a variable that was basically a repetition of another variable; reusing instead
  • Improved conditionals with useMemo
  • Created new variables for some of the cases

IEduStu and others added 23 commits December 21, 2024 15:21
this will allow us to reuse in the app without importing globals file
touch-callout is not supported well and might cause problems, clearly written not to use in production;
highlight color not needed since we use it on global html
this ensures we utilize built in less style variables at the top of the file to avoid inline variable declarations
- removed the use of px values since these might be problematic on some devices
- sticking to rem as the best way of defining sizes
- reusing the global variable approach according screen sizes
- added spacing
- improved border-radius handling
- removed use of px
- creates less native variables
-removed unnecessary vars
- removed use of px
- remove unused nav-bar-size declaration
- var(--selectable-inputs-assumed-height) removed in favor of reusing
var(--top-overlay-size)
- fixed the bottom overlay size
- use useMemo for the bg render check
- use rem instead of px
- make the bottom-overlay-size adjustments
@kKaskak kKaskak added the refactor refactor of existing code, code removal, etc label Dec 21, 2024
@kKaskak kKaskak requested a review from tymmesyde December 21, 2024 21:11
@kKaskak kKaskak self-assigned this Dec 21, 2024
@kKaskak kKaskak changed the title refactor(styles): improve PWA styles on mobile devices refactor(styles): improve PWA styles on mobile devices (1) Dec 21, 2024
@tymmesyde tymmesyde requested a review from TRtomasz December 26, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor refactor of existing code, code removal, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants