r104624 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104623‎ | r104624 | r104625 >
Date:00:06, 30 November 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Added more example menus
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
@@ -78,7 +78,7 @@
7979 -moz-border-radius: 0.25em;
8080 -o-border-radius: 0.25em;
8181 border-radius: 0.25em;
82 - background-color: white;
 82+ background-color: rgba(255,255,255,0.95);
8383 -webkit-box-shadow: 0 0.25em 1em 0 rgba(0,0,0,0.25);
8484 -moz-box-shadow: 0 0.25em 1em 0 rgba(0,0,0,0.25);
8585 box-shadow: 0 0.25em 1em 0 rgba(0,0,0,0.25);
@@ -88,8 +88,35 @@
8989 .es-contextView-menuItem {
9090 padding: 0.33em 1em;
9191 cursor: pointer;
 92+ white-space: nowrap;
9293 }
9394
 95+.es-contextView-menuSection {
 96+ padding: 0.33em 0.66em;
 97+ white-space: nowrap;
 98+}
 99+
 100+.es-contextView-menuButton {
 101+ display: inline-block;
 102+ width: 1em;
 103+ height: 1em;
 104+ padding: 0.25em;
 105+ border: solid 1px white;
 106+ text-align: center;
 107+ cursor: pointer;
 108+}
 109+.es-contextView-menuButton:hover {
 110+ border-color: #b3d6f6;
 111+}
 112+.es-contextView-menuButton:active {
 113+ background-color: #b3d6f6;
 114+}
 115+
 116+.es-contextView-menuItem-break {
 117+ margin: 0.33em 0;
 118+ border-top: solid 1px #dddddd;
 119+}
 120+
94121 .es-contextView-menuItem:hover {
95122 background-color: #b3d6f6;
96123 }
Index: trunk/extensions/VisualEditor/modules/es/views/es.ContextView.js
@@ -13,11 +13,19 @@
1414
1515 // Example menu items
1616 this.$menu.append(
 17+ '<div class="es-contextView-menuSection">' +
 18+ '<div class="es-contextView-menuButton"><b>B</b></div>' +
 19+ '<div class="es-contextView-menuButton"><i>I</i></div>' +
 20+ '<div class="es-contextView-menuButton"><u>U</u></div>' +
 21+ '<div class="es-contextView-menuButton"><s>S</s></div>' +
 22+ '</div>' +
 23+ '<div class="es-contextView-menuItem-break"></div>' +
1724 '<div class="es-contextView-menuItem">Cut</div>' +
1825 '<div class="es-contextView-menuItem">Copy</div>' +
1926 '<div class="es-contextView-menuItem">Paste</div>' +
20 - '<div class="es-contextView-menuItem">Convert</div>' +
21 - '<div class="es-contextView-menuItem">Delete</div>'
 27+ '<div class="es-contextView-menuItem">Delete</div>' +
 28+ '<div class="es-contextView-menuItem-break"></div>' +
 29+ '<div class="es-contextView-menuItem">Convert to...</div>'
2230 );
2331
2432 // Events

Follow-up revisions

RevisionCommit summaryAuthorDate
r104633MFT r104624tstarling00:33, 30 November 2011

Status & tagging log