CheckMatrixWidget: Fix alignment issues
authorVolker E <volker.e@wikimedia.org>
Fri, 16 Nov 2018 23:53:52 +0000 (15:53 -0800)
committerVolker E <volker.e@wikimedia.org>
Fri, 16 Nov 2018 23:53:52 +0000 (15:53 -0800)
Bug: T205629
Change-Id: I54c49621f8378d613098683fefe72f59fddbf771

resources/src/mediawiki.htmlform.ooui.styles.less

index a5efd7c..36f9d41 100644 (file)
                        &:first-child {
                                text-align: left;
                        }
+
+                       &.first {
+                               margin-right: 5%;
+                               width: 39%;
+                       }
+               }
+
+               thead tr td {
+                       padding-bottom: 0;
                }
 
                tbody tr:nth-child( even ) td {
                        background-color: #eaecf0;
                }
 
-               tbody tr:first-child td {
-                       background-color: #fff;
-                       padding-bottom: 0;
+               // Specificity needed because of necessary high OOUI specificity due to modularity
+               .oo-ui-fieldLayout.oo-ui-fieldLayout-align-top .oo-ui-fieldLayout-help {
+                       margin-top: 0;
                }
 
-               td.first {
-                       margin-right: 5%;
-                       width: 39%;
+               .oo-ui-fieldLayout.oo-ui-labelElement > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-header {
+                       padding-bottom: 0;
                }
        }
 }