wd42 / wd42.github.io

[archived] A plain html #wd42 website
5 stars 2 forks source link

CSS Zengarden style user submitted themes #6

Closed jonnyscholes closed 10 years ago

joshgillies commented 10 years ago

I love this idea! My initial thoughts lead me to believe that we'd first need to restructure the HTML making it more general purpose (remove non-semantic ID's, classes, elements, etc) and offer a pretty decent base CSS as an example.

Do you think the CSS as it exists at 214e5e26bf38e0c9e644ff28f5f9eed357967a5f could be refactored to work as expected if we normalised the markup?

jonnyscholes commented 10 years ago

We can do this fairly easily using something like the following

function swapStyleSheet(stylesheetUrl){
  document.getElementById('pagestyle').setAttribute('href', stylesheetUrl);
}

Here's a demo [although their code the sucks]. http://www.omnimint.com/examples/Changing-external-CSS-file-with-JavaScript.html

joshgillies commented 10 years ago

After some discussion, @jonnyscholes and I have conceded that the CSS Zen Garden style of encouraging and accepting user submitted designs to the homepage of http://web.dev42.co/ is in fact a model that isn't appropriate here.

We'd love to pursue and encourage user contributions from the community, and feel as though a model that suites the way Github naturally works would be more appropriate.

The proposed model is being fleshed out in issue #9.

For now I'll close this issue. :facepunch: