-
-
Notifications
You must be signed in to change notification settings - Fork 829
Add select2-bootstrap to greenwich theme #18579
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
Conversation
(Standard links)
|
nice! |
@totten unfortunately the |
ext/greenwich/composer.compile.json
Outdated
@@ -5,7 +5,7 @@ | |||
"php-method": "\\Civi\\Compile\\Scss::build", | |||
"watch-files": ["scss"], | |||
"scss-files": {"scss/main.scss": "dist/bootstrap3.css"}, | |||
"scss-includes": ["scss", "extern/bootstrap3/assets/stylesheets"] | |||
"scss-includes": ["scss", "extern/bootstrap3/assets/stylesheets", "../../bower_components/select2"] |
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.
@colemanw why is this needed is there an issue with the import if its not there?
@colemanw does it make more sense to include something like https://github.com/civicrm/civicrm-core/blob/master/ext/greenwich/greenwich.php#L55 ? |
Then I think it wouldn't get the |
I didn't realize that OK, so for completeness, the error that appears to me is:
Which seems to indicate that (1) ScssPhp does allow importing How's this as a fairly straight interpretation of your local work-around: |
) Co-authored-by: Tim Otten <[email protected]>
Yes that's the error message I got too. I tried deleting the "offending" line in the css file and then got the same error for many more lines in the file. To me it looks like a bug in the php scss compiler, but whatever, this workaround works for now. |
1. Using 'php-eval' instead of 'shell' should make it safer to run on Windows. 2. The two steps are very closesly related. Putting them into the same 'task' means that it's a bit easier to understand the 'watch' behavior.
OK, cool. @colemanw I have a slightly better form of the same patch now - it's a bit more intuitive to manage the 'watch' list, and I expect it to run better on Windows. It needs an update version of compile-plugin v0.8. Changes pushed onto the PR. |
@totten I tested it and it works well. |
Overview
Adds bootstrap-3 styling to select2 elements.
Before
After