HugoBlox / hugo-blox-builder

🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
https://hugoblox.com/templates/
MIT License
8.19k stars 2.9k forks source link

Convert CSS to SASS #680

Closed gcushen closed 5 years ago

gcushen commented 6 years ago

Restructure academic.css as SASS files and process using Hugo's new SASS pipelines.

A prerequisite is to check the feasibility of converting Academic's dynamic theming system (parse_theme.css) to Hugo's SASS system.

See https://gohugo.io/hugo-pipes/scss-sass/

This issue is effectively BLOCKED for now due to Hugo's SASS compilation dependencies being dynamically linked rather than statically and Netlify not having the corresponding dependencies installed (see https://github.com/netlify/build-image/issues/183 and https://www.netlify.com/docs/build-gotchas/#hugo).

Phase 1

ghost commented 5 years ago

Hugo Docs on converting Sass to CSS https://gohugo.io/hugo-pipes/scss-sass/

ghost commented 5 years ago

@gcushen I'm interested in looking into this ticket - could I be assigned to it?

Would plan to collaborate and get feedback on the new file structure for Sass files

gcushen commented 5 years ago

@ryanwhocodes sure, you're welcome to start on it :)

I have broken down the issue into some rough tasks in the issue description. It will take quite a bit of effort to complete, especially Phase 2, which requires more specialist knowledge to try to understand which parts of the current CSS are overriding Bootstrap and can be refactored to utilise Bootstrap SASS variables where possible.

ghost commented 5 years ago

It really helps to have this larger task broken down into smaller steps - they are very clear and well defined.

I started work on Phase 1 but there are many smaller decisions to make on the implementation and each change requires testing and could do with feedback from other contributors. How do you feel about this being done via a series of smaller issues, or through a new issue opened for the next stage of the work once the dependent steps are done first?

Would be interested in starting with the refactoring of academic.css into sass and get that working before trying to add bootstrap to the local asset processing pipeline.

prateekkumarweb commented 5 years ago

@ryanwhocodes Please send a PR with whatever you have made till now. As you make changes, interested people like me can test and give feedback.

ghost commented 5 years ago

It looks like this will require restructuring the assets and how they are processed within this theme, which is more work than I originally thought it might be to amend the color scheme of a website dynamically.

I don't have time to undertake this amount of work at the moment so would like to pass on this ticket for the time being.