-
Notifications
You must be signed in to change notification settings - Fork 398
SASS implementation #350
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
SASS implementation #350
Conversation
I also have a second branch I'm using to build my website with that I merged with your feature-pwa branch. So it uses service workers and has all of my SASS changes. Also, I have a branch of laravelangular/generators that uses SCSS that I will be creating a pull request for soon. That's assuming you're even interested in switching from LESS to SASS. If not, feel free to close this :). Thanks for the awesome project! |
Yes it would be great for those who want to use SASS/SCSS. Release date? |
@hackur Thanks for this! Yes indeed SASS is always a better alternative |
border-radius: 4px; | ||
text-transform: box-shadow 250ms; | ||
transition: box-shadow 250ms; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked around for text-transform: box-shadow and it does nothing. I thought maybe I was wrong but I looked it up again and there is no "box-shadow" value for text-transform.
All I could guess was that the original designer intended to use transition since there is a 250ms in the line.
See:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're absolutely right.. I have no idea how I skipped that 😛
Thanks!
I just noticed that since this breaks a backward compatibility issue, it's better to send it against |
How do you test backwards compatibility @jadjoubran? By merging this into one of your existing projects? We can always add the less mixes back in (supporting both for now, but generating scss from this point on) or I can create a pull request for your PWA branch. I'm currently using that one with service workers to create my site. Let me know - we can also do both :) Also, is there a way for you to retry or re-run this failed Travis CI build? I'm not sure how that works with Travis CI. The error seems to be related to some kind of server timeout error that only happened with the HHVM build. https://travis-ci.org/jadjoubran/laravel5-angular-material-starter/jobs/141021483#L686
|
Refreshed it and it works now.. it happens frequently on travis |
They would need to:
autoload -U zmv
cd YOUR-PROJECT-DIRECTORY/angular
zmv '(**/)(*).less' '$1$2.scss'
That's pretty much it. There isn't much advanced LESS or SASS used in the default styles so it makes it pretty easy. However... if we just left in the less mixes... then nothing would break at all. But our gulp task would be doing extra work for no reason if we were only using SASS. |
That's a nice script, I'll add it to the docs! |
But Again, not useful for windows user This one will do for windows users |
Always forget about those dang windows users... I use to use this on my work PC: Then you can use Oh My ZSH on windows. |
I'm going to merge this to master now since I'm merging |
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
What is the current behavior? (You can also link to an open issue here)
We use LESS for stylesheets.
What is the new behavior?
I've changed it to use SASS for our stylesheets since that's what the latest Laravel uses.
Does this PR introduce a breaking change?
Other information:
There are a few small little cleanup optimizations to the basic CSS.
I also changed the way we import files into the component *.scss files to use different relative paths (
@import "../../../material/project";
instead of@import "./angular/material/project";
). I did this mostly because it resolves properly in my IDE. I tested the gulp && gulp watch and it still seems to function properly.