-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c1202a8
commit 656a94e
Showing
6 changed files
with
79 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
title: Date Picker | ||
--- | ||
|
||
A Date Picker is a form used for inputting dates, such as when creating an election in Every Election. | ||
|
||
<div class="ds-scope site-resizer"> | ||
<div class="ds-date"> | ||
<div class="ds-field"> | ||
<label for="day_0">Day</label> | ||
<input type="number" name="day_0" value="12" required="" id="id_date-date_0"> | ||
</div> | ||
<div class="ds-field"> | ||
<label for="month_1">Month</label> | ||
<input type="number" name="month_1" value="12" required="" id="id_date-date_1"> | ||
</div> | ||
<div class="ds-field"> | ||
<label for="year_2">Year</label> | ||
<input type="number" name="year_2" value="2025" required="" id="id_date-date_2"> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@mixin date-picker { | ||
.ds-date { | ||
@extend %ds-cluster-element; | ||
.ds-field { | ||
input { | ||
margin: 10px 15px 5px 0; | ||
border: 2px solid $black; | ||
padding: $s1; | ||
max-width: 5em; | ||
color:$black; | ||
} | ||
&:last-child input { | ||
max-width: 6em; | ||
} | ||
} | ||
} | ||
} |