https://www.mediawiki.org/wiki/Special:Code/MediaWiki/103375
Revision: 103375
Author: seanheavey
Date: 2011-11-16 20:36:28 +0000 (Wed, 16 Nov 2011)
Log Message:
-----------
Reha and Sean's work to get the radio buttons to look like regular buttons and
some other things
Modified Paths:
--------------
trunk/extensions/ArticleFeedbackv5/modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.css
trunk/extensions/ArticleFeedbackv5/modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.js
Modified:
trunk/extensions/ArticleFeedbackv5/modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.css
===================================================================
---
trunk/extensions/ArticleFeedbackv5/modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.css
2011-11-16 20:29:56 UTC (rev 103374)
+++
trunk/extensions/ArticleFeedbackv5/modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.css
2011-11-16 20:36:28 UTC (rev 103375)
@@ -415,7 +415,7 @@
}
/* tooltip styling. by default the element to be styled is .tooltip */
.tooltip {
- display:none;
+ display:none !important;
background: #0F0;
font-size:12px;
height:70px;
@@ -436,31 +436,22 @@
float: left;
border: none;
}
-.articleFeedbackv5-panel .trigger {
+.articleFeedbackv5-panel .articleFeedbackv5-tooltip-trigger {
display: block;
height: 27px;
width: 26px;
background: url(images/bg-tooltip-trigger.png) no-repeat;
float: right;
position: relative;
+ text-indent: -9999px;
}
-.articleFeedbackv5-panel .trigger:hover {
+.articleFeedbackv5-panel .articleFeedbackv5-tooltip-trigger:hover {
background: url(images/bg-tooltip-trigger-hov.png) no-repeat;
cursor: pointer;
text-decoration: none;
}
-.articleFeedbackv5-panel .articleFeedbackv5-button-placeholder {
- display: inline-block;
- height: 20px;
- width: 50px;
- text-align: center;
- color: #fff;
- text-shadow: 1px 1px 1px #000;
- background: url(images/bg-button-disable.png) repeat-x;
- -moz-border-radius: 3px;
- -webkit-border-radius: 3px;
- border-radius: 3px; /* future proofing */
- -khtml-border-radius: 3px; /* for old Konqueror browsers */
+.articleFeedbackv5-panel .form-row {
+ margin: 0 0 15px;
}
.articleFeedbackv5-panel .instructions-left {
float:left;
@@ -477,6 +468,19 @@
.articleFeedbackv5-panel .buttons input {
display: none;
}
+.articleFeedbackv5-panel .buttons .articleFeedbackv5-button-placeholder {
+ display: inline-block;
+ height: 20px;
+ width: 50px;
+ text-align: center;
+ color: #fff;
+ text-shadow: 1px 1px 1px #000;
+ background: url(images/bg-button-disable.png) repeat-x;
+ -moz-border-radius: 3px;
+ -webkit-border-radius: 3px;
+ border-radius: 3px; /* future proofing */
+ -khtml-border-radius: 3px; /* for old Konqueror browsers */
+}
.articleFeedbackv5-panel .buttons .articleFeedbackv5-button-placeholder:hover {
background: url(images/bg-button.png) repeat-x;
cursor: pointer;
@@ -495,12 +499,12 @@
font-size: 14px;
font: sans-serif;
}
-.articleFeedbackv5-panel .articleFeedback-disclosure {
+.articleFeedbackv5-panel .articleFeedbackv5-disclosure {
float: left;
width: 235px;
margin: 0 0 0 10px;
}
-.articleFeedbackv5-panel .articleFeedback-submit {
+.articleFeedbackv5-panel .articleFeedbackv5-submit {
float: right;
height: 25px;
width: 200px;
@@ -513,7 +517,7 @@
border-radius: 3px; /* future proofing */
-khtml-border-radius: 3px; /* for old Konqueror browsers */
}
-.articleFeedbackv5-panel .articleFeedback-submit span {
+.articleFeedbackv5-panel .articleFeedbackv5-submit span {
font-size: 16px;
line-height: 15px;
text-align: center;
Modified:
trunk/extensions/ArticleFeedbackv5/modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.js
===================================================================
---
trunk/extensions/ArticleFeedbackv5/modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.js
2011-11-16 20:29:56 UTC (rev 103374)
+++
trunk/extensions/ArticleFeedbackv5/modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.js
2011-11-16 20:36:28 UTC (rev 103375)
@@ -133,7 +133,7 @@
<form>\
<div class="title-wrap">\
<h2
class="articleFeedbackv5-title"><html:msg key="bucket1-title" /></h2>\
- <a
class="articleFeedbackv5-tooltip-trigger">?</a>\
+ <a
class="articleFeedbackv5-tooltip-trigger"></a>\
<div
class="articleFeedbackv5-tooltip">\
<div
class="tooltip-top"></div>\
<div
class="tooltip-repeat">\
@@ -160,6 +160,7 @@
</div>\
<div
class="clear"></div>\
</div>\
+ <div class="clear"></div>\
</div>\
<div class="articleFeedbackv5-comment">\
<textarea id="find-feedback"
class="feedback-text" name="comment"></textarea>\
@@ -218,12 +219,8 @@
bindEvents: function ( $block ) {
// Tooltip
- $block.find(
'.articleFeedbackv5-tooltip-trigger' ).hover( function () {
- // mouse on
- $.articleFeedbackv5.$holder.find(
'.articleFeedbackv5-tooltip' ).show();
- }, function () {
- // mouse off
- $.articleFeedbackv5.$holder.find(
'.articleFeedbackv5-tooltip' ).hide();
+ $block.find(
'.articleFeedbackv5-tooltip-trigger' ).click( function () {
+ $.articleFeedbackv5.$holder.find(
'.articleFeedbackv5-tooltip' ).toggle();
} );
// Enable submission and switch out the comment
default on toggle selection
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs