Merge "Fix link inspector css in new version of chrome. Chrome engine modifies CSS names to lowercase when inside iframe..."

This commit is contained in:
Catrope 2012-07-07 02:05:05 +00:00 committed by Gerrit Code Review
commit bf886937bf
4 changed files with 8 additions and 6 deletions

View file

@ -9,7 +9,7 @@ ve.ui.LinkInspector = function( toolbar, context ) {
// Inheritance
ve.ui.Inspector.call( this, toolbar, context );
// Properties
this.$clearButton = $( '<div class="es-inspector-button es-inspector-clearButton"></div>' )
this.$clearButton = $( '<div class="es-inspector-button es-inspector-clear-button"></div>' )
.prependTo( this.$ );
this.$.prepend(
$( '<div class="es-inspector-title"></div>' )

View file

@ -41,17 +41,18 @@
filter:alpha(opacity=25);
opacity: 0.25;
}
.es-inspector-closeButton {
.es-inspector-close-button {
right: 0.25em;
background-image: url(images/close.png);
}
.es-inspector-acceptButton {
.es-inspector-accept-button {
right: 2.25em;
background-image: url(images/accept.png);
}
.es-inspector-clearButton {
.es-inspector-clear-button {
right: 4.25em;
background-image: url(images/clear.png);
}

View file

@ -213,6 +213,7 @@ ve.ui.Context.prototype.addInspector = function( name, inspector ) {
.attr({
'rel': 'stylesheet',
'type': 'text/css',
'media': 'screen',
'href': ve.ui.getStylesheetPath() + 've.ui.Inspector.css'
});

View file

@ -18,9 +18,9 @@ ve.ui.Inspector = function( toolbar, context ) {
this.context = context;
this.$ = $( '<div class="es-inspector"></div>' );
//
this.$closeButton = $( '<div class="es-inspector-button es-inspector-closeButton"></div>' )
this.$closeButton = $( '<div class="es-inspector-button es-inspector-close-button"></div>' )
.appendTo( this.$ );
this.$acceptButton = $( '<div class="es-inspector-button es-inspector-acceptButton"></div>' )
this.$acceptButton = $( '<div class="es-inspector-button es-inspector-accept-button"></div>' )
.appendTo( this.$ );
this.$form = $( '<form></form>' ).appendTo( this.$ );