-
Notifications
You must be signed in to change notification settings - Fork 118
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 support for css variables to mixin #497
Merged
mkszepp
merged 4 commits into
cibernox:master
from
HanneloreVerbraekel:feature/mixin-add-support-for-css-variables
May 30, 2024
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
ad28240
Added support for css variables in ember-power-calendar mixin
HanneloreVerbraekel 33484a7
Add missing comma
HanneloreVerbraekel 5cb1f80
Add support for css variables in less
HanneloreVerbraekel 84c51cc
Fix syntax errors and remove beautify changes
HanneloreVerbraekel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,8 @@ | |
box-sizing: border-box; | ||
} | ||
|
||
.ember-power-calendar-days, .ember-power-calendar-days * { | ||
.ember-power-calendar-days, | ||
.ember-power-calendar-days * { | ||
box-sizing: border-box; | ||
} | ||
|
||
|
@@ -93,20 +94,20 @@ | |
@cell-size: null, | ||
@cell-width: @cell-size, | ||
@cell-height: @cell-size, | ||
@cell-with-spacing-width: @cell-width + 2px, | ||
@cell-with-spacing-width: calc(~"@{cell-width} + 2px"); | ||
@row-padding-top: 0, | ||
@row-padding-bottom: 0, | ||
@row-padding-left: 0, | ||
@row-padding-right: 0, | ||
@row-width: @cell-with-spacing-width * 7 - 2px + @row-padding-left + @row-padding-right, | ||
@row-height: @cell-height + 2px, | ||
@row-width: calc(~"(@{cell-with-spacing-width} * 7) - 2px + @{row-padding-left} + @{row-padding-right}"); | ||
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. ";" is not correct, should be like before "," |
||
@row-height: calc(~"@{cell-height} + 2px"); | ||
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. ";" is not correct, should be like before "," |
||
@primary-color: #0078c9, | ||
@nav-button-color: @primary-color, | ||
@nav-button-color--focus: lighten(@nav-button-color, 20%), | ||
@day-default-text-color: #bbb, | ||
@day-current-month-color: #F5F7FA, | ||
@day-weekday-text-color: #333333, | ||
@day-current-month-text-color: #656D78, | ||
@day-current-month-text-color: #656d78, | ||
@day-other-month-text-color--hover: @day-current-month-text-color, | ||
@day-focus-shadow-color: @primary-color, | ||
@day-today-color: #eee, | ||
|
@@ -118,58 +119,59 @@ | |
@day-range-end-background-color--hover: @day-range-end-background-color, | ||
@day-selected-color: lighten(@primary-color, 50%), | ||
@day-selected-color--hover: @day-selected-color, | ||
@day-selected-text-color: #656D78, | ||
@day-selected-text-color: #656d78, | ||
@day-selected-text-color--hover: @day-selected-text-color | ||
) { | ||
|
||
width: @row-width; | ||
.ember-power-calendar-week:first-child { | ||
&[data-missing-days="1"] { | ||
padding-left: @cell-with-spacing-width * 1; | ||
&[data-missing-days='1'] { | ||
padding-left: calc(~"@{cell-with-spacing-width} * 1"); | ||
} | ||
&[data-missing-days="2"] { | ||
padding-left: @cell-with-spacing-width * 2; | ||
&[data-missing-days='2'] { | ||
padding-left: calc(~"@{cell-with-spacing-width} * 2"); | ||
} | ||
&[data-missing-days="3"] { | ||
padding-left: @cell-with-spacing-width * 3; | ||
&[data-missing-days='3'] { | ||
padding-left: calc(~"@{cell-with-spacing-width} * 3"); | ||
} | ||
&[data-missing-days="4"] { | ||
padding-left: @cell-with-spacing-width * 4; | ||
&[data-missing-days='4'] { | ||
padding-left: calc(~"@{cell-with-spacing-width} * 4"); | ||
} | ||
&[data-missing-days="5"] { | ||
padding-left: @cell-with-spacing-width * 5; | ||
&[data-missing-days='5'] { | ||
padding-left: calc(~"@{cell-with-spacing-width} * 5"); | ||
} | ||
&[data-missing-days="6"] { | ||
padding-left: @cell-with-spacing-width * 6; | ||
&[data-missing-days='6'] { | ||
padding-left: calc(~"@{cell-with-spacing-width} * 6"); | ||
} | ||
} | ||
.ember-power-calendar-week:last-child { | ||
&[data-missing-days="1"] { | ||
padding-right: @cell-with-spacing-width * 1; | ||
&[data-missing-days='1'] { | ||
padding-right: calc(~"@{cell-with-spacing-width} * 1"); | ||
} | ||
&[data-missing-days="2"] { | ||
padding-right: @cell-with-spacing-width * 2; | ||
&[data-missing-days='2'] { | ||
padding-right: calc(~"@{cell-with-spacing-width} * 2"); | ||
} | ||
&[data-missing-days="3"] { | ||
padding-right: @cell-with-spacing-width * 3; | ||
&[data-missing-days='3'] { | ||
padding-right: calc(~"@{cell-with-spacing-width} * 3"); | ||
} | ||
&[data-missing-days="4"] { | ||
padding-right: @cell-with-spacing-width * 4; | ||
&[data-missing-days='4'] { | ||
padding-right: calc(~"@{cell-with-spacing-width} * 4"); | ||
} | ||
&[data-missing-days="5"] { | ||
padding-right: @cell-with-spacing-width * 5; | ||
&[data-missing-days='5'] { | ||
padding-right: calc(~"@{cell-with-spacing-width} * 5"); | ||
} | ||
&[data-missing-days="6"] { | ||
padding-right: @cell-with-spacing-width * 6; | ||
&[data-missing-days='6'] { | ||
padding-right: calc(~"@{cell-with-spacing-width} * 6"); | ||
} | ||
} | ||
.ember-power-calendar-day, .ember-power-calendar-weekday { | ||
.ember-power-calendar-day, | ||
.ember-power-calendar-weekday { | ||
max-width: @cell-width; | ||
max-height: @cell-height; | ||
width: @cell-width; | ||
height: @cell-height; | ||
} | ||
.ember-power-calendar-weekdays, .ember-power-calendar-week { | ||
.ember-power-calendar-weekdays, | ||
.ember-power-calendar-week { | ||
height: @row-height; | ||
padding-left: @row-padding-left; | ||
padding-right: @row-padding-right; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
";" is not correct, should be like before ","