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

is there a way to generate standalone freelancer css and use cdn link for bootstrap5? #311

Open
cbmgit opened this issue Oct 15, 2021 · 1 comment

Comments

@cbmgit
Copy link

cbmgit commented Oct 15, 2021

In previous version 3.3.7, there were standalone freelancer theme CSS file.

is it possible to use CDN for bootstrap5 and theme CSS as standalone file. if yes, how to do it?

@cbmgit cbmgit changed the title is there a way to generate standalone boostarp.css and freelancer css? is there a way to generate standalone freelancer css and use cdn link for bootstrap5? Oct 15, 2021
@dleffler
Copy link

The problem is that some of the (local) color variables set in /src/scss/_variables.scss are used to override many styles within the base bootstrap.css file. Therefore the CDN links to a bootstrap.css file with original/default colors.

However if you wanted to experiment, you could change the /src/styles.scss file line where it Imports Bootstrap to:

//@import "bootstrap/scss/bootstrap.scss";
@import "bootstrap/scss/functions";
@import "bootstrap/scss/variables";
@import "bootstrap/scss/maps";
@import "bootstrap/scss/mixins";
@import "bootstrap/scss/utilities";

Then you could compile your own flavor of the Bootstrap .scss by adding this following line above the import 'variables' line to override the default colors

@import "{path-to-freelancer/src/scss/variables";

You'd have to add a link to the new bootstrap.css in the index.html file above the link to styles.css.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants