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
Add new _sass/custom/setup.scss
for variable definition
#1135
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
$pink-000: #f77ef1; | ||
$pink-100: #f967f1; | ||
$pink-200: #e94ee1; | ||
$pink-300: #dd2cd4; | ||
// custom CSS rules goes here | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// custom setup code goes here | ||
|
||
$pink-000: #f77ef1; | ||
$pink-100: #f967f1; | ||
$pink-200: #e94ee1; | ||
$pink-300: #dd2cd4; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should avoid content in such a custom file, because changing the content could break sites that rely on the content but don't override the file. So I suggest to delete these lines. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hm, ok - in that case, this theme will introduce different behaviour (since we're removing these same lines from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think those lines were added in RC1, by #578. So it's not breaking wrt v0.3.3. And yes, this illustrates very well the danger of putting content in custom styles… |
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.
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'll provide an alternate more specific text; I did mean CSS rules (as in the formal spec definition)
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.
But the file extension is
scss
, so I think Jekyll will compile it anyway?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.
Oh, the idea wasn't to say that only CSS is allowed; rather, that everything in that file should emit CSS (after compilation), rather than just being variable declarations.
I think I'll revert this change somewhat since that's not actually a constraint.