Join us on Discord!
You can help CodeWalrus stay online by donating here.

Making forum skin mobile-friendly

Started by Dream of Omnimaga, January 14, 2015, 07:09:14 AM

Previous topic - Next topic

0 Members and 8 Guests are viewing this topic.

CKH4

#90
Yes it is, don't let things get too complicated like I do though :P.
(I like to use CSS for things that JS would be way better at and my code becomes a nightmare to figure out because I didn't use something that would make it way easier or because I used something improperly)

Also @Streetwalrus this isn't really specific to the mobile theme but you should use border or box shadow for button design since your button images are fairly simple. I had talked to dj about it a while ago but here's a mockup of the idea: http://codepen.io/CKH4/pen/emKMKq
  • Calculators owned: TI-83+, TI-84+


novenary

Sounds good, I'm too lazy to do it now tho. :P

Dream of Omnimaga

There is a problem with the skin update. When you click Profile or My messages on mobile, one second later it clicks on forum or downloads by itself ??? (Basically it clicks both buttons within 1 second interval or less)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

novenary

That's odd. I have no idea why it would do that.

Dream of Omnimaga

I use latest Chrome on Android 5.1.1 btw and the bug usually happens on the next page after you clicked a navigation link that is still clickable.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Dream of Omnimaga

#95
@Streetwalrus Fatal bug with the new theme update: The login and register buttons can no longer be clicked, so it's no longer possible to login to CW from the site navigation (or entirely on mobile, since the login box on the portal is not available on mobile).

I had to revert the changes  by commenting out your CSS, because it prevented people from logging in. This issue can be reproduced in Firefox and Chrome on Windows.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

novenary

Oh that, if you'd looked just below you could have fixed it. :P

Dream of Omnimaga

  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

novenary

#98
You commented out 3 rules. The second one does the link disabling and the third one re-enables some links. Fixed it now.

Dream of Omnimaga

#99
Oh OK. I didn't notice any specific numbers but maybe I didn't check carefully. :P

Anyway it works now it seems. :) The thing, though, is are the links CSS hard-coded or something? Because if we ever decide to change the navigation around and insert extra stuff between Downloads and About, for example, then wouldn't  links to the right become out of sync with the CSS?
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

novenary

I made it so that links are disabled by default, and they're re-enabled with a per-id whitelist.

Dream of Omnimaga

Ah I see. That was my concern actually. If we shift them around we need to not forget to change the whitelist, to not lock people out without noticing. :P
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

novenary

The id is by name. Check the code out. :P You just need to not forget adding stuff to the whitelist or you'll wonder why it doesn't work.

Dream of Omnimaga

Ah I didn't know that each navigation options had individual names.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

CKH4

You could do a nextsibling subitems (or whatever) JS selector. That may make things more automated while still allowing the whitelist.
  • Calculators owned: TI-83+, TI-84+


Powered by EzPortal