Skip to content

Commit

Permalink
fix: update custom checkboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmatthew committed Apr 22, 2021
1 parent 07feb1b commit 31228d7
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/assets/css/talis.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/assets/css/talis.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -447,12 +447,12 @@ <h2>Forms</h2>
</div>

<div class="form-check">
<input class="form-check-input" type="radio" id="radio">
<input class="form-check-input" type="radio" id="radio" name="radio">
<label class="form-check-label form-label" for="radio">Check me out</label>
</div>

<div class="form-check">
<input class="form-check-input" type="radio" id="radio-checked" checked>
<input class="form-check-input" type="radio" id="radio-checked" name="radio" checked>
<label class="form-check-label form-label" for="radio-checked">Check me out</label>
</div>

Expand Down
20 changes: 20 additions & 0 deletions scss/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,23 @@
::placeholder {
font-style: italic;
}

.form-check-input {
width: 16px;
height: 16px;
box-shadow: 0 0 0 1px $primary;
}

.form-check-label.form-label {
margin-bottom: 0;
}

.form-check-input:hover {
background-color: $gray-200;
}

.form-check-input:focus {
border: 0;
box-shadow: none;
outline: 2px solid $primary;
}
8 changes: 8 additions & 0 deletions scss/talis.scss
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,14 @@ $form-select-focus-border-color: $input-focus-border-color !default;
$form-select-focus-width: $input-focus-width !default;
$form-select-focus-box-shadow: 0 0 0 $form-select-focus-width $input-btn-focus-color !default;

$form-check-input-border: none !default;
$form-check-input-checked-color: $primary !default;
$form-check-input-checked-bg-color: $white !default;
$form-check-input-checked-border-color: $primary !default;
$form-check-min-height: 2rem !default;
$form-check-padding-start: 1.5rem !default;
$form-check-input-border-radius: 3px !default;

$modal-md: 600px !default ;
$modal-header-border-color: $gray-200 !default;
$modal-footer-border-color: $gray-300 !default;
Expand Down

0 comments on commit 31228d7

Please sign in to comment.