Jdlrobson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/149905
Change subject: Style input using mw-ui-input
......................................................................
Style input using mw-ui-input
Change-Id: I5744b844b0ecd1381eef71705bbd3f603bd69985
---
M SpecialUrlShortener.php
M less/ext.urlShortener.special.less
2 files changed, 2 insertions(+), 6 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UrlShortener
refs/changes/05/149905/1
diff --git a/SpecialUrlShortener.php b/SpecialUrlShortener.php
index 810f707..f0e914a 100644
--- a/SpecialUrlShortener.php
+++ b/SpecialUrlShortener.php
@@ -52,6 +52,7 @@
$this->getOutput()->addJsConfigVars( array(
'wgUrlShortenerDomainsWhitelist' =>
UrlShortenerUtils::getWhitelistRegex(),
) );
+ $this->getOutput()->addModuleStyles( 'mediawiki.ui' );
// Send Styles anyway, even without JS
$this->getOutput()->addModuleStyles(
'ext.urlShortener.special.styles' );
@@ -82,6 +83,7 @@
return array(
'url' => array(
'class' => 'HTMLTextField',
+ 'cssclass' => 'mw-ui-input',
'validation-callback' => array( $this,
'validateURL' ),
'required' => true,
'type' => 'url',
diff --git a/less/ext.urlShortener.special.less
b/less/ext.urlShortener.special.less
index 9f33f01..88a0270 100644
--- a/less/ext.urlShortener.special.less
+++ b/less/ext.urlShortener.special.less
@@ -18,12 +18,6 @@
margin-bottom: 8px;
}
-#mwe-urlshortener-url-input {
- font-size: 1.2em;
- border-radius: 2px;
- line-height: 1.4em;
-}
-
#mwe-urlshortener-form-footer {
display: none;
margin-top: 1em;
--
To view, visit https://gerrit.wikimedia.org/r/149905
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5744b844b0ecd1381eef71705bbd3f603bd69985
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UrlShortener
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits