Soeren.oldag has uploaded a new change for review.
https://gerrit.wikimedia.org/r/205851
Change subject: Several minor css fixes.
......................................................................
Several minor css fixes.
Changed prefix of classes to 'wdqa'. Changed color of 'wdqa-status-warning'
class. Added 'wdqa-status-partial-success' class in advance.
Change-Id: I3024aaf5990b4accbadc798a3161608563451085
---
M modules/SpecialCheckResultPage.css
M specials/SpecialCheckResultPage.php
2 files changed, 20 insertions(+), 16 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikidataQuality
refs/changes/51/205851/1
diff --git a/modules/SpecialCheckResultPage.css
b/modules/SpecialCheckResultPage.css
index 0d604aa..db08470 100644
--- a/modules/SpecialCheckResultPage.css
+++ b/modules/SpecialCheckResultPage.css
@@ -1,10 +1,10 @@
/* Entity id form */
-.wdq-checkresult-form {
+.wdqa-checkresult-form {
margin-top: 10px;
margin-bottom: 20px;
}
-.wdq-checkresult-form-entity-id {
+.wdqa-checkresult-form-entity-id {
width: 120px;
}
@@ -13,38 +13,42 @@
}
/* Notices */
-.wdq-checkresult-notice {
+.wdqa-checkresult-notice {
font-style: italic;
}
-.wdq-checkresult-notice-error {
+.wdqa-checkresult-notice-error {
font-weight: bold;
color: #BA0000;
}
/* Statuses */
-.wdq-status {
+.wdqa-status {
font-weight: bold;
}
-.wdq-status-success {
+.wdqa-status-success {
color: #008000;
}
-.wdq-status-warning {
+.wdqa-status-partial-success {
+ color: #6CB500;
+}
+
+.wdqa-status-warning {
color: #D2D20C;
}
-.wdq-status-error {
+.wdqa-status-error {
color: #BA0000;
}
-.wdq-status-unknown {
+.wdqa-status-unknown {
color: #404040;
}
/* Tooltip */
-.wdq-tooltip-indicator:before {
+.wdqa-tooltip-indicator:before {
content: '[?]';
color: #CCC;
font-weight: 600;
diff --git a/specials/SpecialCheckResultPage.php
b/specials/SpecialCheckResultPage.php
index 1b5a2f4..1bec68f 100644
--- a/specials/SpecialCheckResultPage.php
+++ b/specials/SpecialCheckResultPage.php
@@ -152,7 +152,7 @@
Html::openElement(
'form',
array (
- 'class' => 'wdq-checkresult-form',
+ 'class' => 'wdqa-checkresult-form',
'action' =>
$this->getPageTitle()->getLocalURL(),
'method' => 'post'
)
@@ -162,7 +162,7 @@
'',
'text',
array (
- 'class' =>
'wdq-checkresult-form-entity-id',
+ 'class' =>
'wdqa-checkresult-form-entity-id',
'placeholder' => $this->msg(
'wikidataquality-checkresult-form-entityid-placeholder' )->text()
)
)
@@ -193,9 +193,9 @@
throw new InvalidArgumentException( '$error must be
bool.' );
}
- $cssClasses = 'wdq-checkresult-notice';
+ $cssClasses = 'wdqa-checkresult-notice';
if ( $error ) {
- $cssClasses .= ' wdq-checkresult-notice-error';
+ $cssClasses .= ' wdqa-checkresult-notice-error';
}
return
@@ -284,7 +284,7 @@
$tooltipIndicator = Html::element(
'span',
array (
- 'class' => 'wdq-tooltip-indicator'
+ 'class' => 'wdqa-tooltip-indicator'
)
);
@@ -325,7 +325,7 @@
Html::element(
'span',
array (
- 'class' => 'wdq-status wdq-status-' .
$genericStatus
+ 'class' => 'wdqa-status wdqa-status-' .
$genericStatus
),
$message
);
--
To view, visit https://gerrit.wikimedia.org/r/205851
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3024aaf5990b4accbadc798a3161608563451085
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikidataQuality
Gerrit-Branch: master
Gerrit-Owner: Soeren.oldag <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits