Skip to content

Commit

Permalink
Merge pull request #19 from Ulleri-Tech/Style-fixes
Browse files Browse the repository at this point in the history
style fixes
  • Loading branch information
thebinij authored Dec 27, 2022
2 parents f3c8a8b + 2511552 commit 32bca0d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ulleritech/nepali-date-picker",
"version": "0.3.1",
"version": "0.3.3",
"description": "Nepali Date Picker",
"author": {
"name": "Ulleri Tech",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/Calendar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,12 @@
font-size: 0.875rem;
line-height: 1.25rem;
padding: 0.5rem;
margin-top: 0.25rem;
}
.header {
display: flex;
width: 100%;
padding: 0.5rem 0.5rem 0rem 0.5rem;
padding: 0.5rem 0rem 0rem 0rem;
justify-content: space-between;
}
.header-wrapper {
Expand Down
8 changes: 3 additions & 5 deletions src/lib/NepaliDatePicker.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
margin: 0;
font: inherit;
cursor: pointer;
outline: inherit;
}
body,
Expand Down Expand Up @@ -148,7 +147,6 @@
display: flex;
flex-direction: column;
background-color: white;
gap: 0.25rem;
}
.date-label {
text-align: left;
Expand All @@ -158,12 +156,12 @@
}
.date-select-box {
display: flex;
padding-left: 0.25rem;
justify-content: center;
align-items: center;
height: 2.25rem;
height: 2.5rem;
background-color: white;
border: 0.5px solid #6b7280;
outline: 0.5px solid #6b7280;
}
.date-icon {
padding-right: 0.75rem;
Expand Down
13 changes: 11 additions & 2 deletions src/lib/ShiftMonth.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</script>

<div>
<button type="button" on:click={previousMonth} aria-label="calendar backward">
<button class="chevron" type="button" on:click={previousMonth} aria-label="calendar backward">
<svg
xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-chevron-left"
Expand All @@ -49,7 +49,7 @@
</svg>
</button>

<button type="button" on:click={nextMonth} aria-label="calendar forward">
<button type="button" on:click={nextMonth} aria-label="calendar forward" class="chevron">
<svg
xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-chevron-right"
Expand All @@ -67,3 +67,12 @@
</svg>
</button>
</div>

<style>
.chevron:hover {
color: gray;
}
.chevron:disabled {
color: gray;
}
</style>

0 comments on commit 32bca0d

Please sign in to comment.