checkbox active state fix

This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
Adam Bradley
2013-11-14 08:31:13 -06:00
gitea-unlock(16/)
parent a76007442b
commit cc865ef10a
octicon-diff(16/tw-mr-1) 3 changed files with 26 additions and 19 deletions

11
scss/_checkbox.scss
View File

@@ -64,17 +64,22 @@
}
/* make sure item content have enough padding on left to fit the checkbox */
.item-checkbox .item-content {
.item-checkbox {
padding-left: ($item-padding * 2) + $checkbox-width;
&.active,
&:active {
box-shadow: none;
}
}
/* position the checkbox to the left within an item */
.item-checkbox .checkbox {
@include display-flex();
@include align-items(center);
position: absolute;
top: 0;
left: $item-padding / 2;
z-index: 3;
display: flex;
height: 100%;
align-items: center;
}