Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

add solution #3906

wants to merge 2 commits into from

Conversation

ychaiun
Copy link

@ychaiun ychaiun commented Oct 27, 2024

  • DEMO LINK
  • TEST REPORT LINK
  • Changing 'month-lengh' and 'start-day' modifier in the code element
    reflects in changing calendar layout
  • Each day has no modifiers, only class (eg. calendar__day)
  • All Typical Mistakes from BEM lesson theory are checked.
  • Code follows all the Code Style Rules ❗️

Comment on lines 12 to 17
'tue': 100px,
'wed': 200px,
'thu': 300px,
'fri': 400px,
'sat': 500px,
'sun': 600px,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'tue': 100px,
'wed': 200px,
'thu': 300px,
'fri': 400px,
'sat': 500px,
'sun': 600px,
'tue': 1,
'wed': 2,
'thu': 3,
'fri': 4,
'sat': 5,
'sun': 6,


@each $day, $shift in $week {
.calendar--start-day-#{$day} .calendar__day:first-child {
margin-left: $shift + ($shift / 100);

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


@each $day, $shift in $week {
.calendar--start-day-#{$day} .calendar__day:first-child {
margin-left: $shift + ($shift / 100);

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

Copy link

@etojeDenys etojeDenys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants