-
Notifications
You must be signed in to change notification settings - Fork 251
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
Bring smart banners into 2019 #113
base: master
Are you sure you want to change the base?
Conversation
I guess we could remove some of those lines by removing some of the files that arent really needed. I just added the whole library. Im not pulling in all the modules when I compile I just have them in the repo |
20 times more code... I'd expect ~10 lines of CSS changed to modernize it. This is a definitely a matter of a separate package. |
Let me revise it a bit. Ill remove the unused sass and make sure the included packages don't inject any unneeded CSS |
CSS library should not be added by copy but as a dependency. And it should be ensured, that only the needed SCSS is imported. But I think this violates the idea of beeing standalone. So I'm not sure if it is really 2019 to add an external style library. It's definitly not 2019 to do it by copy. |
Im not sure what you mean by copy? I left the process the same exact way you had it to install the plugin to a website. As for the SCSS I only am importing the needed files however I believe there are some resets that are making their way over. I will clean those up. Are you saying you want to change the way the CSS is included to a project? |
From what I understand the CSS is from an external library, so this external library is a dependency that needs to be included through package.json and imported from node_modules and they should not be commitet to git this repo. |
I understand what your saying! I will include them in the build process instead! |
Alright I went ahead and changed some stuff up with the sass. I also added a minified version of the css. Let me know what you think of it now. |
I did somewhat of a bigger refactor of the styles.
For the CSS:
-- This means I created a "sass" folder containing all sass.
npm run test
to start a small test environment for devAs for the Javascript:
Not much changed in this. I just added a few classes to the button for the material design. One of those classes is a color class that could be added to the options.
I hope these changes are welcome changes! I think the plugin is a great one and would love to see it brought up to current design trends.
Thanks,
Tomas