Index: trunk/parsers/wikidom/lib/es/es.Surface.css |
— | — | @@ -33,6 +33,7 @@ |
34 | 34 | } |
35 | 35 | |
36 | 36 | .editSurface-listItem { |
| 37 | + position: relative; |
37 | 38 | padding: 0 0 0 1em; |
38 | 39 | background-position: left 0.6em; |
39 | 40 | background-repeat: no-repeat; |
— | — | @@ -43,9 +44,21 @@ |
44 | 45 | } |
45 | 46 | |
46 | 47 | .editSurface-listItem-number { |
47 | | - background-image: url(images/hash.png); |
| 48 | + /* */ |
48 | 49 | } |
49 | 50 | |
| 51 | +.editSurface-listItem-bullet .editSurface-listItem-icon { |
| 52 | + display: none; |
| 53 | +} |
| 54 | + |
| 55 | +.editSurface-listItem-number .editSurface-listItem-icon { |
| 56 | + position: absolute; |
| 57 | + right: 100%; |
| 58 | + margin-right: -0.5em; |
| 59 | + height: 1.5em; |
| 60 | + line-height: 1.5em; |
| 61 | +} |
| 62 | + |
50 | 63 | .editSurface-listItem-level0 { |
51 | 64 | margin-left: 0.5em; |
52 | 65 | } |
Index: trunk/parsers/wikidom/lib/es/es.ListBlockItem.js |
— | — | @@ -2,10 +2,14 @@ |
3 | 3 | es.EventEmitter.call( this ); |
4 | 4 | |
5 | 5 | this.content = content || new es.Content(); |
6 | | - this.$ = $( '<div class="editSurface-listItem editSurface-listItem-content"></div>' ) |
7 | | - .addClass( 'editSurface-listItem-level' + level ) |
8 | | - .addClass( 'editSurface-listItem-' + style ); |
9 | | - this.flow = new es.Flow( this.$, this.content ); |
| 6 | + this.$icon = $( '<div class="editSurface-listItem-icon"></div>' ); |
| 7 | + this.$content = $( '<div class="editSurface-listItem-content"></div>' ); |
| 8 | + this.$ = $( '<div class="editSurface-listItem"></div>' ) |
| 9 | + .append( this.$icon ) |
| 10 | + .append( this.$content ); |
| 11 | + this.setStyle( style ); |
| 12 | + this.setLevel( level ); |
| 13 | + this.flow = new es.Flow( this.$content, this.content ); |
10 | 14 | // Listen to render events and trigger update event upstream |
11 | 15 | var listBlockItem = this; |
12 | 16 | this.flow.on( 'render', function() { |
— | — | @@ -13,6 +17,10 @@ |
14 | 18 | } ); |
15 | 19 | } |
16 | 20 | |
| 21 | +es.ListBlockItem.prototype.setNumber = function( number ) { |
| 22 | + this.$icon.text( number + '.' ); |
| 23 | +}; |
| 24 | + |
17 | 25 | es.ListBlockItem.prototype.setLevel = function( level ) { |
18 | 26 | this.$.removeClass( 'editSurface-listItem-level' + this.level ); |
19 | 27 | this.level = level; |
Index: trunk/parsers/wikidom/lib/es/images/hash.png |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |