Skip to content

Commit

Permalink
Fix custom checkbox size on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Apr 25, 2024
1 parent 3c46a65 commit 4ccd5c0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/website/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ ol.to-do-checklist {
font-size: @rowHeight * 0.4;
text-align: left;
padding: 0px (@rowHeight / 2) 0px 10px;
.MobileMode({ padding-right: 10px });
margin: 0px;
a:visited {
color: dimgray;
Expand All @@ -227,7 +228,9 @@ ol.to-do-checklist {
position: relative;
font-size: @rowHeight;
margin: 0px;
transform: translateX(-9999px); //hide native component on mobile
&::before, &::after { //custom checkbox and checkmark
transform: translateX(9999px);
position: absolute;
content: "";
top: -(@rowHeight * 0.2);
Expand All @@ -240,6 +243,14 @@ ol.to-do-checklist {
border: 4px solid gray;
border-radius: 25%;
margin: 0px;
.MobileMode({
top: -(@rowHeight * 0.15);
left: -(@rowHeight * 0.0);
width: (@rowHeight * 0.4);
height: (@rowHeight * 0.4);
line-height: (@rowHeight * 0.3);
font-size: (@rowHeight * 0.6);
});
}
&::after {
content: "\2714"; //heavy checkmark (✔)
Expand Down

0 comments on commit 4ccd5c0

Please sign in to comment.