r104630 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104629‎ | r104630 | r104631 >
Date:00:19, 30 November 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Added images to menu buttons
Modified paths:
  • /trunk/extensions/VisualEditor/modules/es/es.Surface.css (modified) (history)
  • /trunk/extensions/VisualEditor/modules/es/views/es.ContextView.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/es/es.Surface.css
@@ -102,9 +102,18 @@
103103 height: 1em;
104104 padding: 0.25em;
105105 border: solid 1px white;
106 - text-align: center;
 106+ background-position: center center;
 107+ background-position: no-repeat;
107108 cursor: pointer;
108109 }
 110+
 111+.es-contextView-menuButton-bold {
 112+ background-image: url(images/bold.png);
 113+}
 114+.es-contextView-menuButton-italic {
 115+ background-image: url(images/italic.png);
 116+}
 117+
109118 .es-contextView-menuButton:hover {
110119 border-color: #b3d6f6;
111120 }
Index: trunk/extensions/VisualEditor/modules/es/views/es.ContextView.js
@@ -14,8 +14,8 @@
1515 // Example menu items
1616 this.$menu.append(
1717 '<div class="es-contextView-menuSection">' +
18 - '<div class="es-contextView-menuButton"></div>' +
19 - '<div class="es-contextView-menuButton"></div>' +
 18+ '<div class="es-contextView-menuButton es-contextView-menuButton-bold"></div>' +
 19+ '<div class="es-contextView-menuButton es-contextView-menuButton-italic"></div>' +
2020 '</div>' +
2121 '<div class="es-contextView-menuItem-break"></div>' +
2222 '<div class="es-contextView-menuItem">Cut</div>' +

Status & tagging log