-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Site] Better the CSS, and Make Display Mobile-Friendly #241
Milestone
Comments
pishoyg
added a commit
that referenced
this issue
Sep 15, 2024
|
Adding the |
TODO:
|
pishoyg
added a commit
that referenced
this issue
Oct 9, 2024
pishoyg
added a commit
that referenced
this issue
Oct 9, 2024
Summary of changes: - Control the KELLIA table width using percentages rather than `px` units. This makes the display much better on mobile. It's still not mobile-friendly, because the results (search) table has tables within cells! But it's a bit better. More content actually shows on small screens than previously, and we start losing content at around ~500px rather than ~670px. - Delete idempotent rules for unused classes `sense_n` and `sense_id`. - Delete an idempotent `float: right` rule for `.bible`. - Remove the table border on small screens. We thought that changing the table border colors to light gray (#DDD) instead of black would prettify the rendering on small screens. We implemented it simplistically with a single `td`-generic rule, without implementing the `last-child`- or `first-child`-specific rules. It's not worth maintaining, so we simply delete it.
pishoyg
added a commit
that referenced
this issue
Oct 9, 2024
pishoyg
added a commit
that referenced
this issue
Oct 9, 2024
This gives us the ability to extract text from the HTML more granularly, which will help us output an optimized HTML, while also retaining just the HTML tags that we need. The reduced HTML will also help us make the search page more mobile-friendly.
pishoyg
added a commit
that referenced
this issue
Oct 9, 2024
Also get rid of the KELLIA tables, to make the search page more mobile-friendly.
pishoyg
added a commit
that referenced
this issue
Oct 9, 2024
pishoyg
added a commit
that referenced
this issue
Oct 9, 2024
Pick up the use of the correct HTML class. NOTE: We (temporarily) changed the value of the `--web_mask` flag in Flashcards, in order to rewrite copticsite data.
pishoyg
added a commit
that referenced
this issue
Oct 9, 2024
Pick up the addition of the `type` class.
pishoyg
added a commit
that referenced
this issue
Oct 9, 2024
pishoyg
added a commit
that referenced
this issue
Oct 9, 2024
This partially reverts dd5ee96. The larger logos might be making the page a little slower, and they often end up rendering in their original sizes, e.g. on GitHub Android or on Edge Android! While this is, technically speaking, a browser issue rather than our own issue, it's still nice to address it.
pishoyg
added a commit
that referenced
this issue
Oct 26, 2024
This makes it possible to read the CSS file from a different domain. This is useful when developing the site locally, when we try to test the site by opening an HTML file without a server. See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin.
pishoyg
added a commit
that referenced
this issue
Oct 26, 2024
Pick up disabling CORS for CSS files. And pick up the new images for 1.
pishoyg
added a commit
that referenced
this issue
Oct 27, 2024
Our logic used to fail with this error when run locally *without* a server: ``` script.js:51 Uncaught SecurityError: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules at new Highlighter (script.js:51:42) at main (script.js:387:25) at script.js:679:3 ``` This is due to CORS. We tried disabling CORS in 2e328af, but this ended up causing other problems, so we reverted that commit. Now we try to work around the failure by resorting to the Anki highlighting when failing to read CSS rules in the JavaScript.
pishoyg
added a commit
that referenced
this issue
Oct 27, 2024
pishoyg
added a commit
that referenced
this issue
Oct 27, 2024
pishoyg
added a commit
that referenced
this issue
Oct 30, 2024
pishoyg
added a commit
that referenced
this issue
Nov 1, 2024
pishoyg
added a commit
that referenced
this issue
Nov 19, 2024
pishoyg
added a commit
that referenced
this issue
Nov 19, 2024
pishoyg
added a commit
that referenced
this issue
Nov 21, 2024
This is a (small) followup to ffaae5d.
pishoyg
added a commit
that referenced
this issue
Dec 10, 2024
pishoyg
added a commit
that referenced
this issue
Dec 10, 2024
pishoyg
added a commit
that referenced
this issue
Feb 27, 2025
pishoyg
added a commit
that referenced
this issue
Mar 2, 2025
pishoyg
added a commit
that referenced
this issue
Mar 2, 2025
pishoyg
added a commit
that referenced
this issue
Mar 2, 2025
pishoyg
added a commit
that referenced
this issue
Mar 2, 2025
Chrome Developer Tools offers device toggle features. You may be able to use it to simulate a mobile environment on your laptop. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: