Skip to content
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

Theme generator. #7008

Closed
wants to merge 1 commit into from
Closed

Theme generator. #7008

wants to merge 1 commit into from

Conversation

Carreau
Copy link
Member

@Carreau Carreau commented Nov 21, 2014

Work in progress, will probably end up in tools or something like that.
Problem is that less.js APi is not documented so I have to digg in the source.
It also requires less 2.0.

Allow you to easy generate a theme for the notebook. It should even be able to watch for file change and recompile on the fly.

With

i= setInterval( 
  function(){
    $('head>link:nth(4)').attr('href',"/static/style/style.min.css?v="+Date()); console.log(Date())}
  , 4000)

it allows the css to be live reloaded in the notebook, without refreshing the page, which is nice to play with css..

@Carreau Carreau changed the title Theme generator. [WIP] Theme generator. Nov 21, 2014
@Carreau Carreau added this to the wishlist milestone Nov 21, 2014
@jdfreder
Copy link
Member

Reminds me of gulp watch. This also updates the CSS in the front-end too? So you don't have to page refresh?

@Carreau
Copy link
Member Author

Carreau commented Nov 21, 2014

The js snippet has to be runned in the browser manually, it uses the ?v=<random string> to force download a new version of the css. So no, no refresh needed :-).

Gulp, grunt, and other are things I should also read about.

@Carreau Carreau changed the title [WIP] Theme generator. Theme generator. Dec 16, 2014
@Carreau
Copy link
Member Author

Carreau commented Dec 16, 2014

Updated and still works.

@@ -0,0 +1,64 @@
// @border_radius : 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why ship all these commented code?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cause it's in progress, and I'm using it to sync in between machines :-P

@ellisonbg ellisonbg modified the milestones: 4.0, wishlist Dec 27, 2014
@ellisonbg
Copy link
Member

Targeting to 4.0 - feel free to change to 3.0 if you want to try to get this done.

@Carreau Carreau mentioned this pull request Mar 2, 2015
@Carreau
Copy link
Member Author

Carreau commented Mar 25, 2015

Closing as #7931 reference that.

Anybody feel free to take over.

@Carreau Carreau closed this Mar 25, 2015
@Carreau Carreau deleted the themegen branch May 23, 2016 17:49
@Carreau Carreau restored the themegen branch May 23, 2016 17:49
@Carreau Carreau deleted the themegen branch January 14, 2024 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants