Mattflaschen has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/53862


Change subject: Append notices to container and float left.
......................................................................

Append notices to container and float left.

Change-Id: I9ac03250581363c1e5dd5622faf147c64a4ef4f5
---
M resources/ext.gettingstarted.accountcreation.js
M resources/ext.gettingstarted.css
2 files changed, 8 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GettingStarted 
refs/changes/62/53862/1

diff --git a/resources/ext.gettingstarted.accountcreation.js 
b/resources/ext.gettingstarted.accountcreation.js
index 1a4a65d..7a1b433 100644
--- a/resources/ext.gettingstarted.accountcreation.js
+++ b/resources/ext.gettingstarted.accountcreation.js
@@ -22,8 +22,8 @@
 
                // Mainly intended for email confirmation message, but others 
are possible.
                // There is not a more specific selector in core for this.
-               $notices = $( '#mw-content-text > p' );
-               $notices.insertAfter( $onboardingContainer );
+               $notices = $( '#mw-content-text > p' ).addClass( 
'onboarding-notice' );
+               $onboardingContainer.append( $notices );
 
                if ( history.replaceState ) {
                        state = {}; // Currently unused
diff --git a/resources/ext.gettingstarted.css b/resources/ext.gettingstarted.css
index d5edf4b..1c95344 100644
--- a/resources/ext.gettingstarted.css
+++ b/resources/ext.gettingstarted.css
@@ -98,8 +98,12 @@
 }
 
 /********************* Notifications *********************/
-/* Core currently doesn't offer any more stable selector. */
-#mw-content-text > p {
+/*
+   Core currently doesn't offer a stable selector.
+   We add this class ourselves.
+*/
+.onboarding-notice {
        font-size: 0.8em;
        color: gray;
+       float: left;
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/53862
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9ac03250581363c1e5dd5622faf147c64a4ef4f5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GettingStarted
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to