Allow to select an example on the front page#1777
Conversation
|
Thanks for your pull request, @wilzbach! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. |
bac4908 to
8e10920
Compare
8e10920 to
4a87735
Compare
|
Alrighty, finally thanks to the minimal solution in #1775 this should be ready. |
4a87735 to
034b889
Compare
|
Alright, but why is that necessary? Why isn't the browser rendering the arrow? |
That's because we're setting the background color. If we exclude that block from having its color and background color set, it should use the native styling... with the downside that it will look a little weird to people who have their browsers set to have a light-on-dark color theme by default. I don't think we need to worry about that, as long as the website is not unusable to them. |
|
I guess either way works, but if possible, I think it would be better to not rely on font-awesome for the front page. |
That wouldn't look good: I actually tried to be close to styling of the "Install X" boxes.
FWIW we already rely on it: AFAICT it's the only way to ensure a consistent experience across different browsers. |
No, that's not right. You're trying to undo the |
Ah, that's right. |
|
Seb do you want to try the no-CSS approach or should we go forward with the current FontAwesome version? |
Hmm, the no-CSS approach would look like this:
I am fine with both ways (slight preference on FontAwesome because it keeps the styling consistent). |
index.dd
Outdated
| EXAMPLE=$(TAG2 a, id="a$1-control" class="example-control", )$(TAG2 div, id="a$1" class="example-box", $(RUNNABLE_EXAMPLE $2)) | ||
| EXTRA_EXAMPLE=<div class="your-code-here-extra" style="display:none">$(RUNNABLE_EXAMPLE $0)</div> | ||
| EXTRA_EXAMPLE=<div class="your-code-here-extra" style="display:none"> | ||
| <div class="your-code-here-title">$1</div> |
Thanks. I came to the conclusion that tip box hasn't been used much over the last years and especially users on their phone most likely won't post an example, so imho the best solution is also the simplest here: hiding the tip box on devices with a narrow layout. |
2c2f326 to
e295c23
Compare
I can't really reproduce this in Chrome or FF, but I added @CyberShadow does it work for you now? |
Looks perfect, thanks! |
| examples[rouletteIndex].style.display = "none"; | ||
| rouletteIndex = sel.selectedIndex; | ||
| examples[rouletteIndex].style.display = "block"; | ||
| }); |
There was a problem hiding this comment.
The event handler could have been added later in the main JS file, but it's just 3 lines so no matter.
Forgot to post this earlier, but I think you simply found a bug in the forum search (or SQLite indexing). I know I fixed one yesterday (regarding deleted posts), but that search and its variations is still producing inconsistent results with some variations of it (for one, the query needs to search the subject, not body). |











Marking this as "needs work" as I will to rebase this once we agree on #1775