From def5ae8de429448a986a3a16fc57c1a8a0b0be78 Mon Sep 17 00:00:00 2001 From: Jamie Pratt Date: Mon, 31 Oct 2011 12:31:07 +0700 Subject: [PATCH] MDL-47494 ddmarker: NOBUG further styling adjustments --- question/type/ddmarker/styles.css | 9 ++++----- question/type/ddmarker/yui/form/form.js | 3 ++- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/question/type/ddmarker/styles.css b/question/type/ddmarker/styles.css index 8bc409b3248..6ed073a8e69 100644 --- a/question/type/ddmarker/styles.css +++ b/question/type/ddmarker/styles.css @@ -77,7 +77,6 @@ form.mform fieldset#previewareaheader div.draghome, form.mform fieldset#previewa .que.ddmarker div.markertexts span.markertext, form.mform fieldset#previewareaheader div.markertexts span.markertext { z-index: 2; - border: 1px dashed black; background-color: white; padding: 5px; position:absolute; @@ -87,8 +86,8 @@ form.mform fieldset#previewareaheader div.markertexts span.markertext { width: auto; zoom: 1; *display: inline; - -moz-border-radius: 10px; - -webkit-border-radius: 10px; - -khtml-border-radius: 10px; - border-radius: 10px; + -moz-border-radius: 20px; + -webkit-border-radius: 20px; + -khtml-border-radius: 20px; + border-radius: 20px; } \ No newline at end of file diff --git a/question/type/ddmarker/yui/form/form.js b/question/type/ddmarker/yui/form/form.js index 2705dc70cb3..306b8ebf5de 100644 --- a/question/type/ddmarker/yui/form/form.js +++ b/question/type/ddmarker/yui/form/form.js @@ -86,7 +86,8 @@ YUI.add('moodle-qtype_ddmarker-form', function(Y) { markertext+''); } var markerspan = Y.one('div.ddarea div.markertexts span.markertext'+dropzoneno); - markerspan.setStyle('opacity', '0.6'); + markerspan.setStyle('opacity', '0.4'); + xyfortext[0] -= Math.round(markerspan.get('offsetWidth') / 2); xyfortext[1] -= Math.round(markerspan.get('offsetHeight') / 2); markerspan.setXY(this.convert_to_window_xy(xyfortext)); }