-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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 solution #3906
base: master
Are you sure you want to change the base?
add solution #3906
Conversation
src/styles/blocks/variables.scss
Outdated
'tue': 100px, | ||
'wed': 200px, | ||
'thu': 300px, | ||
'fri': 400px, | ||
'sat': 500px, | ||
'sun': 600px, |
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.
'tue': 100px, | |
'wed': 200px, | |
'thu': 300px, | |
'fri': 400px, | |
'sat': 500px, | |
'sun': 600px, | |
'tue': 1, | |
'wed': 2, | |
'thu': 3, | |
'fri': 4, | |
'sat': 5, | |
'sun': 6, |
src/styles/blocks/function.scss
Outdated
|
||
@each $day, $shift in $week { | ||
.calendar--start-day-#{$day} .calendar__day:first-child { | ||
margin-left: $shift + ($shift / 100); |
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.
and calculate this with here
src/styles/blocks/function.scss
Outdated
|
||
@each $day, $shift in $week { | ||
.calendar--start-day-#{$day} .calendar__day:first-child { | ||
margin-left: $shift + ($shift / 100); |
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.
it's should not ($shift / 100), just use the gap 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.
lgtm
reflects in changing calendar layout
Typical Mistakes
fromBEM
lesson theory are checked.