Seifert69 / DikuMUD3

DikuMUD III using HTML and websockets.
GNU Lesser General Public License v2.1
193 stars 49 forks source link

Web Client - client-side CSS? #54

Open chrisspanton opened 4 years ago

chrisspanton commented 4 years ago

web client - allow client-side CSS. People like to customize, let them upload or supply their own CSS?

Thridi commented 4 years ago

For this I would most likely create an interface editor. (drag+drop with select user-editable fields - color, bg-color, size, etc) It would allow for user-created 'themes' that are stored via a variable replacement from a pre-configured stylesheet (LESS?). Don't worry, i'm not JUST throwing out ideas to make your life harder... I can do some of the heavy lifting.

chrisspanton commented 4 years ago

I definitely like the thinking here. Given the potential risks of allowing clients to actually connect their own CSS, this provides customization in a more constrained manner. Extra points for allowing clients to save the config for transferring across browsers/environments.

Thridi commented 4 years ago

Do any of you have an issue utilizing Bootstrap for the style/layout/mobile-friendly features?

Seifert69 commented 4 years ago

I'm total noob into javaScript. Not sure how I even got that client to work in the first place :-D

I'm for anything good. As long as it doesn't get too complicated.

chrisspanton commented 4 years ago

Here's another thought... would be cool if you could have some basic CSS overwrite from in-game configs. For example, character could set the .prompt class color and have it follow them regardless of browser or css selected. This is used to work with the prompt command, though its currently broken given changes to colors. I did this with the old prompt command to help me quickly do a visual identification of which character I was controlling as I toggle between.