-
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
develop #3954
base: master
Are you sure you want to change the base?
develop #3954
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
body { | ||
margin: 0; | ||
min-height: 100vh; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
box-sizing: border-box; | ||
} | ||
|
||
.calendar { | ||
padding: 10px; | ||
display: flex; | ||
flex-wrap: wrap; | ||
gap: 1px; | ||
width: 706px; | ||
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. Consider defining a SCSS variable for the width value |
||
|
||
// .calendar__item | ||
|
||
&__day { | ||
box-sizing: border-box; | ||
list-style: none; | ||
height: 100px; | ||
width: 100px; | ||
Comment on lines
+22
to
+23
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. The height and width values |
||
background-color: #eee; | ||
border: 1px solid black; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
|
||
&:hover { | ||
background-color: #ffbfcb; | ||
transform: translateY(-20px); | ||
animation: move 0.5s; | ||
} | ||
} | ||
|
||
@for $number from 1 through 31 { | ||
& :nth-child(#{$number})::before { | ||
content: '#{$number}'; | ||
font-family: Arial, Helvetica, sans-serif; | ||
font-size: 30px; | ||
} | ||
} | ||
|
||
$days: ('mon' 0, 'tue' 1, 'wed' 2, 'thu' 3, 'fri' 4, 'sat' 5, 'sun' 6); | ||
|
||
@each $day, $dayCount in $days { | ||
&--start-day-#{$day} :first-child { | ||
margin-left: 101px * $dayCount; | ||
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. The margin-left calculation uses a hardcoded value |
||
} | ||
} | ||
|
||
@for $number from 28 through 31 { | ||
&--month-length-#{$number} :nth-child(n + #{$number + 1}) { | ||
display: none; | ||
} | ||
} | ||
|
||
@keyframes move { | ||
from { | ||
background-color: #eee; | ||
transform: translate(0); | ||
} | ||
|
||
to { | ||
background-color: #ffbfcb; | ||
transform: translate(0, -20px); | ||
} | ||
} | ||
} |
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.
The
href
attribute is pointing to a.scss
file. Browsers cannot directly interpret SCSS files; they need to be compiled into CSS first. Please compile your SCSS file to a CSS file and update this link to point to the resulting CSS file.