Skip to content

Commit

Permalink
add task solution1
Browse files Browse the repository at this point in the history
  • Loading branch information
OlkowskaK committed Dec 18, 2024
1 parent 5bfb1fc commit 52639c6
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 147 deletions.
14 changes: 0 additions & 14 deletions backstop_data/engine_scripts/cookies.json

This file was deleted.

39 changes: 0 additions & 39 deletions backstop_data/engine_scripts/puppet/clickAndHoverHelper.js

This file was deleted.

32 changes: 0 additions & 32 deletions backstop_data/engine_scripts/puppet/loadCookies.js

This file was deleted.

3 changes: 0 additions & 3 deletions backstop_data/engine_scripts/puppet/onBefore.js

This file was deleted.

48 changes: 0 additions & 48 deletions backstop_data/engine_scripts/puppet/onReady.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/>
</head>
<body>
<div class="calendar calendar--start-sun calendar--days-31">
<div class="calendar calendar--start-day-sun calendar--month-length-31">
<div class="calendar__day"></div>
<div class="calendar__day"></div>
<div class="calendar__day"></div>
Expand Down
15 changes: 5 additions & 10 deletions src/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@ body {
justify-content: flex-start;
gap: $gap;
margin: auto;
max-width: calc(
(#{$day-size} + #{$day-border} * 2) * #{$columns} + $gap * (
#{$columns} - 1
) + $padding
);
box-sizing: border-box;
max-width: 706px;
padding: $padding;

&__day {
Expand All @@ -54,7 +49,7 @@ body {
content: counter(day);
counter-increment: day;
position: absolute;
top: 50%;
top: 49%;
left: 50%;
transform: translate(-50%, -50%);
}
Expand All @@ -65,23 +60,23 @@ body {
}
}

&--start-sun {
&--start-day-sun {
.calendar__day:first-child {
margin-left: 0;
}
}

@each $day, $margin in (mon: 1, tu: 2, wed: 3, thu: 4, fri: 5, sat: 6, sun: 7)
{
&--start-#{$day} {
&--start-day-#{$day} {
.calendar__day:first-child {
margin-left: ($day-size + $gap) * ($margin - 1);
}
}
}

@for $i from 28 through 31 {
&--days-#{$i} {
&--month-length-#{$i} {
.calendar__day:nth-child(n + #{$i + 1}) {
display: none;
}
Expand Down

0 comments on commit 52639c6

Please sign in to comment.