Santhosh has uploaded a new change for review.

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


Change subject: Remove the outline of content editables in translation column
......................................................................

Remove the outline of content editables in translation column

Change-Id: Ib5d1d18c3a2502bc6621842672b600228beeea55
---
M Resources.php
M modules/translation/ext.cx.translation.js
A modules/translation/styles/ext.cx.translation.less
3 files changed, 13 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation 
refs/changes/98/106698/1

diff --git a/Resources.php b/Resources.php
index 59206f1..16173ef 100644
--- a/Resources.php
+++ b/Resources.php
@@ -47,6 +47,9 @@
 
 $wgResourceModules['ext.cx.translation'] = array(
        'scripts' => 'translation/ext.cx.translation.js',
+       'styles' => array(
+               'translation/styles/ext.cx.translation.less',
+       ),
 ) + $resourcePaths;
 
 $wgResourceModules['ext.cx.tool'] = array(
diff --git a/modules/translation/ext.cx.translation.js 
b/modules/translation/ext.cx.translation.js
index e004ddc..3a0e91b 100644
--- a/modules/translation/ext.cx.translation.js
+++ b/modules/translation/ext.cx.translation.js
@@ -32,11 +32,13 @@
                this.$container.append(
                        $( '<h2>' )
                                .attr( 'contenteditable', true )
+                               .addClass( 'title' )
                                .text( 'Translated title' )
                );
 
                $content = $( '<div>' )
                        .attr( 'contenteditable', true )
+                       .addClass( 'article' )
                        .text( 'Translated text' );
 
                this.$container.append( $content );
diff --git a/modules/translation/styles/ext.cx.translation.less 
b/modules/translation/styles/ext.cx.translation.less
new file mode 100644
index 0000000..f14e3f6
--- /dev/null
+++ b/modules/translation/styles/ext.cx.translation.less
@@ -0,0 +1,8 @@
+@import "../../base/styles/grid/agora-grid";
+
+.translation {
+       .title,
+       .article {
+               outline: none;
+       }
+}
\ No newline at end of file

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib5d1d18c3a2502bc6621842672b600228beeea55
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh <[email protected]>

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

Reply via email to