Skip to content

Commit

Permalink
feat: verticaly center radio buttons in edit period view
Browse files Browse the repository at this point in the history
  • Loading branch information
RafDevX authored and foodelevator committed May 2, 2024
1 parent 388fac0 commit 7960c78
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/main/resources/static/css/overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ input[type=checkbox] {
border-right: none;
transition: .25s;
}
.radio.v-centered label::before, .radio.v-centered label::after {
margin-top: 7px; /* thanks, I hate this */
}
.radio label:hover::after {
opacity: 0.5;
}
Expand Down
10 changes: 5 additions & 5 deletions src/main/resources/templates/activities/edit-period.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ <h2>Redigera period</h2>
<div class="form-group">
<label for="recurrence" class="form-label-block">Upprepning (från startdatum):</label>

<div class="radio" style="height: 4em">
<div class="radio v-centered" style="height: 4em">
<input class="form-control"
type="radio"
name="recurrence-type"
Expand All @@ -81,7 +81,7 @@ <h2>Redigera period</h2>
dag(ar)
</label>
</div>
<div class="radio" style="height: 4em">
<div class="radio v-centered" style="height: 4em">
<input class="form-control"
type="radio"
name="recurrence-type"
Expand All @@ -99,7 +99,7 @@ <h2>Redigera period</h2>
vecka(or)
</label>
</div>
<div class="radio" style="height: 4em">
<div class="radio v-centered" style="height: 4em">
<input class="form-control"
type="radio"
name="recurrence-type"
Expand All @@ -117,7 +117,7 @@ <h2>Redigera period</h2>
månad(er)
</label>
</div>
<div class="radio" style="height: 4em">
<div class="radio v-centered" style="height: 4em">
<input class="form-control"
type="radio"
name="recurrence-type"
Expand All @@ -135,7 +135,7 @@ <h2>Redigera period</h2>
år
</label>
</div>
<div class="radio" style="height: 4em">
<div class="radio v-centered" style="height: 4em">
<input class="form-control"
checked
type="radio"
Expand Down

0 comments on commit 7960c78

Please sign in to comment.