Special:UserRights: Prevent FOUC on loading
[lhc/web/wiklou.git] / resources / src / mediawiki.special / mediawiki.special.userrights.css
index acfdb56..1ffdf70 100644 (file)
 .mw-userrights-groups * th {
        text-align: left;
 }
+
+/* Dynamically show/hide the expiry selection underneath each checkbox */
+input.mw-userrights-groupcheckbox:not( :checked ) ~ .mw-userrights-nested {
+       display: none;
+}
+
+/* Initial hide the expiry fields to prevent a FOUC on loading */
+/* The input fields gets unhidden by JavaScript when needed */
+.client-js .mw-userrights-expiryfield {
+       display: none;
+}