Awight has uploaded a new change for review.

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

Change subject: WIP move GC iframe css into code
......................................................................

WIP move GC iframe css into code

Change-Id: I8f0588007804d6260dac9f739e5dcb1734c0199c
---
M gateway_forms/rapidhtml/RapidHtmlResources.php
A globalcollect_gateway/forms/css/iframe.css
2 files changed, 76 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface 
refs/changes/44/176044/1

diff --git a/gateway_forms/rapidhtml/RapidHtmlResources.php 
b/gateway_forms/rapidhtml/RapidHtmlResources.php
index e8cf545..b903ba8 100644
--- a/gateway_forms/rapidhtml/RapidHtmlResources.php
+++ b/gateway_forms/rapidhtml/RapidHtmlResources.php
@@ -205,6 +205,11 @@
        'localBasePath' => dirname( __FILE__ 
).'/../../globalcollect_gateway/forms',
        'remoteExtPath' => $wgGlobalCollectRapidHtmlRemoteExtPath,
 );
+$wgResourceModules[ 'gc.iframe' ] = array(
+       'styles' => 'css/iframe.css',
+       'localBasePath' => __DIR__ . '/../../globalcollect_gateway/forms',
+       'remoteExtPath' => $wgGlobalCollectRapidHtmlRemoteExtPath,
+);
 
 /*************************************************************
  *************************************************************
diff --git a/globalcollect_gateway/forms/css/iframe.css 
b/globalcollect_gateway/forms/css/iframe.css
new file mode 100644
index 0000000..ac181e9
--- /dev/null
+++ b/globalcollect_gateway/forms/css/iframe.css
@@ -0,0 +1,71 @@
+/* This page is currently used to provide css for testing the Global Collect 
payment systems. Please do not edit without talking to James Alexander or Ryan 
Kaldari */
+
+body#pageGetMissingData {
+  background-color: transparent;
+}
+
+table.ORB_TABLE_FIELDS td {
+  padding: 5px 0;
+}
+div.ORB_INSTRUCTIONS {
+  display: none;
+}
+.ORB_INPUT {
+  border: 1px solid #CCCCCC;
+  background-color: #FFFFFF;
+  box-shadow: 0 0 1px #DDDDDD inset;
+  padding: 0.3em;
+  vertical-align: middle;
+}
+.ORB_SELECT {
+  border: 1px solid #CCCCCC;
+  background-color: #FFFFFF;
+  padding: 0.3em;
+  width: 120px;
+}
+td.ORB_TD_ERRORLEFT {
+  display: none;
+}
+input#F1136 {
+  margin-right: 4px;
+  width: 50px;
+}
+#MANDATORY_F1009, #MANDATORY_F1010 {
+  display: none;
+}
+div.ORB_BUTTONELEMENT {
+  margin-left: 0;
+}
+.ORB_BUTTON {
+  font-size: 12px;
+  font-weight: normal;
+  width: 15em;
+}
+input#btnCancel {
+  display: none;
+}
+
+/* Add some margins to the CVV Help pop-up page */
+div#divCVVHelp {
+  margin: 1em;
+}
+/* Hide "Press this button to return to the shop..." message */
+span.ORB_BUTTONHELPTEXT {
+  display: none;
+}
+
+/* Hide the drop down with only one option (why does this even exist...) */
+select#selectCard {
+  display: none;
+}
+
+/* bold cvv window title */
+td.Heading1 {
+  font-weight: bold;
+}
+
+/* Credit card number and CVV inputs should always be left-to-right */
+input#F1009, input#F1136 {
+  /* @noflip */
+  direction: ltr;
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8f0588007804d6260dac9f739e5dcb1734c0199c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Awight <awi...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to