-
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
Calendar with wrong font #3952
base: master
Are you sure you want to change the base?
Calendar with wrong font #3952
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Test | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm install | ||
- run: npm test | ||
- name: Upload HTML report(backstop data) | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: report | ||
path: backstop_data |
Large diffs are not rendered by default.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
$day-side: 100px; | ||
$padding: 10px; | ||
$days-names: 'mon' 1, | ||
'tue' 2, | ||
'wed' 3, | ||
'thu' 4, | ||
'fri' 5, | ||
'sat' 6, | ||
'sun' 7; | ||
|
||
body { | ||
margin: 0; | ||
display: flex; | ||
height: 100vh; | ||
} | ||
|
||
.calendar { | ||
margin: auto; | ||
|
||
display: flex; | ||
flex-wrap: wrap; | ||
gap: 1px; | ||
|
||
width: calc(#{$day-side} * 7 + (1px * 6)); | ||
padding: 0 #{$padding}; | ||
|
||
.calendar__day { | ||
background-color: #eee; | ||
box-sizing: border-box; | ||
height: $day-side; | ||
width: $day-side; | ||
border: 1px solid black; | ||
|
||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
font-family: Arial, sans-serif; | ||
font-size: 30px; | ||
color: bla; | ||
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. There is a typo in the color property value: 'bla'. It should be corrected to a valid color value, such as 'black' or a hex code like '#000'. |
||
} | ||
|
||
.calendar__day:hover { | ||
cursor: pointer; | ||
background-color: #ffbfcb; | ||
transition-duration: 0.5s; | ||
transform: translateY(-20px); | ||
|
||
} | ||
} | ||
|
||
@each $name, $day in $days-names { | ||
.calendar--start-day-#{$name} > .calendar__day--1 { | ||
margin-left: calc((#{$day-side} + 1px) * (#{$day} - 1)); | ||
} | ||
} | ||
|
||
@for $i from 1 through 31 { | ||
.calendar__day--#{$i}::before { | ||
content: '#{$i}'; | ||
} | ||
} | ||
|
||
@for $i from 28 through 31 { | ||
.calendar--month-length-#{$i} > .calendar__day:nth-child(n + #{$i + 1}) { | ||
display: none; | ||
} | ||
} |
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 linking to a SCSS file (styles/main.scss
). HTML cannot directly use SCSS files. You need to compile the SCSS into a CSS file and link to that CSS file instead.