Page MenuHomePhabricator
Paste P190

checkbox alignment
ActivePublic

Authored by Prtksxna on Jan 3 2015, 12:51 AM.
Tags
None
Referenced Files
F26286: checkbox_alignment
Jan 3 2015, 12:51 AM
Subscribers
None
diff --git a/resources/src/mediawiki.ui/components/checkbox.less b/resources/src/mediawiki.ui/components/checkbox.less
index 09437f2..f69f9c8 100644
--- a/resources/src/mediawiki.ui/components/checkbox.less
+++ b/resources/src/mediawiki.ui/components/checkbox.less
@@ -58,9 +58,11 @@
max-width: none;
margin-right: 0.4em;
display: table-cell;
+ vertical-align: top;
& + label {
display: table-cell;
+ vertical-align: top;
}
// the pseudo before element of the label after the checkbox now looks like a checkbox
@@ -76,9 +78,8 @@
line-height: @checkboxSize;
background-color: #fff;
border: 1px solid @colorGray7;
- // align to middle: evil!
- top: 50%;
- margin-top: -1em;
+ display: table-cell;
+ vertical-align: top;
}

Event Timeline

Prtksxna changed the title of this paste from untitled to checkbox alignment.
Prtksxna updated the paste's language from autodetect to diff.