Skip to content

Commit

Permalink
Feat add responsiveness to dates (#1)
Browse files Browse the repository at this point in the history
* update css value for fluid responsiveness

* add viewport for mobile

* space update
  • Loading branch information
oluwatobi1 authored Sep 19, 2023
1 parent 4c3ab85 commit b7e4e1d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 2 additions & 0 deletions dev/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<html>

<head>

<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8" />
<title>&lt;my-element> Demo</title>
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions src/calendar-wc.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const CalendarStyles = css`
}
.calendar {
width: 496px;
width: 100%;
height: auto;
border-radius: 8px;
}
Expand Down Expand Up @@ -59,7 +59,7 @@ const CalendarStyles = css`
}
.month {
width: 240px;
width: 48%;
height: auto;
}
Expand All @@ -79,7 +79,7 @@ const CalendarStyles = css`
justify-content: center;
align-items: center;
color: #bebebe;
width: 28px;
width: 14.2857%;
}
.clear-dates-btn,
Expand Down Expand Up @@ -132,8 +132,7 @@ const CalendarStyles = css`
.days div {
font-size: 0.75rem;
margin: 4.8px;
width: 23.2px;
width: 14.2857%;
height: 26.4px;
display: flex;
justify-content: center;
Expand Down

0 comments on commit b7e4e1d

Please sign in to comment.