Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P190
checkbox alignment
Active
Public
Actions
Authored by
•
Prtksxna
on Jan 3 2015, 12:51 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Tags
None
Referenced Files
F26286: checkbox_alignment
Jan 3 2015, 12:51 AM
2015-01-03 00:51:11 (UTC+0)
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
edited the content of this paste.
(Show Details)
Jan 3 2015, 12:51 AM
2015-01-03 00:51:11 (UTC+0)
•
Prtksxna
changed the title of this paste from untitled to
checkbox alignment
.
•
Prtksxna
updated the paste's language from
autodetect
to
diff
.
Log In to Comment